Scope
FrameScanSawPage.cpp
1 #include "StdAfx.h"
2 #include "FrameScanSawPage.h"
3 #include "PresetNameDlg.h"
4 #include "parameters/Framescan.h"
5 #include "helpers/ScopeButton.h"
6 #include "resource.h"
7 
8 namespace scope {
9  namespace gui {
10 
12  : CFrameScanBasePage(_area, scope_controller.GuiParameters.areas[_area]->FrameSaw())
13  , xcutoff_edit(&scope_controller.GuiParameters.areas[_area]->FrameSaw().xcutoff, true, true)
14  , ycutoff_edit(&scope_controller.GuiParameters.areas[_area]->FrameSaw().ycutoff, true, true)
15  , xretrace_edit(&scope_controller.GuiParameters.areas[_area]->FrameSaw().xretrace, true, true)
16  , yretrace_edit(&scope_controller.GuiParameters.areas[_area]->FrameSaw().yretrace, true, true) {
17 
18  // Overwrite base class enum { IDD = ... }
19  // Use different dialog resources depending if this area is a slave area (only Pockels and ETL sliders) or a master area (full control complement)
20  if ( scope_controller.GuiParameters.areas[area]->isslave() )
21  m_psp.pszTemplate = MAKEINTRESOURCE(IDD_FRAMESCAN_SLAVE_PROPPAGE);
22  else
23  m_psp.pszTemplate = MAKEINTRESOURCE(IDD_FRAMESCAN_SAW_PROPPAGE);
24 }
25 
26 BOOL CFrameScanSawPage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
27  // Call base class dialog initialization
28  CFrameScanBasePage::OnInitDialog(wndFocus, lInitParam);
29 
30  // Add the additional dialog elements
31  xcutoff_edit.AttachToDlgItem(GetDlgItem(IDC_XCUTOFF_EDIT));
32  ycutoff_edit.AttachToDlgItem(GetDlgItem(IDC_YCUTOFF_EDIT));
33  xretrace_edit.AttachToDlgItem(GetDlgItem(IDC_XRETRACE_EDIT));
34  yretrace_edit.AttachToDlgItem(GetDlgItem(IDC_YRETRACE_EDIT));
35 
36  SetMsgHandled(true);
37  return 0;
38 }
39 
40 
41 }
42 
43 }
CScopeEditCtrl< double > ycutoff_edit
cutoff fraction for y scanner
CScopeEditCtrl< double > yretrace_edit
retrace fraction for y scanner
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
Attach the dialog elements.
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
Definition: ScopeEditCtrl.h:68
CFrameScanSawPage(const uint32_t &_area)
create the edit objects (e.g.
std::array< std::unique_ptr< Area >, SCOPE_NAREAS > areas
holds AreaParameters for all areas.
Definition: Scope.h:231
const uint32_t area
for which area are the image settings
ScopeController scope_controller
our ScopeController here
Base class for all frame scan property pages.
This is the include file for standard system include files, or project specific include files that ar...
CScopeEditCtrl< double > xcutoff_edit
cutoff fraction for x scanner
static parameters::Scope GuiParameters
The complete pseudo-global parameter set of the microscope.
CScopeEditCtrl< double > xretrace_edit
retrace fraction for x scanner