itom 1.3.0
ito::MainWindow Class Reference

List of all members.

Public Slots

void addAbstractDock (AbstractDockWidget *dockWidget, Qt::DockWidgetArea area=Qt::TopDockWidgetArea)
 slot invoked by ScriptEditorOrganizer, if any ScriptDockWidget should be added to main window's dock widgets
void removeAbstractDock (AbstractDockWidget *dockWidget)
 slot invoked by ScriptEditorOrganizer, if any ScriptDockWidget should be removed from docking area
virtual void pythonStateChanged (tPythonTransitions pyTransition)
 slot connected to signal pythonStateChanged in PythonEngine which is invoked by every change of the python state
void setStatusText (QString message, int timeout)
void pythonAddToolbarButton (QString toolbarName, QString buttonName, QString buttonIconFilename, QString pythonCode)
void pythonRemoveToolbarButton (QString toolbarName, QString buttonName)
void pythonAddMenuElement (int typeID, QString key, QString name, QString code, QString buttonIconFilename)
void pythonRemoveMenuElement (QString key)
void pythonRunSelection (QString selectionText)
void setCursor (const Qt::CursorShape cursor)
void resetCursor ()
void currentDirectoryChanged ()
void showInfoMessageLine (QString text, QString winKey="")

Signals

void mainWindowCloseRequest ()
void pythonDebugCommand (tPythonDbgCmd cmd)
void pythonSetAutoReloadSettings (bool enabled, bool checkFile, bool checkCmd, bool checkFct)

Public Member Functions

 MainWindow ()
 constructor
 ~MainWindow ()
 destructor

Protected Member Functions

void closeEvent (QCloseEvent *event)
 close event invoked if main window should be closed (and therefore the whole application too)
void resizeEvent (QResizeEvent *event)
void moveEvent (QMoveEvent *event)
bool pythonBusy () const
bool pythonDebugMode () const
bool pythonInWaitingMode () const

Private Slots

void mnuAboutQitom ()
void mnuExitApplication ()
void mnuNewScript ()
 slot invoked by action to open a new python script
void mnuOpenFile ()
 slot invoked by action to open any known file format
void mnuShowAssistant ()
void mnuShowScriptReference ()
void mnuShowDesigner ()
void mnuShowProperties ()
void mnuShowUserManagement ()
void mnuToggleExecPyCodeByDebugger (bool checked)
void mnuScriptStop ()
void mnuScriptContinue ()
 slot invoked to continue debugging process if actually waiting at breakpoint
void mnuScriptStep ()
 slot invoked to execute a python debugging step
void mnuScriptStepOver ()
 slot invoked to execute a python debugging step over
void mnuScriptStepOut ()
 slot invoked to execute a python debugging step out
void mnuPyReloadModules ()
void mnuShowLoadedPlugins ()
void mnuPyAutoReloadTriggered (bool checked)
void helpAssistantError (QProcess::ProcessError error)
void designerError (QProcess::ProcessError error)
void userDefinedActionTriggered (const QString &pythonCode)
void pythonAutoReloadChanged (bool enabled, bool checkFile, bool checkCmd, bool checkFct)
void menuLastFilesAboutToShow ()
void lastFileOpen (const QString &path)

Private Member Functions

void createActions ()
 creates actions for menu and toolbar
void createMenus ()
void createToolBars ()
 creates toolbar
void createStatusBar ()
 initializes status bar
void updateMenus ()
void updatePythonActions ()
 updates actions which deal with python commands

Private Attributes

