BuildingEditorPalettePrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 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_PRIVATE_HH_
19 #define _BUILDING_EDITOR_PALETTE_PRIVATE_HH_
20 
21 #include <vector>
22 #include <string>
23 #include <map>
24 #include "gazebo/common/Events.hh"
25 #include "gazebo/gui/qt.h"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
34  {
36  public: QColorDialog *customColorDialog;
37 
39  public: QPushButton *customColorButton;
40 
42  public: std::map<std::string, int> brushIdToModeMap;
43 
45  public: std::string lastDefaultTexture;
46 
48  public: std::string lastDefaultColor;
49 
51  public: std::string buildingDefaultName;
52 
54  public: QLineEdit *modelNameEdit;
55 
57  public: QButtonGroup *brushes;
58 
60  public: std::vector<event::ConnectionPtr> connections;
61 
63  public: std::string currentMode;
64 
66  public: std::vector<QColor> colorList;
67 
69  public: std::vector<QString> textureList;
70  };
71  }
72 }
73 
74 #endif
std::vector< QString > textureList
List of default textures to be picked.
Definition: BuildingEditorPalettePrivate.hh:69
std::string currentMode
The current draw mode, empty for none.
Definition: BuildingEditorPalettePrivate.hh:63
std::string lastDefaultColor
Name of the last default color mode.
Definition: BuildingEditorPalettePrivate.hh:48
QLineEdit * modelNameEdit
Edit the name of the building model.
Definition: BuildingEditorPalettePrivate.hh:54
std::vector< QColor > colorList
List of default colors to be picked.
Definition: BuildingEditorPalettePrivate.hh:66
QPushButton * customColorButton
Custom color button.
Definition: BuildingEditorPalettePrivate.hh:39
std::vector< event::ConnectionPtr > connections
A list of gui editor events connected to this palette.
Definition: BuildingEditorPalettePrivate.hh:60
std::string buildingDefaultName
Default name of the building model.
Definition: BuildingEditorPalettePrivate.hh:51
QButtonGroup * brushes
All the brushes (wall, door, window, stair, etc).
Definition: BuildingEditorPalettePrivate.hh:57
Definition: BuildingEditorPalettePrivate.hh:33
std::map< std::string, int > brushIdToModeMap
Link each button ID to a draw mode.
Definition: BuildingEditorPalettePrivate.hh:42
QColorDialog * customColorDialog
Custom color dialog.
Definition: BuildingEditorPalettePrivate.hh:36
std::string lastDefaultTexture
Name of the last default texture mode.
Definition: BuildingEditorPalettePrivate.hh:45