major class WorkspaceWidget to show a tree widget for the global and local workspace toolbox
More...
#include <workspaceWidget.h>
|
void | workspaceContainerUpdated (PyWorkspaceItem *rootItem, QString fullNameRoot, QStringList recentlyDeletedFullNames) |
|
void | displayItemDetails () |
|
|
| WorkspaceWidget (bool globalNotLocal, QWidget *parent=NULL) |
| constructor
|
|
| ~WorkspaceWidget () |
| destructor
|
|
int | numberOfSelectedItems (bool ableToBeRenamed=false) const |
|
int | numberOfSelectedMainItems () const |
|
ito::PyWorkspaceContainer * | getWorkspaceContainer () |
|
QString | getPythonReadableName (const QTreeWidgetItem *item) const |
|
|
QAction * | m_displayItemDetails |
|
|
QStringList | mimeTypes () const |
|
QMimeData * | mimeData (const QList< QTreeWidgetItem * > &items) const |
|
void | startDrag (Qt::DropActions supportedActions) |
|
|
void | itemDoubleClicked (QTreeWidgetItem *item, int column) |
| slot, invoked if item is double-clicked
|
|
void | itemExpanded (QTreeWidgetItem *item) |
|
void | itemCollapsed (QTreeWidgetItem *item) |
|
|
void | updateView (const QHash< QString, ito::PyWorkspaceItem * > &items, const QString &baseName, QTreeWidgetItem *parent=nullptr) |
|
void | recursivelyDeleteHash (QTreeWidgetItem *item) |
|
void | recursivelyDeleteHash (const QString &fullBaseName) |
|
Qt::DropActions | supportedDragActions () const |
|
|
bool | m_globalNotLocal |
|
QHash< QString, QTreeWidgetItem * > | m_itemHash |
|
ito::PyWorkspaceContainer * | m_workspaceContainer |
|
QPixmap | m_dragPixmap |
|
major class WorkspaceWidget to show a tree widget for the global and local workspace toolbox
the workspaceWidget displays either a global or a local workspace given by a python dictionary. This widget is inherited from QTreeWidget.
◆ WorkspaceRole
Enumerator |
---|
RoleFullName | the fullName role indicates the full, encrypted path name to the variable such that the PythonEngine can decode back the corresponding PyObject
|
◆ WorkspaceWidget()
ito::WorkspaceWidget::WorkspaceWidget |
( |
bool | globalNotLocal, |
|
|
QWidget * | parent = NULL ) |
constructor
- Parameters
-
globalNotLocal | true: this widget shows a global python dictionary, false: local |
parent | parent-widget |
◆ itemDoubleClicked
void ito::WorkspaceWidget::itemDoubleClicked |
( |
QTreeWidgetItem * | item, |
|
|
int | column ) |
|
privateslot |
slot, invoked if item is double-clicked
slot invoked if item has been double-clicked
opens instance of DialogVariableDetail to show detailed information about the double-clicked variable
- Parameters
-
item | QTreeWidgetItem which has been clicked |
- See also
- DialogVariableDetail
◆ recursivelyDeleteHash()
void ito::WorkspaceWidget::recursivelyDeleteHash |
( |
const QString & | fullBaseName | ) |
|
|
private |
flag indicated whether this workspaceWidget shows a global (true) or a local (false) dictionary
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/widgets/workspaceWidget.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/Qitom/widgets/workspaceWidget.cpp