Skip to content
Snippets Groups Projects
Commit e719476f authored by Peter Albrecht's avatar Peter Albrecht
Browse files

Added right click signal/slot

parent bf28e9e5
No related branches found
No related tags found
2 merge requests!401Urgent Skill Manipulation Features in SkillMemoryGUI,!387Draft: Feature/skill memory gui
Pipeline #15618 failed
......@@ -77,6 +77,9 @@
<layout class="QGridLayout" name="gridLayout_4">
<item row="1" column="0" colspan="3">
<widget class="QTreeWidget" name="treeWidgetSkillExecutions">
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<column>
<property name="text">
<string>ExecutionID</string>
......@@ -94,22 +97,22 @@
</column>
<column>
<property name="text">
<string>IsConstructing</string>
<string>Constructing</string>
</property>
</column>
<column>
<property name="text">
<string>IsInitializing</string>
<string>Initializing</string>
</property>
</column>
<column>
<property name="text">
<string>IsPreparing</string>
<string>Preparing</string>
</property>
</column>
<column>
<property name="text">
<string>IsRunning</string>
<string>Running</string>
</property>
</column>
<column>
......@@ -117,6 +120,11 @@
<string>Finished</string>
</property>
</column>
<column>
<property name="text">
<string>Status</string>
</property>
</column>
</widget>
</item>
</layout>
......
......@@ -31,6 +31,7 @@
#include "aronTreeWidget/visitors/AronTreeWidgetModalCreator.h"
// modals
#include "aronTreeWidget/modal/text/AronTreeWidgetTextInputModalController.h"
// debug
......@@ -79,6 +80,12 @@ namespace armarx
// Others
namespace armarx
{
void
SkillManagerMonitorWidgetController::prepareMenu(const QPoint& pos)
{
ARMARX_IMPORTANT << "Function not implemented!";
}
SkillExecutionInfoTreeWidgetItem*
SkillExecutionInfoTreeWidgetItem::SearchRecursiveForMatch(
SkillExecutionInfoTreeWidgetItem* haystack,
......@@ -116,6 +123,11 @@ namespace armarx
updateTimerFrequency();
refreshSkillsResultTimer->start();
connect(widget.treeWidgetSkillExecutions,
&QTreeWidget::customContextMenuRequested,
this,
&SkillManagerMonitorWidgetController::prepareMenu);
connect(widget.doubleSpinBoxUpdateFreq,
&QDoubleSpinBox::editingFinished,
this,
......
......@@ -64,6 +64,7 @@ namespace armarx
class SkillExecutionInfoTreeWidgetItem : public QTreeWidgetItem
{
//Q_OBJECT
public:
SkillExecutionInfoTreeWidgetItem(const skills::SkillExecutionID& id,
QTreeWidgetItem* parent) :
......@@ -128,6 +129,8 @@ namespace armarx
void pasteCurrentConfig();
void resetCurrentConfig();
void prepareMenu();
private:
aron::data::DictPtr getConfigAsAron() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment