VPTissue Reference Manual
|
Given a so-called 'root' viewer instance, constructs a menu representing the hierarchical structure of viewers. More...
#include <ViewerActions.h>
Public Member Functions | |
QMenu * | GetMenu () const |
Get menu. More... | |
Static Public Member Functions | |
static std::shared_ptr< ViewerActions > | Create (const std::shared_ptr< Viewer::IViewerNode > &root_viewer) |
Construct instance of this class. More... | |
Given a so-called 'root' viewer instance, constructs a menu representing the hierarchical structure of viewers.
The menu has actions for enabling/disabling viewers at any level in the hierarchy. This object maintains ownership of those actions, so a long as they are available to the user (e.g. added to a menu), this object should NOT be destroyed.
Definition at line 41 of file ViewerActions.h.
|
static |
Construct instance of this class.
root_viewer | Viewer instance acting as the root of the tree of viewers. |
Definition at line 62 of file ViewerActions.cpp.
QMenu * SimShell::Gui::ProjectActions::ViewerActions::GetMenu | ( | ) | const |
Get menu.
This class keeps ownership over returned object.
Definition at line 77 of file ViewerActions.cpp.