17 #ifndef _GUI_TIMER_PLUGIN_HH_
18 #define _GUI_TIMER_PLUGIN_HH_
22 #include <boost/thread/mutex.hpp>
28 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
29 # include <gazebo/transport/transport.hh>
30 # include <gazebo/gui/gui.hh>
64 public:
void Load(sdf::ElementPtr _elem);
72 signals:
void SetTime(QString _string);
76 signals:
void SetStartStopButton(QString _state);
81 private:
void OnTimerCtrl(ConstGzStringPtr &_msg);
84 private:
void Start();
90 private:
void Reset();
93 private slots:
void OnStartStopButton();
97 private slots:
void OnSetStartStopButton(QString _state);
100 private slots:
void OnResetButton();
103 private:
void PreRender();
109 private:
bool eventFilter(QObject *_obj, QEvent *_event);
121 private: std::vector<event::ConnectionPtr> connections;
124 private: boost::mutex timerMutex;
127 private: QPushButton *startStopButton;
130 private: std::string startStyle;
133 private: std::string stopStyle;
136 private: QPushButton *resetButton;
A plugin loaded within the gzclient on startup.
Definition: GuiPlugin.hh:26
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
A GUI plugin that displays a timer.
Definition: TimerGUIPlugin.hh:53
A timer class, used to time things in real world walltime.
Definition: Timer.hh:38
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44