LevelInspectorDialog.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 _LEVEL_INSPECTOR_DIALOG_HH_
19 #define _LEVEL_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: LevelInspectorDialog(QWidget *_parent = 0);
44 
46  public: ~LevelInspectorDialog();
47 
50  public: std::string GetLevelName() const;
51 
54  public: double GetHeight() const;
55 
58  public: void SetLevelName(const std::string &_levelName);
59 
62  public: void SetHeight(double _height);
63 
65  Q_SIGNALS: void Applied();
66 
68  private slots: void OnCancel();
69 
71  private slots: void OnApply();
72 
74  private slots: void OnOK();
75 
77  public: QWidget *floorWidget;
78 
80  private: QLineEdit *levelNameLineEdit;
81 
83  private: QDoubleSpinBox *heightSpinBox;
84 
86  private: QDoubleSpinBox *floorThicknessSpinBox;
87  };
89  }
90 }
91 
92 #endif
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:35
Dialog for configuring a building level.
Definition: LevelInspectorDialog.hh:36
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393
QWidget * floorWidget
Widget containing the floor specs.
Definition: LevelInspectorDialog.hh:77