##

BuildingEditorPalette.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_BUILDINGEDITORPALETTE_HH_
#define GAZEBO_GUI_BUILDING_BUILDINGEDITORPALETTE_HH_
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class BuildingEditorPalettePrivate;
class GZ_GUI_VISIBLE BuildingEditorPalette : public QWidget
{
Q_OBJECT
public: explicit BuildingEditorPalette(QWidget *_parent = 0);
public: ~BuildingEditorPalette();
public: std::string GetModelName() const;
public: QColorDialog *CustomColorDialog() const;
private slots: void OnBrush(int _buttonId);
private slots: void OnNameChanged(const QString &_name);
private slots: void OnCustomColor(const QColor _color);
private slots: void CancelDrawModes();
private: void OnSaveModel(const std::string &_saveName);
private: void OnCreateEditorItem(const std::string &_mode);
private: void OnNewModel();
private: void mousePressEvent(QMouseEvent *_event);
private: void OnDrawWall();
private: void OnAddWindow();
private: void OnAddDoor();
private: void OnAddStair();
private: void OnDefaultColor(int _colorId);
private: void OnCustomColorDialog();
private: void OnColor(QColor _color);
private: void OnTexture(int _textureId);
private: void OnImportImage();
private: BuildingEditorPalettePrivate *dataPtr;
};
}
}
#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::BuildingEditorPalette::BuildingEditorPalette
BuildingEditorPalette(QWidget *_parent=0)
Constructor.
system.hh
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::BuildingEditorPalette::CustomColorDialog
QColorDialog * CustomColorDialog() const
Get a pointer to the custom color dialog.
gazebo::gui::BuildingEditorPalette::GetModelName
std::string GetModelName() const
Get model name.
gazebo::gui::BuildingEditorPalette::~BuildingEditorPalette
~BuildingEditorPalette()
Destructor.