1 #ifndef GUI_PROJECTACTIONS_VIEWERACTIONS_H_INCLUDED
2 #define GUI_PROJECTACTIONS_VIEWERACTIONS_H_INCLUDED
34 namespace ProjectActions {
47 static std::shared_ptr<ViewerActions>
Create(
const std::shared_ptr<Viewer::IViewerNode>& root_viewer);
56 void SLOT_Toggle(
bool);
59 ViewerActions(
const std::shared_ptr<Viewer::IViewerNode>& root_viewer);
62 std::map<QObject*, std::shared_ptr<Viewer::IViewerNode>> m_node_map;
63 std::map<QObject*, std::vector<QAction*>> m_children_map;
70 #endif // end_of_inclde_guard
static std::shared_ptr< ViewerActions > Create(const std::shared_ptr< Viewer::IViewerNode > &root_viewer)
Construct instance of this class.
Given a so-called 'root' viewer instance, constructs a menu representing the hierarchical structure o...
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.
QMenu * GetMenu() const
Get menu.
Interface for IViewerNode.