##

BuildingEditor.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_BUILDING_BUILDINGEDITOR_HH_
#define GAZEBO_GUI_BUILDING_BUILDINGEDITOR_HH_
#include "gazebo/gui/qt.h"
#include "gazebo/gui/Editor.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class BuildingEditorPalette;
class BuildingEditorWidget;
class GZ_GUI_VISIBLE BuildingEditor : public Editor
{
Q_OBJECT
public: explicit BuildingEditor(MainWindow *_mainWindow);
public: virtual ~BuildingEditor();
private slots: void Save();
private slots: void SaveAs();
private slots: void New();
private slots: void Exit();
private: void OnFinish();
private slots: void OnEdit(bool _checked);
private: BuildingEditorPalette *buildingPalette;
private: BuildingEditorWidget *buildingEditorWidget;
private: void CreateMenus();
private: bool eventFilter(QObject *_obj, QEvent *_event);
private: QMenuBar *menuBar;
private: QAction *saveAct;
private: QAction *saveAsAct;
private: QAction *newAct;
private: QAction *exitAct;
private: bool mainWindowPaused;
private: QLabel *tipsLabel;
};
}
}
#endif
gazebo::gui::BuildingEditorPalette
A palette of building items which can be added to the editor.
Definition: BuildingEditorPalette.hh:37
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::BuildingEditorWidget
The parent widget of the building editor, level widget and scale widget.
Definition: BuildingEditorWidget.hh:39
system.hh
gazebo::gui::Editor
Base class for editors, such as BuildingEditor and TerrainEditor.
Definition: Editor.hh:35
gazebo::gui::BuildingEditor::BuildingEditor
BuildingEditor(MainWindow *_mainWindow)
Constuctor.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::MainWindow
Definition: MainWindow.hh:43
gazebo::gui::BuildingEditor
Definition: BuildingEditor.hh:33
gazebo::gui::BuildingEditor::~BuildingEditor
virtual ~BuildingEditor()
Destuctor.
Editor.hh