2 #include "FrameScanBasePage.h"
3 #include "PresetNameDlg.h"
10 , zoom_edit(&_scanvecparams.zoom, true, true)
11 , zoom_scroll(&_scanvecparams.zoom, 0.1, 1, true, true)
12 , xres_edit(&_scanvecparams.xres, true, true)
13 , yres_edit(&_scanvecparams.yres, true, true)
14 , xaspectratio_edit(&_scanvecparams.xaspectratio, true, true)
15 , yaspectratio_edit(&_scanvecparams.yaspectratio, true, true)
16 , averages_edit(&scope_controller.GuiParameters.areas[area]->daq.averages, true, true)
17 , scannerdelay_edit(&scope_controller.GuiParameters.areas[area]->daq.scannerdelay, true, true)
18 , xoffset_edit(&_scanvecparams.xoffset, true, true)
19 , yoffset_edit(&_scanvecparams.yoffset, true, true)
20 , framerate_edit(&scope_controller.GuiParameters.areas[area]->framerate, true, true)
21 , frametime_edit(&scope_controller.GuiParameters.areas[area]->frametime, true, true)
22 , linerate_edit(&scope_controller.GuiParameters.areas[area]->linerate, true, true)
23 , diagram(area, &scope_controller.GuiParameters) {
34 BOOL CFrameScanBasePage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
36 CNoScanBasePage::OnInitDialog(wndFocus, lInitParam);
66 LRESULT CFrameScanBasePage::OnPresetSave(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) {
67 std::shared_ptr<std::wstring> strname = std::make_shared<std::wstring>(L
"PresetName");
68 CPresetNameDlg dlg(strname);
69 if ( dlg.DoModal(::GetActiveWindow()) == 0 ) {
77 LRESULT CFrameScanBasePage::OnPresetDelete(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) {
80 std::vector<wchar_t> buff(
presets_combo.GetLBTextLen(sel)+1, L
' ');
88 LRESULT CFrameScanBasePage::OnPresetSelection(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) {
91 std::vector<wchar_t> buff(
presets_combo.GetLBTextLen(sel)+1, L
' ');
110 void CFrameScanBasePage::FillPresetCombo() {
boost::signals2::connection ConnectGUI(signalchange_t::slot_type slot)
Connect signal to slot to GUI.
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)
*bool AttachToDlgItem(HWND hWnd)
()
CScopeEditCtrl< double > yoffset_edit
offset of the y scanner center position (-1..1, relative to maximum FOV)
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
std::array< std::unique_ptr< Area >, SCOPE_NAREAS > areas
holds AreaParameters for all areas.
boost::signals2::connection rwstateconnection
Connection object to the ScopeController::ReadOnlyWhileScanning for setting controls RW state...
const uint32_t area
for which area are the image settings
bool initialized
true after dialog is initialized
ScopeController scope_controller
our ScopeController here
CScopeEditCtrl< double > xoffset_edit
offset of the x scanner center position (-1..1, relative to maximum FOV)
virtual ~CFrameScanBasePage()
Disconnect from ScopeController::ReadOnlyWhileScanning.
This is the include file for standard system include files, or project specific include files that ar...
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.
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
static parameters::Scope GuiParameters
The complete pseudo-global parameter set of the microscope.
CScopeScrollbarCtrl zoom_scroll
zoom scrollbar control
CScopeEditCtrl< double > scannerdelay_edit
scannerdelay in us
static ScopeNumber< bool > ReadOnlyWhileScanning
Set to true while scanning, GUI elements can connect to this to disable buttons and controls (that ar...
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)