Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
eventdlg.h
Go to the documentation of this file.
00001 // This program is free software; you can redistribute it and/or
00002 // modify it under the terms of the GNU General Public License
00003 // as published by the Free Software Foundation; either version 2
00004 // of the License, or (at your option) any later version.
00005 
00006 // This program is distributed in the hope that it will be useful,
00007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00009 // GNU General Public License for more details.
00010 
00011 // You should have received a copy of the GNU General Public License
00012 // along with this program; if not, write to the Free Software
00013 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00014 
00021 #ifndef _EVENTDLG_H
00022 #define _EVENTDLG_H
00023 
00028 #include <vector>
00029 
00030 class SectionPointer;
00031 
00033 class wxStfEventDlg : public wxDialog 
00034 {
00035     DECLARE_EVENT_TABLE()
00036 
00037 private:
00038     double m_threshold;
00039     stf::extraction_mode m_mode;
00040     bool isExtract;
00041     int m_minDistance;
00042     int m_template;
00043     wxStdDialogButtonSizer* m_sdbSizer;
00044     wxTextCtrl *m_textCtrlThr, *m_textCtrlDist;
00045     wxRadioBox* m_radioBox;
00046     wxComboBox* m_comboBoxTemplates;
00047 
00049 
00051     bool OnOK();
00052 
00053 public:
00055 
00066     wxStfEventDlg(
00067             wxWindow* parent,
00068             const std::vector<stf::SectionPointer>& templateSections,
00069             bool isExtract,
00070             int id = wxID_ANY,
00071             wxString title = wxT("Event detection settings"),
00072             wxPoint pos = wxDefaultPosition,
00073             wxSize size = wxDefaultSize,
00074             int style = wxCAPTION
00075     );
00076 
00078 
00080     double GetThreshold() const {return m_threshold;}
00081     
00083 
00085     stf::extraction_mode GetMode() const {return m_mode;}
00086     
00088 
00090     int GetMinDistance() const {return m_minDistance;}
00091     
00093 
00095     int GetTemplate() const {return m_template;}
00096     
00098 
00101     virtual void EndModal(int retCode);
00102 };
00103 
00104 /* @} */
00105 
00106 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines