-
Notifications
You must be signed in to change notification settings - Fork 19
/
ConfigureWindow.h
executable file
·61 lines (52 loc) · 1.3 KB
/
ConfigureWindow.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
#ifndef CONFIGUREWINDOW_H
#define CONFIGUREWINDOW_H
#include <QDialog>
#include <QGridLayout>
#include <QFormLayout>
#include <QFrame>
#include <QGroupBox>
#include <QLineEdit>
#include <QLabel>
#include <QSpinBox>
#include <QPushButton>
#include <QFileDialog>
#include <QEvent>
#include <QCheckBox>
#include <Simulation.h>
#include <QMessageBox>
class ConfigureWindow : public QDialog
{
Q_OBJECT
public:
explicit ConfigureWindow(bool isNew, Simulation *sim, QWidget *parent = 0);
~ConfigureWindow();
signals:
public slots:
void confirmSlot(void);
void updateSpeedLimits(double value);
private:
bool m_isNew;
Simulation* m_sim;
QGridLayout *mainLayout;
QGroupBox *simFrame;
QGroupBox *planetFrame;
QGroupBox *settingsFrame;
QFormLayout *simForm;
QFormLayout *planetForm;
QFormLayout *settingsForm;
QLineEdit *nameF;
QLineEdit *planetNameF;
QLineEdit *planetImgF;
QLabel *planetLabel;
QPixmap *planetPix;
QDoubleSpinBox *planetRadius;
QDoubleSpinBox *planetMu;
QDoubleSpinBox *planetDay;
QPushButton *confirmButton;
QDoubleSpinBox *dtF;
QDoubleSpinBox *speedF;
QCheckBox *autoPlayF;
QCheckBox *writeLogF;
bool eventFilter(QObject *object, QEvent *event);
};
#endif // CONFIGUREWINDOW_H