29 #ifndef PROPERTY_TREE_WIDGET_H 30 #define PROPERTY_TREE_WIDGET_H 36 #include "rviz/rviz_export.h" 52 void setCurrentIndex(
const QModelIndex& index, QItemSelectionModel::SelectionFlags
command)
override;
72 QModelIndexList indexes = selectedIndexes();
73 int num_selected = indexes.size();
75 QList<Type*> objects_out;
77 for (
int i = 0; i < num_selected; i++)
79 if (indexes[i].column() == 0)
81 Property* prop = model_->getProp(indexes[i]);
82 if (prop != model_->getRoot())
84 Type* obj = qobject_cast<Type*>(prop);
87 objects_out.push_back(obj);
99 void load(
const Config& config);
104 void currentChanged(
const QModelIndex& current,
const QModelIndex& previous)
override;
108 void selectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected)
override;
111 virtual void propertyHiddenChanged(
const Property* property);
114 void currentPropertyChanged(
const Property* new_current_property);
115 void selectionHasChanged();
120 void saveExpandedEntries(
Config config,
const QModelIndex& parent_index,
const QString& prefix)
const;
123 void expandEntries(
const QSet<QString>& expanded_full_names,
124 const QModelIndex& parent_index,
125 const QString& prefix);
133 #endif // PROPERTY_TREE_WIDGET_H
A single element of a property tree, with a name, value, description, and possibly children...
A tall skinny invisible widget providing left-right sliding column separator adjustment for a two-col...
Configuration data storage class.
ROSLIB_DECL std::string command(const std::string &cmd)