$search

rviz::PropertyTreeWidget Class Reference

#include <property_tree_widget.h>

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

List of all members.

Signals

void orderChanged ()

Public Member Functions

bool getIgnoreChanges ()
PropertyWidgetItemgetItem (const QModelIndex &index)
 PropertyTreeWidget (QWidget *parent=0)
void restoreEditableState (const std::string &state)
std::string saveEditableState ()
bool setIgnoreChanges (bool ignore_changes)

Protected Member Functions

virtual void dropEvent (QDropEvent *event)
virtual void resizeEvent (QResizeEvent *event)
virtual Qt::DropActions supportedDropActions () const

Private Slots

void onItemChanged (QTreeWidgetItem *item, int column_number)

Private Member Functions

void restoreExpandedState (const std::set< std::string > &expanded_entries, QTreeWidgetItem *parent_item)
void saveExpandedState (std::ostream &output, QTreeWidgetItem *parent_item, bool &first)

Private Attributes

bool ignore_changes_
SplitterHandlesplitter_handle_

Detailed Description

Definition at line 42 of file property_tree_widget.h.


Constructor & Destructor Documentation

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

Definition at line 349 of file property_tree_widget.cpp.


Member Function Documentation

void rviz::PropertyTreeWidget::dropEvent ( QDropEvent *  event  )  [protected, virtual]

Reimplemented from QTreeWidget to send the orderChanged() signal.

Definition at line 388 of file property_tree_widget.cpp.

bool rviz::PropertyTreeWidget::getIgnoreChanges (  )  [inline]

Definition at line 60 of file property_tree_widget.h.

PropertyWidgetItem * rviz::PropertyTreeWidget::getItem ( const QModelIndex &  index  ) 

Get the PropertyWidgetItem* for the given index.

Definition at line 378 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::onItemChanged ( QTreeWidgetItem *  item,
int  column_number 
) [private, slot]

Definition at line 366 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::orderChanged (  )  [signal]
void rviz::PropertyTreeWidget::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Definition at line 383 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::restoreEditableState ( const std::string &  state  ) 

Restore state from a string previously returned by saveEditableState().

Definition at line 444 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::restoreExpandedState ( const std::set< std::string > &  expanded_entries,
QTreeWidgetItem *  parent_item 
) [private]

Recursive function to iterate through tree of items, checking each for presence in the expanded_entries set.

Recursive function to iterate through tree of items, reading input as it goes.

Definition at line 477 of file property_tree_widget.cpp.

std::string rviz::PropertyTreeWidget::saveEditableState (  ) 

Return a string storing the expanded-or-not state of each item, and splitter position.

Return a string storing the expanded-or-not state of each item, and the splitter position.

Definition at line 396 of file property_tree_widget.cpp.

void rviz::PropertyTreeWidget::saveExpandedState ( std::ostream &  output,
QTreeWidgetItem *  parent_item,
bool &  first 
) [private]

Recursive function to iterate through tree of items, writing output as it goes.

Definition at line 415 of file property_tree_widget.cpp.

bool rviz::PropertyTreeWidget::setIgnoreChanges ( bool  ignore_changes  )  [inline]

While ignoring changes, this widget will not call Property::readFromGrid() in response to changes in its items. This is useful when you need to make non-data changes to the items, or when the model already has the data and you just need to send it to the widget. Default is false.

Returns:
previous value of ignore_changes_.

Definition at line 54 of file property_tree_widget.h.

virtual Qt::DropActions rviz::PropertyTreeWidget::supportedDropActions (  )  const [inline, protected, virtual]

Definition at line 77 of file property_tree_widget.h.


Member Data Documentation

Definition at line 98 of file property_tree_widget.h.

Definition at line 99 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 Properties Friends Defines


rviz_qt
Author(s): Dave Hershberger
autogenerated on Sat Mar 2 14:21:16 2013