17 #ifndef GAZEBO_GUI_INSERTMODELWIDGET_HH_
18 #define GAZEBO_GUI_INSERTMODELWIDGET_HH_
24 #include <boost/filesystem.hpp>
31 class QTreeWidgetItem;
39 class FuelModelDatabase;
44 class InsertModelWidgetPrivate;
57 public:
bool LocalPathInFileWidget(
const std::string &_path);
62 private:
void OnModels(
63 const std::map<std::string, std::string> &_models);
68 private:
void OnModelUpdateRequest(
const std::string &_localPath);
73 signals:
void UpdateFuel(
const std::string &_server);
76 private slots:
void OnModelSelection(QTreeWidgetItem *item,
int column);
80 private slots:
void Update();
85 private slots:
void OnUpdateFuel(
const std::string &_server);
89 private slots:
void OnDirectoryChanged(
const QString &_path);
92 private slots:
void HandleButton();
97 private:
static bool IsPathAccessible
98 (
const boost::filesystem::path &_path);
101 private:
void UpdateAllLocalPaths();
105 private:
void UpdateLocalPath(
const std::string &_path);
109 private:
void InitializeFuelServers();
113 private:
void PopulateFuelServers();
116 private: std::vector<event::ConnectionPtr> connections;
119 private: InsertModelWidgetPrivate *dataPtr;