ActionsMenuBuilder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QMenu>
4
5
#include <RobotAPI/interface/armem/actions.h>
6
#include <
RobotAPI/libraries/armem/core/actions.h
>
7
#include <
RobotAPI/libraries/armem/core/MemoryID.h
>
8
9
namespace
armarx::armem::gui
10
{
11
class
ActionsMenuBuilder
12
{
13
public
:
14
ActionsMenuBuilder
(
MemoryID
memoryID,
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
RobotAPI
libraries
armem_gui
ActionsMenuBuilder.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17