-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmainwindow.h
148 lines (126 loc) · 3.63 KB
/
mainwindow.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
145
146
147
148
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSysInfo>
#ifdef _WIN32
#include <ActiveQt>
#endif
#include "dialogplot.h"
#include "lgpdispers.h"
#include "globaloptimizer.h"
#include "setparamsdialog.h"
#include "margincalc.h"
#include "yieldcalc.h"
#include "cgoptimizer.h"
#include "jsimsyntax.h"
#include "joinuscapture.h"
#include "inductexgui.h"
#include "imsolver.h"
//QT_BEGIN_NAMESPACE
//class QScrollArea;
//class QTextEdit;
//class QScrollBar;
//QT_END_NAMESPACE
struct FileDataString
{
QString ErrMessage;
QStringList DataVals;
};
struct ConsoleOutputs {
QString ConsolErr;
QString ConsolOut;
};
struct processedNL{
QString Vg;
QString Icrit,Rnorm,Cap;
double tstep;
int columNumb;
QString OutFileName;
QStringList Commands;
};
struct IVdata{
QVector<double> Idata;
QVector<double> Vdata;
};
struct SimParams{
QString mainParam;
QString subParam;
QString minVal;
QString maxVal;
QString pointNum;
QString tempVal;
};
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_StartPushButton_clicked();
void firstRun_Init();
void on_actionAbout_triggered();
void on_NetlistToolButton_clicked();
void plotNetlist();
void GNUplot();
void XMGracePlot();
void LoadNetlist(QString NetlistFile);
void on_SaveToolButton_clicked();
void on_TypeComboBox_currentIndexChanged(int index);
void Copy_File(QString outfilepath, QString OutFile);
void on_MenuNew_Simulation_triggered();
void on_SaveNetListPushBottun_clicked();
void on_TemplateNetListPushBottun_clicked();
void on_MenuSave_triggered();
void on_MenuOpen_triggered();
struct SimParams readSimParams();
void on_actionManuals_triggered();
void on_SimComboBox_currentIndexChanged(int index);
//void on_action_Open_Console_triggered();
//void keyPressEvent(QKeyEvent *event);
//void on_TerminalPlainTextEdit_textChanged();
void on_actionFont_Properties_triggered();
void on_actionRun_Custom_Plotter_triggered();
void on_actionSet_Temperature_triggered();
void on_actionChange_background_color_triggered();
void on_action_WSIM_triggered();
void on_actionSQUID_MAP_triggered();
void on_actionMAR_GINOPT_triggered();
void on_actionJSIM_manual_triggered();
void on_actionJ_oSIM_manual_triggered();
void on_ClearTerminalpushButton_clicked();
void on_StopPushButton_clicked();
void on_actionQuit_triggered();
void on_actionSet_Advanced_values_triggered();
void on_convertPushButton_clicked();
void on_actionAbout_Qt_triggered();
void on_actionSchamatic_Capture_triggered();
void on_actionSet_Workspace_triggered();
void on_actionInductex_triggered();
void on_actionSet_Magnetic_Field_triggered();
void on_actionMargin_Analyzer_triggered();
void on_actionYield_Analyzer_triggered();
void on_actionCenter_Gravity_Optimizer_triggered();
void on_actionParameter_Dispertion_triggered();
void on_actionLocal_Parameters_triggered();
void on_actionGlobal_Parameters_triggered();
void on_actionIsingMachineSim_triggered();
private:
Ui::MainWindow *ui;
DialogPlot *dialogPlot;
LGPdispers *lgpDispers;
SetParamsDialog *setparamdialog;
JOINUSCapture *joinuscapture;
CGOptimizer *cgoptimizer;
YieldCalc *yieldcalc;
MarginCalc *margincalc;
Jsimsyntax *m_jsimsyntax;
InductexGUI *inductex;
IMsolver *imsolver;
GlobalOptimizer *globalOptimier;
QTimer* myTimer;
};
#endif // MAINWINDOW_H