StairsInspectorDialog.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 _STAIRS_INSPECTOR_DIALOG_HH_
19 #define _STAIRS_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 StairsInspectorDialog : public QDialog
36  {
37  Q_OBJECT
38 
41  public: StairsInspectorDialog(QWidget *_parent = 0);
42 
44  public: ~StairsInspectorDialog();
45 
48  public: QPointF GetStartPosition() const;
49 
52  public: double GetWidth() const;
53 
56  public: double GetDepth() const;
57 
60  public: double GetHeight() const;
61 
64  public: int GetSteps() const;
65 
68  public: QColor GetColor() const;
69 
72  public: QString GetTexture() const;
73 
76  public: void SetName(const std::string &_name);
77 
80  public: void SetStartPosition(const QPointF &_pos);
81 
84  public: void SetWidth(double _width);
85 
88  public: void SetDepth(double _depth);
89 
92  public: void SetHeight(double _height);
93 
96  public: void SetSteps(int _steps);
97 
100  public: void SetColor(const QColor _color);
101 
104  public: void SetTexture(const QString _texture);
105 
107  Q_SIGNALS: void Applied();
108 
110  private slots: void OnCancel();
111 
113  private slots: void OnApply();
114 
116  private slots: void OnOK();
117 
120  private: QDoubleSpinBox *startXSpinBox;
121 
124  private: QDoubleSpinBox *startYSpinBox;
125 
127  private: QDoubleSpinBox *widthSpinBox;
128 
130  private: QDoubleSpinBox *depthSpinBox;
131 
133  private: QDoubleSpinBox *heightSpinBox;
134 
136  private: QSpinBox *stepsSpinBox;
137 
139  private: QLabel* stairsNameLabel;
140 
142  private: QComboBox *colorComboBox;
143 
145  private: std::vector<QColor> colorList;
146 
148  private: QComboBox *textureComboBox;
149 
151  private: std::vector<QString> textureList;
152  };
154  }
155 }
156 
157 #endif
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:35
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48