![]() |
VPTissue Reference Manual
|
TreeView widget that uses WorkspaceQtModel as a model. More...
#include <WorkspaceView.h>


Signals | |
| void | ProjectRemoved (const std::string &project) |
| Emitted when user selected "delete" option on a project. | |
| void | ProjectRenamed (const std::string &old_name, const std::string &new_name) |
| Emitted when user renamed a project. | |
Public Member Functions | |
| WorkspaceView (QWidget *parent=0) | |
| QAction * | GetOpenAction () const |
| Get 'open' action object. More... | |
| QAction * | GetRemoveAction () const |
| Get 'remove' action object. More... | |
| QAction * | GetRenameAction () const |
| Get 'rename' action object. More... | |
| virtual void | setModel (QAbstractItemModel *) |
| Set the model. More... | |
Public Member Functions inherited from SimShell::Gui::MyTreeView | |
| MyTreeView (QWidget *parent=nullptr) | |
| virtual boost::property_tree::ptree | GetPTreeState () const |
| virtual void | SetPTreeState (const boost::property_tree::ptree &) |
Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
| Reimplemented from QWidget. More... | |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| Reimplemented from QTreeView. More... | |
TreeView widget that uses WorkspaceQtModel as a model.
Owner of a number of actions concerning selected items. Also displays a context menu for selected items.
Definition at line 39 of file WorkspaceView.h.
|
protectedvirtual |
Reimplemented from QWidget.
Displays a context menu with trivial actions for the selected item.
Definition at line 272 of file WorkspaceView.cpp.
| QAction * SimShell::Gui::WorkspaceView::GetOpenAction | ( | ) | const |
Get 'open' action object.
A 'trigger' signal coming from the action object will cause the selected item to be opened.
Definition at line 93 of file WorkspaceView.cpp.
| QAction * SimShell::Gui::WorkspaceView::GetRemoveAction | ( | ) | const |
Get 'remove' action object.
A 'trigger' signal coming from the action object will cause the selected item to be removed.
Definition at line 103 of file WorkspaceView.cpp.
| QAction * SimShell::Gui::WorkspaceView::GetRenameAction | ( | ) | const |
Get 'rename' action object.
This action will only be enabled if a project item is selected in the view; tissue files cannot be renamed.
Definition at line 98 of file WorkspaceView.cpp.
|
protectedvirtual |
Reimplemented from QTreeView.
If double click happened on a tissue file, it is opened, otherwise, the handler of the base class is called (for expanding/collapsing project items)
Definition at line 309 of file WorkspaceView.cpp.
|
virtual |
Set the model.
Must be of dynamic type WorkspaceQtModel or the model is set to zero.
Definition at line 75 of file WorkspaceView.cpp.