Scope
ScanModesSettingsPage.h
1 #pragma once
2 
3 #include "controllers/ScopeController.h"
4 #include "controls/ScopeButtonCtrl.h"
5 #include "resource.h"
6 
7 namespace scope {
8  namespace gui {
9 
12  public CPropertyPageImpl<CScanModesSettingsPage> {
13 
14 protected:
17 
19  CListBox areas_list;
20 
23  CScopeButtonCtrl framesaw_radio;
24  CScopeButtonCtrl framebidi_radio;
25  CScopeButtonCtrl framehopper_radio;
26  CScopeButtonCtrl frameresonancebidi_radio;
27  CScopeButtonCtrl frameresonancehopper_radio;
28  CScopeButtonCtrl linestraight_radio;
31 protected:
33  void SetChecks(const uint32_t& _a);
34 
35 public:
36  enum { IDD = IDD_SCANMODES_PROPPAGE };
37 
38  BEGIN_MSG_MAP(CScanModesSettingsPage)
39  MSG_WM_INITDIALOG(OnInitDialog);
40  COMMAND_HANDLER(IDC_AREAS_LIST, LBN_SELCHANGE, OnAreaChange)
41  REFLECT_NOTIFICATIONS()
42  END_MSG_MAP()
43 
45 
49  BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam);
51  LRESULT OnAreaChange(WORD, WORD, HWND, BOOL&);
53 };
54 
55 }}
Property page for storage related options.
Main controller of microscope hardware and acquisition, also interface to the GUI.
CListBox areas_list
List of all areas, selection updates radio buttons.
void SetChecks(const uint32_t &_a)
Checks radio buttons according to the scan mode of the selected area.
An adapted CButton control around a ScopeButton.
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
Handles dialog initialization.
scope::ScopeController scope_controller
A ScopeController kept handy.
LRESULT OnAreaChange(WORD, WORD, HWND, BOOL &)
handles selection changes in area list box