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"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
33 
37  : public BaseInspectorDialog
38  {
39  Q_OBJECT
40 
43  public: StairsInspectorDialog(QWidget *_parent = 0);
44 
46  public: ~StairsInspectorDialog();
47 
50  public: QPointF GetStartPosition() const;
51 
54  public: double GetWidth() const;
55 
58  public: double GetDepth() const;
59 
62  public: double GetHeight() const;
63 
66  public: int GetSteps() const;
67 
70  public: void SetName(const std::string &_name);
71 
74  public: void SetStartPosition(const QPointF &_pos);
75 
78  public: void SetWidth(double _width);
79 
82  public: void SetDepth(double _depth);
83 
86  public: void SetHeight(double _height);
87 
90  public: void SetSteps(int _steps);
91 
93  Q_SIGNALS: void Applied();
94 
96  private slots: void OnCancel();
97 
99  private slots: void OnApply();
100 
102  private slots: void OnOK();
103 
106  private: QDoubleSpinBox *startXSpinBox;
107 
110  private: QDoubleSpinBox *startYSpinBox;
111 
113  private: QDoubleSpinBox *widthSpinBox;
114 
116  private: QDoubleSpinBox *depthSpinBox;
117 
119  private: QDoubleSpinBox *heightSpinBox;
120 
122  private: QSpinBox *stepsSpinBox;
123 
125  private: QLabel* stairsNameLabel;
126  };
128  }
129 }
130 
131 #endif
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:35
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:36
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393