Scope
FrameScanBasePage.h
1 #pragma once
2 
3 #include "NoScanBasePage.h"
4 #include "ThirdParty/ToolTipDialog.h"
5 #include "controls/ScopeSliderCtrl.h"
6 #include "controls/ScopeEditCtrl.h"
7 #include "controls/ScopeButtonCtrl.h"
8 #include "controls/ScopeCheckBoxCtrl.h"
9 #include "controls/ScopeUpDownCtrl.h"
10 #include "controls/ScopeScrollbarCtrl.h"
11 #include "controls/ScopeFOVDiagram.h"
12 #include "scanmodes/ScannerVectorFrameBasic.h"
13 #include "resource.h"
14 
15 namespace scope {
16 namespace gui {
17 
21  : public CNoScanBasePage {
22 
23 protected:
25  //boost::signals2::connection rwstateconnection;
26 
28  CComboBox presets_combo;
29 
32 
35 
38 
41 
44 
47 
50 
53 
56 
59 
62 
65 
68 
71 
74 
77 
78 public:
80  enum { IDD = IDD_FRAMESCAN_SAW_PROPPAGE };
81 
83  CFrameScanBasePage(const uint32_t& _area, parameters::ScannerVectorFrameBasic& _scanvecparams);
84 
86  virtual ~CFrameScanBasePage();
87 
88  BEGIN_MSG_MAP_EX(CFrameScanBasePage)
89  MSG_WM_INITDIALOG(OnInitDialog);
90  COMMAND_HANDLER(IDC_SAVEPRESET_BUTTON, BN_CLICKED, OnPresetSave)
91  COMMAND_HANDLER(IDC_DELETEPRESET_BUTTON, BN_CLICKED, OnPresetDelete)
92  COMMAND_HANDLER(IDC_PRESETS_COMBO, CBN_SELCHANGE, OnPresetSelection)
93  CHAIN_MSG_MAP(CNoScanBasePage)
94  REFLECT_NOTIFICATIONS()
95  END_MSG_MAP()
96 
99  virtual BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam);
100 
101  virtual LRESULT OnPresetSave(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
102  virtual LRESULT OnPresetDelete(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
103  virtual LRESULT OnPresetSelection(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
108  void SetReadOnlyWhileScanning() override;
113  virtual void FillPresetCombo();
115 };
116 
117 }
118 
119 }
CScopeEditCtrl< uint32_t > yres_edit
y resolution edit control
CScopeEditCtrl< double > frametime_edit
frametime edit control (edit disabled)
CScopeEditCtrl< double > framerate_edit
framerate edit control (edit disabled)
CScopeEditCtrl< double > yoffset_edit
offset of the y scanner center position (-1..1, relative to maximum FOV)
CScopeEditCtrl< double > xoffset_edit
offset of the x scanner center position (-1..1, relative to maximum FOV)
Base class for all frame scan property pages.
virtual ~CFrameScanBasePage()
Disconnect from ScopeController::ReadOnlyWhileScanning.
CScopeFOVDiagram diagram
diagram displaying FOV positions
CScopeEditCtrl< double > yaspectratio_edit
y aspect ratio edit control
CButton deletepreset_button
delete preset button, only here for easy disabling during scanning
Parameters for a ScannerVectorFrameBasic.
Definition: Framescan.h:45
CFrameScanBasePage(const uint32_t &_area, parameters::ScannerVectorFrameBasic &_scanvecparams)
We need a pointer to a basic ScannerVector (could be e.g.
CScopeEditCtrl< double > xaspectratio_edit
x aspect ratio edit control
CScopeEditCtrl< uint32_t > averages_edit
number of averages edit control
void SetReadOnlyWhileScanning() override
Connected to ScopeController::ReadOnlyWhileScanning.
CButton savepreset_button
save preset button, only here for easy disabling during scanning
CScopeEditCtrl< uint32_t > xres_edit
x resolution edit control
CScopeScrollbarCtrl zoom_scroll
zoom scrollbar control
Owner-drawn control that displays the total FOV and the smaller FOV of the areas. ...
CScopeEditCtrl< double > scannerdelay_edit
scannerdelay in us
An adapted CScrollB ar control around a ScopeNumber.
CComboBox presets_combo
Connection object to the ScopeController::ReadOnlyWhileScanning for setting controls RW state...
Base class for all scanning and non-scanning scan property pages, i.e.
CScopeEditCtrl< double > zoom_edit
zoom edit control
CScopeEditCtrl< double > linerate_edit
linerate edit control (edit disabled)