itom  4.1.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, const QStringList &scriptsToExecute)
 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 Slots

void setSplashScreenMessage (const QString &text)
 

Private Member Functions

QString getSplashScreenFileName () const
 
QPixmap getSplashScreenPixmap () const
 

Private Attributes

tGuiType m_guiType
 
QThread * m_pyThread
 
PythonEnginem_pyEngine
 
PythonStatePublisherm_pyStatePublisher
 
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
 
QTranslator m_addinmanagerTranslator
 
QSplashScreen * m_pSplashScreen
 
QColor m_splashScreenTextColor
 
QDebugStreamm_pQout
 
QDebugStreamm_pQerr
 

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,
const QStringList &  scriptsToExecute 
)

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

QDebugStream* ito::MainApplication::m_pQerr
private

std::cerr is redirected to this instance

QDebugStream* ito::MainApplication::m_pQout
private

std::cout is redirected to this instance

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

pointer to processOrganizer

PythonEngine* ito::MainApplication::m_pyEngine
private

pointer to the python engine

PythonStatePublisher* ito::MainApplication::m_pyStatePublisher
private

pointer to the python state publisher (executed in main thread)

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: