docking widget for contents of type workspace widget
More...
|
void | checkToggleUnpack () |
|
void | propertiesChanged () |
|
void | setEnabled (bool) |
|
virtual void | setVisible (bool visible) |
|
virtual void | dockedToMainWindow (AbstractDockWidget *) |
|
virtual void | removedFromMainWindow (AbstractDockWidget *) |
|
virtual void | pythonStateChanged (tPythonTransitions pyTransition) |
| slot invoked if python state changed. Sets the specific member variables according to the python transition. More...
|
|
void | raiseAndActivate () |
| activates this dock widget or window and raises it on top of all opened windows More...
|
|
void | setDockSize (int newWidth, int newHeight) |
|
void | dockWidget () |
| docks this dockWidget. More...
|
|
void | undockWidget (bool show_it=true) |
| undocks this dockWidget. More...
|
|
|
void | setStatusInformation (QString text, int timeout=0) |
|
|
| WorkspaceDockWidget (const QString &title, const QString &objName, bool globalNotLocal, QWidget *parent=NULL, bool docked=true, bool isDockAvailable=true, tFloatingStyle floatingStyle=floatingNone, tMovingStyle movingStyle=movingEnabled) |
| constructor More...
|
|
| ~WorkspaceDockWidget () |
| destructor More...
|
|
| AbstractDockWidget (bool docked, bool isDockAvailable, tFloatingStyle floatingStyle, tMovingStyle movingStyle, const QString &title=QString(), const QString &objName=QString(), QWidget *parent=0) |
| constructor More...
|
|
virtual | ~AbstractDockWidget () |
| destructor
|
|
bool | docked () const |
|
RetVal | setAdvancedWindowTitle (QString newCompleteTitle=QString(), bool appendToBasicTitle=true) |
| changes the title of widget More...
|
|
RetVal | setTopLevel (tTopLevelStyle topLevel) |
|
void | setParent (QWidget *parent) |
|
QWidget * | getActiveInstance () |
|
QRect | frameGeometry () const |
|
const QRect & | geometry () const |
|
QRect | normalGeometry () const |
|
int | x () const |
|
int | y () const |
|
QPoint | pos () const |
|
QSize | frameSize () const |
|
QSize | size () const |
|
int | width () const |
|
int | height () const |
|
QRect | rect () const |
|
QRect | childrenRect () const |
|
QRegion | childrenRegion () const |
|
void | move (int x, int y) |
|
void | move (const QPoint &) |
|
void | resize (int w, int h) |
|
void | resize (const QSize &) |
|
void | setGeometry (int x, int y, int w, int h) |
|
void | setGeometry (const QRect &) |
|
QString | windowTitle () |
|
void | setWindowTitle (const QString &title) |
|
bool | isEnabled () const |
|
bool | isVisible () const |
|
void | saveState (const QString &iniName) const |
|
void | restoreState (const QString &iniName) |
|
void | synchronizeTopLevelState () |
| synchronizes the top level state of the dock widget with the floating settings of this abstract dock widget More...
|
|
virtual QSize | sizeHint () const |
|
virtual QSize | minimumSizeHint () const |
|
|
void | dragEnterEvent (QDragEnterEvent *event) |
|
void | dropEvent (QDropEvent *event) |
|
void | createActions () |
| implementation for virtual method createActions in AbstractDockWidget. More...
|
|
void | createMenus () |
|
void | createToolBars () |
| implementation for virtual method createToolBars in AbstractDockWidget. More...
|
|
void | createStatusBar () |
|
void | updateActions () |
| updates the status of all actions of this widget More...
|
|
void | updatePythonActions () |
|
bool | eventFilter (QObject *obj, QEvent *event) |
| eventFilter for m_pWindow More...
|
|
void | init () |
| init method, called by constructor More...
|
|
virtual void | closeEvent (QCloseEvent *event) |
| closeEvent invoked if this AbstractDockWidget should be closed More...
|
|
Qt::WindowFlags | modifyFlags (const Qt::WindowFlags &flags, const Qt::WindowFlags &setFlags, const Qt::WindowFlags &unsetFlags) |
|
virtual void | windowStateChanged (bool) |
|
void | setContentWidget (QWidget *widget) |
| sets any given QWidget as central widget of QMainWindow and inversely sets this QWidget's parent to the instance of QMainWindget More...
|
|
QWidget * | getContentWidget () const |
|
QMainWindow * | getCanvas () |
|
bool | pythonBusy () const |
|
bool | pythonDebugMode () const |
|
bool | pythonInWaitingMode () const |
|
QToolBar * | getToolBar (QString key) const |
| returns reference to toolbar with given key-value More...
|
|
QMenuBar * | getMenuBar () const |
|
RetVal | addToolBar (QToolBar *tb, const QString &key, Qt::ToolBarArea area=Qt::TopToolBarArea, int section=1) |
|
RetVal | removeToolBar (const QString &key) |
|
|
void | mnuDeleteItem () |
| slot invoked if the delete button has been clicked More...
|
|
void | mnuExportItem () |
| slot invoked if the import button has been clicked More...
|
|
void | mnuImportItem () |
| slot invoked if the import button has been clicked More...
|
|
void | mnuRenameItem () |
| slot invoked if the rename button has been clicked in the menu More...
|
|
void | mnuToggleUnpack () |
| slot invoked if the unpack dictionary button has been clicked in the menu More...
|
|
void | mnuPlot1D () |
|
void | mnuPlot2D () |
|
void | mnuPlot25D () |
|
void | treeWidgetItemSelectionChanged () |
|
|
void | mnuPlotGeneric (const QString &plotClass) |
|
void | treeWidgetItemChanged (QTreeWidgetItem *item, int column) |
| slot invoked if name of element in workspaceWidget (TreeView) has been changed. More...
|
|
void | treeViewContextMenuRequested (const QPoint &pos) |
|
|
bool | m_globalNotLocal |
|
WorkspaceWidget * | m_pWorkspaceWidget |
|
ShortcutAction * | m_actDelete |
|
ShortcutAction * | m_actRename |
|
ShortcutAction * | m_actExport |
|
ShortcutAction * | m_actImport |
|
QAction * | m_actUnpack |
|
QAction * | m_separatorSpecialActionsToolBar |
|
QAction * | m_separatorSpecialActionsContextMenu |
|
ShortcutAction * | m_dObjPlot1d |
|
ShortcutAction * | m_dObjPlot2d |
|
ShortcutAction * | m_dObjPlot25d |
|
ShortcutAction * | m_dObjPlot3d |
|
QToolBar * | m_pMainToolBar |
|
QMenu * | m_pContextMenu |
|
QTreeWidgetItem * | m_firstCurrentItem |
|
QString | m_firstCurrentItemKey |
|
|
enum | tFloatingStyle { floatingNone,
floatingStandard,
floatingWindow
} |
|
enum | tMovingStyle { movingDisabled,
movingEnabled
} |
|
enum | tTopLevelStyle { topLevelOverall,
topLevelParentOnly,
topLevelNothing
} |
|
QAction * | m_actStayOnTop |
|
QAction * | m_actStayOnTopOfApp |
|
bool | visible |
|
bool | enabled |
|
QRect | geometry |
|
QRect | frameGeometry |
|
QRect | normalGeometry |
|
int | x |
|
int | y |
|
QPoint | pos |
|
QSize | frameSize |
|
QSize | size |
|
int | width |
|
int | height |
|
QRect | rect |
|
QRect | childrenRect |
|
QRegion | childrenRegion |
|
QString | windowTitle |
|
docking widget for contents of type workspace widget
ito::WorkspaceDockWidget::WorkspaceDockWidget |
( |
const QString & |
title, |
|
|
const QString & |
objName, |
|
|
bool |
globalNotLocal, |
|
|
QWidget * |
parent = NULL , |
|
|
bool |
docked = true , |
|
|
bool |
isDockAvailable = true , |
|
|
tFloatingStyle |
floatingStyle = floatingNone , |
|
|
tMovingStyle |
movingStyle = movingEnabled |
|
) |
| |
constructor
long description
- Parameters
-
title | [in] is the docking widget's title |
globalNotLocal | defines whether this widget contains global (true) or local (false) variables |
parent | is a pointer to the parent widget [default: NULL] |
docked | indicates whether this widget should appear docked (true) or undocked (false) [default: true] |
isDockAvailable | indicates if this widget can be docked (true) or not (false) [default: true] |
floatingStyle | indicates the style for the floating mode [default: floatingNone] |
movingStyle | indicates the style for movement of the docked widget [default: movingEnabled] |
ito::WorkspaceDockWidget::~WorkspaceDockWidget |
( |
| ) |
|
destructor
long description
- Parameters
-
- Returns
- description
- See also
- (see also) keywords (comma-separated)
void ito::WorkspaceDockWidget::createActions |
( |
| ) |
|
|
protectedvirtual |
implementation for virtual method createActions in AbstractDockWidget.
! loads the given python dictionary by calling the appropriate method in its workspaceWidget. *!
creates all actions related to this widget. These actions will be used in the toolbars.
Implements ito::AbstractDockWidget.
void ito::WorkspaceDockWidget::createToolBars |
( |
| ) |
|
|
protectedvirtual |
implementation for virtual method createToolBars in AbstractDockWidget.
Creates the toolbar for this dock-widget with the necessary buttons, connected to existing actions.
Implements ito::AbstractDockWidget.
void ito::WorkspaceDockWidget::mnuDeleteItem |
( |
| ) |
|
|
privateslot |
slot invoked if the delete button has been clicked
After accepting a security query, the selected variables will be deleted by invoking the slot deleteVariable in pythonEngine.
- See also
- deleteVariable
void ito::WorkspaceDockWidget::mnuExportItem |
( |
| ) |
|
|
privateslot |
slot invoked if the import button has been clicked
A file-dialog appears where an idc (pickle)-file can be chosen, where the selected variables should be pickled to. An error message will appear if the export failed.
- See also
- uiExportPyWorkspaceVars
void ito::WorkspaceDockWidget::mnuImportItem |
( |
| ) |
|
|
privateslot |
slot invoked if the import button has been clicked
A file-dialog appears where an idc (pickle)-file can be chosen, whose content should be load to the python workspace. An error message will appear if the import failed.
- See also
- uiImportPyWorkspaceVars
void ito::WorkspaceDockWidget::mnuRenameItem |
( |
| ) |
|
|
privateslot |
slot invoked if the rename button has been clicked in the menu
this slot forces the current item in the treeview to become editable (editMode)
void ito::WorkspaceDockWidget::mnuToggleUnpack |
( |
| ) |
|
|
privateslot |
slot invoked if the unpack dictionary button has been clicked in the menu
when importing an *.idc or *.mat file to the workspace, it is either possible to unpack all values within the file and load them as separate variables to the workspace or to load the content of the file as one single dictionary (name of the dictionary will be requested by an input dialog)
void ito::WorkspaceDockWidget::treeWidgetItemChanged |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
|
private |
slot invoked if name of element in workspaceWidget (TreeView) has been changed.
calls pythonEngine's method renameVariable in order to initiate the renaming operation in python.
- Parameters
-
item | [in] is the corresponding QTreeWidgetItem, whose name has manually been changed |
- See also
- renameVariable
void ito::WorkspaceDockWidget::updateActions |
( |
| ) |
|
|
protectedvirtual |
updates the status of all actions of this widget
The update concerns mainly the visible and enabled-status of each action, depending on different influences, like e.g. the python status.
- See also
- pythonInWaitingMode, pythonBusy
Reimplemented from ito::AbstractDockWidget.
The documentation for this class was generated from the following files:
- D:/itom/sources/itom/Qitom/widgets/workspaceDockWidget.h
- D:/itom/sources/itom/Qitom/widgets/workspaceDockWidget.cpp