All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DataLogger.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 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 _DATALOGGER_HH_
18 #define _DATALOGGER_HH_
19 
21 #include "gazebo/msgs/msgs.hh"
22 #include "gazebo/gui/qt.h"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
31 
34  class GAZEBO_VISIBLE DataLogger : public QDialog
35  {
36  Q_OBJECT
37 
40  public: DataLogger(QWidget *_parent = 0);
41 
43  public: virtual ~DataLogger();
44 
47  signals: void SetTime(QString _string);
48 
51  signals: void SetSize(QString _string);
52 
55  signals: void SetFilename(QString _string);
56 
59  signals: void SetDestinationPath(QString _string);
60 
63  signals: void SetDestinationURI(QString _string);
64 
67  private slots: void OnRecord(bool _toggle);
68 
71  private slots: void OnSetDestinationPath(QString _string);
72 
75  private slots: void OnSetDestinationURI(QString _string);
76 
78  private slots: void OnBrowse();
79 
83  private slots: void OnToggleSettings(bool _checked);
84 
87  private: void OnStatus(ConstLogStatusPtr &_msg);
88 
90  private: transport::NodePtr node;
91 
93  private: transport::PublisherPtr pub;
94 
96  private: transport::SubscriberPtr sub;
97 
99  private: QToolButton *recordButton;
100 
102  private: QPushButton *settingExpandButton;
103 
105  private: QToolButton *stopButton;
106 
108  private: QLabel *timeLabel;
109 
111  private: QLineEdit *destPath;
112 
114  private: QLineEdit *destURI;
115 
117  private: QLabel *sizeLabel;
118 
120  private: QLabel *statusLabel;
121 
123  private: QLineEdit *filenameEdit;
124 
126  private: QFrame *settingsFrame;
127 
129  private: QPushButton *browseButton;
130 
131  // private: QListWidget *logList;
132  private: QTextBrowser *logList;
133  };
135  }
136 }
137 #endif
A widget that provides data logging functionality.
Definition: DataLogger.hh:34
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:48
Forward declarations for transport.
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:52
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:44
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48