Class
List
Modules
Common
Events
Math
Messages
Physics
Rendering
Sensors
Transport
Links
Gazebo Website
Tutorials
Download
Report Documentation Issues
gazebo
gui
building
BuildingEditor.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012-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
#ifndef _BUILDING_EDITOR_HH_
18
#define _BUILDING_EDITOR_HH_
19
20
#include "
gazebo/gui/qt.h
"
21
#include "
gazebo/gui/Editor.hh
"
22
#include "
gazebo/util/system.hh
"
23
24
namespace
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
:
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
system.hh
gazebo::gui::BuildingEditorPalette
A palette of building items which can be added to the editor.
Definition:
BuildingEditorPalette.hh:38
Editor.hh
qt.h
gazebo::gui::BuildingEditor
Definition:
BuildingEditor.hh:33
gazebo::gui::MainWindow
Definition:
MainWindow.hh:43
gazebo::gui::Editor
Base class for editors, such as BuildingEditor and TerrainEditor.
Definition:
Editor.hh:35
gazebo::gui::BuildingEditorWidget
The parent widget of the building editor, level widget and scale widget.
Definition:
BuildingEditorWidget.hh:40