17 #ifndef _GAZEBO_GUI_MODEL_MODELTREEWIDGET_HH_
18 #define _GAZEBO_GUI_MODEL_MODELTREEWIDGET_HH_
34 class ModelPluginInspector;
55 private:
void OnSetSelectedEntity(
const std::string &_name,
56 const std::string &_mode);
62 private:
void OnSetSelectedLink(
const std::string &_linkId,
63 const bool _selected);
69 private:
void OnSetSelectedJoint(
const std::string &_jointId,
70 const bool _selected);
76 private:
void OnSetSelectedModelPlugin(
const std::string &_name,
77 const bool _selected);
82 private:
void DeselectType(
const std::string &_type);
85 private slots:
void OnStatic();
88 private slots:
void OnAutoDisable();
92 private slots:
void OnNameChanged(
const QString &_name);
97 private slots:
void OnItemDoubleClicked(QTreeWidgetItem *_item,
103 private slots:
void OnItemClicked(QTreeWidgetItem *_item,
int _column);
106 private slots:
void OnItemSelectionChanged();
111 private slots:
void OnCustomContextMenu(
const QPoint &_pt);
114 private slots:
void OnAddModelPlugin();
118 private slots:
void OnModelPluginApply();
122 private:
void OnLinkInserted(
const std::string &_linkName);
129 private:
void OnJointInserted(
const std::string &_jointId,
130 const std::string &_jointName,
const std::string &_parentName,
131 const std::string &_childName);
135 private:
void OnModelPluginInserted(
const std::string &_modelPluginName);
139 private:
void OnNestedModelInserted(
const std::string &_nestedModelName);
143 private:
void OnLinkRemoved(
const std::string &_linkId);
147 private:
void OnJointRemoved(
const std::string &_jointId);
151 private:
void OnModelPluginRemoved(
const std::string &_pluginId);
155 private:
void OnNestedModelRemoved(
const std::string &_nestedModelId);
158 private:
void ClearModelTree();
163 private:
void OnJointNameChanged(
const std::string &_jointId,
164 const std::string &_newJointName);
169 private:
void OnSaveModel(
const std::string &_saveName);
172 private:
void OnNewModel();
177 private:
void OnModelPropertiesChanged(
bool _static,
bool _autoDisable);
181 private:
void OnModelNameChanged(
const std::string &_name);
188 private: QTreeWidgetItem *FindItemByData(
const std::string &_data,
189 const QTreeWidgetItem &_parentItem);
192 private: std::vector<event::ConnectionPtr> connections;
195 private: QCheckBox *staticCheck;
199 private: QCheckBox *autoDisableCheck;
202 private: std::string modelDefaultName;
205 private: QLineEdit *modelNameEdit;
208 private: QTreeWidget *modelTreeWidget;
211 private: QTreeWidgetItem *nestedModelsItem;
214 private: QTreeWidgetItem *linksItem;
217 private: QTreeWidgetItem *jointsItem;
220 private: QTreeWidgetItem *modelPluginsItem;
223 private: std::recursive_mutex updateMutex;
226 private: QList<QTreeWidgetItem *> selected;
#define GZ_GUI_VISIBLE
Definition: system.hh:284
Inspector for model plugin properties.
Definition: ModelPluginInspector.hh:35