ActionsMenuBuilder.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QMenu>
4 
5 #include <RobotAPI/interface/armem/actions.h>
8 
9 namespace armarx::armem::gui
10 {
12  {
13  public:
15  QWidget* parent,
16  std::function<void(const MemoryID&, const actions::ActionPath&)> func);
17 
18  QMenu* buildActionsMenu(actions::data::GetActionsOutput& actionsOutput);
19 
20  private:
21  void
22  addMenuEntry(QMenu* menu, actions::ActionPath path, const actions::MenuEntry& entry);
23 
24  MemoryID memoryID;
25  QWidget* parent;
26  std::function<void(const MemoryID&, const actions::ActionPath&)> func;
27  };
28 } // namespace armarx::armem::gui
MemoryID.h
armarx::armem::actions::MenuEntry
Definition: actions.h:13
armarx::armem::gui::ActionsMenuBuilder
Definition: ActionsMenuBuilder.h:11
armarx::armem::gui::ActionsMenuBuilder::buildActionsMenu
QMenu * buildActionsMenu(actions::data::GetActionsOutput &actionsOutput)
Definition: ActionsMenuBuilder.cpp:17
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
actions.h
armarx::armem::gui
Definition: ActionsMenuBuilder.cpp:6
armarx::armem::gui::ActionsMenuBuilder::ActionsMenuBuilder
ActionsMenuBuilder(MemoryID memoryID, QWidget *parent, std::function< void(const MemoryID &, const actions::ActionPath &)> func)
Definition: ActionsMenuBuilder.cpp:8