itom  3.0.0
ito::MainApplication Class Reference

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

Inheritance diagram for ito::MainApplication:

Public Types

enum  tGuiType { standard, console, none }
 

Public Slots

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

Signals

void propertiesChanged ()
 

Public Member Functions

 MainApplication (tGuiType guiType=standard)
 constructor More...
 
 ~MainApplication ()
 destructor More...
 
int loadSettings (const QString userName="")
 
void setupApplication (const QStringList &scriptsToOpen)
 setup of application More...
 
void finalizeApplication ()
 setup of application More...
 
int exec ()
 exececution of the main event loop More...
 
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
 
QTranslator m_commonPlotTranslator
 
QTranslator m_widgetsTranslator
 
QSplashScreen * m_splashScreen
 

Static Private Attributes

static MainApplicationmainApplicationInstance = NULL
 static instance pointer initialization More...
 

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 ( const QStringList &  scriptsToOpen)

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

DesignerWidgetOrganizer* ito::MainApplication::m_designerWidgetOrganizer
private

designerWidgetOrganizer

tGuiType ito::MainApplication::m_guiType
private

member for the desired gui-type

MainWindow* ito::MainApplication::m_mainWin
private

pointer to the main window

PaletteOrganizer* ito::MainApplication::m_paletteOrganizer
private

pointer to figureOrganizer

ito::ProcessOrganizer* ito::MainApplication::m_processOrganizer
private

pointer to processOrganizer

PythonEngine* ito::MainApplication::m_pyEngine
private

pointer to the python engine

QThread* ito::MainApplication::m_pyThread
private

Thread, where python engine is executed

ScriptEditorOrganizer* ito::MainApplication::m_scriptEditorOrganizer
private

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)

UiOrganizer* ito::MainApplication::m_uiOrganizer
private

pointer to uiOrganizer

MainApplication * ito::MainApplication::mainApplicationInstance = NULL
staticprivate

static instance pointer initialization

static pointer to the (singleton) instance of MainApplication


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