2 #include "FPUControlPage.h"
10 , xpos_edit(&scope_controller.GuiParameters.areas[area]->fpuxystage.xpos, true)
11 , ypos_edit(&scope_controller.GuiParameters.areas[area]->fpuxystage.ypos, true)
12 , etlcalibrationfile_edit(&scope_controller.GuiParameters.areas[area]->fpuzstage.calibrationfile, true)
13 , setxyzero_button(&scope_controller.FPU[area].SetZeroButton)
14 , fpustageinfos_edit(&scope_controller.GuiParameters.areas[area]->fpuxystage.stageinfo, true)
15 , diagram(area, &scope_controller.GuiParameters) {
16 std::wstringstream stream;
17 stream << L
"Area " <<
area+1;
36 COMDLG_FILTERSPEC fileTypes[] = {{ L
"ETL calibration file", L
"*.txt" }};
37 CShellFileSaveDialog dlg(NULL, FOS_FORCEFILESYSTEM | FOS_PATHMUSTEXIST | FOS_FILEMUSTEXIST, L
"txt", fileTypes, 1);
38 dlg.GetPtr()->SetTitle(L
"Select Fast Z calibration file");
39 IShellItem *psiFolder;
40 SHCreateItemFromParsingName(L
"C:\\Temp\\", NULL, IID_PPV_ARGS(&psiFolder));
41 dlg.GetPtr()->SetFolder(psiFolder);
43 if ( IDOK == dlg.DoModal(::GetDesktopWindow()) ) {
45 dlg.GetFilePath(filepath);
46 std::wstring strfilepath(filepath.GetString());
47 DBOUT(L
"Fast Z calibration file loaded from " << strfilepath);
CScopeEditCtrl< double > ypos_edit
edit for the FPU stage's y position
CScopeFOVDiagram diagram
diagram displaying FOV positions
*bool AttachToDlgItem(HWND hWnd)
()
CFPUControlPage(const uint32_t &_area)
create the edit objects (e.g.
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
std::array< std::unique_ptr< Area >, SCOPE_NAREAS > areas
holds AreaParameters for all areas.
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
CScopeEditCtrl< std::wstring > etlcalibrationfile_edit
edit for the FPU fast Z calibration file name
This is the include file for standard system include files, or project specific include files that ar...
#define DBOUT(s)
A debug output to the debug console.
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.
static parameters::Scope GuiParameters
The complete pseudo-global parameter set of the microscope.