#include <property_tree_widget.h>
Signals | |
void | currentPropertyChanged (const Property *new_current_property) |
void | selectionHasChanged () |
Public Member Functions | |
PropertyTreeModel * | getModel () const |
template<class Type > | |
QList< Type * > | getSelectedObjects () |
Return the list of objects of a given type which are currently selected. | |
void | load (const Config &config) |
Read state from the given Config. | |
PropertyTreeWidget (QWidget *parent=0) | |
void | save (Config config) const |
Write state to the given Config. | |
void | setModel (PropertyTreeModel *model) |
Set the data model this widget should view. | |
Protected Slots | |
virtual void | propertyHiddenChanged (const Property *property) |
Protected Member Functions | |
virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
Called whenever current item changes. Calls QTreeView implementation then emits currentPropertyChanged(). | |
virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
Called whenever selection changes. Calls QTreeView implementation then emits selectionHasChanged(). | |
Private Member Functions | |
void | expandEntries (const QSet< QString > &expanded_full_names, const QModelIndex &parent_index, const QString &prefix) |
Recursively expand entries whose full names appear in expanded_full_names. | |
void | saveExpandedEntries (Config config, const QModelIndex &parent_index, const QString &prefix) const |
Recursively write full names of properties which are expanded in this view to the given Config. | |
Private Attributes | |
PropertyTreeModel * | model_ |
SplitterHandle * | splitter_handle_ |
Definition at line 43 of file property_tree_widget.h.
rviz::PropertyTreeWidget::PropertyTreeWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 44 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::currentChanged | ( | const QModelIndex & | current, |
const QModelIndex & | previous | ||
) | [protected, virtual] |
Called whenever current item changes. Calls QTreeView implementation then emits currentPropertyChanged().
Definition at line 65 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::currentPropertyChanged | ( | const Property * | new_current_property | ) | [signal] |
void rviz::PropertyTreeWidget::expandEntries | ( | const QSet< QString > & | expanded_full_names, |
const QModelIndex & | parent_index, | ||
const QString & | prefix | ||
) | [private] |
Recursively expand entries whose full names appear in expanded_full_names.
Definition at line 166 of file property_tree_widget.cpp.
PropertyTreeModel* rviz::PropertyTreeWidget::getModel | ( | ) | const [inline] |
Definition at line 51 of file property_tree_widget.h.
QList<Type*> rviz::PropertyTreeWidget::getSelectedObjects | ( | ) | [inline] |
Return the list of objects of a given type which are currently selected.
Definition at line 55 of file property_tree_widget.h.
void rviz::PropertyTreeWidget::load | ( | const Config & | config | ) |
Read state from the given Config.
Definition at line 148 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::propertyHiddenChanged | ( | const Property * | property | ) | [protected, virtual, slot] |
Definition at line 105 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::save | ( | Config | config | ) | const |
Write state to the given Config.
Definition at line 113 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::saveExpandedEntries | ( | Config | config, |
const QModelIndex & | parent_index, | ||
const QString & | prefix | ||
) | const [private] |
Recursively write full names of properties which are expanded in this view to the given Config.
Definition at line 120 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::selectionChanged | ( | const QItemSelection & | selected, |
const QItemSelection & | deselected | ||
) | [protected, virtual] |
Called whenever selection changes. Calls QTreeView implementation then emits selectionHasChanged().
Definition at line 71 of file property_tree_widget.cpp.
void rviz::PropertyTreeWidget::selectionHasChanged | ( | ) | [signal] |
void rviz::PropertyTreeWidget::setModel | ( | PropertyTreeModel * | model | ) |
Set the data model this widget should view.
Definition at line 77 of file property_tree_widget.cpp.
Definition at line 111 of file property_tree_widget.h.
Definition at line 112 of file property_tree_widget.h.