Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rviz::PropertyTreeWidget Class Reference

#include <property_tree_widget.h>

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

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. More...
 
void load (const Config &config)
 Read state from the given Config. More...
 
 PropertyTreeWidget (QWidget *parent=0)
 
void save (Config config) const
 Write state to the given Config. More...
 
void setModel (PropertyTreeModel *model)
 Set the data model this widget should view. More...
 

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(). More...
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 Called whenever selection changes. Calls QTreeView implementation then emits selectionHasChanged(). More...
 

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. More...
 
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. More...
 

Private Attributes

PropertyTreeModelmodel_
 
SplitterHandlesplitter_handle_
 

Detailed Description

Definition at line 43 of file property_tree_widget.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file property_tree_widget.cpp.

Member Function Documentation

void rviz::PropertyTreeWidget::currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedvirtual

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.

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)
protectedvirtualslot

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 
)
protectedvirtual

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.

Member Data Documentation

PropertyTreeModel* rviz::PropertyTreeWidget::model_
private

Definition at line 111 of file property_tree_widget.h.

SplitterHandle* rviz::PropertyTreeWidget::splitter_handle_
private

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 Wed Aug 28 2019 04:01:54