MagicSmoke  $VERSION$
MApplication Class Reference

Main application object of MagicSmoke. More...

#include <mapplication.h>

Inheritance diagram for MApplication:

Public Slots

void aboutMS ()
 show about dialog More...
 
void help ()
 start a browser with the help page More...
 
void initialize ()
 complete initialization: style, language, data dir More...
 
void initLanguage ()
 initialize the localization More...
 
void initProfile ()
 initialize the profiles More...
 
void initUpdater ()
 initialize the updater More...
 
void setMyStyle ()
 set the configured application style More...
 
void versionDlg ()
 show version info More...
 

Public Member Functions

 MApplication (int &ac, char **av)
 create MagicSmoke application More...
 

Static Public Member Functions

static QString choseLanguage (bool warn=true)
 show a dialog to change the language More...
 
static QString dataDir ()
 contains the directory that is used for external data storage More...
 
static QMenu * helpMenu ()
 return the standard help menu More...
 
static int realmain (int, char **)
 shortcut: the main function More...
 
static void setConfigDir (QString)
 override the configuration directory More...
 
static void setDataDir (QString)
 override the data directory More...
 

Detailed Description

Main application object of MagicSmoke.

Constructor & Destructor Documentation

MApplication::MApplication ( int &  ac,
char **  av 
)

Member Function Documentation

void MApplication::aboutMS ( )
slot
QString MApplication::choseLanguage ( bool  warn = true)
static

show a dialog to change the language

Referenced by initLanguage().

QString MApplication::dataDir ( )
static

contains the directory that is used for external data storage

References MSInterface::appDataDir().

Referenced by aboutMS(), initialize(), and MApplication().

void MApplication::help ( )
slot

start a browser with the help page

References convHelpUrl().

Referenced by helpMenu().

QMenu * MApplication::helpMenu ( )
static

return the standard help menu

References aboutMS(), help(), HelpUrl::Separator, and versionDlg().

Referenced by MConfigDialog::MConfigDialog(), MLogin::MLogin(), and MTabWin::MTabWin().

void MApplication::initialize ( )
slot

complete initialization: style, language, data dir

References dataDir(), initDebug(), initLanguage(), initProfile(), and setMyStyle().

Referenced by main(), and MagicSmokeMain::realmain().

void MApplication::initLanguage ( )
slot

initialize the localization

References choseLanguage(), and loadTranslation().

Referenced by initialize().

void MApplication::initProfile ( )
slot

initialize the profiles

Referenced by initialize().

void MApplication::initUpdater ( )
slot

initialize the updater

Referenced by main().

static int MApplication::realmain ( int  ,
char **   
)
static

shortcut: the main function

void MApplication::setConfigDir ( QString  d)
static

override the configuration directory

  • call this before initialize
  • on Windows and MacOS, this also switches the settings mode to ini-files

References ENV_CONFIGDIR, and MSInterface::resolveDir().

Referenced by MApplication().

void MApplication::setDataDir ( QString  d)
static

override the data directory

  • call it before any of the init functions
  • never call this while a session is active!

References ENV_DATADIR, and MSInterface::setAppDataDir().

Referenced by MApplication().

void MApplication::setMyStyle ( )
slot

set the configured application style

Referenced by initialize().

void MApplication::versionDlg ( )
slot

show version info

References htmlize(), MInterface::staticVersionInfo(), and MInterface::staticWocVersionInfo().

Referenced by helpMenu().


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