itom 2.0.0
ito::MainApplication Class Reference

The MainApplication class is the basic management class for the entire application. More...

List of all members.

Public Types

enum  tGuiType { standard, console, none }

Public Slots

void _propertiesChanged ()
void mainWindowCloseRequest ()
 slot invoked if user wants to close application

Signals

void propertiesChanged ()

Public Member Functions

 MainApplication (tGuiType guiType=standard)
 constructor
 ~MainApplication ()
 destructor
int loadSettings (const QString userName="")
void setupApplication ()
 setup of application
void finalizeApplication ()
 setup of application
int exec ()
 exececution of the main event loop
int execPipManagerOnly ()
ScriptEditorOrganizergetScriptEditorOrganizer ()

Static Public Member Functions

static MainApplicationinstance ()

Protected Member Functions

void registerMetaObjects ()

Private Attributes

tGuiType m_guiType
QThread * m_pyThread
PythonEnginem_pyEngine
ScriptEditorOrganizerm_scriptEditorOrganizer
MainWindowm_mainWin
PaletteOrganizerm_paletteOrganizer
UiOrganizerm_uiOrganizer
DesignerWidgetOrganizerm_designerWidgetOrganizer
ito::ProcessOrganizerm_processOrganizer
QTranslator m_Translator
QTranslator m_qtTranslator
QTranslator m_commonQtTranslator
QSplashScreen * m_splashScreen

Static Private Attributes

static MainApplicationmainApplicationInstance = NULL
 static instance pointer initialization

Detailed Description

The MainApplication class is the basic management class for the entire application.


Constructor & Destructor Documentation

ito::MainApplication::MainApplication ( tGuiType  guiType = standard)

constructor

Parameters:
guiTypeType of the desired GUI (normal, console, no)
See also:
tGuiType
ito::MainApplication::~MainApplication ( )

destructor

shutdown of whole application, including PythonEngine

See also:
PythonEngine

Member Function Documentation

int ito::MainApplication::exec ( )

exececution of the main event loop

Returns:
value passed to exit() method, which finishes the exec()-loop, 0 if finished by quit()
void ito::MainApplication::finalizeApplication ( )

setup of application

stops PythonEngine, MainWindow (dependent on gui-type) and all necessary managers and organizers. Closes import connections between MainWindow and PythonEngine as well as ScriptEditorOrganizer.

See also:
PythonEngine, MainWindow, ScriptEditorOrganizer
ScriptEditorOrganizer* ito::MainApplication::getScriptEditorOrganizer ( ) [inline]

returns member m_scriptEditorOrganizer

MainApplication * ito::MainApplication::instance ( ) [static]

getter-method for static instance pointer

void ito::MainApplication::mainWindowCloseRequest ( ) [slot]

slot invoked if user wants to close application

See also:
MainWindow
void ito::MainApplication::setupApplication ( )

setup of application

starts PythonEngine, MainWindow (dependent on gui-type) and all necessary managers and organizers. Builds import connections between MainWindow and PythonEngine as well as ScriptEditorOrganizer.

See also:
PythonEngine, MainWindow, ScriptEditorOrganizer

Member Data Documentation

tGuiType ito::MainApplication::m_guiType [private]

member for the desired gui-type

pointer to the main window

pointer to figureOrganizer

pointer to processOrganizer

pointer to the python engine

Thread, where python engine is executed

pointer to scriptEditorOrganizer, organizing every existing script window or docking widget

QTranslator ito::MainApplication::m_Translator [private]

pointer to a language-translation, different than the standard language (en)

pointer to uiOrganizer

static instance pointer initialization

static pointer to the (singleton) instance of MainApplication


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends