Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
settingsdialog.h
Go to the documentation of this file.
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // settingsdialog.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 SettingsDialog_H
10 #define SettingsDialog_H
11 
12 #include <QString>
13 
14 #include <QDialog>
15 #include <QWidget>
16 //#include <QStatusBar>
17 #include <QPushButton>
18 #include <QTabWidget>
19 
20 #include "xobjects/mainobject.h"
21 
22 
23 class SettingsDialog : public QDialog
24 {
25 Q_OBJECT
26 public:
27  explicit SettingsDialog(MainObject *mOb, QWidget *parent = 0);
28 
29  QTabWidget *tabWidget;
30 
31 private:
33 
34 
35 
36 
37 
38 
39  QString get_frame_style(bool is_valid);
40  void disable_scenery_actions(bool);
41 
42  void closeEvent(QCloseEvent *event);
43  bool validate_paths();
44 
45 signals:
46 
47 public slots:
48 
49 
50  void load_settings();
51  void on_save_clicked();
52 
53 };
54 
55 #endif // SettingsDialog_H
SettingsDialog(MainObject *mOb, QWidget *parent=0)
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
QTabWidget * tabWidget
void disable_scenery_actions(bool)
MainObject * mainObject
void closeEvent(QCloseEvent *event)
bool validate_paths()
QString get_frame_style(bool is_valid)