Skip to content

Commit

Permalink
disable hooks for unused rviz-based task construction
Browse files Browse the repository at this point in the history
this implementation is far from functional right now
and the button confuses users.
  • Loading branch information
v4hn committed Oct 10, 2023
1 parent 64fd3df commit fb3e974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
6 changes: 3 additions & 3 deletions visualization/motion_planning_tasks/src/task_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ TaskPanel::TaskPanel(QWidget* parent) : rviz::Panel(parent), d_ptr(new TaskPanel
// settings widget should come last
addSubPanel(new GlobalSettingsWidget(this, d->property_root), "Global Settings", QIcon(":/icons/settings.png"));

connect(d->button_show_stage_dock_widget, SIGNAL(clicked()), this, SLOT(showStageDockWidget()));
// connect(d->button_show_stage_dock_widget, SIGNAL(clicked()), this, SLOT(showStageDockWidget()));

// if still undefined, this becomes the global instance
if (SINGLETON.isNull())
Expand Down Expand Up @@ -176,8 +176,8 @@ TaskPanelPrivate::TaskPanelPrivate(TaskPanel* panel) : q_ptr(panel) {
setupUi(panel);
tool_buttons_group = new QButtonGroup(panel);
tool_buttons_group->setExclusive(true);
button_show_stage_dock_widget->setEnabled(bool(getStageFactory()));
button_show_stage_dock_widget->setToolTip("Show available stages");
// button_show_stage_dock_widget->setEnabled(bool(getStageFactory()));
// button_show_stage_dock_widget->setToolTip("Show available stages");
property_root = new rviz::Property("Global Settings");
}

Expand Down
14 changes: 0 additions & 14 deletions visualization/motion_planning_tasks/src/task_panel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,6 @@
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="button_show_stage_dock_widget">
<property name="toolTip">
<string>Show available stages</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/icons/new-stage.png</normaloff>:/icons/new-stage.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit fb3e974

Please sign in to comment.