-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI_VoltageClampFitForm.h
98 lines (90 loc) · 3.34 KB
/
GUI_VoltageClampFitForm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* /////////////////////////////////////////////////////////////////////////////
NetSuite: NetClamp/NetSim/NetFit Neural Network Modeling and Dynamic Clamp Software
Copyright (C) 2011-2014 E. Brady Trexler, Ph.D.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Please direct correspondence to ebtrexler _at_ gothamsci _dot_ com
///////////////////////////////////////////////////////////////////////////// */
//---------------------------------------------------------------------------
#ifndef GUI_VoltageClampFitFormH
#define GUI_VoltageClampFitFormH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.CheckLst.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include "Fit_HHCurrent.h"
#include "PLOTPanel.h"
#include <Vcl.Dialogs.hpp>
#include <Vcl.Grids.hpp>
#include <Vcl.ValEdit.hpp>
//---------------------------------------------------------------------------
class TVoltageClampFitForm : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TPanel *Panel2;
TPageControl *PageControl1;
TTabSheet *TabSheet1;
TTabSheet *TabSheet2;
TTabSheet *TabSheet3;
TLabel *Label1;
TComboBox *VChanComboBox;
TButton *GenerateButton;
TLabel *Label2;
TComboBox *CChanComboBox;
TLabel *Label3;
TLabel *FilenameLabel;
TButton *SaveButton;
TSaveDialog *SaveDialog1;
TPanel *Panel3;
TPanel *ParamsPanel;
TPLOTPanel *PlotPanel1;
TLabel *Label4;
TCheckBox *ConcatEpisCheckBox;
TButton *OptimizeButton;
TValueListEditor *ValueListEditor1;
TLabel *Label5;
TLabel *fitGenLabel;
TLabel *Label6;
TLabel *ChiSqLabel;
TScrollBox *ScrollBox1;
TScrollBox *ScrollBox2;
TCheckBox *MultiThreadCheckBox;
TLabel *Label7;
TEdit *NumThreadsEdit;
TButton *StopButton;
TButton *SaveParamsButton;
TSaveDialog *SaveDialog2;
void __fastcall GenerateButtonClick(TObject *Sender);
void __fastcall PageControl1Change(TObject *Sender);
void __fastcall PageControl1Changing(TObject *Sender, bool &AllowChange);
void __fastcall SaveButtonClick(TObject *Sender);
void __fastcall OptimizeButtonClick(TObject *Sender);
void __fastcall ConcatEpisCheckBoxClick(TObject *Sender);
void __fastcall StopButtonClick(TObject *Sender);
void __fastcall SaveParamsButtonClick(TObject *Sender);
private: // User declarations
ModelFittingModule *mf;
public: // User declarations
double *origdata;
double *genrdata;
THHCurrentModel HHModel;
__fastcall TVoltageClampFitForm(TComponent* Owner);
__fastcall ~TVoltageClampFitForm();
};
//---------------------------------------------------------------------------
extern PACKAGE TVoltageClampFitForm *VoltageClampFitForm;
//---------------------------------------------------------------------------
#endif