itom 2.0.0
ito::WorkspaceDockWidget Class Reference

docking widget for contents of type workspace widget More...

Inheritance diagram for ito::WorkspaceDockWidget:
ito::AbstractDockWidget

List of all members.

Signals

void setStatusInformation (QString text, int timeout=0)

Public Member Functions

 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
 ~WorkspaceDockWidget ()
 constructor

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *event)
void dropEvent (QDropEvent *event)
void createActions ()
 implementation for virtual method createActions in AbstractDockWidget.
void createMenus ()
void createToolBars ()
 implementation for virtual method createToolBars in AbstractDockWidget.
void createStatusBar ()
void updateActions ()
 updates the status of all actions of this widget
void updatePythonActions ()

Private Slots

void mnuDeleteItem ()
 slot invoked if the delete button has been clicked
void mnuExportItem ()
 slot invoked if the import button has been clicked
void mnuImportItem ()
 slot invoked if the import button has been clicked
void mnuRenameItem ()
 slot invoked if the rename button has been clicked in the menu
void treeWidgetItemSelectionChanged ()
void treeWidgetItemChanged (QTreeWidgetItem *item, int column)
 slot invoked if name of element in workspaceWidget (TreeView) has been changed.
void treeViewContextMenuRequested (const QPoint &pos)

Private Attributes

bool m_globalNotLocal
WorkspaceWidgetm_pWorkspaceWidget
ShortcutAction * m_actDelete
ShortcutAction * m_actRename
ShortcutAction * m_actExport
ShortcutAction * m_actImport
QToolBar * m_pMainToolBar
QMenu * m_pContextMenu
QTreeWidgetItem * m_firstCurrentItem
QString m_firstCurrentItemKey

Detailed Description

docking widget for contents of type workspace widget


Constructor & Destructor Documentation

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
globalNotLocaldefines whether this widget contains global (true) or local (false) variables
parentis a pointer to the parent widget [default: NULL]
dockedindicates whether this widget should appear docked (true) or undocked (false) [default: true]
isDockAvailableindicates if this widget can be docked (true) or not (false) [default: true]
floatingStyleindicates the style for the floating mode [default: floatingNone]
movingStyleindicates the style for movement of the docked widget [default: movingEnabled]
ito::WorkspaceDockWidget::~WorkspaceDockWidget ( )

constructor

long description

Parameters:
namedescription
Returns:
description
See also:
(see also) keywords (comma-separated)

Member Function Documentation

void ito::WorkspaceDockWidget::createActions ( ) [protected, virtual]

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 ( ) [protected, virtual]

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 ( ) [private, slot]

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 ( ) [private, slot]

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 ( ) [private, slot]

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 ( ) [private, slot]

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::treeWidgetItemChanged ( QTreeWidgetItem *  item,
int  column 
) [private, slot]

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 ( ) [protected, virtual]

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:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends