BuildingEditorPalette.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 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 
18 #ifndef _BUILDING_EDITOR_PALETTE_HH_
19 #define _BUILDING_EDITOR_PALETTE_HH_
20 
21 #include <string>
22 
23 #include "gazebo/gui/qt.h"
24 #include "gazebo/util/system.hh"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
31  class BuildingEditorPalettePrivate;
32 
35 
38  class GAZEBO_VISIBLE BuildingEditorPalette : public QWidget
39  {
40  Q_OBJECT
41 
44  public: BuildingEditorPalette(QWidget *_parent = 0);
45 
47  public: ~BuildingEditorPalette();
48 
51  public: std::string GetModelName() const;
52 
54  private slots: void OnDrawWall();
55 
57  private slots: void OnAddWindow();
58 
60  private slots: void OnAddDoor();
61 
63  private slots: void OnImportImage();
64 
66  private slots: void OnAddStair();
67 
70  private slots: void OnBrush(int _buttonId);
71 
74  private slots: void OnColor(int _buttonId);
75 
78  private slots: void OnTexture(int _buttonId);
79 
81  private slots: void OnNameChanged(const QString &_name);
82 
87  private: void OnSaveModel(const std::string &_saveName,
88  const std::string &_saveLocation);
89 
92  private: void OnCreateEditorItem(const std::string &_mode);
93 
95  private: void OnNewModel();
96 
99  private: void mousePressEvent(QMouseEvent *_event);
100 
103  private: BuildingEditorPalettePrivate *dataPtr;
104  };
106  }
107 }
108 
109 #endif
A palette of building items which can be added to the editor.
Definition: BuildingEditorPalette.hh:38
Definition: BuildingEditorPalettePrivate.hh:32
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48