FGx  1
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
xsettings.h
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // xsettings.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 XSETTINGS_H
10 #define XSETTINGS_H
11 
12 #include <QSettings>
13 
14 class XSettings : public QSettings
15 {
16 Q_OBJECT
17 public:
18 
19  explicit XSettings(QObject *parent = 0);
20 
21  static bool dev_mode();
22 
23  static QString cache_dir();
24 
25  QString fgx_path();
26  static QString fgx_current_dir();
27 
28 
29  void saveWindow(QWidget *widget);
30  void restoreWindow(QWidget *widget);
31 
32 
33  QString fgcom_exe_path();
34  QString fgcom_port();
35  QString fgcom_no();
36  QString default_fgcom_no();
37  QString default_fgcom_port();
38 
39 
40  static QString log_file_path();
41 
42  QString style_current();
43  QString style_default();
44 
45 private:
46  QString _windowName(QWidget *widget);
47 
48 signals:
49 
50 public slots:
51 
52 };
53 
54 #endif // XSETTINGS_H
static bool dev_mode()
The "Special Developer Flag".
Definition: xsettings.cpp:108
QString style_current()
return the currently selected style or the default
Definition: xsettings.cpp:41
The XSettings is an extended QSetttings, but also includes most to the FGx configuration.
Definition: xsettings.h:14
void saveWindow(QWidget *widget)
Saves a window size and position.
Definition: xsettings.cpp:63
void restoreWindow(QWidget *widget)
Restores a window position.
Definition: xsettings.cpp:73