GlobeEngine
AtmosphereInputPanel.h
Go to the documentation of this file.
1 
8 #ifndef AtmosphereEngine_AtmosphereInputPanel_h
9 #define AtmosphereEngine_AtmosphereInputPanel_h
10 
11 #include <QWidget>
12 #include <QColorDialog>
13 #include <QFileDialog>
14 #include <QMenu>
15 #include <QDateEdit>
16 #include <QGroupBox>
17 #include <QRadioButton>
18 #include <QHBoxLayout>
19 #include <QLineEdit>
20 #include <QLabel>
21 #include <QPushButton>
22 #include <QScrollArea>
23 #include <QCheckBox>
24 #include <QPlainTextEdit>
25 
26 namespace at {
27  class AtmosphereInputPanel : public QWidget
28  {
29  public:
32  void create(QLayout* layout_);
33  QLineEdit* getLowRed();
34  QLineEdit* getHighRed();
35  QLineEdit* getLowGreen();
36  QLineEdit* getHighGreen();
37  QLineEdit* getLowBlue();
38  QLineEdit* getHighBlue();
39 
40  QLineEdit* getInnerRadius();
41  QLineEdit* getOuterRadius();
42 
43  QCheckBox* getVisualBox();
44  QLineEdit* getDensity();
45  QLabel* getLayerLabel();
46  QLabel* getRadiusLabel();
47 
48  QPlainTextEdit* getModifyChemical();
49  QLineEdit* getModifyDensity();
50 
51  QPushButton* getColorButton();
52  QPushButton* getLayerUpButton();
53  QPushButton* getAddLayerButton();
54  QPushButton* getLayerDownButton();
55  QPushButton* getLayerDeleteButton();
56  QPushButton* getLayerEnableDisableButton();
57  QPushButton* getupdateChemicalButton();
58  QPushButton* getupdateDensityButton();
59 
60  void setFailedStatus(std::string text_);
61  void removeFailedStatus();
62 
63  private:
64  void styleAndAddWidget(QWidget* widget_, int width_, int height_, int fontSize, Qt::GlobalColor color_, bool boldFont_, bool italicFont_, QLayout* layout_);
65  void addSpacerLine(QLayout* layout_);
66 
67  //Elements
68  QLineEdit* lowRedEdit;
69  QLineEdit* highRedEdit;
70  QLineEdit* lowGreenEdit;
71  QLineEdit* highGreenEdit;
72  QLineEdit* lowBlueEdit;
73  QLineEdit* highBlueEdit;
74  QLineEdit* innerRadiusEdit;
75  QLineEdit* outerRadiusEdit;
76  QLineEdit* densityEdit;
77  QCheckBox* visualBox;
78  QLabel* planetRadiusLabel;
79  QLabel* infoLabel;
80  QLabel* switchLayerSelected;
81  QPlainTextEdit* modifyChemicalBox;
82  QLineEdit* modifyDensitylBox;
83  //Buttons
84  QPushButton* setColorButton;
85  QPushButton* addLayerButton;
86  QPushButton* layerUpButton;
87  QPushButton* layerDownButton;
88  QPushButton* layerDeleteButton;
89  QPushButton* layerEnableDisableButton;
90  QPushButton* updateChemicalButton;
91  QPushButton* updateDensityButton;
92  };
93 }
94 #endif
AtmosphereInputPanel()
Definition: AtmosphereInputPanel.cpp:11
QLineEdit * getDensity()
Definition: AtmosphereInputPanel.cpp:257
QLineEdit * getModifyDensity()
Definition: AtmosphereInputPanel.cpp:269
~AtmosphereInputPanel()
Definition: AtmosphereInputPanel.cpp:13
QPushButton * getAddLayerButton()
Definition: AtmosphereInputPanel.cpp:282
QPushButton * getLayerDownButton()
Definition: AtmosphereInputPanel.cpp:285
QPushButton * getupdateDensityButton()
Definition: AtmosphereInputPanel.cpp:297
QLineEdit * getHighBlue()
Definition: AtmosphereInputPanel.cpp:248
QPushButton * getColorButton()
Definition: AtmosphereInputPanel.cpp:276
QLineEdit * getHighGreen()
Definition: AtmosphereInputPanel.cpp:242
QCheckBox * getVisualBox()
Definition: AtmosphereInputPanel.cpp:272
QLabel * getLayerLabel()
Definition: AtmosphereInputPanel.cpp:260
QPushButton * getLayerEnableDisableButton()
Definition: AtmosphereInputPanel.cpp:291
QLineEdit * getLowRed()
Definition: AtmosphereInputPanel.cpp:233
void removeFailedStatus()
Definition: AtmosphereInputPanel.cpp:198
QPushButton * getLayerDeleteButton()
Definition: AtmosphereInputPanel.cpp:288
void create(QLayout *layout_)
Definition: AtmosphereInputPanel.cpp:16
QLineEdit * getInnerRadius()
Definition: AtmosphereInputPanel.cpp:251
Definition: AtmosphereInputPanel.h:27
QPushButton * getLayerUpButton()
Definition: AtmosphereInputPanel.cpp:279
Definition: AtmosphereComposition.h:20
void setFailedStatus(std::string text_)
Definition: AtmosphereInputPanel.cpp:194
QLineEdit * getOuterRadius()
Definition: AtmosphereInputPanel.cpp:254
QPlainTextEdit * getModifyChemical()
Definition: AtmosphereInputPanel.cpp:266
QLineEdit * getLowGreen()
Definition: AtmosphereInputPanel.cpp:239
QLabel * getRadiusLabel()
Definition: AtmosphereInputPanel.cpp:263
QLineEdit * getHighRed()
Definition: AtmosphereInputPanel.cpp:236
QPushButton * getupdateChemicalButton()
Definition: AtmosphereInputPanel.cpp:294
QLineEdit * getLowBlue()
Definition: AtmosphereInputPanel.cpp:245