Scope
BehaviorSettingsPage.h
1 #pragma once
2 
3 #include "controls/ScopeEditCtrl.h"
4 #include "controls/ScopeCheckBoxCtrl.h"
5 #include "controls/ScopeButtonCtrl.h"
6 #include "controls/ScopeProgressCtrl.h"
7 #include "controllers/ScopeController.h"
8 #include "ThirdParty/ToolTipDialog.h"
9 #include "resource.h"
10 
11 namespace scope {
12  namespace gui {
13 
16  : public CPropertyPageImpl<CBehaviorSettingsPage>
17  , public CToolTipDialog<CBehaviorSettingsPage> {
18 
19 protected:
22 
25 
27  CListViewCtrl planes_list;
28 
31 
34 
37 
38 public:
39  enum { IDD = IDD_BEHAVIOR_PROPPAGE };
40 
42 
43  BEGIN_MSG_MAP_EX(CBehaviorSettingsPage)
44  MSG_WM_INITDIALOG(OnInitDialog);
45  COMMAND_HANDLER(IDC_ADDPLANE_BUTTON, BN_CLICKED, OnAddPlane)
46  COMMAND_HANDLER(IDC_DELETEPLANE_BUTTON, BN_CLICKED, OnDeletePlane)
47  CHAIN_MSG_MAP(CToolTipDialog<CBehaviorSettingsPage>)
48  REFLECT_NOTIFICATIONS()
49  END_MSG_MAP()
50 
54  BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam);
55  LRESULT OnAddPlane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
56  LRESULT OnDeletePlane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
60  void UpdatePlanesList();
61 };
62 
63 }}
Main controller of microscope hardware and acquisition, also interface to the GUI.
CListViewCtrl planes_list
list box for all planes
void UpdatePlanesList()
updates the list view ctrl on add/delete plane
An adapted CButton control around a ScopeButton.
CScopeEditCtrl< double > framecount_edit
Edit control (disabled) that displays current framecount of curren trial.
scope::ScopeController scope_controller
a scope controller
CScopeEditCtrl< double > trialcount_edit
Edit control (disabled) that displays current trial number.
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
Handles dialog initialization.
CScopeButtonCtrl start_behavior_button
start behavior triggered scanning
Property page for settings of behavior triggered scanning.
CScopeEditCtrl< double > totaltime_edit
Edit control (disabled) that displays elapsed total time since start of first trial.