#include <property_tree_widget.h>
Public Slots | |
void | endPersistCurrent () |
void | startPersistCurrent () |
Signals | |
void | orderChanged () |
Public Member Functions | |
bool | getIgnoreChanges () |
PropertyWidgetItem * | getItem (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_ |
SplitterHandle * | splitter_handle_ |
Definition at line 42 of file property_tree_widget.h.
rviz::PropertyTreeWidget::PropertyTreeWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 358 of file property_tree_widget.cpp.
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.
void rviz::PropertyTreeWidget::endPersistCurrent | ( | ) | [slot] |
Definition at line 522 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 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::orderChanged | ( | ) | [signal] |
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.
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 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.
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.
Definition at line 54 of file property_tree_widget.h.
void rviz::PropertyTreeWidget::startPersistCurrent | ( | ) | [slot] |
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.
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.