46 QRegExp re = QRegExp(
"([A-Z])([a-z]*)" );
47 input.replace( re,
" \\1\\2" );
48 return input.trimmed();
55 , current_tool_(
NULL )
56 , default_tool_(
NULL )
76 addTool(
"rviz/SetInitialPose" );
82 for(
int i =
tools_.size() - 1; i >= 0; i-- )
93 for(
int i = 0; i < num_tools; i++ )
101 tool->
load( tool_config );
108 for(
int i = 0; i <
tools_.size(); i++ )
116 QKeySequence seq( str );
119 if( seq.count() == 1 )
133 if( event->key() == Qt::Key_Escape )
249 if(
toKey( str, key ) )
269 QObject::connect(tool, SIGNAL(close()),
311 QStringList class_names;
312 for(
int i = 0; i <
tools_.size(); i++ )
314 class_names.append(
tools_[ i ]->getClassId() );
virtual void expand()
Expand (show the children of) this Property.
int listLength() const
Returns the length of the List in this Node, or 0 if this Node does not have type List...
Config listChildAt(int i) const
Return the i'th child in the list, if the referenced Node has type List. Returns an Invalid Config if...
A single element of a property tree, with a name, value, description, and possibly children...
virtual int numChildren() const
Return the number of child objects (Property or otherwise).
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.
Pure-virtual base class for objects which give Display subclasses context in which to work...
bool contains(Property *possible_child) const
Return true if the list of children includes possible_child, false if not.
Config listAppendNew()
Ensure the referenced Node is of type List, append a new Empty Node to the end of the list...
virtual void addChild(Property *child, int index=-1)
Add a child property.
Property * getRoot() const
QString addSpaceToCamelCase(QString input)