Go to the documentation of this file.
31 #include <QRegularExpression>
45 QRegularExpression re = QRegularExpression(
"([A-Z])([a-z]*)");
46 input.replace(re,
" \\1\\2");
47 return input.trimmed();
54 , current_tool_(nullptr)
55 , default_tool_(nullptr)
81 for (
int i =
tools_.size() - 1; i >= 0; i--)
91 int num_tools =
config.listLength();
92 for (
int i = 0; i < num_tools; i++)
100 tool->
load(tool_config);
107 for (
int i = 0; i <
tools_.size(); i++)
115 QKeySequence seq(str);
118 if (seq.count() == 1)
132 if (event->key() == Qt::Key_Escape)
142 Tool* tool = tool_it->second;
220 setCurrentTool(getDefaultTool());
274 Tool* fallback =
nullptr;
305 QStringList class_names;
306 for (
int i = 0; i <
tools_.size(); i++)
308 class_names.append(
tools_[i]->getClassId());
virtual void addChild(Property *child, int index=-1)
Add a child property.
virtual int numChildren() const
Return the number of child objects (Property or otherwise).
bool contains(Property *possible_child) const
Return true if the list of children includes possible_child, false if not.
QString addSpaceToCamelCase(QString input)
A single element of a property tree, with a name, value, description, and possibly children.
virtual void expand()
Expand (show the children of) this Property.
void configChanged()
Emitted when a Property which should be saved changes.
Property * getRoot() const
void childListChanged(Property *this_property)
Emitted after insertions and deletions of child Properties.
Pure-virtual base class for objects which give Display subclasses context in which to work.
bool mapGetString(const QString &key, QString *value_out) const
Convenience function for looking up a named string.
Property * takeChild(Property *child)
Remove a given child object and return a pointer to it.
Configuration data storage class.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:10