Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
eventdlg.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _EVENTDLG_H
22#define _EVENTDLG_H
23
27
28#include <vector>
29
30class SectionPointer;
31
33class wxStfEventDlg : public wxDialog
34{
35 DECLARE_EVENT_TABLE()
36
37private:
38 double m_threshold;
40 bool isExtract;
41 int m_minDistance;
42 int m_template;
43 wxStdDialogButtonSizer* m_sdbSizer;
44 wxTextCtrl *m_textCtrlThr, *m_textCtrlDist;
45 wxStaticBoxSizer* m_radioBox;
46 wxComboBox* m_comboBoxTemplates;
47
48 void OnClements( wxCommandEvent & event );
49 void OnJonas( wxCommandEvent & event );
50 void OnPernia( wxCommandEvent & event );
51
53
55 bool OnOK();
56
57public:
59
71 wxWindow* parent,
72 const std::vector<stf::SectionPointer>& templateSections,
73 bool isExtract,
74 int id = wxID_ANY,
75 wxString title = wxT("Event detection settings"),
76 wxPoint pos = wxDefaultPosition,
77 wxSize size = wxDefaultSize,
78 int style = wxCAPTION
79 );
80
82
84 double GetThreshold() const {return m_threshold;}
85
87
89 stf::extraction_mode GetMode() const {return m_mode;}
90
92
94 int GetMinDistance() const {return m_minDistance;}
95
97
99 int GetTemplate() const {return m_template;}
100
102
105 virtual void EndModal(int retCode);
106};
107
108/* @} */
109
110#endif
WORD TSTime TpMarker WORD size
Definition Son.h:337
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)
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html (wxWidgets documentation)
extraction_mode
Deconvolution.
Definition stf.h:424
int GetMinDistance() const
Get the minimal distance between events.
Definition eventdlg.h:94
stf::extraction_mode GetMode() const
Indicates the selected extraction algorithm.
Definition eventdlg.h:89
double GetThreshold() const
Get the event detection threshold.
Definition eventdlg.h:84
wxStfEventDlg(wxWindow *parent, const std::vector< stf::SectionPointer > &templateSections, bool isExtract, int id=wxID_ANY, wxString title=wxT("Event detection settings"), wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, int style=wxCAPTION)
Constructor.
virtual void EndModal(int retCode)
Called upon ending a modal dialog.
int GetTemplate() const
Get the selected template.
Definition eventdlg.h:99