BuildingEditorWidget.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-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 
18 #ifndef _BUILDING_EDITOR_WIDGET_HH_
19 #define _BUILDING_EDITOR_WIDGET_HH_
20 
21 #include "gazebo/gui/qt.h"
22 #include "gazebo/util/system.hh"
23 
24 namespace gazebo
25 {
26  namespace gui
27  {
28  class LevelWidget;
29  class ScaleWidget;
30 
33 
37  class GAZEBO_VISIBLE BuildingEditorWidget : public QWidget
38  {
41  public: BuildingEditorWidget(QWidget *_parent = 0);
42 
44  public: ~BuildingEditorWidget();
45 
48  private: void resizeEvent(QResizeEvent *_event);
49 
51  public: static QCursor rotateCursor;
52 
54  private: LevelWidget *levelWidget;
55 
57  private: ScaleWidget *scaleWidget;
58 
60  private: QGraphicsScene *scene;
61 
63  private: int minimumWidth;
64 
66  private: int minimumHeight;
67  };
69  }
70 }
71 
72 #endif
Widget that displays the scale (zoom level) of the editor.
Definition: ScaleWidget.hh:36
static QCursor rotateCursor
Custom rotation cursor.
Definition: BuildingEditorWidget.hh:51
Definition: LevelWidget.hh:36
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
The parent widget of the building editor, level widget and scale widget.
Definition: BuildingEditorWidget.hh:37