ProfileMenuWidget.h
Go to the documentation of this file.
1
#ifndef PROFILEMENUWIDGET_H
2
#define PROFILEMENUWIDGET_H
3
4
#include <QComboBox>
5
#include <QPushButton>
6
#include <QWidget>
7
8
#include "../memory/MemoryCommunicatorBase.h"
9
10
namespace
armarx::skills::gui
11
{
12
class
ProfileMenuWidget
:
public
QWidget,
public
MemoryCommunicatorBase
13
{
14
Q_OBJECT
15
public
:
16
static
const
constexpr
char
*
SET_ARGS_BUTTON_TEXT
=
"Set Args from Clipboard"
;
17
static
const
constexpr
char
*
COPY_ARGS_BUTTON_TEXT
=
" Copy Args to Clipboard"
;
18
static
const
constexpr
char
*
RESET_ARGS_BUTTON_TEXT
=
" Reset Args to Profile"
;
19
static
const
constexpr
char
*
DEFAULT_PROFILE_TEXT
=
"<No Profile selected. Using root>"
;
20
static
const
constexpr
char
*
PROFILE_NOT_IMPLEMENTED
=
21
"Profiles other than the root profile are currently not supported."
;
22
23
// contents are public, as this class is just a convenience wrapper
24
QPushButton*
setArgsFromClipboard
=
nullptr
;
25
QPushButton*
copyArgsToClipboard
=
nullptr
;
26
QPushButton*
resetArgsToProfile
=
nullptr
;
27
QComboBox*
profileSelector
=
nullptr
;
28
29
ProfileMenuWidget
(std::shared_ptr<SkillManagerWrapper> _memory, QWidget* parent =
nullptr
) :
30
QWidget(parent),
MemoryCommunicatorBase
(_memory)
31
{
32
setupUi();
33
}
34
35
private
:
36
void
setupUi();
37
};
38
}
// namespace armarx::skills::gui
39
40
#endif // PROFILEMENUWIDGET_H
armarx::skills::gui::ProfileMenuWidget::ProfileMenuWidget
ProfileMenuWidget(std::shared_ptr< SkillManagerWrapper > _memory, QWidget *parent=nullptr)
Definition:
ProfileMenuWidget.h:29
armarx::skills::gui::ProfileMenuWidget::profileSelector
QComboBox * profileSelector
Definition:
ProfileMenuWidget.h:27
armarx::skills::gui::ProfileMenuWidget::setArgsFromClipboard
QPushButton * setArgsFromClipboard
Definition:
ProfileMenuWidget.h:24
armarx::skills::gui::ProfileMenuWidget::COPY_ARGS_BUTTON_TEXT
static const constexpr char * COPY_ARGS_BUTTON_TEXT
Definition:
ProfileMenuWidget.h:17
armarx::skills::gui::ProfileMenuWidget::copyArgsToClipboard
QPushButton * copyArgsToClipboard
Definition:
ProfileMenuWidget.h:25
armarx::skills::gui::ProfileMenuWidget::SET_ARGS_BUTTON_TEXT
static const constexpr char * SET_ARGS_BUTTON_TEXT
Definition:
ProfileMenuWidget.h:16
armarx::skills::gui::ProfileMenuWidget::DEFAULT_PROFILE_TEXT
static const constexpr char * DEFAULT_PROFILE_TEXT
Definition:
ProfileMenuWidget.h:19
armarx::skills::gui
Definition:
PeriodicUpdateWidget.cpp:11
armarx::skills::gui::ProfileMenuWidget::RESET_ARGS_BUTTON_TEXT
static const constexpr char * RESET_ARGS_BUTTON_TEXT
Definition:
ProfileMenuWidget.h:18
armarx::skills::gui::ProfileMenuWidget::resetArgsToProfile
QPushButton * resetArgsToProfile
Definition:
ProfileMenuWidget.h:26
armarx::skills::gui::ProfileMenuWidget::PROFILE_NOT_IMPLEMENTED
static const constexpr char * PROFILE_NOT_IMPLEMENTED
Definition:
ProfileMenuWidget.h:20
armarx::skills::gui::ProfileMenuWidget
Definition:
ProfileMenuWidget.h:12
armarx::skills::gui::MemoryCommunicatorBase
Definition:
MemoryCommunicatorBase.h:14
RobotAPI
libraries
skills_gui
skill_details
ProfileMenuWidget.h
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17