#include <status_list.h>
Public Member Functions | |
void | clear () |
void | deleteStatus (const QString &name) |
virtual void | setLevel (Level level) |
virtual void | setName (const QString &name) |
Set the prefix of the name. | |
void | setStatus (Level level, const QString &name, const QString &text) |
StatusList (const QString &name=QString("Status"), Property *parent=0) | |
void | updateLevel () |
Private Member Functions | |
void | updateLabel () |
Update the label text based on the name_prefix_ and the current status level. | |
Private Attributes | |
QString | name_prefix_ |
QHash< QString, StatusProperty * > | status_children_ |
Definition at line 37 of file status_list.h.
rviz::StatusList::StatusList | ( | const QString & | name = QString( "Status" ) , |
Property * | parent = 0 |
||
) |
Definition at line 39 of file status_list.cpp.
void rviz::StatusList::clear | ( | ) |
Definition at line 87 of file status_list.cpp.
void rviz::StatusList::deleteStatus | ( | const QString & | name | ) |
Definition at line 77 of file status_list.cpp.
void rviz::StatusList::setLevel | ( | Level | level | ) | [virtual] |
Reimplemented from rviz::StatusProperty.
Definition at line 124 of file status_list.cpp.
void rviz::StatusList::setName | ( | const QString & | name | ) | [virtual] |
Set the prefix of the name.
Setting the name to "Foo" will give a displayed name like "Foo: Ok" or "Foo: Error".
Reimplemented from rviz::Property.
Definition at line 46 of file status_list.cpp.
void rviz::StatusList::setStatus | ( | Level | level, |
const QString & | name, | ||
const QString & | text | ||
) |
Definition at line 52 of file status_list.cpp.
void rviz::StatusList::updateLabel | ( | ) | [private] |
Update the label text based on the name_prefix_ and the current status level.
Definition at line 130 of file status_list.cpp.
void rviz::StatusList::updateLevel | ( | ) |
Definition at line 108 of file status_list.cpp.
QString rviz::StatusList::name_prefix_ [private] |
Definition at line 61 of file status_list.h.
QHash<QString, StatusProperty*> rviz::StatusList::status_children_ [private] |
Definition at line 60 of file status_list.h.