All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LevelInspectorDialog.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 _LEVEL_INSPECTOR_DIALOG_HH_
19 #define _LEVEL_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 LevelInspectorDialog : public QDialog
35  {
36  Q_OBJECT
37 
40  public: LevelInspectorDialog(QWidget *_parent = 0);
41 
43  public: ~LevelInspectorDialog();
44 
47  public: std::string GetLevelName() const;
48 
51  public: double GetHeight() const;
52 
55  public: void SetLevelName(const std::string &_levelName);
56 
59  public: void SetHeight(double _height);
60 
62  Q_SIGNALS: void Applied();
63 
65  private slots: void OnCancel();
66 
68  private slots: void OnApply();
69 
71  private slots: void OnOK();
72 
74  private: QLineEdit *levelNameLineEdit;
75 
77  private: QDoubleSpinBox *heightSpinBox;
78 
80  private: QDoubleSpinBox *floorThicknessSpinBox;
81 
83  private: QComboBox *materialComboBox;
84  };
86  }
87 }
88 
89 #endif
Dialog for configuring a building level.
Definition: LevelInspectorDialog.hh:34
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48