BuildingEditor.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012 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_BUILDING_BUILDINGEDITOR_HH_
18#define GAZEBO_GUI_BUILDING_BUILDINGEDITOR_HH_
19
20#include "gazebo/gui/qt.h"
21#include "gazebo/gui/Editor.hh"
22#include "gazebo/util/system.hh"
23
24namespace gazebo
25{
26 namespace gui
27 {
28 class BuildingEditorPalette;
29 class BuildingEditorWidget;
30
33 class GZ_GUI_VISIBLE BuildingEditor : public Editor
34 {
35 Q_OBJECT
36
39 public: explicit BuildingEditor(MainWindow *_mainWindow);
40
42 public: virtual ~BuildingEditor();
43
46 private slots: void Save();
47
50 private slots: void SaveAs();
51
54 private slots: void New();
55
58 private slots: void Exit();
59
62 private: void OnFinish();
63
66 private slots: void OnEdit(bool _checked);
67
69 private: BuildingEditorPalette *buildingPalette;
70
72 private: BuildingEditorWidget *buildingEditorWidget;
73
75 private: void CreateMenus();
76
81 private: bool eventFilter(QObject *_obj, QEvent *_event);
82
84 private: QMenuBar *menuBar;
85
87 private: QAction *saveAct;
88
90 private: QAction *saveAsAct;
91
93 private: QAction *newAct;
94
96 private: QAction *exitAct;
97
99 private: bool mainWindowPaused;
100
102 private: QLabel *tipsLabel;
103 };
104 }
105}
106#endif
gui
Definition KeyEventHandler.hh:29
A palette of building items which can be added to the editor.
Definition BuildingEditorPalette.hh:38
The parent widget of the building editor, level widget and scale widget.
Definition BuildingEditorWidget.hh:40
Definition BuildingEditor.hh:34
virtual ~BuildingEditor()
Destuctor.
BuildingEditor(MainWindow *_mainWindow)
Constuctor.
Base class for editors, such as BuildingEditor and TerrainEditor.
Definition Editor.hh:36
Definition MainWindow.hh:44
Forward declarations for the common classes.
Definition Animation.hh:27