2 #include "TimeSeriesSettingsPage.h"
7 CTimeSeriesSettingsPage::CTimeSeriesSettingsPage(
void)
8 : CToolTipDialog(TTS_NOPREFIX)
9 , start_timeseries_button(&scope_controller.StartTimeseriesButton)
10 , frames_edit(&scope_controller.GuiParameters.timeseries.frames[0], true, true)
11 , frames_progress(&scope_controller.FrameCounter[0])
12 , firsttriggered_check(&scope_controller.GuiParameters.timeseries.triggered, true, true)
13 , alltriggered_check(&scope_controller.GuiParameters.timeseries.alltriggered, true, true)
14 , totaltime_edit(&scope_controller.GuiParameters.timeseries.totaltimes[0], true, true)
15 , repeats_edit(&scope_controller.GuiParameters.timeseries.repeats, true, true)
16 , repeats_progress(&scope_controller.RepeatCounter)
17 , betweenrepeats_edit(&scope_controller.GuiParameters.timeseries.betweenrepeats, true, true)
18 , overalltime_edit(&scope_controller.GuiParameters.timeseries.overalltime, true, true) {
36 for ( uint32_t a = 0 ; a < SCOPE_NAREAS ; a++ ) {
37 label.Format(L
"FastZ %d", a+1);
39 label.Format(L
"Pockels %d", a+1);
48 LRESULT CTimeSeriesSettingsPage::OnAddPlane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) {
49 DBOUT(L
"CTimeSeriesSettingsPage::OnAddPlane");
52 std::array<parameters::PlaneProperties, SCOPE_NAREAS> planes;
53 for ( uint32_t a = 0 ; a < SCOPE_NAREAS ; a++ ) {
64 LRESULT CTimeSeriesSettingsPage::OnDeletePlane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) {
79 tmp.Format(L
"Plane %d", n);
84 for (
auto& p : pa ) {
85 tmp.Format(L
"%.1f", p.position());
87 tmp.Format(L
"%.2f", p.pockels());
CScopeEditCtrl< double > overalltime_edit
time in seconds for all timeseries
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
void UpdatePlanesList()
updates the list view ctrl on add/delete plane
std::array< std::unique_ptr< Area >, SCOPE_NAREAS > areas
holds AreaParameters for all areas.
scope::ScopeController scope_controller
a scope controller
CScopeProgressCtrl repeats_progress
Progress indicator for repeats.
CScopeEditCtrl< double > totaltime_edit
the total time the timeseries will take
CScopeEditCtrl< uint32_t > frames_edit
number of frames to scan
Timeseries timeseries
the TimeseriesParameters
BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
Handles dialog initialization.
CScopeButtonCtrl start_timeseries_button
start timeseries scanning
This is the include file for standard system include files, or project specific include files that ar...
CListViewCtrl planes_list
list box for all planes
#define DBOUT(s)
A debug output to the debug console.
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
BOOL AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item and set range.
CScopeCheckBoxCtrl firsttriggered_check
is the first timeseries triggered
CScopeCheckBoxCtrl alltriggered_check
are all timeseries triggered
CScopeProgressCtrl frames_progress
progress indicator for frames of a single repeat
std::vector< std::array< PlaneProperties, SCOPE_NAREAS > > planes
vector with properties for all planes, for alternating planes on repeating timeseries, one for each area
CScopeEditCtrl< uint32_t > repeats_edit
How often should the timeseries be repeated.
CScopeEditCtrl< double > betweenrepeats_edit
Time in seconds between the end of one and the next timeseries.
static parameters::Scope GuiParameters
The complete pseudo-global parameter set of the microscope.