InsertModelWidgetPrivate.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 #ifndef _INSERT_MODEL_WIDGET_PRIVATE_HH_
18 #define _INSERT_MODEL_WIDGET_PRIVATE_HH_
19 
20 #include <string>
21 #include <map>
22 #include <set>
23 #include <boost/thread/mutex.hpp>
24 
25 #include "gazebo/common/Event.hh"
26 #include "gazebo/util/system.hh"
27 
28 class QTreeWidget;
29 class QTreeWidgetItem;
30 class QFileSystemWatcher;
31 
32 namespace gazebo
33 {
34  namespace gui
35  {
38  {
40  public: QTreeWidget *fileTreeWidget;
41 
43  public: QTreeWidgetItem *modelDatabaseItem;
44 
46  public: boost::mutex mutex;
47 
49  public: std::map<std::string, std::string> modelBuffer;
50 
52  public: QFileSystemWatcher *watcher;
53 
56 
58  public: std::set<std::string> localFilenameCache;
59  };
60  }
61 }
62 #endif
QTreeWidgetItem * modelDatabaseItem
Tree item that is populated with models from the ModelDatabase.
Definition: InsertModelWidgetPrivate.hh:43
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:147
QTreeWidget * fileTreeWidget
Widget that display all the models that can be inserted.
Definition: InsertModelWidgetPrivate.hh:40
std::set< std::string > localFilenameCache
Cache for the names added to fileTreeWidget.
Definition: InsertModelWidgetPrivate.hh:58
std::map< std::string, std::string > modelBuffer
Buffer to hold the results from ModelDatabase::GetModels.
Definition: InsertModelWidgetPrivate.hh:49
event::ConnectionPtr getModelsConnection
Callback reference count for retrieving models.
Definition: InsertModelWidgetPrivate.hh:55
QFileSystemWatcher * watcher
A file/directory watcher.
Definition: InsertModelWidgetPrivate.hh:52
boost::mutex mutex
Mutex to protect the modelBuffer.
Definition: InsertModelWidgetPrivate.hh:46
Private class attributes for InsertModelWidget.
Definition: InsertModelWidgetPrivate.hh:37
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66