-
Notifications
You must be signed in to change notification settings - Fork 2
/
dialog.h
60 lines (46 loc) · 1.02 KB
/
dialog.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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include "ui_dialog.h"
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = 0);
~Dialog();
double getAlpha()
{
QString tmp= ui->lineEdit_alpha->text();
double alpha= tmp.toDouble();
return alpha;
}
double getA()
{
QString tmp1 = ui->lineEdit_a->text();
double tmp = ui->lineEdit_a->text().toDouble();
return tmp;
}
double getB()
{
return ui->lineEdit_b->text().toDouble();
}
double getDelta()
{
return ui->lineEdit_delta->text().toDouble();
}
int getNumb()
{
return ui->comboBox->currentIndex();
}
private slots:
void on_buttonBox_accepted();
void on_comboBox_activated(const QString &arg1);
void on_lineEdit_delta_textChanged(const QString &arg1);
void on_lineEdit_alpha_textChanged(const QString &arg1);
public:
Ui::Dialog *ui;
};
#endif // DIALOG_H