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;
 
   63 #pragma clang diagnostic push 
   64 #pragma clang diagnostic ignored "-Woverloaded-virtual" 
   69 #pragma clang diagnostic pop 
   80     QModelIndexList indexes = selectedIndexes();
 
   81     int num_selected = indexes.size();
 
   83     QList<Type*> objects_out;
 
   85     for (
int i = 0; i < num_selected; i++)
 
   87       if (indexes[i].column() == 0)
 
   89         Property* prop = model_->getProp(indexes[i]);
 
   90         if (prop != model_->getRoot())
 
   92           Type* obj = qobject_cast<Type*>(prop);
 
   95             objects_out.push_back(obj);
 
  104   void save(
Config config) 
const;
 
  107   void load(
const Config& config);
 
  112   void currentChanged(
const QModelIndex& current, 
const QModelIndex& previous) 
override;
 
  116   void selectionChanged(
const QItemSelection& selected, 
const QItemSelection& deselected) 
override;
 
  119   virtual void propertyHiddenChanged(
const Property* property);
 
  122   void currentPropertyChanged(
const Property* new_current_property);
 
  123   void selectionHasChanged();
 
  128   void saveExpandedEntries(
Config config, 
const QModelIndex& parent_index, 
const QString& prefix) 
const;
 
  131   void expandEntries(
const QSet<QString>& expanded_full_names,
 
  132                      const QModelIndex& parent_index,
 
  133                      const QString& prefix);
 
  141 #endif // PROPERTY_TREE_WIDGET_H