SkillDetailsTreeWidget.h
Go to the documentation of this file.
1
#ifndef SKILLDETAILSTREEWIDGET_H
2
#define SKILLDETAILSTREEWIDGET_H
3
4
#include <QTreeWidget>
5
6
#include "
RobotAPI/libraries/skills_gui/aron_tree_widget/AronTreeWidgetController.h
"
7
8
#include "../memory/MemoryCommunicatorBase.h"
9
10
namespace
armarx::skills::gui
11
{
12
class
SkillDetailsTreeWidget
:
public
QTreeWidget,
public
MemoryCommunicatorBase
13
{
14
Q_OBJECT
15
public
:
16
SkillDetailsTreeWidget
(std::shared_ptr<SkillManagerWrapper> _memory,
17
QWidget* parent =
nullptr
);
18
19
std::optional<skills::SkillID>
getShownId
();
20
void
updateContents
(
skills::SkillID
const
& skillId,
skills::SkillDescription
const
& descr);
21
22
aron::data::DictPtr
getConfigAsAron
();
23
void
copyCurrentConfig
();
24
void
pasteCurrentConfig
();
25
void
resetWidget
();
26
27
public
slots:
28
// this will reset the args to the profile defaults
29
void
resetCurrentConfig
();
30
void
disconnectGui
();
31
void
updateGui
();
32
void
resizeContents
();
33
34
private
:
35
struct
ShownSkill
36
{
37
skills::SkillID
skillId;
38
skills::SkillDescription
descr;
39
};
40
41
std::optional<ShownSkill> shownSkill;
42
43
// The size, which we assume the last column to be.
44
// If the last column has too little space, increase this value.
45
const
int
typeWidth = 200;
46
47
AronTreeWidgetControllerPtr
aronTreeWidgetController =
nullptr
;
48
void
setupUi();
49
};
50
}
// namespace armarx::skills::gui
51
52
#endif // SKILLDETAILSTREEWIDGET_H
armarx::skills::gui::SkillDetailsTreeWidget::resetCurrentConfig
void resetCurrentConfig()
Definition:
SkillDetailsTreeWidget.cpp:188
armarx::skills::SkillDescription
Definition:
SkillDescription.h:18
armarx::skills::gui::SkillDetailsTreeWidget::SkillDetailsTreeWidget
SkillDetailsTreeWidget(std::shared_ptr< SkillManagerWrapper > _memory, QWidget *parent=nullptr)
Definition:
SkillDetailsTreeWidget.cpp:13
armarx::skills::gui::SkillDetailsTreeWidget::resizeContents
void resizeContents()
Problem: columns 0 and 1 have arbitrary size; so we want to limit their size, to make sure everything...
Definition:
SkillDetailsTreeWidget.cpp:130
armarx::skills::gui::SkillDetailsTreeWidget::updateGui
void updateGui()
Definition:
SkillDetailsTreeWidget.cpp:83
armarx::skills::gui::SkillDetailsTreeWidget::updateContents
void updateContents(skills::SkillID const &skillId, skills::SkillDescription const &descr)
Definition:
SkillDetailsTreeWidget.cpp:34
armarx::skills::gui::AronTreeWidgetControllerPtr
std::shared_ptr< AronTreeWidgetController > AronTreeWidgetControllerPtr
Definition:
AronTreeWidgetController.h:51
armarx::skills::gui::SkillDetailsTreeWidget::getShownId
std::optional< skills::SkillID > getShownId()
Definition:
SkillDetailsTreeWidget.cpp:21
AronTreeWidgetController.h
armarx::skills::gui::SkillDetailsTreeWidget::copyCurrentConfig
void copyCurrentConfig()
Definition:
SkillDetailsTreeWidget.cpp:157
armarx::skills::gui
Definition:
PeriodicUpdateWidget.cpp:11
armarx::skills::gui::SkillDetailsTreeWidget::getConfigAsAron
aron::data::DictPtr getConfigAsAron()
Definition:
SkillDetailsTreeWidget.cpp:146
armarx::skills::gui::SkillDetailsTreeWidget
Definition:
SkillDetailsTreeWidget.h:12
armarx::skills::gui::SkillDetailsTreeWidget::disconnectGui
void disconnectGui()
Definition:
SkillDetailsTreeWidget.cpp:77
armarx::skills::gui::SkillDetailsTreeWidget::resetWidget
void resetWidget()
Definition:
SkillDetailsTreeWidget.cpp:212
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition:
Dict.h:41
armarx::skills::SkillID
Definition:
SkillID.h:17
armarx::skills::gui::SkillDetailsTreeWidget::pasteCurrentConfig
void pasteCurrentConfig()
Definition:
SkillDetailsTreeWidget.cpp:171
armarx::skills::gui::MemoryCommunicatorBase
Definition:
MemoryCommunicatorBase.h:14
RobotAPI
libraries
skills_gui
skill_details
SkillDetailsTreeWidget.h
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17