-
Notifications
You must be signed in to change notification settings - Fork 14
/
RunDialog.h
144 lines (127 loc) · 4.92 KB
/
RunDialog.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/***************************************************************************
* *
* Copyright (c) 2017 *
* FastFieldSolvers S.R.L. http://www.fastfieldsolvers.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License (LGPL) *
* as published by the Free Software Foundation; either version 2 of *
* the License, or (at your option) any later version. *
* for detail see the LICENCE text file. *
* *
* 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 Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this program; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA *
* *
***************************************************************************/
#ifndef RUNDIALOG_H
#define RUNDIALOG_H
#ifndef WX_PRECOMP
//(*HeadersPCH(RunDialog)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/checkbox.h>
#include <wx/panel.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)
#endif
//(*Headers(RunDialog)
//*)
// for CAutoRefGlobalVars
#include "Solver/SolverGlobal.h"
class RunDialog: public wxDialog
{
public:
RunDialog(wxWindow* parent,wxWindowID id=wxID_ANY);
virtual ~RunDialog();
CAutoRefGlobalVars GetGlobalVars();
void SetGlobalVarsFileIn(std::string fileIn);
//(*Declarations(RunDialog)
wxTextCtrl* TextCtrl_EPS_Ratio;
wxCheckBox* CheckBox_AutoSettings;
wxCheckBox* CheckBox_Dump_Residual;
wxTextCtrl* TextCtrl_Dim_Precond_Two_Levels;
wxTextCtrl* TextCtrl_Autorefine_Out_of_Core;
wxTextCtrl* TextCtrl_Curvature;
wxTextCtrl* TextCtrl_Automatic_Error;
wxStaticText* StaticText2;
wxStaticText* StaticText6;
wxTextCtrl* TextCtrl_MeshEps;
wxCheckBox* CheckBox_GalerkinScheme;
wxStaticText* StaticText8;
wxPanel* Panel1;
wxStaticText* StaticText1;
wxCheckBox* CheckBox_Output_Geometry;
wxStaticText* StaticText3;
wxCheckBox* CheckBox_Output_Charge;
wxCheckBox* CheckBox_Dump_Time_Mem;
wxTextCtrl* TextCtrl_InputFileName;
wxStaticText* StaticText5;
wxTextCtrl* TextCtrl_GmresTol;
wxStaticText* StaticText7;
wxCheckBox* CheckBox_Dump_Geometry;
wxCheckBox* CheckBox_Precond_Jacobi;
wxCheckBox* CheckBox_Verbose_Output;
wxButton* Button_BrowseInputFile;
wxCheckBox* CheckBox_Auto_Precond;
wxCheckBox* CheckBox_Precond_TwoLevels;
wxStaticText* StaticText4;
wxCheckBox* CheckBox_Output_Capacitance;
//*)
wxString m_strSamplePath;
protected:
//(*Identifiers(RunDialog)
static const long ID_STATICTEXT1;
static const long ID_INPUT_FILE_NAME;
static const long ID_BROWSE_INPUT_FILE;
static const long ID_AUTO_SETTINGS;
static const long ID_STATICTEXT2;
static const long ID_AUTOMATIC_ERROR;
static const long ID_AUTO_PRECOND;
static const long ID_STATICTEXT7;
static const long ID_MESH_EPS;
static const long ID_STATICTEXT8;
static const long ID_GMRES_TOL;
static const long ID_STATICTEXT3;
static const long ID_EPS_RATIO;
static const long ID_STATICTEXT4;
static const long ID_CURVATURE;
static const long ID_STATICTEXT5;
static const long ID_AUTOREFINE_OUT_OF_CORE;
static const long ID_GALERKIN_SCHEME;
static const long ID_PRECOND_JACOBI;
static const long ID_PRECOND_TWO_LEVELS;
static const long ID_STATICTEXT6;
static const long ID_DIM_PRECOND_TWO_LEVELS;
static const long ID_OUTPUT_GEOMETRY;
static const long ID_DUMP_GEOMETRY;
static const long ID_OUTPUT_CHARGE;
static const long ID_DUMP_RESIDUAL;
static const long ID_DUMP_TIME_MEM;
static const long ID_VERBOSE_OUTPUT;
static const long ID_OUTPUT_CAPACITANCE;
static const long ID_PANEL1;
//*)
private:
//(*Handlers(RunDialog)
void OnButton_BrowseInputFileClick(wxCommandEvent& event);
void OnCheckBox_Dump_GeometryClick(wxCommandEvent& event);
//*)
// Implementation
protected:
void OnReset(wxCommandEvent& event);
void CopyVarsToDialog();
void CopyDialogToVars();
void Reset();
CAutoRefGlobalVars m_clsGlobalVars;
DECLARE_EVENT_TABLE()
};
#endif