30 ConfigVariableBase::add_to_node (
XMLNode& node)
32 const std::string v = get_as_string ();
41 ConfigVariableBase::set_from_node (
XMLNode const & node)
43 if (node.
name() ==
"Config" || node.
name() ==
"Canvas" || node.
name() ==
"UI") {
54 for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
58 if (child->
name() ==
"Option") {
59 if ((prop = child->
property (
"name")) != 0) {
60 if (prop->
value() == _name) {
61 if ((prop = child->
property (
"value")) != 0) {
62 set_from_string (prop->
value());
70 }
else if (node.
name() ==
"Options") {
81 for (oiter = olist.begin(); oiter != olist.end(); ++oiter) {
85 if (option->
name() == _name) {
86 if ((opt_prop = option->
property (
"val")) != 0) {
87 set_from_string (opt_prop->
value());
98 ConfigVariableBase::notify ()
104 ConfigVariableBase::miss ()
const std::string & value() const
const std::string & name() const
const XMLNodeList & children(const std::string &str=std::string()) const
std::list< XMLNode * > XMLNodeList
XMLProperty * property(const char *)
LIBPBD_API uint64_t Configuration
#define DEBUG_TRACE(bits, str)
XMLProperty * add_property(const char *name, const std::string &value)
void add_child_nocopy(XMLNode &)
XMLNodeList::const_iterator XMLNodeConstIterator
std::string string_compose(const std::string &fmt, const T1 &o1)