VPTissue Reference Manual
SimShell::Gui::ProjectActions::ViewerActions Class Reference

Given a so-called 'root' viewer instance, constructs a menu representing the hierarchical structure of viewers. More...

#include <ViewerActions.h>

Inheritance diagram for SimShell::Gui::ProjectActions::ViewerActions:
Inheritance graph
Collaboration diagram for SimShell::Gui::ProjectActions::ViewerActions:
Collaboration graph

Public Member Functions

QMenuGetMenu () const
 Get menu. More...
 

Static Public Member Functions

static std::shared_ptr< ViewerActionsCreate (const std::shared_ptr< Viewer::IViewerNode > &root_viewer)
 Construct instance of this class. More...
 

Detailed Description

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.

Member Function Documentation

shared_ptr< ViewerActions > SimShell::Gui::ProjectActions::ViewerActions::Create ( const std::shared_ptr< Viewer::IViewerNode > &  root_viewer)
static

Construct instance of this class.

Parameters
root_viewerViewer 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.


The documentation for this class was generated from the following files: