17 #ifndef _GAZEBO_LOG_PLAY_WIDGET_HH_
18 #define _GAZEBO_LOG_PLAY_WIDGET_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();
93 signals:
void ShowPlay();
96 signals:
void HidePlay();
99 signals:
void ShowPause();
102 signals:
void HidePause();
106 signals:
void SetCurrentDays(
const QString &);
110 signals:
void SetCurrentHours(
const QString &);
114 signals:
void SetCurrentMinutes(
const QString &);
118 signals:
void SetCurrentSeconds(
const QString &);
122 signals:
void SetEndTime(
const QString &);
126 signals:
void SetCurrentTime(
const common::Time &_time);
138 private:
void PublishMultistep(
const int _step);
144 private:
void SetupButton(QToolButton *_button, QString _icon,
149 private: LogPlayWidgetPrivate *dataPtr;
164 public slots:
void SetCurrentTime(
const common::Time &_time);
168 public slots:
void SetStartTime(
const common::Time &_time);
172 public slots:
void SetEndTime(
const common::Time &_time);
175 public slots:
void DrawTimeline();
182 protected:
void mousePressEvent(QMouseEvent *_event);
185 protected:
void mouseReleaseEvent(QMouseEvent *_event);
188 protected:
void mouseMoveEvent(QMouseEvent *_event);
192 private: LogPlayViewPrivate *dataPtr;
198 public QGraphicsRectItem
206 private:
virtual void paint(QPainter *_painter,
207 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
Item which represents the current time within the view.
Definition: LogPlayWidget.hh:197
View for the timeline.
Definition: LogPlayWidget.hh:154
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44