All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
StairsInspectorDialog.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 _STAIRS_INSPECTOR_DIALOG_HH_
19 #define _STAIRS_INSPECTOR_DIALOG_HH_
20 
21 #include <string>
22 #include "gazebo/gui/qt.h"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
31 
34  class GAZEBO_VISIBLE StairsInspectorDialog : public QDialog
35  {
36  Q_OBJECT
37 
40  public: StairsInspectorDialog(QWidget *_parent = 0);
41 
43  public: ~StairsInspectorDialog();
44 
47  public: QPointF GetStartPosition() const;
48 
51  public: double GetWidth() const;
52 
55  public: double GetDepth() const;
56 
59  public: double GetHeight() const;
60 
63  public: int GetSteps() const;
64 
67  public: void SetName(const std::string &_name);
68 
71  public: void SetStartPosition(const QPointF &_pos);
72 
75  public: void SetWidth(double _width);
76 
79  public: void SetDepth(double _depth);
80 
83  public: void SetHeight(double _height);
84 
87  public: void SetSteps(int _steps);
88 
90  Q_SIGNALS: void Applied();
91 
93  private slots: void OnCancel();
94 
96  private slots: void OnApply();
97 
99  private slots: void OnOK();
100 
103  private: QDoubleSpinBox *startXSpinBox;
104 
107  private: QDoubleSpinBox *startYSpinBox;
108 
110  private: QDoubleSpinBox *widthSpinBox;
111 
113  private: QDoubleSpinBox *depthSpinBox;
114 
116  private: QDoubleSpinBox *heightSpinBox;
117 
119  private: QSpinBox *stepsSpinBox;
120 
122  private: QLabel* stairsNameLabel;
123  };
125  }
126 }
127 
128 #endif
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:34
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48