LevelWidget.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2016 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 _GAZEBO_GUI_LEVEL_WIDGET_HH_
19 #define _GAZEBO_GUI_LEVEL_WIDGET_HH_
20 
21 #include <memory>
22 #include <string>
23 
24 #include "gazebo/gui/qt.h"
25 
26 #include "gazebo/util/system.hh"
27 
28 namespace gazebo
29 {
30  namespace gui
31  {
32  // Forward declare private data.
33  class LevelWidgetPrivate;
34 
37 
40  class GZ_GUI_VISIBLE LevelWidget : public QWidget
41  {
42  Q_OBJECT
43 
46  public: LevelWidget(QWidget *_parent = 0);
47 
49  public: ~LevelWidget();
50 
54  public slots: void OnCurrentLevelChanged(int _level);
55 
57  public slots: void OnAddLevel();
58 
60  public slots: void OnDeleteLevel();
61 
63  public slots: void OnShowFloorplan();
64 
66  public slots: void OnTriggerShowFloorplan();
67 
69  public slots: void OnShowElements();
70 
72  public slots: void OnTriggerShowElements();
73 
77  private: void OnUpdateLevelWidget(int _level,
78  const std::string &_newName);
79 
81  private: void OnDiscard();
82 
85  private: std::unique_ptr<LevelWidgetPrivate> dataPtr;
86  };
88  }
89 }
90 
91 #endif
Forward declarations for the common classes.
Definition: Animation.hh:33
A widget for adding and changing building levels.
Definition: LevelWidget.hh:40