50 slider_ =
new QSlider(Qt::Horizontal);
54 slider_->setTickPosition(QSlider::TicksBelow);
57 connect(
slider_, SIGNAL(valueChanged(
int)),
this, SLOT(sliderValueChanged(
int)));
66 connect(
button_, SIGNAL(clicked()),
this, SLOT(buttonClicked()));
68 QHBoxLayout* layout =
new QHBoxLayout;
69 layout->addWidget(
new QLabel(
"Waypoint:"));
77 parentWidget()->setVisible(
false);
83 parentWidget()->show();
89 parentWidget()->hide();
96 slider_->setEnabled(way_point_count != 0);
97 button_->setEnabled(way_point_count != 0);
123 slider_->setSliderPosition(position);
126void TrajectoryPanel::sliderValueChanged(
int value)
131void TrajectoryPanel::buttonClicked()
~TrajectoryPanel() override
TrajectoryPanel(QWidget *parent=nullptr)
void onInitialize() override
void setSliderPosition(int position)
void pauseButton(bool check)
void update(int way_point_count)