17 #ifndef GAZEBO_GUI_LOGPLAYWIDGET_HH_ 18 #define GAZEBO_GUI_LOGPLAYWIDGET_HH_ 29 class LogPlayWidgetPrivate;
30 class LogPlayViewPrivate;
48 public:
bool IsPaused()
const;
53 public:
void SetPaused(
const bool _paused);
57 public:
void EmitSetCurrentTime(
const common::Time &_time);
61 public:
void EmitSetStartTime(
const common::Time &_time);
68 public slots:
void OnPlay();
71 public slots:
void OnPause();
74 public slots:
void OnStepForward();
77 public slots:
void OnStepBack();
80 public slots:
void OnRewind();
83 public slots:
void OnForward();
90 public slots:
void OnCurrentTime();
94 public slots:
void OnRtFactorChanged(
const double _value);
97 signals:
void ShowPlay();
100 signals:
void HidePlay();
103 signals:
void ShowPause();
106 signals:
void HidePause();
110 signals:
void SetCurrentDays(
const QString &);
114 signals:
void SetCurrentHours(
const QString &);
118 signals:
void SetCurrentMinutes(
const QString &);
122 signals:
void SetCurrentSeconds(
const QString &);
126 signals:
void SetEndTime(
const QString &);
130 signals:
void SetCurrentTime(
const common::Time &_time);
142 private:
void PublishMultistep(
const int _step);
148 private:
void SetupButton(QToolButton *_button, QString _icon,
153 private: LogPlayWidgetPrivate *dataPtr;
168 public slots:
void SetCurrentTime(
const common::Time &_time);
172 public slots:
void SetStartTime(
const common::Time &_time);
176 public slots:
void SetEndTime(
const common::Time &_time);
179 public slots:
void DrawTimeline();
186 protected:
void mousePressEvent(QMouseEvent *_event);
189 protected:
void mouseReleaseEvent(QMouseEvent *_event);
192 protected:
void mouseMoveEvent(QMouseEvent *_event);
196 private: LogPlayViewPrivate *dataPtr;
202 public QGraphicsRectItem
210 private:
virtual void paint(QPainter *_painter,
211 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
Forward declarations for the common classes.
Definition: Animation.hh:26
gui
Definition: KeyEventHandler.hh:29
Item which represents the current time within the view.
Definition: LogPlayWidget.hh:201
View for the timeline.
Definition: LogPlayWidget.hh:158
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:47