ImportImageDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2015 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 _IMPORT_IMAGE_DIALOG_HH_
18 #define _IMPORT_IMAGE_DIALOG_HH_
19 
20 #include "gazebo/gui/qt.h"
21 #include "gazebo/util/system.hh"
22 
23 namespace gazebo
24 {
25  namespace gui
26  {
27  class EditorView;
28  class ImportImageView;
29 
32 
33  class GAZEBO_VISIBLE ImportImageDialog : public QDialog
34  {
35  Q_OBJECT
36 
39  public: ImportImageDialog(QWidget *_parent = 0);
40 
42  public: virtual ~ImportImageDialog();
43 
46  signals: void SetFileName(QString _string);
47 
49  private slots: void OnSelectFile();
50 
52  private slots: void OnAccept();
53 
55  private slots: void OnReject();
56 
58  private slots: void OnNext();
59 
61  private slots: void OnBack();
62 
64  private slots: void OnChangeDistance(double _distance);
65 
67  private slots: void OnChangeResolution(double _resolution);
68 
70  public: QDoubleSpinBox *distanceSpin;
71 
73  public: QDoubleSpinBox *resolutionSpin;
74 
76  private: EditorView *view;
77 
79  private: QStackedLayout *stackedStepLayout;
80 
82  private: QPushButton *nextButton;
83 
85  private: QPushButton *okButton;
86 
88  private: QLineEdit *fileLineEdit;
89 
91  private: int imageDisplayWidth;
92 
94  private: int imageDisplayHeight;
95 
97  private: ImportImageView *importImageView;
98 
100  private: QPointF measureLineStart;
101 
103  private: bool drawingLine;
104  };
106  }
107 }
108 
109 #endif
QDoubleSpinBox * distanceSpin
Distance spin box.
Definition: ImportImageDialog.hh:70
QDoubleSpinBox * resolutionSpin
Resolution spin box.
Definition: ImportImageDialog.hh:73
Control the editor view and manage contents in the editor scene.
Definition: EditorView.hh:78
Control the import image view and manage contents in the scene.
Definition: ImportImageView.hh:42
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
Definition: ImportImageDialog.hh:33