itom 2.2.0
|
The MainApplication class is the basic management class for the entire application. More...
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 (const QStringList &scriptsToOpen) |
setup of application | |
void | finalizeApplication () |
setup of application | |
int | exec () |
exececution of the main event loop | |
int | execPipManagerOnly () |
ScriptEditorOrganizer * | getScriptEditorOrganizer () |
Static Public Member Functions | |
static MainApplication * | instance () |
Protected Member Functions | |
void | registerMetaObjects () |
Private Attributes | |
tGuiType | m_guiType |
QThread * | m_pyThread |
PythonEngine * | m_pyEngine |
ScriptEditorOrganizer * | m_scriptEditorOrganizer |
MainWindow * | m_mainWin |
PaletteOrganizer * | m_paletteOrganizer |
UiOrganizer * | m_uiOrganizer |
DesignerWidgetOrganizer * | m_designerWidgetOrganizer |
ito::ProcessOrganizer * | m_processOrganizer |
QTranslator | m_translator |
QTranslator | m_qtTranslator |
QTranslator | m_commonQtTranslator |
QTranslator | m_commonPlotTranslator |
QTranslator | m_widgetsTranslator |
QSplashScreen * | m_splashScreen |
Static Private Attributes | |
static MainApplication * | mainApplicationInstance = NULL |
static instance pointer initialization |
The MainApplication class is the basic management class for the entire application.
ito::MainApplication::MainApplication | ( | tGuiType | guiType = standard | ) |
constructor
guiType | Type of the desired GUI (normal, console, no) |
ito::MainApplication::~MainApplication | ( | ) |
int ito::MainApplication::exec | ( | ) |
exececution of the main event loop
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.
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
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.
designerWidgetOrganizer
tGuiType ito::MainApplication::m_guiType [private] |
member for the desired gui-type
MainWindow* ito::MainApplication::m_mainWin [private] |
pointer to the main window
pointer to figureOrganizer
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
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 [static, private] |
static instance pointer initialization
static pointer to the (singleton) instance of MainApplication