WindowDoorInspectorDialog.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 _WINDOW_DOOR_INSPECTOR_DIALOG_HH_
19 #define _WINDOW_DOOR_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  {
30  {
31  Q_OBJECT
32 
34  public: enum mode {WINDOW, DOOR};
35 
39  public: WindowDoorInspectorDialog(int _mode = WINDOW,
40  QWidget *_parent = 0);
41 
43  public: ~WindowDoorInspectorDialog();
44 
47  public: double GetWidth() const;
48 
51  public: double GetHeight() const;
52 
55  public: double GetDepth() const;
56 
59  public: QPointF GetPosition() const;
60 
63  public: double GetElevation() const;
64 
67  public: std::string GetType() const;
68 
71  public: void SetName(const std::string &_name);
72 
75  public: void SetWidth(double _width);
76 
79  public: void SetHeight(double _height);
80 
83  public: void SetDepth(double _depth);
84 
87  public: void SetPosition(const QPointF &_pos);
88 
91  public: void SetElevation(double _elevation);
92 
95  public: void SetType(const std::string &_type);
96 
98  Q_SIGNALS: void Applied();
99 
101  private slots: void OnCancel();
102 
104  private slots: void OnApply();
105 
107  private slots: void OnOK();
108 
110  private: QLabel* itemNameLabel;
111 
113  private: QDoubleSpinBox *widthSpinBox;
114 
116  private: QDoubleSpinBox *depthSpinBox;
117 
119  private: QDoubleSpinBox *heightSpinBox;
120 
122  private: QDoubleSpinBox *positionXSpinBox;
123 
125  private: QDoubleSpinBox *positionYSpinBox;
126 
128  private: QDoubleSpinBox *elevationSpinBox;
129 
131  private: QComboBox *typeComboBox;
132  };
134  }
135 }
136 
137 #endif
Definition: WindowDoorInspectorDialog.hh:29
mode
Dialog modes.
Definition: WindowDoorInspectorDialog.hh:34
Definition: WindowDoorInspectorDialog.hh:34
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48