23 #ifndef SCRIPTEDITORORGANIZER_H 24 #define SCRIPTEDITORORGANIZER_H 26 #include "../widgets/scriptDockWidget.h" 27 #include "../common/sharedStructuresQt.h" 51 QStringList openedScripts()
const;
52 bool m_dockedNewWidget;
62 QList<ScriptDockWidget*> scriptDockElements;
71 void addScriptDockWidgetToMainWindow(
AbstractDockWidget *dockWidget, Qt::DockWidgetArea area);
void fileOpenedOrSaved(const QString &filename)
This slot is called if a file is saved or stored in any widget.
Definition: scriptEditorOrganizer.cpp:266
void pythonRunFile(QString filename)
signal emitted if dockWidget should be removed from main window
QSet< QString > m_usedObjectNames
list with references to all ScriptDockWidgets (docked or windows-style)
Definition: scriptEditorOrganizer.h:63
RetVal saveAllScripts(bool askFirst=true, bool ignoreNewScripts=false, int *saveScriptState=NULL)
saves all opened scripts, if changes exist
Definition: scriptEditorOrganizer.cpp:393
RetVal openScript(const QString &filename, ItomSharedSemaphore *semaphore=NULL, int visibleLineNr=-1, bool errorMessageClick=false)
slot, invoked if python macro file should be opened as new tab in active script editor window ...
Definition: scriptEditorOrganizer.cpp:734
void removeScriptDockWidget(ScriptDockWidget *widget)
signal emitted if macro (filename) should be debugged in python
Definition: scriptEditorOrganizer.cpp:368
RetVal newScript(ItomSharedSemaphore *semaphore=NULL)
slot, invoked if new script should be opened
Definition: scriptEditorOrganizer.cpp:698
RetVal closeAllScripts(bool saveFirst)
tries to close all opened script.
Definition: scriptEditorOrganizer.cpp:480
Class for managing status values (like errors or warning)
Definition: retVal.h:54
organizes script editors, independent on their appearance (docked or window-style) ...
Definition: scriptEditorOrganizer.h:36
Definition: scriptEditorWidget.h:57
void undockScriptTab(ScriptDockWidget *widget, int index, bool undockToNewScriptWindow=false, bool closeDockIfEmpty=false)
slot invoked if tab, defined by its index, in the given widget should be undocked ...
Definition: scriptEditorOrganizer.cpp:652
void pythonRunFileRequested(QString filename)
slot invoked if someone wants to run a python file with filename.
Definition: scriptEditorOrganizer.cpp:848
QStringList m_recentlyUsedFiles
mutex locking any changes to scriptDockElements
Definition: scriptEditorOrganizer.h:68
void openNewScriptWindow(bool docked, ItomSharedSemaphore *semaphore=NULL)
slot invoked if empty new script window should be created and displayed
Definition: scriptEditorOrganizer.cpp:681
Definition: apiFunctionsGraph.cpp:39
RetVal restoreScriptState()
This function is called to get all the saved informations about widgets after itom starts...
Definition: scriptEditorOrganizer.cpp:172
void dockScriptTab(ScriptDockWidget *widget, int index, bool closeDockIfEmpty=false)
slot invoked if tab, defined by its index, if the given widget should be docked
Definition: scriptEditorOrganizer.cpp:621
semaphore which can be used for asychronous thread communication. By using this class it is possible ...
Definition: sharedStructuresQt.h:57
ScriptDockWidget * openScriptRequested(const QString &filename, ScriptDockWidget *widget)
slot invoked if a file open command has been executed in any script window.
Definition: scriptEditorOrganizer.cpp:807
ScriptEditorOrganizer(bool dockAvailable)
constructor
Definition: scriptEditorOrganizer.cpp:63
ScriptDockWidget * getFirstDockedElement()
returns first ScriptDockWidget of the widget-list which is docked. This is also the last activated do...
Definition: scriptEditorOrganizer.cpp:511
ScriptDockWidget * getFirstUndockedElement()
Definition: scriptEditorOrganizer.cpp:552
void widgetFocusChanged(QWidget *old, QWidget *now)
slot is connected to signal "focusChanged" of QApplication and indicates every change in the active w...
Definition: scriptEditorOrganizer.cpp:574
QMutex m_scriptStackMutex
true if docking mode is available, else: false
Definition: scriptEditorOrganizer.h:66
void pythonDebugFileRequested(QString filename)
slot invoked if someone wants to debug a python file with filename.
Definition: scriptEditorOrganizer.cpp:883
~ScriptEditorOrganizer()
destructor
Definition: scriptEditorOrganizer.cpp:89
ScriptDockWidget * createEmptyScriptDock(bool docked, Qt::DockWidgetArea area=Qt::TopDockWidgetArea, const QString &objectName=QString())
creates new ScriptDockWidget without any script editor tab.
Definition: scriptEditorOrganizer.cpp:289
void pythonDebugPositionChanged(QString filename, int lineNo)
slot invoked if line in python debugging process has been changed
Definition: scriptEditorOrganizer.cpp:920
void removeScriptDockWidgetFromMainWindow(AbstractDockWidget *dockWidget)
signal emitted if dockWidget should be added to docking area in main window
bool m_dockAvailable
currently used objectNames for script windows
Definition: scriptEditorOrganizer.h:64
void pythonDebugFile(QString filename)
signal emitted if macro (filename) should be executed in python
void saveScriptState()
This function is called to save all the informations about widgets before itom is closed...
Definition: scriptEditorOrganizer.cpp:111
ScriptDockWidget * getActiveDockWidget()
returns the ScriptDockWidget, which actually has the focus or lastly got the focus.
Definition: scriptEditorOrganizer.cpp:533