-
Notifications
You must be signed in to change notification settings - Fork 19
/
SatelliteWindow.h
executable file
·62 lines (51 loc) · 1.24 KB
/
SatelliteWindow.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
#ifndef SATELLITEWINDOW_H
#define SATELLITEWINDOW_H
#include <QDialog>
#include <Satellite.h>
#include <QLineEdit>
#include <QLayout>
#include <QFormLayout>
#include <QGroupBox>
#include <QDoubleSpinBox>
#include <QPushButton>
#include <QMessageBox>
class SatelliteWindow : public QDialog
{
Q_OBJECT
public:
SatelliteWindow(bool isNew, Satellite *sat, Planet *planet, QWidget *parent = 0);
~SatelliteWindow();
public slots:
void onAChanged(double a);
void onEChanged(double e);
void confirmSlot(void);
private:
bool m_isNew;
Satellite* m_sat;
Planet* m_planet;
QVBoxLayout *mainLayout;
QGroupBox *satFrame;
QGroupBox *orbFrame;
QGroupBox *attFrame;
QGroupBox *propFrame;
QFormLayout *satForm;
QFormLayout *orbForm;
QFormLayout *attForm;
QFormLayout *propForm;
QPushButton *confirmButton;
//Satellite form
QPushButton* importButton;
QLineEdit* satNameF;
//Orbit form
QDoubleSpinBox* aBox;
QDoubleSpinBox* eBox;
QDoubleSpinBox* iBox;
QDoubleSpinBox* OmBox;
QDoubleSpinBox* omBox;
QDoubleSpinBox* tpBox;
//Attitude
QDoubleSpinBox* rxBox;
QDoubleSpinBox* ryBox;
QDoubleSpinBox* rzBox;
};
#endif // SATELLITEWINDOW_H