38 #include <QHBoxLayout> 52 slider_ =
new QSlider(Qt::Horizontal);
56 slider_->setTickPosition(QSlider::TicksBelow);
70 QHBoxLayout* layout =
new QHBoxLayout;
71 layout->addWidget(
new QLabel(
"Waypoint:"));
79 parentWidget()->setVisible(
false);
85 parentWidget()->show();
92 parentWidget()->hide();
97 int max_way_point = std::max(0, way_point_count - 1);
99 slider_->setEnabled(way_point_count != 0);
100 button_->setEnabled(way_point_count != 0);
105 slider_->setMaximum(max_way_point);
127 slider_->setSliderPosition(position);
void update(int way_point_count)
void setSliderPosition(int position)
void pauseButton(bool check)
TrajectoryPanel(QWidget *parent=0)
virtual ~TrajectoryPanel()
void sliderValueChanged(int value)