Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
renderingwidget.h
Go to the documentation of this file.
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 <QWidget>
18 #include <QButtonGroup>
19 #include <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 
35 
37  QComboBox *comboAntiAliasing;
38 
42  QCheckBox *checkBoxSkydome;
43 
47  QComboBox *comboShadowMapsize;
48  QComboBox *comboShadowQuality;
49 
52  QSlider *sliderVisibility;
55  QSlider *sliderDensity;
57 
59  QComboBox *comboScreenSize;
62  QHBoxLayout *screenSizeBox;
63  QLineEdit *lineEditScreenSizeW;
64  QLineEdit *lineEditScreenSizeH;
65  //QLabel *lineEditScreenSizeWLabel;
66  //QLabel *lineEditScreenSizeHLabel;
68 
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();
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);
99 
100  void on_upx(QString option, bool enabled, QString value);
101 
102 };
103 
104 #endif // RENDERINGWIDGET_H
QComboBox * comboScreenSize
QLabel * labelDensity
QLineEdit * pathMaterials
QCheckBox * checkBoxUseNativeMenu
QComboBox * comboShadowMapsize
XGroupHBox * grpBoxScreen
void setx(QString option, bool enabled, QString value)
XGroupGBox * grpShaderQuality
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
QCheckBox * checkBoxSkydome
QSlider * sliderDensity
XGroupGBox * grpRembrandt
QHBoxLayout * screenSizeBox
void on_screensize_changed(QString)
QLineEdit * lineEditScreenSizeW
QLabel * labelVisibility
RenderingWidget(MainObject *mOb, QWidget *parent=0)
QLabel * sliderLabelShaderQuality
void set_custom_materials(QString path)
void set_den_value(int value)
void on_checkbox_native_menubar()
void on_checkbox_splash_screen()
QLabel * sliderLabelVisValue
A QGroupBox with a QGridLayout layout.
Definition: xgroupboxes.h:59
QComboBox * comboAntiAliasing
A QGroupBox with a QHBoxLyout layout.
Definition: xgroupboxes.h:39
QLabel * labelMapsize
void set_shader_quality(int value)
QSlider * sliderShaderQuality
QLineEdit * lineEditScreenSizeH
QLabel * labelShadowQuality
QLabel * sliderLabelDenValue
void on_upx(QString option, bool enabled, QString value)
QSlider * sliderVisibility
QCheckBox * checkBoxFullScreenStartup
XGroupGBox * grp3dClouds
QComboBox * comboMaterials
void set_anti_aliasing_strength()
MainObject * mainObject
XGroupHBox * grpAntiAliasing
QComboBox * comboShadowQuality
QCheckBox * checkBoxDisableSplashScreen
void set_vis_value(int value)
XGroupHBox * grpMaterials