Scope
MainDlgView.h
1 #pragma once
2 
3 #include "controllers/ScopeController.h"
4 #include "ScanSettingsSheet.h"
5 #include "ExperimentSettingsSheet.h"
6 #include "controls/ScopeButtonCtrl.h"
7 #include "resource.h"
8 
9 namespace scope {
10  namespace gui {
11 
14  : public CDialogImpl<CMainDlgView> {
15 
16 protected:
19 
22 
25 
28 
31 
34 
37 
38 public:
39  enum { IDD = IDD_MAINDIALOG };
40 
42  CMainDlgView();
43  ~CMainDlgView();
44 
45  BEGIN_MSG_MAP(CScopeView)
46  MSG_WM_INITDIALOG(OnInitDialog)
47  REFLECT_NOTIFICATIONS()
48 // COMMAND_HANDLER(IDC_SCAN_SINGLE, BN_CLICKED, OnBnClickedScanSingle)
49  END_MSG_MAP()
50 
53  BOOL PreTranslateMessage(MSG* pMsg);
54 
56  BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam);
58 public:
59 // LRESULT OnBnClickedScanSingle(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
60 };
61 
62 }}
Main controller of microscope hardware and acquisition, also interface to the GUI.
CExperimentSettingsSheet m_sheetExperimentSettings
the settings sheet for the different scan modes
Definition: MainDlgView.h:24
View class of the main dialog.
Definition: MainDlgView.h:13
An adapted CButton control around a ScopeButton.
Settings sheet that has settings pages for different parameter sets.
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
Replace placeholders with property sheets (for scan settings and experiment settings) ...
Definition: MainDlgView.cpp:19
CMainDlgView()
Attach buttons to ScopeController.
Definition: MainDlgView.cpp:7
CScopeButtonCtrl m_QuitButton
to quit the application
Definition: MainDlgView.h:36
scope::ScopeController scope_controller
Keep a ScopeController to connect GUI controls.
Definition: MainDlgView.h:18
CScopeButtonCtrl m_ScanSingleButton
to start single frame scan
Definition: MainDlgView.h:30
Settings sheet for the various property sheets dealing with different experiment types.
CScopeButtonCtrl m_ScanLiveButton
to start live scanning
Definition: MainDlgView.h:27
CScopeButtonCtrl m_StopButton
to stop whatever scanning
Definition: MainDlgView.h:33
CScanSettingsSheet m_sheetScanSettings
the settings sheet with all the stuff
Definition: MainDlgView.h:21