45 QRegExp re = QRegExp(
"([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--)
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;
251 connect(container, SIGNAL(childListChanged(
Property*)),
this,
265 QObject::connect(tool, SIGNAL(close()),
this, SLOT(
closeTool()));
275 Tool* fallback =
nullptr;
306 QStringList class_names;
307 for (
int i = 0; i <
tools_.size(); i++)
309 class_names.append(
tools_[i]->getClassId());
virtual void expand()
Expand (show the children of) this Property.
A single element of a property tree, with a name, value, description, and possibly children...
int listLength() const
Returns the length of the List in this Node, or 0 if this Node does not have type List...
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...
Property * getRoot() const
virtual int numChildren() const
Return the number of child objects (Property or otherwise).
Config listAppendNew()
Ensure the referenced Node is of type List, append a new Empty Node to the end of the 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...
virtual void addChild(Property *child, int index=-1)
Add a child property.
bool contains(Property *possible_child) const
Return true if the list of children includes possible_child, false if not.
QString addSpaceToCamelCase(QString input)