ConsoleWidgetm_console
QVBoxLayout * m_contentLayout
BreakPointDockWidgetm_breakPointDock
LastCommandDockWidgetm_lastCommandDock
HelpDockWidgetm_helpDock
WorkspaceDockWidgetm_globalWorkspaceDock
WorkspaceDockWidgetm_localWorkspaceDock
CallStackDockWidgetm_callStackDock
FileSystemDockWidgetm_fileSystemDock
AIManagerWidgetm_pAIManagerWidget
QSignalMapper * m_lastFilesMapper
QToolBar * m_aboutToolBar
QToolBar * m_appToolBar
QToolBar * m_toolToolBar
QToolBar * m_pythonToolBar
QMap< QString, QToolBar * > m_userDefinedToolBars
QMap< QString, QMenu * > m_userDefinedRootMenus
QSignalMapper * m_userDefinedSignalMapper
QAction * m_appFileNew
QAction * m_appFileOpen
QAction * m_aboutQt
QAction * m_aboutQitom
QAction * m_lastFileAct
QMap< QString, QAction * > m_actions
QMenu * m_pMenuHelp
QMenu * m_pMenuFile
QMenu * m_plastFilesMenu
QMenu * m_pMenuPython
QMenu * m_pMenuReloadModule
QMenu * m_pMenuView
HelpSystemm_pHelpSystem
QLabel * m_statusLblCurrentDir
QRect m_geometryNormalState
bool m_pythonBusy
bool m_pythonDebugMode
bool m_pythonInWaitingMode
bool m_isFullscreen
QMap< QString, QPointer
< WidgetInfoBox > > 
m_infoBoxWidgets

Constructor & Destructor Documentation

ito::MainWindow::MainWindow ( )

constructor

establishes widgets being part of the main window including necessary actions

ito::MainWindow::~MainWindow ( )

destructor

disconnects connections between main window and python engine


Member Function Documentation

void ito::MainWindow::addAbstractDock ( AbstractDockWidget dockWidget,
Qt::DockWidgetArea  area = Qt::TopDockWidgetArea 
) [slot]

slot invoked by ScriptEditorOrganizer, if any ScriptDockWidget should be added to main window's dock widgets

This method is also called to dock any figure to the main window.

Parameters:
dockWidgetScriptDockWidget to add to any docking area
areadocking area, where dockWidget should be shown
void ito::MainWindow::closeEvent ( QCloseEvent *  event) [protected]

close event invoked if main window should be closed (and therefore the whole application too)

if this event is invoked the signal mainWindowCloseRequest is emitted, which invokes the slot mainWindowCloseRequest in class MainApplication in order to proceed the entire closing process. Therefore the event is ignored.

Parameters:
eventevent of type QCloseEvent, describing the close request
See also:
MainApplication

< if mainWindowCloseRequest is handled and accepted by mainApplication, MainWindow will be destroyed

void ito::MainWindow::mainWindowCloseRequest ( ) [signal]

signal emitted if user would like to close the main window and therefore the entire application

void ito::MainWindow::mnuNewScript ( ) [private, slot]

slot invoked by action to open a new python script

invokes method newScript in ScriptEditorOrganizer

void ito::MainWindow::mnuOpenFile ( ) [private, slot]

slot invoked by action to open any known file format

Py-macro files will be opened by ScriptEditorOrganizer

See also:
ScriptEditorOrganizer
bool ito::MainWindow::pythonBusy ( ) const [inline, protected]

returns if python is busy (true)

void ito::MainWindow::pythonDebugCommand ( tPythonDbgCmd  cmd) [signal]

will be received by PythonThread, directly

bool ito::MainWindow::pythonDebugMode ( ) const [inline, protected]

returns if python is in debug mode (true)

bool ito::MainWindow::pythonInWaitingMode ( ) const [inline, protected]

returns if python is in waiting mode (true)

See also:
m_pythonInWaitingMode
void ito::MainWindow::pythonStateChanged ( tPythonTransitions  pyTransition) [virtual, slot]

slot connected to signal pythonStateChanged in PythonEngine which is invoked by every change of the python state

Actually, this slot is only evaluated in the main window in order to show python's busy state in the statusBar.

Parameters:
pyTransitionPython transition to the next state
See also:
PythonEngine
void ito::MainWindow::removeAbstractDock ( AbstractDockWidget dockWidget) [slot]

slot invoked by ScriptEditorOrganizer, if any ScriptDockWidget should be removed from docking area

notice, that even a ScriptDockWidget is actually undocked, it belongs to the docking area NoDockWidgetArea

Parameters:
dockWidgetScriptDockWidget to remove from docking area

Member Data Documentation

QSignalMapper* ito::MainWindow::m_lastFilesMapper [private]

Maps signal from the "last opened files" buttons

if true, python is busy right now

if true, python is in debug mode right now

if true, python is in debug mode but waiting for next user command (e.g. the debugger waits at a breakpoint)


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