29#include <wx/bookctrl.h>
30#include <wx/tokenzr.h>
34#include <wx/aui/aui.h>
44 wxNotebookPage* CreateMeasurePage();
45 wxNotebookPage* CreatePeakPage();
46 wxNotebookPage* CreateBasePage();
47 wxNotebookPage* CreateDecayPage();
48 wxNotebookPage* CreateLatencyPage();
50 wxNotebookPage* CreatePSlopePage();
53 CreateCursorInput( wxPanel* nbPage, wxWindowID textC1, wxWindowID textC2,
54 wxWindowID comboU1, wxWindowID comboU2, std::size_t c1,
57 int ReadCursor(wxWindowID textId,
bool isTime)
const;
58 void WriteCursor(wxWindowID textID,
bool isTime,
long cursor)
const;
59 int ReadDeltaT(wxWindowID textId)
const;
60 void UpdateUnits(wxWindowID comboId,
bool& setTime, wxWindowID textID);
62 cursor1PIsTime,cursor2PIsTime,
63 cursor1BIsTime,cursor2BIsTime,
64 cursor1DIsTime,cursor2DIsTime,
66 cursor1PSIsTime,cursor2PSIsTime,
68 cursor1LIsTime,cursor2LIsTime;
71 wxAuiNotebook* m_notebook;
73 void OnPageChanged( wxAuiNotebookEvent& event );
110 void OnRTSlider( wxScrollEvent& event );
117 bool IsCSRSyntax( wxFileConfig* crs_file );
135 wxString title = wxT(
"Cursor settings"),
wxPoint pos = wxDefaultPosition,
136 wxSize size = wxDefaultSize,
int style = wxCAPTION );
201 int GetCursor1PS()
const;
206 int GetCursor2PS()
const;
281 stf::pslope_mode_beg GetPSlopeBegMode()
const;
286 stf::pslope_mode_end GetPSlopeEndMode()
const;
304 void SetPSlopeEndMode(stf::pslope_mode_end pslopeEndMode);
309 void SetPSlopeBegMode(stf::pslope_mode_beg pslopeBegMode);
WORD TSTime TpMarker WORD size
short short TpShort TpDType TpStr units
See http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxpoint.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxsize.html (wxWidgets documentation)
The document class, derived from both wxDocument and Recording.
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html (wxWidgets documentation)
direction
The direction of peak calculations.
latency_mode
Latency cursor settings.
baseline_method
Methods for Baseline computation.
cursor_type
Mouse cursor types.
void SetStartFitAtPeak(bool is_peak)
Sets whether the left decay cursor should be at the peak of the trace.
void SetPeakPoints(int peakPoints)
Sets the number of points used for the binned average during peak detection.
void SetDeltaT(int DeltaT)
Sets the number of points used for the distance from the first PSlope cursor.
void SetRuler(bool value)
Sets whether an additional vertical ruler should be drawn through the measurement cursor.
bool GetStartFitAtPeak() const
Indicates whether to always start a fit at the current peak position.
void UpdateCursors()
Updates the cursor entries in the Cursors Settings menu.
void SetActiveDoc(wxStfDoc *actDoc_)
Sets the currently active document.
stf::latency_mode GetLatencyStartMode() const
Gets the mode of Latency for the beginning of the latency cursor.
double GetSlope() const
Get the slope at which the baseline should be fixed.
stf::cursor_type CurrentCursor() const
Retrieve the current cursor notebook page.
int GetCursor1D() const
Get the left fit cursor x-position.
int GetPeakPoints() const
Gets the number of points used for the binned average during peak detection.
int GetRTFactor() const
Gets the lower factor (e.g 20) used to calculate the rise time.
int GetDeltaT() const
Gets the distance to the first PSlope cursor in number of points.
bool GetFromBase() const
Indicates whether to use the baseline as a reference for AP kinetics.
void SetLatencyEndMode(stf::latency_mode latencyEndMode)
Sets the latency mode of the right latency cursor.
virtual bool TransferDataFromWindow()
Called when data should be transferred from the non-modal dialog (e.g. when OK is pressed)
int GetCursor2D() const
Get the right fit cursor x-position.
int GetCursor1L() const
Get the left latency cursor x-position.
void SetLatencyStartMode(stf::latency_mode latencyBegMode)
Sets the latency mode of the left latency cursor.
int GetCursor2B() const
Get the right base cursor x-position.
bool LoadCursorConf(const wxString &filepath)
Load a cursor configuration file (*csr) in the Cursor Settings menu.
stfnum::direction GetDirection() const
Gets the direction of peak calculations.
void SetPeakAtEnd(bool is_end)
Sets whether the right peak cursor should be at the end of the trace.
wxStfCursorsDlg(wxWindow *parent, wxStfDoc *initDoc, int id=wxID_ANY, wxString title=wxT("Cursor settings"), wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, int style=wxCAPTION)
Constructor.
void SetFromBase(bool frombase)
Sets the reference for AP kinetics measurements.
int GetCursor1P() const
Get the left peak cursor x-position.
int GetCursorM() const
Get the measurement cursor x-position.
void SetDirection(stfnum::direction direction)
Sets the direction of peak calculations.
int GetCursor2P() const
Get the right peak cursor x-position.
stf::latency_mode GetLatencyEndMode() const
Gets the mode of Latency of the last latency cursor.
int GetCursor2L() const
Get the right latency cursor x-position.
bool GetBaseToSlope() const
Indicates whether the baseline should be fixed to a certain slope.
void SetSlopeUnits(const wxString &units)
Set the units of the slope.
void SetSlope(double slope)
Set the threshold slope.
bool GetRuler() const
Indicates whether an additional vertical ruler is drawn through the measurement cursor.
bool SaveCursorConf(const wxString &filepath)
Save a cursor configuration file (*csr) from the Cursor Settings menu.
void SetRTFactor(int RTFactor)
Set the lower value (e.g 20) to compute the rise-time. The high value is simply 100-lower value.
void SetBaselineMethod(enum stfnum::baseline_method)
Sets the reference for baseline measurement.
enum stfnum::baseline_method GetBaselineMethod() const
Indiates whether baseline is computed as mean or as median.
int GetCursor1B() const
Get the left base cursor x-position.
bool GetPeakAtEnd() const
Indicates whether the right peak cursor should always be at the end of the trace.
virtual void EndModal(int retCode)
Called upon ending a modal dialog.
#define StfDll
Defines dll export or import functions for Windows.