FGx  1
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
renderingwidget.h
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // renderingwidget.h
3 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
4 // (c) 2010-2012
5 // Yves Sablonier, Pete Morgan
6 // Geoff McLane
7 // GNU GPLv2, see main.cpp and shipped licence.txt for further information
8 
9 #ifndef RENDERINGWIDGET_H
10 #define RENDERINGWIDGET_H
11 
12 
13 #include <QtCore/QString>
14 #include <QtCore/QMap>
15 
16 
17 #include <QtGui/QWidget>
18 #include <QtGui/QButtonGroup>
19 #include <QtGui/QPlainTextEdit>
20 
21 
22 #include "xobjects/mainobject.h"
23 #include "xwidgets/xgroupboxes.h"
24 
25 class MainObject;
26 
27 
28 class RenderingWidget : public QWidget
29 {
30 Q_OBJECT
31 public:
32  explicit RenderingWidget(MainObject *mOb, QWidget *parent = 0);
33 
34  MainObject *mainObject;
35 
36  XGroupHBox *grpAntiAliasing;
37  QComboBox *comboAntiAliasing;
38 
39  XGroupGBox *grpShaderQuality;
40  QSlider *sliderShaderQuality;
41  QLabel *sliderLabelShaderQuality;
42  QCheckBox *checkBoxSkydome;
43 
44  XGroupGBox *grpRembrandt;
45  QLabel *labelMapsize;
46  QLabel *labelShadowQuality;
47  QComboBox *comboShadowMapsize;
48  QComboBox *comboShadowQuality;
49 
50  XGroupGBox *grp3dClouds;
51  QLabel *labelVisibility;
52  QSlider *sliderVisibility;
53  QLabel *sliderLabelVisValue;
54  QLabel *labelDensity;
55  QSlider *sliderDensity;
56  QLabel *sliderLabelDenValue;
57 
58  XGroupHBox *grpBoxScreen;
59  QComboBox *comboScreenSize;
60  QCheckBox *checkBoxDisableSplashScreen;
61  QCheckBox *checkBoxFullScreenStartup;
62  QHBoxLayout *screenSizeBox;
63  QLineEdit *lineEditScreenSizeW;
64  QLineEdit *lineEditScreenSizeH;
65  QLabel *lineEditScreenSizeWLabel;
66  QLabel *lineEditScreenSizeHLabel;
67  QCheckBox *checkBoxUseNativeMenu;
68 
69  XGroupHBox *grpMaterials;
70  QComboBox *comboMaterials;
71  QLineEdit *pathMaterials;
72 
73 
74 signals:
75  void setx(QString option, bool enabled, QString value);
76 
77 public slots:
78 
79  void set_anti_aliasing();
80  void set_anti_aliasing_strength();
81 
82  void set_shader_quality(int value);
83  void set_skydome();
84 
85  void set_materials();
86  void set_custom_materials(QString path);
87 
88  void set_rembrandt();
89 
90  void set_3dclouds_enabled();
91  void set_vis_value(int value);
92  void set_den_value(int value);
93 
94  void on_screensize();
95  void on_fullscreen_changed();
96  void on_screensize_changed(QString);
97  void on_checkbox_splash_screen();
98  void on_checkbox_native_menubar();
99 
100  void on_upx(QString option, bool enabled, QString value);
101 
102 };
103 
104 #endif // RENDERINGWIDGET_H
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:61
A QGroupBox with a QGridLayout layout.
Definition: xgroupboxes.h:59
A QGroupBox with a QHBoxLyout layout.
Definition: xgroupboxes.h:39
Definition: renderingwidget.h:28