#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) |
virtual bool | shouldBeSaved () const |
Override this function to return true if this property should be saved to the config file, or false if it should not. The default implementation returns the opposite of getReadOnly(). | |
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 86 of file status_list.cpp.
void rviz::StatusList::deleteStatus | ( | const QString & | name | ) |
Definition at line 76 of file status_list.cpp.
void rviz::StatusList::setLevel | ( | Level | level | ) | [virtual] |
Reimplemented from rviz::StatusProperty.
Definition at line 117 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 45 of file status_list.cpp.
void rviz::StatusList::setStatus | ( | Level | level, | |
const QString & | name, | |||
const QString & | text | |||
) |
Definition at line 51 of file status_list.cpp.
virtual bool rviz::StatusList::shouldBeSaved | ( | ) | const [inline, virtual] |
Override this function to return true if this property should be saved to the config file, or false if it should not. The default implementation returns the opposite of getReadOnly().
Reimplemented from rviz::StatusProperty.
Definition at line 56 of file status_list.h.
void rviz::StatusList::updateLabel | ( | ) | [private] |
Update the label text based on the name_prefix_ and the current status level.
Definition at line 123 of file status_list.cpp.
void rviz::StatusList::updateLevel | ( | ) |
Definition at line 101 of file status_list.cpp.
QString rviz::StatusList::name_prefix_ [private] |
Definition at line 63 of file status_list.h.
QHash<QString, StatusProperty*> rviz::StatusList::status_children_ [private] |
Definition at line 62 of file status_list.h.