|
SHAPER
9.15.0
|
Object browser window object. More...

Public Slots | |
| void | onEditItem () |
| Called on Edit command request. More... | |
Signals | |
| void | selectionChanged () |
| Emitted when selection is changed. More... | |
| void | contextMenuRequested (QContextMenuEvent *theEvent) |
| Emitted on context menu request. More... | |
| void | headerMouseDblClicked (const QModelIndex &) |
| Signal is emitted when user clicks with mouse in header label of object browser. More... | |
| void | sizeChanged () |
| An signal emitted on resize of the Object Browser. More... | |
Public Member Functions | |
| XGUI_ObjectsBrowser (QWidget *theParent, XGUI_Workshop *theWorkshop) | |
| Constructor. More... | |
| XGUI_DataModel * | dataModel () const |
| Returns Model which provides access to data objects. More... | |
| QObjectPtrList | selectedObjects (QModelIndexList *theIndexes=0) const |
| Returns list of currently selected objects. More... | |
| void | setObjectsSelected (const QObjectPtrList &theObjects) |
| Set selected list of objects. More... | |
| void | ensureVisible (const ObjectPtr theObject) |
| Scroll TreeView to make given object visible. More... | |
| QModelIndexList | selectedIndexes () const |
| Returns currently selected indexes. More... | |
| XGUI_DataTree * | treeView () const |
| Returns TreeView widget. More... | |
| QLabel * | activeDocLabel () const |
| Returns active doc label object. More... | |
| void | rebuildDataTree () |
| Rebuild data tree. More... | |
| void | clearContent () |
| Resets the object browser into initial state. More... | |
| void | initialize (ModuleBase_ITreeNode *theRoot) |
| Initialize the Object browser. More... | |
| std::list< bool > | getStateForDoc (DocumentPtr theDoc) const |
| Returns list of folders opened state for the given document. More... | |
| void | setStateForDoc (DocumentPtr theDoc, const std::list< bool > &theStates) |
| Set folders opened state for the given document. More... | |
| XGUI_Workshop * | workshop () const |
| Returns current workshop. More... | |
| void | onSelectionChanged () |
| void | updateAllIndexes (int theColumn=0, const QModelIndex &theParent=QModelIndex()) |
| Updates all items of object browser. More... | |
| QMap< ObjectPtr, bool > | getFoldersState (DocumentPtr theDoc) const |
| void | setFoldersState (const QMap< ObjectPtr, bool > &theStates) |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *theEvent) |
| redefinition of a virtual method More... | |
Object browser window object.
Represents data tree of current data structure
| XGUI_ObjectsBrowser::XGUI_ObjectsBrowser | ( | QWidget * | theParent, |
| XGUI_Workshop * | theWorkshop | ||
| ) |
Constructor.
| theParent | a parent widget |
|
inline |
Returns Model which provides access to data objects.
| QObjectPtrList XGUI_ObjectsBrowser::selectedObjects | ( | QModelIndexList * | theIndexes = 0 | ) | const |
Returns list of currently selected objects.
| theIndexes | - output list of corresponded indexes (can be NULL) |
| void XGUI_ObjectsBrowser::setObjectsSelected | ( | const QObjectPtrList & | theObjects | ) |
Set selected list of objects.
| theObjects | list of objects to select |
| void XGUI_ObjectsBrowser::ensureVisible | ( | const ObjectPtr | theObject | ) |
Scroll TreeView to make given object visible.
| theObject | object to make it visible |
|
inline |
Returns currently selected indexes.
|
inline |
Returns TreeView widget.
|
inline |
Returns active doc label object.
| void XGUI_ObjectsBrowser::rebuildDataTree | ( | ) |
Rebuild data tree.
| void XGUI_ObjectsBrowser::clearContent | ( | ) |
Resets the object browser into initial state.
| void XGUI_ObjectsBrowser::initialize | ( | ModuleBase_ITreeNode * | theRoot | ) |
Initialize the Object browser.
| std::list< bool > XGUI_ObjectsBrowser::getStateForDoc | ( | DocumentPtr | theDoc | ) | const |
Returns list of folders opened state for the given document.
| theDoc | the document |
| void XGUI_ObjectsBrowser::setStateForDoc | ( | DocumentPtr | theDoc, |
| const std::list< bool > & | theStates | ||
| ) |
Set folders opened state for the given document.
| theDoc | the document |
| theStates | list of booleans with state expanded or not |
|
inline |
Returns current workshop.
| void XGUI_ObjectsBrowser::updateAllIndexes | ( | int | theColumn = 0, |
| const QModelIndex & | theParent = QModelIndex() |
||
| ) |
Updates all items of object browser.
| theColumn | - column of items |
| theParent | - a parent item (by default from root) |
|
slot |
Called on Edit command request.
|
signal |
Emitted when selection is changed.
|
signal |
Emitted on context menu request.
|
signal |
Signal is emitted when user clicks with mouse in header label of object browser.
|
signal |
An signal emitted on resize of the Object Browser.
|
protected |
redefinition of a virtual method