Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
fitseldlg.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 _FITSELDLG_H
22#define _FITSELDLG_H
23
27
28#include <vector>
29#include <wx/listctrl.h>
30
31#include "./../../stf.h"
32
35{
36 DECLARE_EVENT_TABLE()
37
38private:
39 int m_fselect;
40 Vector_double init_p;
41 Vector_double opts;
42 bool noInput, use_scaling;
43
44 void SetPars();
45 void SetOpts();
46 void InitOptions(wxFlexGridSizer* optionsGrid);
47 void Update_fselect();
48 void read_init_p();
49 void read_opts();
50 static const int MAXPAR=20;
51
52 void OnListItemSelected( wxListEvent& event );
53 void OnButtonClick( wxCommandEvent& event );
54
55 wxStdDialogButtonSizer* m_sdbSizer;
56 wxListCtrl* m_listCtrl;
57 wxTextCtrl *m_textCtrlMu,*m_textCtrlJTE,*m_textCtrlDP,*m_textCtrlE2,
58 *m_textCtrlMaxiter, *m_textCtrlMaxpasses;
59 wxCheckBox *m_checkBox;
60 std::vector< wxStaticText* > paramDescArray;
61 std::vector< wxTextCtrl* > paramEntryArray;
62
63 wxStfDoc* pDoc;
64
66
68 bool OnOK();
69
70public:
72
81 wxWindow* parent,
82 wxStfDoc* doc,
83 int id = wxID_ANY,
84 wxString title = wxT("Non-linear regression"),
85 wxPoint pos = wxDefaultPosition,
86 wxSize size = wxDefaultSize,
87 int style = wxCAPTION
88 );
89
91
94 virtual void EndModal(int retCode);
95
97
99 int GetFSelect() const {return m_fselect;}
100
102
104 Vector_double GetInitP() const {return init_p;}
105
107
109 Vector_double GetOpts() const {return opts;}
110
112
114 bool UseScaling() const {return use_scaling;}
115
117
120 void SetNoInput(bool noInput_) {noInput=noInput_;}
121};
122
123/* @} */
124
125#endif
126
WORD TSTime TpMarker WORD size
Definition Son.h:337
See http://www.wxwidgets.org/manuals/stable/wx_wxcheckbox.html (wxWidgets documentation)
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.
Definition doc.h:35
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html (wxWidgets documentation)
std::vector< double > Vector_double
Definition core.h:55
wxStfFitSelDlg(wxWindow *parent, wxStfDoc *doc, int id=wxID_ANY, wxString title=wxT("Non-linear regression"), wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, int style=wxCAPTION)
Constructor.
bool UseScaling() const
Scale x- and y-amplitudes to 1.0 before fit.
Definition fitseldlg.h:114
Vector_double GetOpts() const
Get options for the algorithm.
Definition fitseldlg.h:109
void SetNoInput(bool noInput_)
Determines whether user-defined initial parameters are allowed.
Definition fitseldlg.h:120
Vector_double GetInitP() const
Get the initial parameters.
Definition fitseldlg.h:104
int GetFSelect() const
Get the selected fit function.
Definition fitseldlg.h:99
virtual void EndModal(int retCode)
Called upon ending a modal dialog.