Container property for ViewControllers which gets the drag/drop right for the funky way Current-View is always the first entry. More...
#include <view_manager.h>
Public Member Functions | |
virtual void | addChild (Property *child, int index=-1) |
Add a child ViewController. | |
void | addChildToFront (Property *child) |
Qt::ItemFlags | getViewFlags (int column) const |
Return item flags appropriate for the given column (0 or 1) for this Property. |
Container property for ViewControllers which gets the drag/drop right for the funky way Current-View is always the first entry.
Definition at line 144 of file view_manager.h.
void rviz::ViewControllerContainer::addChild | ( | Property * | child, |
int | index = -1 |
||
) | [virtual] |
Add a child ViewController.
child | The child to add. |
index | [optional] The index at which to add the child. If less than 0 or greater than the number of child properties, the child will be added at the end. |
This notifies the model about the addition.
This is overridden from Property to keep saved ViewControllers from being added at index 0, where the Current view belongs.
Reimplemented from rviz::Property.
Definition at line 282 of file view_manager.cpp.
void rviz::ViewControllerContainer::addChildToFront | ( | Property * | child | ) |
Definition at line 291 of file view_manager.cpp.
Qt::ItemFlags rviz::ViewControllerContainer::getViewFlags | ( | int | column | ) | const [virtual] |
Return item flags appropriate for the given column (0 or 1) for this Property.
column | 0 for left column, 1 for right column. |
Reimplemented from rviz::Property.
Definition at line 277 of file view_manager.cpp.