All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BuildingEditorPalette.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 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 #include <vector>
23 #include <list>
24 
25 #include "gazebo/gui/qt.h"
26 #include "gazebo/common/Events.hh"
27 #include "gazebo/util/system.hh"
28 
29 namespace gazebo
30 {
31  namespace gui
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 
50  private slots: void OnDrawWall();
51 
52  // private slots: void OnImportImage();
53 
55  private slots: void OnAddWindow();
56 
58  private slots: void OnAddDoor();
59 
61  private slots: void OnAddStair();
62 
64  private slots: void OnDiscard();
65 
67  private slots: void OnSave();
68 
70  private slots: void OnDone();
71 
76  private: void OnSaveModel(const std::string &_saveName,
77  const std::string &_saveLocation);
78 
81  private: void OnCreateEditorItem(const std::string &_type);
82 
84  private: void OnDiscardModel();
85 
87  private: QLabel *modelNameLabel;
88 
90  private: QPushButton *saveButton;
91 
93  private: std::list<QPushButton *> brushes;
94 
96  private: std::string modelName;
97 
99  private: std::string saveLocation;
100 
102  private: std::vector<event::ConnectionPtr> connections;
103  };
105  }
106 }
107 
108 #endif
A palette of building items which can be added to the editor.
Definition: BuildingEditorPalette.hh:38
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48