25#include "workspaceDockWidget.h"
26#include "callStackDockWidget.h"
27#include "scriptDockWidget.h"
28#include "consoleWidget.h"
29#include "AIManagerWidget.h"
30#include "fileSystemDockWidget.h"
31#include "breakPointDockWidget.h"
32#include "bookmarkDockWidget.h"
33#include "helpDockWidget.h"
34#include "lastCommandDockWidget.h"
36#include "userManagement.h"
38#include <qtableview.h>
42#include "../organizer/helpSystem.h"
44#include <qsharedpointer.h>
51#ifdef ITOM_USEHELPVIEWER
69 void resizeEvent(QResizeEvent * event);
70 void moveEvent (QMoveEvent * event);
84 void getMenuHandlesRecursively(
const QMenu *parent, QSharedPointer<QVector<size_t> > menuHandles);
85 QAction* searchActionRecursively(
const size_t menuHandle,
const QMenu *parent);
89 QVBoxLayout *m_contentLayout;
90 QSplitter *m_contentSplitter;
103 QMap<QString, QToolBar*> m_userDefinedToolBars;
104 QMap<QString, QMenu* > m_userDefinedRootMenus;
105 unsigned int m_userDefinedActionCounter;
107 QAction *m_appFileNew;
108 QAction *m_appFileOpen;
110 QAction *m_aboutQitom;
113 QMap<QString, QAction*> m_actions;
115 QMenu *m_pMenuFigure;
116 QMenu *m_pShowOpenFigure;
119 QMenu *m_plastFilesMenu;
120 QMenu *m_pMenuPython;
121 QMenu *m_pMenuReloadModule;
133 QLabel *m_pStatusLblScriptInfo;
135#ifdef ITOM_USEHELPVIEWER
136 QPointer<HelpViewer> m_helpViewer;
139 QRect m_geometryNormalState;
146 QMap<QString, QPointer<WidgetInfoBox> > m_infoBoxWidgets;
151 void pythonSetAutoReloadSettings(
bool enabled,
bool checkFile,
bool checkCmd,
bool checkFct);
159 void setStatusText(QString message,
int timeout);
161 ito::RetVal addToolbarButton(
const QString &toolbarName,
const QString &buttonName,
const QString &buttonIconFilename,
const QString &pythonCode, QSharedPointer<size_t> buttonHandle,
ItomSharedSemaphore *waitCond = NULL);
162 ito::RetVal removeToolbarButton(
const QString &toolbarName,
const QString &buttonName, QSharedPointer<QVector<size_t> > buttonHandles,
bool showMessage =
true,
ItomSharedSemaphore *waitCond =
nullptr);
165 ito::RetVal addMenuElement(
int typeID,
const QString &key,
const QString &name,
const QString &code,
const QString &buttonIconFilename, QSharedPointer<size_t> menuHandle,
bool showMessage =
true,
ItomSharedSemaphore *waitCond = NULL);
166 ito::RetVal removeMenuElement(
const QString &key, QSharedPointer<QVector<size_t> > removedMenuHandles,
bool showMessage =
true,
ItomSharedSemaphore *waitCond = NULL);
167 ito::RetVal removeMenuElement(
const size_t menuHandle, QSharedPointer<QVector<size_t> > removedMenuHandles,
bool showMessage =
true,
ItomSharedSemaphore *waitCond = NULL);
171 void pythonRunSelection(QString selectionText);
173 void setCursor(
const Qt::CursorShape cursor);
176 void currentDirectoryChanged();
178 void showInfoMessageLine( QString text, QString winKey =
"" );
180 void showAssistant(
const QString& collectionFile =
"",
const QString& showUrl =
"");
182 void setCentralWidgetsSizes(
const QVector<int> &sizes);
185 void mnuAboutQitom();
187 void mnuExitApplication();
191 void mnuShowAssistant();
192 void mnuShowScriptReference();
193 void mnuShowDesigner();
194 void mnuShowProperties();
195 void mnuShowUserManagement();
196 void mnuToggleExecPyCodeByDebugger(
bool checked);
197 void mnuCloseAllPlots();
198 void mnuShowAllPlots();
199 void mnuMinimizeAllPlots();
201 void mnuScriptStop();
206 void mnuPyReloadModules();
207 void mnuShowLoadedPlugins();
208 void mnuPyPipManager();
209 void mnuPyTimerManager();
211 void mnuPyAutoReloadTriggered(
bool checked);
213 void helpAssistantError ( QProcess::ProcessError error );
214 void designerError ( QProcess::ProcessError error );
216 void userDefinedActionTriggered(
const QString &pythonCode);
218 void pythonAutoReloadChanged(
bool enabled,
bool checkFile,
bool checkCmd,
bool checkFct);
220 void menuLastFilesAboutToShow();
221 void lastFileOpen(
const QString &path);
222 void openScript(
const QString &filename);
224 void mnuViewAboutToShow();
225 void mnuFigureAboutToShow();
226 void raiseFigureByHandle(
int handle);
228 void scriptStatusBarInformationChanged(
229 const QPointer<ScriptDockWidget> sourceDockWidget,
230 const QString& encoding,
semaphore which can be used for asynchronous thread communication. By using this class it is possible...
Definition sharedStructuresQt.h:58
Definition helpSystem.h:37
Definition mainWindow.h:56
bool m_pythonDebugMode
Definition mainWindow.h:142
void mnuScriptStepOut()
slot invoked to execute a python debugging step out
Definition mainWindow.cpp:2767
void createStatusBar()
initializes status bar
Definition mainWindow.cpp:1417
bool pythonBusy() const
Definition mainWindow.h:72
void mnuScriptContinue()
slot invoked to continue debugging process if actually waiting at breakpoint
Definition mainWindow.cpp:2746
QLabel * m_pStatusLblCurrentDir
label for showing the busy status of python (hidden, if python is currently not working) in the statu...
Definition mainWindow.h:127
void addAbstractDock(AbstractDockWidget *dockWidget, Qt::DockWidgetArea area=Qt::TopDockWidgetArea)
Definition mainWindow.cpp:712
void scriptEditorOrganizerAvailable()
slot called by startupApplication if script editor organizer is loaded.
Definition mainWindow.cpp:689
void createToolBars()
creates toolbar
Definition mainWindow.cpp:1048
void mnuScriptStepOver()
slot invoked to execute a python debugging step over
Definition mainWindow.cpp:2760
~MainWindow()
destructor
Definition mainWindow.cpp:536
MainWindow()
constructor
Definition mainWindow.cpp:101
bool m_pythonBusy
Definition mainWindow.h:141
void mnuOpenFile()
slot invoked by action to open any known file format
Definition mainWindow.cpp:1574
void mainWindowCloseRequest(bool considerPythonBusy)
void pythonStateChanged(tPythonTransitions pyTransition)
Definition mainWindow.cpp:1450
void mnuNewScript()
slot invoked by action to open a new python script
Definition mainWindow.cpp:1557
void updatePythonActions()
updates actions which deal with python commands
Definition mainWindow.cpp:1529
void pythonDebugCommand(tPythonDbgCmd cmd)
bool pythonDebugMode() const
Definition mainWindow.h:73
void removeAbstractDock(AbstractDockWidget *dockWidget)
Definition mainWindow.cpp:793
bool pythonInWaitingMode() const
Definition mainWindow.h:74
HelpSystem * m_pHelpSystem
label for showing current directory in status bar
Definition mainWindow.h:124
QLabel * m_pStatusLblPythonBusy
label for showing basic information about the script, that has currently the focus,...
Definition mainWindow.h:130
bool m_pythonInWaitingMode
Definition mainWindow.h:143
void closeEvent(QCloseEvent *event)
close event invoked if main window should be closed (and therefore the whole application too)
Definition mainWindow.cpp:861
void mnuScriptStep()
slot invoked to execute a python debugging step
Definition mainWindow.cpp:2753
void createActions()
creates actions for menu and toolbar
Definition mainWindow.cpp:888
Class for managing status values (like errors or warning)
Definition retVal.h:54
Definition apiFunctionsGraph.cpp:40