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"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
31  : public BaseInspectorDialog
32  {
33  Q_OBJECT
34 
36  public: enum mode {WINDOW, DOOR};
37 
41  public: WindowDoorInspectorDialog(int _mode = WINDOW,
42  QWidget *_parent = 0);
43 
45  public: ~WindowDoorInspectorDialog();
46 
49  public: double GetWidth() const;
50 
53  public: double GetHeight() const;
54 
57  public: double GetDepth() const;
58 
61  public: QPointF GetPosition() const;
62 
65  public: double GetElevation() const;
66 
69  public: std::string GetType() const;
70 
73  public: void SetName(const std::string &_name);
74 
77  public: void SetWidth(double _width);
78 
81  public: void SetHeight(double _height);
82 
85  public: void SetDepth(double _depth);
86 
89  public: void SetPosition(const QPointF &_pos);
90 
93  public: void SetElevation(double _elevation);
94 
97  public: void SetType(const std::string &_type);
98 
100  Q_SIGNALS: void Applied();
101 
103  private slots: void OnCancel();
104 
106  private slots: void OnApply();
107 
109  private slots: void OnOK();
110 
112  private: QLabel* itemNameLabel;
113 
115  private: QDoubleSpinBox *widthSpinBox;
116 
118  private: QDoubleSpinBox *depthSpinBox;
119 
121  private: QDoubleSpinBox *heightSpinBox;
122 
124  private: QDoubleSpinBox *positionXSpinBox;
125 
127  private: QDoubleSpinBox *positionYSpinBox;
128 
130  private: QDoubleSpinBox *elevationSpinBox;
131 
133  private: QComboBox *typeComboBox;
134  };
136  }
137 }
138 
139 #endif
Definition: WindowDoorInspectorDialog.hh:30
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:35
mode
Dialog modes.
Definition: WindowDoorInspectorDialog.hh:36
Definition: WindowDoorInspectorDialog.hh:36
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393