9 #ifndef XSETTINGSMODEL_H 10 #define XSETTINGSMODEL_H 13 #include <QStringList> 15 #include <QStandardItemModel> 16 #include <QModelIndex> 18 #include "xobjects/xopt.h" 19 #include "xobjects/mainobject.h" 43 void add_option(QString option,
bool enabled, QString value, QString preset,
int level, QString description, QString area);
45 QModelIndex get_index(QString option);
47 QString getx(QString option);
48 QString getx(QString option,
bool return_default);
49 QString getx(QString option, QString default_string);
51 XOpt get_opt(QString option);
52 bool get_ena(QString option);
55 QStringList get_fgfs_args();
56 QStringList get_fgfs_list();
57 QString get_fgfs_command_string();
58 QStringList get_fgfs_env();
60 QString terrasync_default_path();
65 QString
fgroot(QString append_path);
66 bool fgroot_use_default();
67 QString fgroot_path();
80 bool custom_scenery_enabled();
81 QString custom_scenery_path();
85 QString jsdemo_exe_path();
90 void set_row_bg(
int row_idx, QColor bgcolor);
92 QString getLastUsed();
93 void setLastUsed(QString previous);
95 QStringList getSceneryDirs();
98 void upx(QString option,
bool enabled, QString value);
99 void updated(QStringList lines);
104 void set_option(QString option,
bool enabled, QString value);
105 void set_enabled(QString option,
bool enabled);
106 void set_value(QString option, QString value);
115 #endif // XSETTINGSMODEL_H bool paths_sane()
Checks whether the executablem FG_ROOT paths are sane.
Definition: xsettingsmodel.cpp:893
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:61
bool load_profile()
Opens Profile Dialog for loading a .ini File.
Definition: xsettingsmodel.cpp:460
QString fgcom_exe_path()
Path to fgcom executable.
Definition: xsettingsmodel.cpp:811
The XSettingsModel is an extended QStandardItemModel, and the main "setting and state" for FGx...
Definition: xsettingsmodel.h:23
QString scenery_path()
Returns the absolute path to the /Scenery file.
Definition: xsettingsmodel.cpp:962
QString aircraft_path()
The path to the /Aircraft directory.
Definition: xsettingsmodel.cpp:911
void load_last_profile(QString profile)
Opens last used profile.
Definition: xsettingsmodel.cpp:400
QString profile()
Path to fgfs executable.
Definition: xsettingsmodel.cpp:726
void read_default_ini()
Read Values from ini.
Definition: xsettingsmodel.cpp:351
QString fgfs_path()
Path to fgfs executable.
Definition: xsettingsmodel.cpp:737
bool save_profile()
Opens Profile Dialog for loading a .ini File.
Definition: xsettingsmodel.cpp:513
QString airports_path()
Return the absolute path to the /Airports directory.
Definition: xsettingsmodel.cpp:936
QString fgroot()
Definition: xsettingsmodel.cpp:857
bool terrasync_enabled()
Sert terrasync enabled/disabled.
Definition: xsettingsmodel.cpp:760
QString terrasync_exe_path()
Path to terrasync executable.
Definition: xsettingsmodel.cpp:771
QString terrasync_data_path()
Path to terrasync executable.
Definition: xsettingsmodel.cpp:793