Go to the documentation of this file.
52 QHash<QString, StatusProperty*>::iterator child_iter =
status_children_.find(name);
61 child = child_iter.value();
98 for (
int i = 0; i < to_be_deleted.size(); i++)
100 delete to_be_deleted[i];
110 QHash<QString, StatusProperty*>::iterator iter;
113 Level child_level = iter.value()->getLevel();
114 if (child_level > new_level)
116 new_level = child_level;
StatusList(const QString &name=QString("Status"), Property *parent=nullptr)
virtual void setName(const QString &name)
Set the name.
QHash< QString, StatusProperty * > status_children_
void setName(const QString &name) override
Set the prefix of the name.
virtual int numChildren() const
Return the number of child objects (Property or otherwise).
StatusProperty(const QString &name, const QString &text, Level level, Property *parent)
void setLevel(Level level) override
bool setValue(const QVariant &new_value) override
Set the status text. Overridden from Property.
A single element of a property tree, with a name, value, description, and possibly children.
void setShouldBeSaved(bool save)
If save is false, neither the property nor its children will get saved. If true (the default),...
void updateLabel()
Update the label text based on the name_prefix_ and the current status level.
virtual Level getLevel() const
void setStatus(Level level, const QString &name, const QString &text)
void deleteStatus(const QString &name)
virtual void setLevel(Level level)
static QString statusWord(Level level)
Return the word appropriate for the given status level: "Ok", "Warn", or "Error".
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:03