LogPlayWidgetPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_LOG_PLAY_WIDGET_PRIVATE_HH_
18 #define _GAZEBO_LOG_PLAY_WIDGET_PRIVATE_HH_
19 
20 #include "gazebo/gui/qt.h"
21 
22 namespace gazebo
23 {
24  namespace gui
25  {
29  {
31  public: bool paused;
32 
34  public: TimePanel *timePanel;
35 
38 
41 
44 
46  public: bool lessThan1h;
47 
49  public: LogPlayView *view;
50 
53 
56 
58  public: QSpinBox *stepSpin;
59 
61  public: QToolButton *playButton;
62 
64  public: QToolButton *pauseButton;
65 
67  public: QToolButton *stepBackButton;
68 
70  public: QToolButton *stepForwardButton;
71 
73  public: QToolButton *rewindButton;
74 
76  public: QToolButton *forwardButton;
77 
79  public: QLineEdit *currentDayEdit;
80 
82  public: QLineEdit *currentHourEdit;
83 
85  public: QLineEdit *currentMinuteEdit;
86 
88  public: QLineEdit *currentSecondEdit;
89 
91  public: QLabel *dayLabel;
92 
94  public: QLabel *hourLabel;
95 
97  public: QLabel *hourSeparator;
98 
101  public: int pendingStep = 0;
102  };
103 
107  {
110 
113 
116 
118  public: bool startTimeSet;
119 
121  public: bool endTimeSet;
122 
124  public: int sceneWidth;
125 
127  public: int sceneHeight;
128 
130  public: int margin;
131 
133  public: bool timelineDrawn = false;
134  };
135  }
136 }
137 #endif
bool timelineDrawn
Whether the timeline has already been drawn.
Definition: LogPlayWidgetPrivate.hh:133
bool endTimeSet
Log end time has been set or not.
Definition: LogPlayWidgetPrivate.hh:121
Definition: LogPlayWidgetPrivate.hh:28
transport::NodePtr node
Node used for communication.
Definition: LogPlayWidgetPrivate.hh:52
QLineEdit * currentSecondEdit
Widget to edit the current second.
Definition: LogPlayWidgetPrivate.hh:88
int margin
Margin from the ends.
Definition: LogPlayWidgetPrivate.hh:130
bool paused
Paused state of the simulation.
Definition: LogPlayWidgetPrivate.hh:31
QToolButton * pauseButton
Button to pause.
Definition: LogPlayWidgetPrivate.hh:64
int sceneWidth
Width of this view's scene.
Definition: LogPlayWidgetPrivate.hh:124
common::Time startTime
Start time in milliseconds.
Definition: LogPlayWidgetPrivate.hh:112
QToolButton * playButton
Button to play.
Definition: LogPlayWidgetPrivate.hh:61
QToolButton * forwardButton
Button to jump forward.
Definition: LogPlayWidgetPrivate.hh:76
common::Time endTime
Log end time.
Definition: LogPlayWidgetPrivate.hh:40
Definition: TimePanel.hh:44
int pendingStep
Number of steps pending to be published once the simulation is paused.
Definition: LogPlayWidgetPrivate.hh:101
transport::PublisherPtr logPlaybackControlPub
Used to start, stop, and step simulation.
Definition: LogPlayWidgetPrivate.hh:55
common::Time currentTime
Log current time.
Definition: LogPlayWidgetPrivate.hh:43
Private data for the LogPlayView class.
Definition: LogPlayWidgetPrivate.hh:106
QLineEdit * currentHourEdit
Widget to edit the current hour.
Definition: LogPlayWidgetPrivate.hh:82
bool startTimeSet
Log start time has been set or not.
Definition: LogPlayWidgetPrivate.hh:118
QLabel * hourLabel
Label for the hour unit.
Definition: LogPlayWidgetPrivate.hh:94
QToolButton * stepBackButton
Button to step back.
Definition: LogPlayWidgetPrivate.hh:67
common::Time endTime
End time in milliseconds.
Definition: LogPlayWidgetPrivate.hh:115
QLabel * hourSeparator
Label for the hour separator.
Definition: LogPlayWidgetPrivate.hh:97
CurrentTimeItem * currentTimeItem
Item which indicates the current time.
Definition: LogPlayWidgetPrivate.hh:109
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
QSpinBox * stepSpin
Spin box which holds the step size.
Definition: LogPlayWidgetPrivate.hh:58
QLineEdit * currentDayEdit
Widget to edit the current day.
Definition: LogPlayWidgetPrivate.hh:79
QLineEdit * currentMinuteEdit
Widget to edit the current minute.
Definition: LogPlayWidgetPrivate.hh:85
bool lessThan1h
If log is less than 1 hour long.
Definition: LogPlayWidgetPrivate.hh:46
QToolButton * stepForwardButton
Button to step forward.
Definition: LogPlayWidgetPrivate.hh:70
QLabel * dayLabel
Label for the day unit.
Definition: LogPlayWidgetPrivate.hh:91
TimePanel * timePanel
Paused state of the simulation.
Definition: LogPlayWidgetPrivate.hh:34
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Item which represents the current time within the view.
Definition: LogPlayWidget.hh:197
int sceneHeight
Height of this view's scene.
Definition: LogPlayWidgetPrivate.hh:127
View for the timeline.
Definition: LogPlayWidget.hh:154
QToolButton * rewindButton
Button to rewind.
Definition: LogPlayWidgetPrivate.hh:73
LogPlayView * view
View which containes the timeline.
Definition: LogPlayWidgetPrivate.hh:49
common::Time startTime
Log start time.
Definition: LogPlayWidgetPrivate.hh:37
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44