DataLogger.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-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_GUI_DATALOGGER_HH_
18 #define _GAZEBO_GUI_DATALOGGER_HH_
19 
20 #include <memory>
21 
22 #include "gazebo/msgs/msgs.hh"
23 #include "gazebo/gui/qt.h"
24 #include "gazebo/util/system.hh"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
30  class DataLoggerPrivate;
31 
34 
37  class GZ_GUI_VISIBLE DataLogger : public QDialog
38  {
39  Q_OBJECT
40 
43  public: DataLogger(QWidget *_parent = 0);
44 
46  public: virtual ~DataLogger();
47 
50  signals: void SetTime(QString _string);
51 
54  signals: void SetSize(QString _string);
55 
58  signals: void SetDestinationPath(QString _string);
59 
62  signals: void SetDestinationURI(QString _string);
63 
66  private slots: void OnRecord(bool _toggle);
67 
70  private slots: void OnSetDestinationPath(QString _string);
71 
74  private slots: void OnSetDestinationURI(QString _string);
75 
77  private slots: void OnBrowse();
78 
82  private slots: void OnToggleSettings(bool _checked);
83 
85  private slots: void OnBlinkStatus();
86 
88  private slots: void OnConfirmationTimeout();
89 
91  private slots: void OnCancel();
92 
95  private: void OnStatus(ConstLogStatusPtr &_msg);
96 
99  private: std::unique_ptr<DataLoggerPrivate> dataPtr;
100  };
102  }
103 }
104 #endif
A widget that provides data logging functionality.
Definition: DataLogger.hh:37
#define GZ_GUI_VISIBLE
Definition: system.hh:284