ExportDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 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_PLOT_EXPORTDIALOG_HH_
18 #define GAZEBO_GUI_PLOT_EXPORTDIALOG_HH_
19 
20 #include <list>
21 #include <memory>
22 
23 #include "gazebo/gui/qt.h"
24 
25 #include "gazebo/util/system.hh"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
31  class PlotCanvas;
32 
34  enum FileType
35  {
38 
41  };
42 
43  // Forward declare private data class
44  class ExportDialogPrivate;
45 
48 
51  class GZ_GUI_VISIBLE ExportDialog : public QDialog
52  {
53  Q_OBJECT
54 
58  public: ExportDialog(QWidget *_parent,
59  const std::list<PlotCanvas *> &_plots);
60 
62  public: ~ExportDialog();
63 
65  private slots: void OnCancel();
66 
68  private slots: void OnExportCSV();
69 
71  private slots: void OnExportPDF();
72 
74  private slots: void OnSelected();
75 
78  private: void OnExport(FileType _type);
79 
82  private: std::unique_ptr<ExportDialogPrivate> dataPtr;
83  };
85  }
86 }
87 
88 #endif
Forward declarations for the common classes.
Definition: Animation.hh:33
Portable document format (PDF)
Definition: ExportDialog.hh:40
Dialog for saving to file.
Definition: ExportDialog.hh:51
FileType
Supported file types.
Definition: ExportDialog.hh:34
Comma separated value (CSV)
Definition: ExportDialog.hh:37