LevelInspectorDialog.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 _LEVEL_INSPECTOR_DIALOG_HH_
19 #define _LEVEL_INSPECTOR_DIALOG_HH_
20 
21 #include <string>
22 #include <vector>
23 #include "gazebo/gui/qt.h"
24 #include "gazebo/util/system.hh"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
32 
35  class GAZEBO_VISIBLE LevelInspectorDialog : public QDialog
36  {
37  Q_OBJECT
38 
41  public: LevelInspectorDialog(QWidget *_parent = 0);
42 
44  public: ~LevelInspectorDialog();
45 
48  public: std::string GetLevelName() const;
49 
52  public: double GetHeight() const;
53 
56  public: QColor GetFloorColor() const;
57 
60  public: QString GetFloorTexture() const;
61 
64  public: void SetLevelName(const std::string &_levelName);
65 
68  public: void SetHeight(double _height);
69 
72  public: void SetFloorColor(const QColor _color);
73 
76  public: void SetFloorTexture(const QString _texture);
77 
79  Q_SIGNALS: void Applied();
80 
82  private slots: void OnCancel();
83 
85  private slots: void OnApply();
86 
88  private slots: void OnOK();
89 
91  public: QWidget *floorWidget;
92 
94  private: QLineEdit *levelNameLineEdit;
95 
97  private: QDoubleSpinBox *heightSpinBox;
98 
100  private: QDoubleSpinBox *floorThicknessSpinBox;
101 
103  private: QComboBox *floorColorComboBox;
104 
106  private: std::vector<QColor> floorColorList;
107 
109  private: QComboBox *floorTextureComboBox;
110 
112  private: std::vector<QString> floorTextureList;
113  };
115  }
116 }
117 
118 #endif
Dialog for configuring a building level.
Definition: LevelInspectorDialog.hh:35
QWidget * floorWidget
Widget containing the floor specs.
Definition: LevelInspectorDialog.hh:91
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48