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

#include <property_tree_widget.h>

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

List of all members.

Public Slots

void endPersistCurrent ()
void startPersistCurrent ()

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_
QTreeWidgetItem * persisted_item_
SplitterHandlesplitter_handle_

Detailed Description

Definition at line 42 of file property_tree_widget.h.


Constructor & Destructor Documentation

Definition at line 358 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 398 of file property_tree_widget.cpp.

Definition at line 522 of file property_tree_widget.cpp.

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 388 of file property_tree_widget.cpp.

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

Definition at line 376 of file property_tree_widget.cpp.

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

Definition at line 393 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 454 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 487 of file property_tree_widget.cpp.

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 406 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 425 of file property_tree_widget.cpp.

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.

Definition at line 516 of file property_tree_widget.cpp.

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

Definition at line 81 of file property_tree_widget.h.


Member Data Documentation

Definition at line 102 of file property_tree_widget.h.

QTreeWidgetItem* rviz::PropertyTreeWidget::persisted_item_ [private]

Definition at line 104 of file property_tree_widget.h.

Definition at line 103 of file property_tree_widget.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33