All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
InsertModelWidgetPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2013 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_PRIVATE_HH_
18 #define _INSERT_MODEL_WIDGET_PRIVATE_HH_
19 
20 #include <string>
21 #include <map>
22 #include <boost/thread/mutex.hpp>
23 
24 #include "gazebo/common/Event.hh"
25 #include "gazebo/util/system.hh"
26 
27 class QTreeWidget;
28 class QTreeWidgetItem;
29 class QFileSystemWatcher;
30 
31 namespace gazebo
32 {
33  namespace gui
34  {
37  {
39  public: QTreeWidget *fileTreeWidget;
40 
42  public: QTreeWidgetItem *modelDatabaseItem;
43 
45  public: boost::mutex mutex;
46 
48  public: std::map<std::string, std::string> modelBuffer;
49 
51  public: QFileSystemWatcher *watcher;
52 
55  };
56  }
57 }
58 #endif
QTreeWidgetItem * modelDatabaseItem
Tree item that is populated with models from the ModelDatabase.
Definition: InsertModelWidgetPrivate.hh:42
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
QTreeWidget * fileTreeWidget
Widget that display all the models that can be inserted.
Definition: InsertModelWidgetPrivate.hh:39
std::map< std::string, std::string > modelBuffer
Buffer to hold the results from ModelDatabase::GetModels.
Definition: InsertModelWidgetPrivate.hh:48
event::ConnectionPtr getModelsConnection
Callback reference count for retrieving models.
Definition: InsertModelWidgetPrivate.hh:54
QFileSystemWatcher * watcher
A file/directory watcher.
Definition: InsertModelWidgetPrivate.hh:51
boost::mutex mutex
Mutex to protect the modelBuffer.
Definition: InsertModelWidgetPrivate.hh:45
Private class attributes for InsertModelWidget.
Definition: InsertModelWidgetPrivate.hh:36
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48