FGx  1
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MainObject Class Reference

The MainObject is an extended QObject, and the main "controller" for FGx. More...

#include <mainobject.h>

+ Inheritance diagram for MainObject:

Public Slots

void initialize ()
 
void on_tray_icon (QSystemTrayIcon::ActivationReason reason)
 
void on_launcher ()
 
void on_browsermap ()
 
void on_properties_browser ()
 
void on_view_logs ()
 
void clear_log (QString log_name)
 
void add_log (QString log_name, QString data)
 
void start_all ()
 
void start_fgfs ()
 
void start_fgcom ()
 
void start_terrasync ()
 
void stop_all ()
 
void on_quit ()
 
void on_view_fgx_debug ()
 
void set_debug_mode (bool)
 
void on_action_open_url (QAction *)
 
void on_about_qt ()
 
void on_about_fgx ()
 
void on_upx (QString option, bool enabled, QString value)
 

Signals

void show_settings (int)
 
void reload_paths ()
 
void on_debug_mode (bool enabled)
 
void setx (QString option, bool enabled, QString value)
 

Public Member Functions

 MainObject (QObject *parent=0)
 
QString data_file (QString file_name)
 Path to a data file eg data_file("airports.txt")
 
QString default_file (QString file_name)
 
QString get_fgfs_command ()
 
QStringList get_fgfs_args ()
 
QStringList get_env ()
 

Static Public Member Functions

static int runningOs ()
 What OS is running.
 
static QString log_file_path ()
 Log File.
 
static QString temp_dir ()
 location if temp directoty , os specific
 
static QString temp_dir (QString append_path)
 location if temp directoty , os specific with appended file/path
 

Public Attributes

bool debug_mode
 
XSettingssettings
 
XSettingsModelX
 
LauncherWindowlauncherWindow
 
ViewLogsWidgetviewLogsWidget
 
PropsTreeWidgetpropertiesBrowser
 
FgxDebugWidgetfgxDebugWidget
 
XProcessprocessFgFs
 
XProcessprocessTerraSync
 
XProcessprocessFgCom
 
QSystemTrayIcon * trayIcon
 
QMenu * popupMenu
 
QWidgetAction * actionCallsign
 
QLabel * lblCallsign
 
QAction * actionLauncher
 
QAction * actionMpMap
 
QAction * actionPropsBrowser
 
QAction * actionSetupWizard
 
QAction * actionViewLogs
 
QAction * actionViewFgxDebug
 
QAction * actionBrowserMap
 
QAction * actionQuit
 

Detailed Description

The MainObject is an extended QObject, and the main "controller" for FGx.

This is the main object created and called when the app starts in the backgound It manifest itself and is made visible via an icon in the QSystemTrayIcon ie TaskBar All widgets are children to this object and are hidden (at the moment)

MainObject also controls the starting and stopping of processes// TBC

Author
: Peter Morgan
: Yves Sablonier

Member Function Documentation

QString MainObject::data_file ( QString  file_name)

Path to a data file eg data_file("airports.txt")

Returns
Absolute path to the file
QString MainObject::log_file_path ( )
static

Log File.

Returns
Absolute path to log file
int MainObject::runningOs ( )
static

What OS is running.

Returns
a OS enum value
QString MainObject::temp_dir ( )
static

location if temp directoty , os specific

Shortcut method for Qt's storageLocation()

Returns
Absolute path
QString MainObject::temp_dir ( QString  append_path)
static

location if temp directoty , os specific with appended file/path

Shortcut method for Qt's storageLocation()

Returns
Absolute path with appended paths.

The documentation for this class was generated from the following files: