ImportImageDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-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 
18 #ifndef _GAZEBO_GUI_IMPORT_IMAGE_DIALOG_HH_
19 #define _GAZEBO_GUI_IMPORT_IMAGE_DIALOG_HH_
20 
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  // Forward declare private data.
32  class ImportImageDialogPrivate;
33  // Forward declare friend class.
34  class ImportImageView;
35 
38  class GZ_GUI_VISIBLE ImportImageDialog : public QDialog
39  {
40  friend class ImportImageView;
41 
42  Q_OBJECT
43 
46  public: ImportImageDialog(QWidget *_parent = 0);
47 
49  public: virtual ~ImportImageDialog();
50 
53  signals: void SetFileName(QString _string);
54 
56  private slots: void OnSelectFile();
57 
59  private slots: void OnAccept();
60 
62  private slots: void OnReject();
63 
65  private slots: void OnNext();
66 
68  private slots: void OnBack();
69 
71  private slots: void OnChangeDistance(double _distance);
72 
74  private slots: void OnChangeResolution(double _resolution);
75 
78  private: std::unique_ptr<ImportImageDialogPrivate> dataPtr;
79  };
81  }
82 }
83 
84 #endif
Forward declarations for the common classes.
Definition: Animation.hh:33
Control the import image view and manage contents in the scene.
Definition: ImportImageView.hh:42
Definition: ImportImageDialog.hh:38