Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
usrdlg.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 _USRDLG_H
22#define _USRDLG_H
23
27
28#ifdef _MSC_VER
29#pragma warning( disable : 4251 ) // Disable warning messages
30#endif
31
32#include <vector>
33#include <string>
34#include <sstream>
35
36#include "./../../stf.h"
37
39class wxStfUsrDlg : public wxDialog
40{
41 DECLARE_EVENT_TABLE()
42
43private:
44 stf::UserInput input;
45 Vector_double retVec;
46 wxStdDialogButtonSizer* m_sdbSizer;
47 std::vector<wxTextCtrl*> m_textCtrlArray;
48 std::vector<wxStaticText*> m_staticTextArray;
49
51
53 bool OnOK();
54
55public:
57
65 wxWindow* parent,
66 const stf::UserInput& input_,
67 int id = wxID_ANY,
68 wxPoint pos = wxDefaultPosition,
69 wxSize size = wxDefaultSize,
70 int style = wxCAPTION
71 );
72
74
76 Vector_double readInput() const {return retVec;}
77
79
82 virtual void EndModal(int retCode);
83};
84
86
87#endif
WORD TSTime TpMarker WORD size
Definition Son.h:337
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)
Vector_double readInput() const
Get the user entries.
Definition usrdlg.h:76
wxStfUsrDlg(wxWindow *parent, const stf::UserInput &input_, int id=wxID_ANY, wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, int style=wxCAPTION)
Constructor.
virtual void EndModal(int retCode)
Called upon ending a modal dialog.
See http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html (wxWidgets documentation)
std::vector< double > Vector_double
Definition core.h:55
Represents user input from dialogs that can be used in plugins.
Definition stf.h:146