Scope
FPUControlPage.h
1 #pragma once
2 
3 #include "controls/ScopeEditCtrl.h"
4 #include "controls/ScopeButtonCtrl.h"
5 #include "controls/ScopeFOVDiagram.h"
6 #include "controllers/ScopeController.h"
7 #include "resource.h"
8 
9 namespace scope {
10  namespace gui {
11 
14  public CPropertyPageImpl<CFPUControlPage> {
15 
16 protected:
18  const uint32_t area;
19 
21  std::wstring strtitle;
22 
25 
28 
31 
34 
37 
40 
43 
44 public:
45  enum { IDD = IDD_FPUCONTROL_PROPPAGE };
46 
50  CFPUControlPage(const uint32_t& _area);
51 
52  BEGIN_MSG_MAP_EX(CFPUControlPage)
53  MSG_WM_INITDIALOG(OnInitDialog);
54  COMMAND_HANDLER(IDC_CALIBRATIONFILE_BUTTON, BN_CLICKED, OnCalibrationFileButton)
55  REFLECT_NOTIFICATIONS()
56  END_MSG_MAP()
57 
61  BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam);
63  LRESULT OnCalibrationFileButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
65 };
66 
67 }
68 }
CScopeEditCtrl< double > ypos_edit
edit for the FPU stage's y position
Main controller of microscope hardware and acquisition, also interface to the GUI.
CScopeFOVDiagram diagram
diagram displaying FOV positions
CFPUControlPage(const uint32_t &_area)
create the edit objects (e.g.
ScopeController scope_controller
Our ScopeController here.
const uint32_t area
the area the FPU serves
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
attach the dialog controls to the edit objects
CScopeEditCtrl< std::wstring > fpustageinfos_edit
edit control for displaying FPU stage information
An adapted CButton control around a ScopeButton.
CScopeEditCtrl< std::wstring > etlcalibrationfile_edit
edit for the FPU fast Z calibration file name
Property page for FPU stage settings.
CScopeEditCtrl< double > xpos_edit
edit for the FPU stage's x position
CScopeButtonCtrl setxyzero_button
button to set current xy position as zero
std::wstring strtitle
the page title
LRESULT OnCalibrationFileButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
Loads fast z calibration file.
Owner-drawn control that displays the total FOV and the smaller FOV of the areas. ...