itom  3.0.0
ito::WorkspaceWidget Class Reference

the workspaceWidget displays either a global or a local workspace given by a python dictionary. This widget is inherited from QTreeWidget. More...

Inheritance diagram for ito::WorkspaceWidget:

Public Types

enum  WorkspaceRole { RoleFullName = Qt::UserRole + 1, RoleCompatibleTypes = Qt::UserRole + 2, RoleType = Qt::UserRole + 3 }
 

Public Slots

void workspaceContainerUpdated (PyWorkspaceItem *rootItem, QString fullNameRoot, QStringList recentlyDeletedFullNames)
 

Public Member Functions

 WorkspaceWidget (bool globalNotLocal, QWidget *parent=NULL)
 constructor More...
 
 ~WorkspaceWidget ()
 destructor
 
int numberOfSelectedItems (bool ableToBeRenamed=false) const
 
int numberOfSelectedMainItems () const
 
ito::PyWorkspaceContainergetWorkspaceContainer ()
 
QString getPythonReadableName (const QTreeWidgetItem *item) const
 

Protected Member Functions

QStringList mimeTypes () const
 
QMimeData * mimeData (const QList< QTreeWidgetItem * > items) const
 
void startDrag (Qt::DropActions supportedActions)
 

Private Slots

void itemDoubleClicked (QTreeWidgetItem *item, int column)
 slot, invoked if item is double-clicked More...
 
void itemExpanded (QTreeWidgetItem *item)
 
void itemCollapsed (QTreeWidgetItem *item)
 

Private Member Functions

void updateView (QHash< QString, ito::PyWorkspaceItem * > items, QString baseName, QTreeWidgetItem *parent=NULL)
 
void recursivelyDeleteHash (QTreeWidgetItem *item)
 
void recursivelyDeleteHash (const QString &fullBaseName)
 

Private Attributes

bool m_globalNotLocal
 
QHash< QString, QTreeWidgetItem * > m_itemHash
 
ito::PyWorkspaceContainerm_workspaceContainer
 
QPixmap m_dragPixmap
 

Detailed Description

the workspaceWidget displays either a global or a local workspace given by a python dictionary. This widget is inherited from QTreeWidget.

Member Enumeration Documentation

Enumerator
RoleFullName 

the fullName role indicates the full, encrypted path name to the variable such that the PythonEngine can decode back the corresponding PyObject

Constructor & Destructor Documentation

ito::WorkspaceWidget::WorkspaceWidget ( bool  globalNotLocal,
QWidget *  parent = NULL 
)

constructor

Parameters
globalNotLocaltrue: this widget shows a global python dictionary, false: local
parentparent-widget

Member Function Documentation

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
itemQTreeWidgetItem which has been clicked
See also
DialogVariableDetail

Member Data Documentation

bool ito::WorkspaceWidget::m_globalNotLocal
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: