forked from sqym/ALPHA-MODEL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculate.h
119 lines (98 loc) · 3.12 KB
/
calculate.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
#ifndef CALCULATE_H
#define CALCULATE_H
#include <QWidget>
#include <QCheckBox>
#include <QGroupBox>
#include <QSpinBox>
#include <QButtonGroup>
#include <QString>
class Calculate : public QWidget
{
Q_OBJECT
public:
explicit Calculate(QWidget *parent = nullptr);
double SH;
double kn;
//Masuda
double Masuda_kn_group[60];
double Masuda_SH_group[60];
double Masuda_kn;
double Masuda_SH;
double Masuda_N = 4;
//Patchy
double Patchy_kr_group[60];
double Patchy_SH_group[60];
double Patchy_kr;
double Patchy_SH;
double Patchy_N = 2;
//G-C
double GC_kn_group[60];
double GC_SH_group[60];
double GC_kn;
double GC_SH;
//P-F
double PF_kn_group[60];
double PF_SH_group[60];
double PF_kn;
double PF_SH;
//Hybrid
double Hybrid_kn_group[60];
double Hybrid_SH_group[60];
double Hybrid_kn;
double Hybrid_SH;
double Hybrid_alpha = 0.5; //0 - 1
double Hybrid_Beta = 5; //-5 - 30
QCheckBox *modelbox1;
QCheckBox *modelbox2;
QCheckBox *modelbox3;
QCheckBox *modelbox4;
QCheckBox *modelbox5;
QSpinBox *spinbox;
void calculate(QString);
int model = 0;
QButtonGroup *group;
QString btnstyle = "QPushButton{color:black;"
"background-color:rgb(0,191,255);"
"border-radius: 5px; "
"border: 4px rgb(0,0,128);"
"border-style: outset;}"
"QPushButton:pressed{background-color:rgb(255,255,0);"
"border-style: inset; }"
"QPushButton{font-family:Microsoft YaHei;"
"font-weight: bold;"
"font-size:18px};";
QString label_str = "font-family: 'Microsoft YaHei';"
"font-size: 18px;"
"font-style: normal;"
"font-weight: bold;"
"color: #4B0082;";
QString lineedit_str = "QLineEdit{font: large;"
"Times NewRoman;"
"font-size:20px;"
"color:black;"
"border:4px solid #4169E1;"
"border-radius:5px;}";
QString groupstyle = "QGroupBox{"
"border: 4px solid #4169E1;"
"border-radius: 3px;"
"margin-top: 1ex;"
"font-family:Microsoft YaHei;"
"font:bold;"
"font-size:16px;"
"}"
"QGroupBox::title{"
"subcontrol-origin: margin;"
"subcontrol-position: top center;"
"padding: 0 3px;"
"}";
QString checkboxstyle = "QCheckBox{"
"font-family:Microsoft YaHei;"
"font-size:16px;"
"spacing: 5px;"
"}";
private:
QGroupBox *createFirstGroup();
private slots:
signals:
};
#endif // CALCULATE_H