rviz::PropertyTreeWidget Class Reference

#include <property_tree_widget.h>

Inheritance diagram for rviz::PropertyTreeWidget:
Inheritance graph
[legend]

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 YAML::Node &yaml_node)
 Read state from the given YAML node.
 PropertyTreeWidget (QWidget *parent=0)
void save (YAML::Emitter &emitter)
 Write state to the given YAML emitter.
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 (YAML::Emitter &emitter, const QModelIndex &parent_index, const QString &prefix)
 Recursively write full names of properties which are expanded in this view to the given emitter.

Private Attributes

PropertyTreeModelmodel_
SplitterHandlesplitter_handle_

Detailed Description

Definition at line 48 of file property_tree_widget.h.


Constructor & Destructor Documentation

rviz::PropertyTreeWidget::PropertyTreeWidget ( QWidget *  parent = 0  ) 

Definition at line 42 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 62 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 165 of file property_tree_widget.cpp.

PropertyTreeModel* rviz::PropertyTreeWidget::getModel (  )  const [inline]

Definition at line 56 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 60 of file property_tree_widget.h.

void rviz::PropertyTreeWidget::load ( const YAML::Node &  yaml_node  ) 

Read state from the given YAML node.

Definition at line 142 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::propertyHiddenChanged ( const Property property  )  [protected, virtual, slot]

Definition at line 91 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::save ( YAML::Emitter &  emitter  ) 

Write state to the given YAML emitter.

Definition at line 96 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::saveExpandedEntries ( YAML::Emitter &  emitter,
const QModelIndex &  parent_index,
const QString &  prefix 
) [private]

Recursively write full names of properties which are expanded in this view to the given emitter.

Definition at line 114 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 68 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 74 of file property_tree_widget.cpp.


Member Data Documentation

Definition at line 116 of file property_tree_widget.h.

Definition at line 117 of file property_tree_widget.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:48 2012