Inkscape
Vector Graphics Editor
|
#include <preferences.h>
Public Member Functions | |
Pref (Glib::ustring path, Glib::ustring def="") | |
![]() | |
operator const Glib::ustring & () const | |
The current value. | |
void | set_enabled (bool enabled) |
Disable switch. If disabled, the Pref will stick at its default value. | |
![]() | |
Observer (Glib::ustring path) | |
Constructor. | |
virtual | ~Observer () |
Private Member Functions | |
auto | read () const |
auto | changed (Preferences::Entry const &e) const |
Private Attributes | |
friend | PrefBase |
Additional Inherited Members | |
![]() | |
Glib::ustring | def |
The default value. | |
std::function< void()> | action |
The action to perform when the value changes, if any. | |
![]() | |
Glib::ustring const | observed_path |
Path which the observer watches. | |
![]() | |
PrefBase (Glib::ustring path, Glib::ustring def) | |
PrefBase (PrefBase const &)=delete | |
PrefBase & | operator= (PrefBase const &)=delete |
void | init () |
void | act () |
void | assign (Glib::ustring const &val2) |
void | enable () |
void | disable () |
void | notify (Preferences::Entry const &e) override |
Notification about a preference change. | |
![]() | |
Glib::ustring | val |
Definition at line 872 of file preferences.h.
|
inline |
Definition at line 875 of file preferences.h.
References init().
|
inlineprivate |
Definition at line 883 of file preferences.h.
References Inkscape::Preferences::Entry::getString().
|
inlineprivate |
Definition at line 882 of file preferences.h.
References Inkscape::Preferences::get(), and Inkscape::Preferences::getString().
|
private |
Definition at line 881 of file preferences.h.