##

ExportDialog.hh
Go to the documentation of this file.
/*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_PLOT_EXPORTDIALOG_HH_
#define GAZEBO_GUI_PLOT_EXPORTDIALOG_HH_
#include <list>
#include <memory>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class PlotCanvas;
enum FileType
{
CSVFile,
PDFFile
};
// Forward declare private data class
class ExportDialogPrivate;
class GZ_GUI_VISIBLE ExportDialog : public QDialog
{
Q_OBJECT
public: ExportDialog(QWidget *_parent,
const std::list<PlotCanvas *> &_plots);
public: ~ExportDialog();
private slots: void OnCancel();
private slots: void OnExportCSV();
private slots: void OnExportPDF();
private slots: void OnSelected();
private: void OnExport(FileType _type);
private: std::unique_ptr<ExportDialogPrivate> dataPtr;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
system.hh
gazebo::gui::FileType
FileType
Supported file types.
Definition: ExportDialog.hh:34
gazebo::gui::PDFFile
Portable document format (PDF)
Definition: ExportDialog.hh:40
gazebo::gui::ExportDialog
Dialog for saving to file.
Definition: ExportDialog.hh:51
gazebo::gui::ExportDialog::ExportDialog
ExportDialog(QWidget *_parent, const std::list< PlotCanvas * > &_plots)
Constructor.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::CSVFile
Comma separated value (CSV)
Definition: ExportDialog.hh:37
gazebo::gui::ExportDialog::~ExportDialog
~ExportDialog()
Destructor.