Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes
rviz::PropertyTreeWidget Class Reference

#include <property_tree_widget.h>

List of all members.

Signals

void currentPropertyChanged (const Property *new_current_property)
void selectionHasChanged ()

Public Member Functions

PropertyTreeModelgetModel () 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 &current, 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

PropertyTreeModelmodel_
SplitterHandlesplitter_handle_

Detailed Description

Definition at line 43 of file property_tree_widget.h.


Constructor & Destructor Documentation

Definition at line 44 of file property_tree_widget.cpp.


Member Function Documentation

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.

Definition at line 51 of file property_tree_widget.h.

template<class Type >
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.

Set the data model this widget should view.

Definition at line 77 of file property_tree_widget.cpp.


Member Data Documentation

Definition at line 111 of file property_tree_widget.h.

Definition at line 112 of file property_tree_widget.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Tue Oct 3 2017 03:19:32