Lines Matching refs:pref_path

412 Preferences::Entry const Preferences::getEntry(Glib::ustring const &pref_path)
415 _getRawValue(pref_path, v);
416 return Entry(pref_path, v);
424 * @param pref_path Path of the preference to modify.
427 void Preferences::setBool(Glib::ustring const &pref_path, bool value)
432 _setRawValue(pref_path, ( value ? "1" : "0" ));
438 * @param pref_path Path of the preference to modify.
441 void Preferences::setInt(Glib::ustring const &pref_path, int value)
443 _setRawValue(pref_path, Glib::ustring::compose("%1",value));
449 * @param pref_path Path of the preference to modify.
452 void Preferences::setDouble(Glib::ustring const &pref_path, double value)
454 _setRawValue(pref_path, Glib::ustring::compose("%1",value));
460 * @param pref_path Path of the preference to modify.
464 void Preferences::setDoubleUnit(Glib::ustring const &pref_path, double value, Glib::ustring const &unit_abbr)
467 _setRawValue(pref_path, str);
470 void Preferences::setColor(Glib::ustring const &pref_path, guint32 value)
474 _setRawValue(pref_path, buf);
480 * @param pref_path Path of the preference to modify.
483 void Preferences::setString(Glib::ustring const &pref_path, Glib::ustring const &value)
485 _setRawValue(pref_path, value);
488 void Preferences::setStyle(Glib::ustring const &pref_path, SPCSSAttr *style)
492 _setRawValue(pref_path, css_str);
495 void Preferences::mergeStyle(Glib::ustring const &pref_path, SPCSSAttr *style)
497 SPCSSAttr *current = getStyle(pref_path);
501 _setRawValue(pref_path, css_str);
509 void Preferences::remove(Glib::ustring const &pref_path)
511 Inkscape::XML::Node *node = _getNode(pref_path, false);
579 XML::Node *Preferences::_findObserverNode(Glib::ustring const &pref_path, Glib::ustring &node_key, Glib::ustring &attr_key, bool create)
582 _keySplit(pref_path, node_key, attr_key);
595 node_key = pref_path;
848 void Preferences::_keySplit(Glib::ustring const &pref_path, Glib::ustring &node_key, Glib::ustring &attr_key)
851 attr_key = pref_path.substr(pref_path.rfind('/') + 1, Glib::ustring::npos);
853 node_key = pref_path.substr(0, pref_path.rfind('/'));