All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
InsertModelWidget.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 #ifndef _INSERT_MODEL_WIDGET_HH_
18 #define _INSERT_MODEL_WIDGET_HH_
19 
20 #include <string>
21 #include <map>
22 
23 #include "gazebo/gui/qt.h"
24 #include "gazebo/util/system.hh"
25 
26 class QTreeWidget;
27 class QTreeWidgetItem;
28 class QPushButton;
29 
30 namespace gazebo
31 {
32  namespace gui
33  {
35  class InsertModelWidgetPrivate;
36 
37  class GAZEBO_VISIBLE InsertModelWidget : public QWidget
38  {
39  Q_OBJECT
40 
42  public: InsertModelWidget(QWidget *_parent = 0);
43 
45  public: virtual ~InsertModelWidget();
46 
50  private: void OnModels(
51  const std::map<std::string, std::string> &_models);
52 
54  private slots: void OnModelSelection(QTreeWidgetItem *item, int column);
55 
58  private slots: void Update();
59 
62  private slots: void OnDirectoryChanged(const QString &_path);
63 
65  private: void UpdateAllLocalPaths();
66 
69  private: void UpdateLocalPath(const std::string &_path);
70 
72  private: InsertModelWidgetPrivate *dataPtr;
73  };
74  }
75 }
76 #endif
Definition: InsertModelWidget.hh:37
Private class attributes for InsertModelWidget.
Definition: InsertModelWidgetPrivate.hh:36
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48