mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
propagate info about config changes to rviz
This commit is contained in:
parent
cb0ed11275
commit
aeaf497c75
@ -91,6 +91,7 @@ TaskPanel::TaskPanel(QWidget* parent)
|
||||
d->settings_widget = new TaskSettings(this);
|
||||
layout()->addWidget(d->tasks_widget);
|
||||
layout()->addWidget(d->settings_widget);
|
||||
connect(d->tasks_widget, SIGNAL(configChanged()), this, SIGNAL(configChanged()));
|
||||
|
||||
connect(d->button_show_stage_dock_widget, SIGNAL(clicked()), this, SLOT(showStageDockWidget()));
|
||||
connect(d->button_show_settings, SIGNAL(toggled(bool)), d->settings_widget, SLOT(setVisible(bool)));
|
||||
@ -245,6 +246,13 @@ TaskView::TaskView(QWidget *parent)
|
||||
this, SLOT(onCurrentStageChanged(QModelIndex,QModelIndex)));
|
||||
|
||||
onCurrentStageChanged(d->tasks_view->currentIndex(), QModelIndex());
|
||||
|
||||
// propagate infos about config changes
|
||||
connect(d_ptr->tasks_property_splitter, SIGNAL(splitterMoved(int,int)),this, SIGNAL(configChanged()));
|
||||
connect(d_ptr->tasks_solutions_splitter, SIGNAL(splitterMoved(int,int)), this, SIGNAL(configChanged()));
|
||||
connect(d_ptr->tasks_view->header(), SIGNAL(sectionResized(int,int,int)), this, SIGNAL(configChanged()));
|
||||
connect(d_ptr->solutions_view->header(), SIGNAL(sectionResized(int,int,int)), this, SIGNAL(configChanged()));
|
||||
connect(d_ptr->solutions_view->header(), SIGNAL(sortIndicatorChanged(int,Qt::SortOrder)), this, SIGNAL(configChanged()));
|
||||
}
|
||||
|
||||
TaskView::~TaskView()
|
||||
|
||||
@ -101,6 +101,9 @@ public:
|
||||
void save(rviz::Config config);
|
||||
void load(const rviz::Config& config);
|
||||
|
||||
Q_SIGNALS:
|
||||
void configChanged();
|
||||
|
||||
public Q_SLOTS:
|
||||
void addTask();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user