Skip to content
Snippets Groups Projects

Urgent Skill Manipulation Features in SkillMemoryGUI

Merged Peter Albrecht requested to merge feature/skillMemoryGUI into master
2 files
+ 13
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -35,8 +35,10 @@
#include "aronTreeWidget/modal/text/AronTreeWidgetTextInputModalController.h"
// debug
#include <QAction>
#include <QClipboard>
#include <QDoubleSpinBox>
#include <QMenu>
#include <RobotAPI/libraries/aron/converter/json/NLohmannJSONConverter.h>
#include <RobotAPI/libraries/skills/core/SkillExecutionRequest.h>
@@ -83,7 +85,15 @@ namespace armarx
void
SkillManagerMonitorWidgetController::prepareMenu(const QPoint& pos)
{
ARMARX_IMPORTANT << "Function not implemented!";
QMenu* menu = new QMenu();
// TODO: gray out option if skill has finished
QAction* stopSkillAction = new QAction("Stop Skill", this);
menu->addAction(stopSkillAction);
connect(stopSkillAction,
&QAction::triggered,
this,
&SkillManagerMonitorWidgetController::stopSkill);
menu->popup(widget.treeWidgetSkillExecutions->viewport()->mapToGlobal(pos));
}
SkillExecutionInfoTreeWidgetItem*
@@ -477,6 +487,7 @@ namespace armarx
void
SkillManagerMonitorWidgetController::stopSkill()
{
ARMARX_IMPORTANT << "Stop skill triggered";
// std::scoped_lock l(updateMutex);
// if (selectedSkill.skillId.fullySpecified())
// {
Loading