##

LevelWidget.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_BUILDINGLEVELWIDGET_HH_
#define GAZEBO_GUI_BUILDING_BUILDINGLEVELWIDGET_HH_
#include <memory>
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
// Forward declare private data.
class LevelWidgetPrivate;
class GZ_GUI_VISIBLE LevelWidget : public QWidget
{
Q_OBJECT
public: explicit LevelWidget(QWidget *_parent = 0);
public: ~LevelWidget();
public slots: void OnCurrentLevelChanged(int _level);
public slots: void OnAddLevel();
public slots: void OnDeleteLevel();
public slots: void OnShowFloorplan();
public slots: void OnTriggerShowFloorplan();
public slots: void OnShowElements();
public slots: void OnTriggerShowElements();
private: void OnUpdateLevelWidget(int _level,
const std::string &_newName);
private: void OnDiscard();
private: std::unique_ptr<LevelWidgetPrivate> dataPtr;
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::LevelWidget::OnShowFloorplan
void OnShowFloorplan()
Qt callback when the show floorplan button has been pressed.
gazebo::gui::LevelWidget
A widget for adding and changing building levels.
Definition: LevelWidget.hh:39
gazebo::gui::LevelWidget::OnDeleteLevel
void OnDeleteLevel()
Qt callback when the delete level button has been pressed.
system.hh
gazebo::gui::LevelWidget::OnCurrentLevelChanged
void OnCurrentLevelChanged(int _level)
Qt callback when the selection of the level combo box has been changed.
gazebo::gui::LevelWidget::LevelWidget
LevelWidget(QWidget *_parent=0)
Constructor.
gazebo::gui::LevelWidget::OnTriggerShowElements
void OnTriggerShowElements()
Trigger show elements.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::LevelWidget::OnShowElements
void OnShowElements()
Qt callback when the show elements button has been pressed.
gazebo::gui::LevelWidget::OnAddLevel
void OnAddLevel()
Qt callback when the add level button has been pressed.
gazebo::gui::LevelWidget::OnTriggerShowFloorplan
void OnTriggerShowFloorplan()
Trigger show floorplan.
gazebo::gui::LevelWidget::~LevelWidget
~LevelWidget()
Destructor.