Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Preferences Class Reference

Preference storage class. More...

#include <preferences.h>

Classes

class  Entry
 Data type representing a typeless value of a preference. More...
 
class  Observer
 Base class for preference observers. More...
 
class  PreferencesObserver
 Callback-based preferences observer. More...
 

Public Member Functions

 Preferences (Preferences const &)=delete
 
Preferences operator= (Preferences const &)=delete
 
void save ()
 Save all preferences to the hard disk.
 
void reset ()
 Deletes the preferences.xml file.
 
bool isWritable ()
 Check whether saving the preferences will have any effect.
 
bool getLastError (Glib::ustring &primary, Glib::ustring &secondary)
 Return details of the last encountered error, if any.
 
Iterate over directories and entries.
std::vector< EntrygetAllEntries (Glib::ustring const &path)
 Get all entries from the specified directory.
 
std::vector< Glib::ustring > getAllDirs (Glib::ustring const &path)
 Get all subdirectories of the specified directory.
 
Retrieve data from the preference storage.
bool hasPref (Glib::ustring const &pref_path)
 Return true if there is a value at this prefs-path.
 
bool getBool (Glib::ustring const &pref_path, bool def=false)
 Retrieve a Boolean value.
 
std::optional< bool > getOptionalBool (Glib::ustring const &pref_path)
 Retrieve a Boolean value, if it exists.
 
Geom::Point getPoint (Glib::ustring const &pref_path, Geom::Point def=Geom::Point())
 Retrieve a point.
 
int getInt (Glib::ustring const &pref_path, int def=0)
 Retrieve an integer.
 
int getIntLimited (Glib::ustring const &pref_path, int def=0, int min=INT_MIN, int max=INT_MAX)
 Retrieve a limited integer.
 
unsigned int getUInt (Glib::ustring const &pref_path, unsigned int def=0)
 Retrieve an unsigned integer.
 
double getDouble (Glib::ustring const &pref_path, double def=0.0, Glib::ustring const &unit="")
 Retrieve a floating point value.
 
double getDoubleLimited (Glib::ustring const &pref_path, double def=0.0, double min=DBL_MIN, double max=DBL_MAX, Glib::ustring const &unit="")
 Retrieve a limited floating point value.
 
Glib::ustring getString (Glib::ustring const &pref_path, Glib::ustring const &def="")
 Retrieve an UTF-8 string.
 
Glib::ustring getUnit (Glib::ustring const &pref_path)
 Retrieve the unit string.
 
Colors::Color getColor (Glib::ustring const &pref_path, std::string const &def="black")
 
SPCSSAttrgetStyle (Glib::ustring const &pref_path)
 Retrieve a CSS style.
 
SPCSSAttrgetInheritedStyle (Glib::ustring const &pref_path)
 Retrieve an inherited CSS style.
 
Entry const getEntry (Glib::ustring const &pref_path)
 Retrieve a preference entry without specifying its type.
 
Glib::ustring getPrefsFilename () const
 Get the preferences file name in UTF-8.
 
Update preference values.
void setBool (Glib::ustring const &pref_path, bool value)
 Set a Boolean value.
 
void setPoint (Glib::ustring const &pref_path, Geom::Point value)
 Set a point value.
 
void setInt (Glib::ustring const &pref_path, int value)
 Set an integer value.
 
void setUInt (Glib::ustring const &pref_path, unsigned int value)
 Set an unsigned integer value.
 
void setDouble (Glib::ustring const &pref_path, double value)
 Set a floating point value.
 
void setDoubleUnit (Glib::ustring const &pref_path, double value, Glib::ustring const &unit_abbr)
 Set a floating point value with unit.
 
void setString (Glib::ustring const &pref_path, Glib::ustring const &value)
 Set an UTF-8 string value.
 
void setColor (Glib::ustring const &pref_path, Colors::Color const &color)
 Set an RGBA color value.
 
void setStyle (Glib::ustring const &pref_path, SPCSSAttr *style)
 Set a CSS style.
 
void mergeStyle (Glib::ustring const &pref_path, SPCSSAttr *style)
 Merge a CSS style with the current preference value.
 
Receive notifications about preference changes.
void addObserver (Observer &)
 Register a preference observer.
 
void removeObserver (Observer &)
 Remove an observer an prevent further notifications to it.
 
std::unique_ptr< PreferencesObservercreateObserver (Glib::ustring path, std::function< void(const Preferences::Entry &new_value)> callback)
 Create an observer watching preference 'path' and calling provided function when preference changes.
 
std::unique_ptr< PreferencesObservercreateObserver (Glib::ustring path, std::function< void()> callback)
 

Access and manipulate the Preferences object.

typedef std::map< Observer *, std::unique_ptr< PrefNodeObserver > > _ObsMap
 
std::string _prefs_filename
 Full filename (with directory) of the prefs file.
 
Glib::ustring _lastErrPrimary
 Last primary error message, if any.
 
Glib::ustring _lastErrSecondary
 Last secondary error message, if any.
 
XML::Document_prefs_doc = nullptr
 XML document storing all the preferences.
 
ErrorReporter_errorHandler = nullptr
 Pointer to object reporting errors.
 
bool _writable = false
 Will the preferences be saved at exit?
 
bool _hasError = false
 Indication that some error has occurred;.
 
bool _initialized = false
 Is this instance fully initialized? Caching should be avoided before.
 
std::unordered_map< std::string, EntrycachedEntry
 Cache for getEntry()
 
_ObsMap _observer_map
 Map that keeps track of wrappers assigned to PrefObservers.
 
static Preferences_instance = nullptr
 
class PrefNodeObserver
 
class Entry
 
void setErrorHandler (ErrorReporter *handler)
 
void remove (Glib::ustring const &pref_path)
 Remove a node from prefs.
 
auto temporaryPreferences ()
 Create a temporary transaction which will be rolled back when the returned scope guard is destroyed.
 
static Preferencesget ()
 Access the singleton Preferences object.
 
static void unload (bool save=true)
 Unload all preferences.
 
SPCSSAttr_getInheritedStyleForPath (Glib::ustring const &prefPath)
 Interpret the preference as a CSS style with directory-based inheritance.
 
 Preferences ()
 
 ~Preferences ()
 
void _loadDefaults ()
 Load internal defaults.
 
void _load ()
 Load the user's customized preferences.
 
std::optional< Glib::ustring > _getRawValue (Glib::ustring const &path)
 Get raw value for preference path, without any caching.
 
void _setRawValue (Glib::ustring const &path, Glib::ustring const &value)
 
void _reportError (Glib::ustring const &, Glib::ustring const &)
 
void _keySplit (Glib::ustring const &pref_path, Glib::ustring &node_key, Glib::ustring &attr_key)
 
XML::Node_getNode (Glib::ustring const &pref_path, bool create=false)
 Get the XML node corresponding to the given pref key.
 
XML::Node_findObserverNode (Glib::ustring const &pref_path, Glib::ustring &node_key, Glib::ustring &attr_key, bool create)
 Find the XML node to observe.
 
static _ObserverData * _get_pref_observer_data (Observer &o)
 

Detailed Description

Preference storage class.

This is a singleton that allows one to access the user preferences stored in the preferences.xml file. The preferences are stored in a file system-like hierarchy. They are generally typeless - it's up to the programmer to ensure that a given preference is always accessed as the correct type. The backend is not guaranteed to be tolerant to type mismatches.

Preferences are identified by paths similar to file system paths. Components of the path are separated by a slash (/). As an additional requirement, the path must start with a slash, and not contain a trailing slash. An example of a correct path would be "/options/some_group/some_option".

All preferences are loaded when the first singleton pointer is requested. To save the preferences, the method save() or the static function unload() can be used.

In future, this will be a virtual base from which specific backends derive (e.g. GConf, flat XML file...)

Definition at line 66 of file preferences.h.

Member Typedef Documentation

◆ _ObsMap

typedef std::map<Observer *, std::unique_ptr<PrefNodeObserver> > Inkscape::Preferences::_ObsMap
private

Definition at line 765 of file preferences.h.

Constructor & Destructor Documentation

◆ Preferences() [1/2]

Inkscape::Preferences::Preferences ( Preferences const &  )
delete

◆ Preferences() [2/2]

Inkscape::Preferences::Preferences ( )
private

◆ ~Preferences()

Inkscape::Preferences::~Preferences ( )
private

Definition at line 77 of file preferences.cpp.

References _prefs_doc, and Inkscape::GC::release().

Member Function Documentation

◆ _findObserverNode()

XML::Node * Inkscape::Preferences::_findObserverNode ( Glib::ustring const &  pref_path,
Glib::ustring &  node_key,
Glib::ustring &  attr_key,
bool  create 
)
private

Find the XML node to observe.

Definition at line 596 of file preferences.cpp.

References _getNode(), _keySplit(), child, create, Inkscape::XML::Node::firstChild(), and node.

Referenced by addObserver().

◆ _get_pref_observer_data()

static _ObserverData * Inkscape::Preferences::_get_pref_observer_data ( Observer o)
inlinestaticprivate

Definition at line 770 of file preferences.h.

References Inkscape::Preferences::Observer::_data.

◆ _getInheritedStyleForPath()

SPCSSAttr * Inkscape::Preferences::_getInheritedStyleForPath ( Glib::ustring const &  prefPath)
protected

Interpret the preference as a CSS style with directory-based inheritance.

This function will look up the preferences with the same entry name in ancestor directories and return the inherited CSS style.

Returns
Inherited CSS style that has to be unrefed after use. Never NULL.

Definition at line 1122 of file preferences.cpp.

References _getNode(), _keySplit(), node, and sp_repr_css_attr_inherited().

Referenced by Inkscape::Preferences::Entry::getInheritedStyle().

◆ _getNode()

Inkscape::XML::Node * Inkscape::Preferences::_getNode ( Glib::ustring const &  pref_key,
bool  create = false 
)
private

Get the XML node corresponding to the given pref key.

Parameters
pref_keyPreference key (path) to get.
createWhether to create the corresponding node if it doesn't exist.
separatorThe character used to separate parts of the pref key.
Returns
XML node corresponding to the specified key.

Derived from former inkscape_get_repr(). Private because it assumes that the backend is a flat XML file, which may not be the case e.g. if we are using GConf (in future).

Definition at line 677 of file preferences.cpp.

References _prefs_doc, Inkscape::XML::Node::appendChild(), child, create, Inkscape::XML::Document::createElement(), Inkscape::XML::Node::document(), Inkscape::XML::Node::firstChild(), node, Inkscape::XML::Node::root(), and Inkscape::XML::Node::setAttribute().

Referenced by _findObserverNode(), _getInheritedStyleForPath(), _getRawValue(), _setRawValue(), getAllDirs(), getAllEntries(), and remove().

◆ _getRawValue()

std::optional< Glib::ustring > Inkscape::Preferences::_getRawValue ( Glib::ustring const &  path)
private

Get raw value for preference path, without any caching.

std::nullopt is returned when the requested entry does not exist

Definition at line 740 of file preferences.cpp.

References _getNode(), _keySplit(), Inkscape::XML::Node::attribute(), and node.

Referenced by getEntry().

◆ _keySplit()

void Inkscape::Preferences::_keySplit ( Glib::ustring const &  pref_path,
Glib::ustring &  node_key,
Glib::ustring &  attr_key 
)
private

◆ _load()

void Inkscape::Preferences::_load ( )
private

Load the user's customized preferences.

Tries to load the user's preferences.xml file. If there is none, creates it.

Definition at line 107 of file preferences.cpp.

References _prefs_doc, _prefs_filename, _reportError(), _writable, Inkscape::loadImpl(), Inkscape::XML::Node::mergeFrom(), Inkscape::migrateDetails(), Inkscape::migrateFromDoc, msg, preferences_skeleton, Inkscape::IO::Resource::profile_path(), Inkscape::GC::release(), and Inkscape::XML::Node::root().

Referenced by Preferences(), and reset().

◆ _loadDefaults()

void Inkscape::Preferences::_loadDefaults ( )
private

Load internal defaults.

In the future this will try to load the system-wide file before falling back to the internal defaults.

Definition at line 89 of file preferences.cpp.

References _prefs_doc, preferences_skeleton, setBool(), setInt(), and sp_repr_read_mem().

Referenced by Preferences(), and reset().

◆ _reportError()

void Inkscape::Preferences::_reportError ( Glib::ustring const &  msg,
Glib::ustring const &  secondary 
)
private

◆ _setRawValue()

void Inkscape::Preferences::_setRawValue ( Glib::ustring const &  path,
Glib::ustring const &  value 
)
private

◆ addObserver()

void Inkscape::Preferences::addObserver ( Observer o)

◆ createObserver() [1/2]

PrefObserver Inkscape::Preferences::createObserver ( Glib::ustring  path,
std::function< void()>  callback 
)

Definition at line 1201 of file preferences.cpp.

References createObserver().

◆ createObserver() [2/2]

std::unique_ptr< PreferencesObserver > Inkscape::Preferences::createObserver ( Glib::ustring  path,
std::function< void(const Preferences::Entry &new_value)>  callback 
)

Create an observer watching preference 'path' and calling provided function when preference changes.

Function will be notified of changes to all leaves in a path: /path/ * Returned pointer should be stored for as long as notifications are expected and disposed of to remove observer object.

Referenced by Inkscape::UI::Widget::ColorNotebook::_initUI(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), createObserver(), Inkscape::UI::Dialog::ExtensionList::init(), Inkscape::UI::Toolbar::SnapToolbar::SnapToolbar(), Inkscape::UI::Widget::StatusBar::StatusBar(), Inkscape::Colors::CMS::System::System(), and Inkscape::UI::Toolbar::ToolToolbar::ToolToolbar().

◆ get()

static Preferences * Inkscape::Preferences::get ( )
inlinestatic

Access the singleton Preferences object.

Definition at line 680 of file preferences.h.

References _instance, and Preferences().

Referenced by Inkscape::UI::Dialog::ObjectsPanel::_activateAction(), Inkscape::UI::Tools::PencilTool::_addFreehandPoint(), Inkscape::UI::Widget::ColorNotebook::_addPageForSpace(), Inkscape::SelCue::_boundingBoxPrefsChanged(), Inkscape::UI::Tools::PenTool::_bsplineSpiroBuild(), Inkscape::UI::Tools::PenTool::_bsplineSpiroColor(), Inkscape::SelTrans::_calcAbsAffineDefault(), Inkscape::SelTrans::_calcAbsAffineGeom(), Inkscape::Extension::Implementation::Script::_change_extension(), SPGrid::_checkOldGrid(), Inkscape::DistributionSnapper::_collectBBoxes(), Inkscape::AlignmentSnapper::_collectBBoxPoints(), Inkscape::ObjectSnapper::_collectNodes(), Inkscape::ObjectSnapper::_collectPaths(), Inkscape::UI::PathManipulator::_deleteStretch(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::ControlPoint::_eventHandler(), SnapManager::_findCandidates(), Inkscape::UI::Tools::PencilTool::_fitAndSplit(), Inkscape::SelTrans::_getGeomHandlePos(), Inkscape::UI::MultiPathManipulator::_getOutlineColor(), Inkscape::UI::PathManipulator::_getStrokeTolerance(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::PenTool::_handleMotionNotify(), Inkscape::UI::Tools::PencilTool::_handleMotionNotify(), Inkscape::UI::Dialog::ObjectProperties::_init(), Inkscape::UI::Widget::ColorNotebook::_initUI(), Inkscape::UI::Tools::PencilTool::_interpolate(), Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardRotate(), Inkscape::UI::ControlPointSelection::_keyboardScale(), Inkscape::UI::Tools::PenTool::_lastpointMove(), Inkscape::Drawing::_loadPrefs(), Inkscape::SelCue::_newItemBboxes(), Inkscape::Extension::ParamColor::_onColorChanged(), Inkscape::UI::Dialog::XmlTree::_resized(), Inkscape::UI::Widget::CanvasGrid::_rulerMotion(), Inkscape::UI::Dialog::FillAndStroke::_savePagePref(), Inkscape::UI::Tools::ToolBase::_schedule_delayed_snap_event(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_segments_min_length_change(), Inkscape::SelTrans::_selChanged(), Inkscape::UI::Dialog::ObjectsPanel::_selectionChanged(), Inkscape::UI::Toolbar::Box3DToolbar::_selectionChanged(), Inkscape::UI::Toolbar::TextToolbar::_selectionChanged(), Inkscape::UI::Tools::PenTool::_setAngleDistanceStatusMessage(), Inkscape::UI::Dialog::GuidelinePropertiesDialog::_setup(), Inkscape::UI::Dialog::LayerPropertiesDialog::_setup_position_controls(), Inkscape::UI::Toolbar::ArcToolbar::_setupDerivedSpinButton(), Inkscape::UI::Toolbar::SpiralToolbar::_setupDerivedSpinButton(), Inkscape::UI::Toolbar::ArcToolbar::_setupStartendButton(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_angle_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_deltas_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_deltas_label_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_segments_label_change(), Inkscape::UI::Dialog::SelectorsDialog::_showWidgets(), Inkscape::UI::Tools::PencilTool::_sketchInterpolate(), Inkscape::UI::Toolbar::ArcToolbar::_startendValueChanged(), Inkscape::UI::Dialog::SelectorsDialog::_toggleDirection(), Inkscape::UI::Toolbar::ArcToolbar::_typeChanged(), Inkscape::SelCue::_updateItemBboxes(), Inkscape::UI::TransformHandleSet::_updateVisibility(), Inkscape::UI::Toolbar::RectToolbar::_valueChanged(), Inkscape::UI::Toolbar::SpiralToolbar::_valueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_valueChanged(), Inkscape::UI::Dialog::ColorItem::action_toggle_pin(), add_actions_canvas_mode(), add_actions_canvas_transform(), add_actions_object_align(), add_actions_pages(), add_actions_path(), add_actions_view_mode(), Inkscape::UI::ThemeContext::add_gtk_css(), Inkscape::UI::Toolbar::PencilToolbar::add_powerstroke_cap(), Inkscape::UI::Toolbar::PencilToolbar::add_shape_option(), GrDrag::addDraggersMesh(), Inkscape::UI::Tools::PagesTool::addDragShapes(), Inkscape::UI::Dialog::InkscapePreferences::AddNewObjectsStyle(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::UI::Dialog::GridArrangeTab::Align_changed(), Inkscape::UI::Toolbar::TextToolbar::align_mode_changed(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::angle_btn_change(), Inkscape::UI::Toolbar::CalligraphyToolbar::angle_value_changed(), Inkscape::UI::Toolbar::SelectToolbar::any_value_changed(), Inkscape::Application::Application(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::TextEdit::apply_changes(), apply_preferences_canvas_mode(), apply_preferences_canvas_transform(), Inkscape::ObjectSet::applyAffine(), SPDesktop::applyCurrentOrToolStyle(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageRotate(), Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Tools::ArcTool::ArcTool(), Inkscape::UI::Toolbar::ArcToolbar::ArcToolbar(), Inkscape::UI::Dialog::AttrDialog::AttrDialog(), Inkscape::UI::Toolbar::PaintbucketToolbar::autogap_changed(), Inkscape::UI::Dialog::BatchExport::BatchExport(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::between_btn_change(), Inkscape::UI::Toolbar::BooleansToolbar::BooleansToolbar(), Inkscape::UI::Tools::Box3dTool::Box3dTool(), Inkscape::UI::Toolbar::Box3DToolbar::Box3DToolbar(), Inkscape::UI::Dialog::DocumentProperties::browseExternalScript(), Inkscape::UI::Dialog::DialogNotebook::build_docking_menu(), build_menu(), Inkscape::UI::Toolbar::CalligraphyToolbar::build_presets_list(), Inkscape::UI::Tools::calculate_intersections(), Inkscape::Preferences::PreferencesObserver::call(), Inkscape::UI::Tools::CalligraphicTool::CalligraphicTool(), Inkscape::UI::Toolbar::CalligraphyToolbar::CalligraphyToolbar(), Inkscape::UI::Dialog::StartScreen::canvas_changed(), canvas_color_manage_toggle(), canvas_color_mode_gray(), canvas_interface_mode(), canvas_rotate_lock(), canvas_set_display_mode(), canvas_transform(), canvas_zoom_absolute(), Inkscape::UI::Widget::CanvasGrid::CanvasGrid(), Inkscape::CanvasItemGrid::CanvasItemGrid(), Inkscape::UI::Toolbar::CalligraphyToolbar::cap_rounding_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::cap_rounding_value_changed(), Inkscape::UI::Tools::cc_item_is_shape(), Inkscape::UI::Toolbar::PencilToolbar::change_cap(), Inkscape::UI::Toolbar::CalligraphyToolbar::change_profile(), Inkscape::UI::Toolbar::PencilToolbar::change_shape(), Inkscape::UI::Dialog::InkscapePreferences::changeIconsColors(), Inkscape::UI::Dialog::CloneTiler::checkbox(), Inkscape::UI::Dialog::CloneTiler::checkbox_toggled(), Inkscape::UI::Dialog::checkFontSubstitutions(), Inkscape::ObjectSet::cloneOriginal(), Inkscape::UI::Dialog::CloneTiler::CloneTiler(), Inkscape::UI::Toolbar::MeshToolbar::col_changed(), Inkscape::UI::Dialog::CommandPalette::CommandPalette(), Inkscape::UI::Toolbar::TextToolbar::configure_mode_buttons(), Inkscape::UI::Tools::ConnectorTool::ConnectorTool(), Inkscape::UI::Toolbar::ConnectorToolbar::ConnectorToolbar(), SnapManager::constrainedSnap(), ContextMenu::ContextMenu(), SPItem::convert_to_guides(), SPBox3D::convert_to_guides(), SPRect::convert_to_guides(), Inkscape::UI::Tools::MeasureTool::copyToClipboard(), SPAttributeTable::create(), SPMeshNodeArray::create(), Inkscape::Pixbuf::create_from_buffer(), Inkscape::Pixbuf::create_from_data_uri(), Inkscape::UI::Tools::LpeTool::create_measuring_items(), Inkscape::ObjectSet::createBitmapCopy(), Inkscape::CSSOStringStream::CSSOStringStream(), Inkscape::UI::Toolbar::ConnectorToolbar::curvature_changed(), Inkscape::ObjectSet::cut(), SPUse::delete_self(), Inkscape::UI::MultiPathManipulator::deleteNodes(), Inkscape::UI::Tools::NodeTool::deleteSelected(), Inkscape::Trace::Depixelize::DepixelizeTracingEngine::DepixelizeTracingEngine(), SPText::description(), SPItem::desktopPreferredBounds(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Dialog::DialogNotebook::DialogNotebook(), Inkscape::UI::Dialog::DialogWindow::DialogWindow(), Inkscape::UI::Toolbar::ConnectorToolbar::directed_graph_layout_toggled(), Inkscape::UI::Toolbar::TextToolbar::direction_changed(), Inkscape::PrefBase< T >::disable(), Inkscape::Pref< void >::disable(), SnapManager::displaySnapsource(), SPDocument::do_change_filename(), InkFileExportCmd::do_export_png(), Inkscape::UI::Dialog::CloneTiler::do_pick_toggled(), Inkscape::UI::Tools::do_trace(), Inkscape::ObjectSet::documentPreferredBounds(), SPItem::documentPreferredBounds(), Inkscape::LivePathEffect::LPEKnot::doEffect_path(), Inkscape::LivePathEffect::LPEJoinType::doOnApply(), Inkscape::LivePathEffect::LPEPowerStroke::doOnApply(), Inkscape::LivePathEffect::LPERoughen::doOnApply(), Inkscape::LivePathEffect::LPETaperStroke::doOnApply(), Inkscape::LivePathEffect::LPEPowerClip::doOnRemove(), Inkscape::LivePathEffect::LPEPowerMask::doOnRemove(), SPItem::doWriteTransform(), Inkscape::UI::Tools::Box3dTool::drag(), Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::GradientTool::drag(), Inkscape::UI::Tools::StarTool::drag(), Inkscape::UI::Handle::dragged(), Inkscape::UI::Node::dragged(), Inkscape::UI::Widget::ZoomCorrRuler::draw_marks(), Inkscape::UI::Dialog::Print::draw_page(), Inkscape::UI::Tools::DropperTool::DropperTool(), Inkscape::UI::Toolbar::DropperToolbar::DropperToolbar(), Inkscape::ObjectSet::duplicate(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::dX_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::dY_btn_change(), Inkscape::UI::Toolbar::NodeToolbar::edit_delete(), Inkscape::Extension::Internal::BlurEdge::effect(), Inkscape::PrefBase< T >::enable(), Inkscape::Pref< void >::enable(), Inkscape::UI::Dialog::StartScreen::enlist_keys(), Inkscape::UI::Toolbar::EraserToolbar::EraserToolbar(), Inkscape::UI::MultiPathManipulator::event(), SPKnot::eventHandler(), Inkscape::UI::Dialog::Export::Export(), Inkscape::UI::Dialog::ExtensionsGallery::ExtensionsGallery(), Inkscape::UI::Toolbar::TweakToolbar::fidelity_value_changed(), file_import(), Inkscape::UI::Dialog::CloneTiler::fill_height_changed(), Inkscape::UI::Dialog::CloneTiler::fill_width_changed(), Inkscape::UI::Dialog::TextEdit::fillTextStyle(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterEffectsDialog(), find_group_at_point(), find_items_at_point(), Inkscape::UI::Toolbar::CalligraphyToolbar::flatness_value_changed(), Inkscape::UI::Tools::FloodTool::FloodTool(), font_lister_cell_data_func2(), Inkscape::UI::Widget::FontList::FontList(), Inkscape::UI::Toolbar::TextToolbar::fontsize_unit_changed(), Inkscape::UI::Toolbar::MeasureToolbar::fontsize_value_changed(), Inkscape::UI::Toolbar::TextToolbar::fontsize_value_changed(), Inkscape::UI::Toolbar::TweakToolbar::force_value_changed(), Inkscape::UI::Dialog::gamutColorChanged(), Inkscape::UI::Dialog::CommandPalette::generate_action_operation(), Inkscape::UI::Tools::DropperTool::get_color(), Inkscape::UI::Tools::SelectTool::get_default_rubberband_state(), Inkscape::Extension::get_file_save_extension(), Inkscape::Extension::get_file_save_path(), Inkscape::FontLister::get_font_family_markup(), Inkscape::UI::Dialog::InkscapePreferences::get_highlight_colors(), Inkscape::Extension::InxParameter::get_int(), Inkscape::UI::Toolbar::get_presets_list(), Inkscape::get_size_default(), get_snapping_preferences(), Inkscape::UI::Dialog::get_start_directory(), Inkscape::UI::Dialog::StartScreen::get_start_mode(), Inkscape::UI::ThemeContext::get_symbolic_colors(), get_syntax_theme(), SPIFontSize::get_value(), SPImage::getBrokenImage(), Inkscape::UI::Widget::StrokeStyle::getDashFromStyle(), Inkscape::Colors::CMS::System::getDisplayProfile(), Inkscape::Colors::CMS::System::getDisplayTransform(), Inkscape::UI::ThemeContext::getFontScale(), Inkscape::Preferences::Entry::getInheritedStyle(), SPDocument::getItemFromListAtPointBottom(), SPDocument::getItemsAtPoints(), Inkscape::UI::ThemeContext::getMonospacedFont(), Inkscape::SelTrans::getNextClosestPoint(), Inkscape::UI::TransformHandle::getNextClosestPoint(), Inkscape::AlignmentSnapper::getSnapperAlwaysSnap(), Inkscape::DistributionSnapper::getSnapperAlwaysSnap(), Inkscape::GridSnapper::getSnapperAlwaysSnap(), Inkscape::GuideSnapper::getSnapperAlwaysSnap(), Inkscape::ObjectSnapper::getSnapperAlwaysSnap(), gr_knot_moved_handler(), Inkscape::SelTrans::grab(), Inkscape::UI::TransformHandle::grabbed(), Inkscape::UI::Widget::GradientEditor::GradientEditor(), Inkscape::UI::Tools::GradientTool::GradientTool(), Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), Inkscape::UI::Toolbar::ConnectorToolbar::graph_layout(), graphlayout(), Inkscape::UI::Dialog::GridArrangeTab::GridArrangeTab(), gui_request_dpi_fix_method(), Inkscape::UI::Tools::has_mesh(), Inkscape::LivePathEffect::Effect::hasDefaultParameters(), Inkscape::UI::Toolbar::PencilToolbar::hide_extra_widgets(), SPItem::highlight_color(), Inkscape::UI::Dialog::IconPreviewPanel::IconPreviewPanel(), Inkscape::SelTrans::increaseState(), Inkscape::PrefBase< T >::init(), Inkscape::Shortcuts::init(), Inkscape::UI::Toolbar::SprayToolbar::init(), Inkscape::UI::Dialog::ExtensionList::init(), Inkscape::UI::Widget::PrefColorPicker::init(), Inkscape::UI::Widget::PrefCheckButton::init(), Inkscape::UI::Widget::PrefRadioButton::init(), Inkscape::UI::Widget::PrefRadioButton::init(), Inkscape::UI::Widget::PrefUnit::init(), Inkscape::UI::Widget::PrefEntry::init(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::init(), Inkscape::UI::Widget::PrefEntryButtonHBox::init(), Inkscape::UI::Widget::PrefSpinUnit::init(), Inkscape::UI::Widget::PrefSpinButton::init(), Inkscape::UI::Widget::PrefSlider::init(), Inkscape::UI::Widget::PrefMultiEntry::init(), Inkscape::UI::Widget::PrefCombo::init(), Inkscape::UI::Widget::PrefCombo::init(), Inkscape::UI::Widget::ZoomCorrRulerSlider::init(), Inkscape::UI::Dialog::InkscapePreferences::initPageIO(), Inkscape::UI::Dialog::InkscapePreferences::initPageRendering(), Inkscape::UI::Dialog::InkscapePreferences::initPageSystem(), Inkscape::UI::Dialog::InkscapePreferences::initPageUI(), InkscapeWindow::InkscapeWindow(), Inkscape::UI::Tools::InteractiveBooleansTool::InteractiveBooleansTool(), Inkscape::Extension::ProcessingAction::is_enabled(), Inkscape::UI::Dialog::ColorItem::is_pinned(), Inkscape::UI::ThemeContext::isCurrentThemeDark(), Inkscape::SnappedPoint::isOtherSnapBetter(), Inkscape::UI::Tools::SelectTool::item_handler(), Inkscape::UI::Dialog::CloneTiler::keep_bbox_toggled(), GrDrag::key_press_handler(), Inkscape::UI::Dialog::StartScreen::keyboard_changed(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), PatternKnotHolderEntityAngle::knot_set(), HatchKnotHolderEntityAngle::knot_set(), Inkscape::UI::Tools::MeasureTool::knotClickHandler(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::labels_btn_change(), SPDesktopWidget::layoutWidgets(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::length_btn_change(), Inkscape::UI::Toolbar::ConnectorToolbar::length_changed(), Inkscape::UI::Toolbar::StarToolbar::length_value_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Toolbar::GradientToolbar::linked_changed(), Inkscape::UI::Dialog::DialogContainer::load_container_state(), Inkscape::UI::Dialog::StartScreen::load_document(), Inkscape::UI::Widget::EntityLineEntry::load_from_preferences(), Inkscape::UI::Widget::EntityMultiLineEntry::load_from_preferences(), Inkscape::load_svg_cursor(), Inkscape::UI::Dialog::SwatchesPanel::load_swatches(), Inkscape::LivePathEffect::LPEMeasureSegments::LPEMeasureSegments(), Inkscape::UI::Tools::LpeTool::LpeTool(), Inkscape::UI::Tools::lpetool_get_limiting_bbox_corners(), Inkscape::UI::Toolbar::LPEToolbar::LPEToolbar(), Inkscape::UI::Toolbar::StarToolbar::magnitude_value_changed(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), Inkscape::UI::Toolbar::ToolToolbar::makeContextMenu(), Inkscape::UI::Tools::MarkerTool::MarkerTool(), Inkscape::UI::Toolbar::CalligraphyToolbar::mass_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::mass_value_changed(), Inkscape::UI::Dialog::InkscapePreferences::matchPage(), Inkscape::UI::Toolbar::PencilToolbar::maxpressure_value_changed(), Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Toolbar::SprayToolbar::mean_value_changed(), Inkscape::UI::Toolbar::MeasureToolbar::MeasureToolbar(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Toolbar::TextToolbar::mergeDefaultStyle(), Inkscape::UI::Tools::MeshTool::MeshTool(), Inkscape::UI::Toolbar::MeshToolbar::MeshToolbar(), Inkscape::UI::Toolbar::PencilToolbar::minpressure_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::mode_changed(), Inkscape::UI::Toolbar::LPEToolbar::mode_changed(), Inkscape::UI::Toolbar::PencilToolbar::mode_changed(), Inkscape::UI::Toolbar::SprayToolbar::mode_changed(), Inkscape::UI::Toolbar::TweakToolbar::mode_changed(), Inkscape::UI::Toolbar::SnapToolbar::mode_update(), Inkscape::UI::Dialog::IconPreviewPanel::modeToggled(), SPUse::move_compensate(), Inkscape::PageManager::move_objects(), SnapManager::multipleConstrainedSnaps(), Inkscape::UI::Tools::MeshTool::new_default(), Inkscape::UI::Dialog::DialogContainer::new_dialog(), Inkscape::UI::Dialog::DialogContainer::new_dialog(), Inkscape::UI::Toolbar::GradientToolbar::new_fillstroke_changed(), Inkscape::UI::Toolbar::MeshToolbar::new_fillstroke_changed(), Inkscape::UI::Toolbar::MeshToolbar::new_geometry_changed(), Inkscape::UI::Toolbar::GradientToolbar::new_type_changed(), Inkscape::UI::NewFromTemplate::NewFromTemplate(), Inkscape::LivePathEffect::LPETiling::newWidget(), node_align(), Inkscape::UI::Tools::NodeTool::NodeTool(), Inkscape::UI::Toolbar::ConnectorToolbar::nooverlaps_graph_layout_toggled(), Inkscape::UI::Toolbar::StarToolbar::notifyAttributeChanged(), object_align(), object_align_on_canvas(), object_align_text(), object_distribute(), object_rearrange(), object_remove_overlaps(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Toolbar::PaintbucketToolbar::offset_changed(), Inkscape::UI::Toolbar::MeasureToolbar::offset_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::offset_value_changed(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_as_group_clicked(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_relative_node_changed(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_relative_object_changed(), Inkscape::UI::Widget::PrefCombo::on_changed(), Inkscape::UI::Widget::PrefMultiEntry::on_changed(), Inkscape::UI::Widget::PrefEntry::on_changed(), Inkscape::UI::Widget::PrefEntryFile::on_changed(), Inkscape::UI::Widget::PrefUnit::on_changed(), Inkscape::UI::Widget::PrefColorPicker::on_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_ColSize_checkbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_colSize_spinbutton_changed(), Inkscape::UI::Widget::ZoomCorrRuler::on_draw(), InkscapeApplication::on_handle_local_options(), Inkscape::UI::Widget::PrefSpinUnit::on_my_value_changed(), Inkscape::UI::Dialog::InkscapePreferences::on_pagelist_selection_changed(), Inkscape::UI::Toolbar::DropperToolbar::on_pick_alpha_button_toggled(), Inkscape::UI::Dialog::CloneTiler::on_picker_color_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::on_pref_toggled(), Inkscape::UI::Toolbar::NodeToolbar::on_pref_toggled(), Inkscape::UI::Widget::Ruler::on_prefs_changed(), Inkscape::UI::Dialog::InkscapePreferences::on_reset_prefs_clicked(), Inkscape::UI::Dialog::GridArrangeTab::on_RowSize_checkbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_rowSize_spinbutton_changed(), Inkscape::UI::Toolbar::DropperToolbar::on_set_alpha_button_toggled(), Inkscape::UI::Widget::FontSelector::on_size_changed(), Inkscape::UI::Widget::ZoomCorrRulerSlider::on_slider_value_changed(), Inkscape::UI::Widget::PrefSlider::on_slider_value_changed(), Inkscape::UI::Widget::ZoomCorrRulerSlider::on_spinbutton_value_changed(), Inkscape::UI::Widget::PrefSlider::on_spinbutton_value_changed(), Inkscape::UI::Widget::PrefCheckButton::on_toggled(), Inkscape::UI::Widget::PrefRadioButton::on_toggled(), Inkscape::UI::Widget::ZoomCorrRulerSlider::on_unit_changed(), SPDesktopWidget::on_unrealize(), Inkscape::UI::Widget::PrefSpinButton::on_value_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_xpad_spinbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_ypad_spinbutton_changed(), Inkscape::UI::Dialog::Transformation::onApplySeparatelyToggled(), SPDesktopWidget::onFocus(), Inkscape::UI::Dialog::TextEdit::onReadSelection(), Inkscape::UI::Widget::PrefEntryButtonHBox::onRelatedButtonClickedCallback(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::onRelatedButtonClickedCallback(), Inkscape::UI::Widget::PrefEntryButtonHBox::onRelatedEntryChangedCallback(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::onRelatedEntryChangedCallback(), Inkscape::UI::Widget::PrefEditFolder::onRelatedEntryChangedCallback(), Inkscape::UI::Dialog::Transformation::onRotateClockwiseClicked(), Inkscape::UI::Dialog::Transformation::onRotateCounterclockwiseClicked(), Inkscape::UI::Dialog::TextEdit::onSetDefault(), Inkscape::Extension::open(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::Internal::Svg::open(), SPLPEItem::optimizeTransforms(), Inkscape::UI::Toolbar::TextToolbar::orientation_changed(), Inkscape::UI::Toolbar::ConnectorToolbar::orthogonal_toggled(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::UI::Toolbar::PaintbucketToolbar::PaintbucketToolbar(), Inkscape::LivePathEffect::ScalarParam::param_transform_multiply(), Inkscape::LivePathEffect::NodeSatelliteArrayParam::param_transform_multiply(), Inkscape::LivePathEffect::PowerStrokePointArrayParam::param_transform_multiply(), Inkscape::Extension::ParamBool::ParamBool(), Inkscape::Extension::ParamColor::ParamColor(), Inkscape::Extension::ParamFloat::ParamFloat(), Inkscape::Extension::ParamInt::ParamInt(), Inkscape::Extension::ParamNotebook::ParamNotebook(), Inkscape::Extension::ParamOptionGroup::ParamOptionGroup(), Inkscape::Extension::ParamPath::ParamPath(), Inkscape::Extension::ParamString::ParamString(), path_simplify(), Inkscape::SVG::PathString::PathString(), Inkscape::UI::Widget::PatternEditor::PatternEditor(), Inkscape::UI::Tools::PencilTool::PencilTool(), Inkscape::UI::Toolbar::PencilToolbar::PencilToolbar(), Inkscape::UI::Tools::PenTool::PenTool(), Inkscape::UI::Dialog::CloneTiler::pick_switched(), Inkscape::UI::Dialog::CloneTiler::pick_to(), Inkscape::UI::Widget::ComboToolItem::populate_combobox(), Inkscape::UI::Toolbar::SprayToolbar::population_value_changed(), SPGenericEllipse::position_set(), Inkscape::UI::Toolbar::MeasureToolbar::precision_value_changed(), Inkscape::UI::Dialog::InkscapePreferences::preferDarkThemeChange(), Inkscape::Preferences::PreferencesObserver::PreferencesObserver(), Inkscape::ObjectSet::preferredBounds(), Inkscape::UI::Toolbar::TweakToolbar::pressure_state_changed(), Inkscape::UI::Dialog::profileComboChanged(), Inkscape::UI::Dialog::proofComboChanged(), Inkscape::UI::Toolbar::StarToolbar::proportion_value_changed(), Inkscape::UI::Dialog::IconPreviewPanel::queueRefreshIfAutoRefreshEnabled(), Inkscape::UI::Toolbar::StarToolbar::randomized_value_changed(), rdf_add_from_preferences(), Inkscape::Pref< bool >::read(), Inkscape::Pref< int >::read(), Inkscape::Pref< double >::read(), Inkscape::Pref< Glib::ustring >::read(), Inkscape::LivePathEffect::Effect::readallParameters(), SPStyle::readFromPrefs(), Inkscape::UI::Tools::MeasureTool::readMeasurePoint(), Inkscape::RecentlyUsedFonts::RecentlyUsedFonts(), Inkscape::UI::Dialog::DialogContainer::recreate_dialogs_from_state(), Inkscape::UI::Tools::RectTool::RectTool(), Inkscape::UI::Toolbar::RectToolbar::RectToolbar(), Inkscape::UI::Dialog::StartScreen::refresh_dark_switch(), Inkscape::UI::Dialog::StartScreen::refresh_keys_warning(), Inkscape::UI::Dialog::StartScreen::refresh_theme(), GrDrag::refreshDraggersMesh(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::ObjectSet::relink(), Inkscape::UI::Widget::RenderingOptions::RenderingOptions(), SPDesktopWidget::repack_snaptoolbar(), SPObject::requestOrphanCollection(), Inkscape::UI::Tools::LpeTool::reset_limiting_bbox(), Inkscape::UI::Dialog::InkscapePreferences::resetIconsColors(), Inkscape::Extension::Implementation::Script::resolveInterpreterExecutable(), Inkscape::UI::Dialog::DialogManager::restore_dialogs_state(), Inkscape::UI::Tools::ToolBase::root_handler(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::CalligraphicTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::GradientTool::root_handler(), Inkscape::UI::Tools::LpeTool::root_handler(), Inkscape::UI::Tools::MeasureTool::root_handler(), Inkscape::UI::Tools::MeshTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SelectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Tools::ZoomTool::root_handler(), Inkscape::UI::PathManipulator::rotateHandle(), Inkscape::SelTrans::rotateRequest(), Inkscape::UI::Toolbar::SprayToolbar::rotation_value_changed(), Inkscape::UI::Toolbar::StarToolbar::rounded_value_changed(), Inkscape::UI::Toolbar::MeshToolbar::row_changed(), Inkscape::UI::Widget::Ruler::Ruler(), Inkscape::AutoSave::save(), Inkscape::UI::Dialog::DialogManager::save_dialogs_state(), save_preferences(), Inkscape::UI::Toolbar::CalligraphyToolbar::save_profile(), Inkscape::UI::Widget::EntityEntry::save_to_preferences(), Inkscape::UI::ThemeContext::saveFontScale(), Inkscape::UI::ThemeContext::saveMonospacedFont(), Inkscape::UI::Toolbar::MeasureToolbar::scale_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::scale_value_changed(), SPDocument::scaleContentBy(), Inkscape::UI::PathManipulator::scaleHandle(), Inkscape::SelTrans::scaleRequest(), SPDesktop::scroll_to_point(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::segments_btn_change(), Inkscape::SelCue::SelCue(), Inkscape::UI::ThemeContext::select_default_syntax_style(), Inkscape::Handles::Manager::select_theme(), GrDrag::selected_move(), Inkscape::FontLister::selection_update(), Inkscape::UI::Tools::SelectTool::SelectTool(), Inkscape::UI::Toolbar::SelectToolbar::SelectToolbar(), Inkscape::SelTrans::SelTrans(), Inkscape::Extension::ParamBool::set(), Inkscape::Extension::ParamOptionGroup::set(), Inkscape::Extension::ParamNotebook::set(), Inkscape::Extension::InxParameter::set(), Inkscape::Extension::ParamPath::set(), Inkscape::Extension::ParamFloat::set(), Inkscape::Extension::ParamString::set(), Inkscape::Extension::ParamInt::set(), Inkscape::UI::Tools::DynamicBase::set(), Inkscape::UI::Tools::LpeTool::set(), Inkscape::UI::Tools::FloodTool::set_channels(), Inkscape::UI::Widget::FontSelector::set_fontsize_tooltip(), set_move_objects(), Inkscape::Display::SnapIndicator::set_new_snapsource(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), Inkscape::UI::Dialog::SwatchesPanel::set_palette(), set_simple_snap(), Inkscape::UI::Widget::FontSelector::set_sizes(), Inkscape::UI::Tools::TweakTool::set_style(), SPText::set_transform(), Inkscape::UI::Toolbar::ToolToolbar::set_visible_buttons(), Inkscape::XML::SimpleNode::setAttributeImpl(), Inkscape::UI::Tools::SprayTool::setCloneTilerPrefs(), Inkscape::LayerManager::setCurrentLayer(), Inkscape::LivePathEffect::Effect::setDefaultParam(), Inkscape::UI::Toolbar::MeasureToolbar::setDesktop(), Inkscape::UI::Toolbar::PencilToolbar::setDesktop(), Inkscape::UI::Widget::PrefEditFolder::setFolderPath(), Inkscape::ObjectSet::setMask(), Inkscape::UI::Dialog::LivePathEffectEditor::setMenu(), Inkscape::UI::Tools::PenTool::setPolylineMode(), Inkscape::UI::Dialog::AttrDialog::setPrecision(), SPGrid::setPrefValues(), Inkscape::UI::Dialog::TextEdit::setPreviewText(), Inkscape::UI::Dialog::ObjectsPanel::setRootWatcher(), Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), Inkscape::UI::Widget::StrokeStyle::setStrokeWidth(), Inkscape::UI::Dialog::ExtensionList::setup(), Inkscape::UI::Dialog::ExportList::setup(), Inkscape::UI::Toolbar::SelectToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::GradientToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::MeasureToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::PaintbucketToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::CalligraphyToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::ConnectorToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::EraserToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::MeshToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::PencilToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::SprayToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::StarToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::TextToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::TweakToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::Box3DToolbar::setup_derived_spin_button(), Inkscape::Extension::Internal::Metafile::setViewBoxIfMissing(), shape_builder_mode(), shape_builder_replace(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_height_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_length_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_width_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_X_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_Y_btn_change(), Inkscape::UI::Toolbar::PencilToolbar::shapewidth_value_changed(), Inkscape::IO::Resource::shared_path(), Inkscape::UI::Tools::InteractiveBooleansTool::should_add(), Inkscape::UI::Dialog::ExtensionsGallery::show_category(), Inkscape::UI::Dialog::InkscapePreferences::show_not_found(), Inkscape::UI::Dialog::StartScreen::show_now(), Inkscape::UI::Widget::GradientEditor::show_stops(), Inkscape::UI::Dialog::StartScreen::show_toggle(), Inkscape::UI::Dialog::StartScreen::show_welcome(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Dialog::ObjectsPanel::showChildInTree(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Toolbar::StarToolbar::side_mode_changed(), Inkscape::UI::SimplePrefPusher::SimplePrefPusher(), Inkscape::UI::Toolbar::PencilToolbar::simplify_lpe(), Inkscape::ObjectSet::simplifyPaths(), Inkscape::UI::Dialog::SingleExport::SingleExport(), Inkscape::UI::Widget::Canvas::size_allocate_vfunc(), Inkscape::SelTrans::skewRequest(), Inkscape::UI::snap_increment_degrees(), Inkscape::UI::Widget::ColorTagRenderer::snapshot_vfunc(), Inkscape::UI::Toolbar::SnapToolbar::SnapToolbar(), Inkscape::UI::Dialog::sp_add_fav(), sp_attribute_clean_get_prefs(), Inkscape::LivePathEffect::sp_bspline_do_effect(), sp_desktop_apply_style_tool(), sp_desktop_get_color_tool(), sp_desktop_get_font_size_tool(), sp_desktop_get_master_opacity_tool(), sp_desktop_get_opacity_tool(), sp_desktop_root_handler(), sp_desktop_set_style(), sp_document_default_gradient_vector(), sp_dt_guide_event(), sp_edit_select_all_full(), Inkscape::UI::Tools::sp_event_context_read(), sp_file_convert_dpi(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), sp_gradient_fork_vector_if_necessary(), sp_gradient_get_private_normalized(), sp_gradient_reset_to_userspace(), Inkscape::UI::Dialog::sp_has_fav(), Inkscape::UI::Dialog::sp_icon_doc_icon(), sp_import_document(), sp_item_group_ungroup(), sp_marker_fork_if_necessary(), sp_namedview_document_from_window(), sp_namedview_window_from_document(), sp_offset_delete_self(), sp_offset_move_compensate(), Inkscape::UI::Dialog::sp_remove_fav(), sp_repr_do_read(), sp_repr_save_writer(), sp_repr_write_stream_root_element(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), sp_selected_path_create_offset_object(), sp_selected_path_inset(), sp_selected_path_offset(), sp_selection_item_next(), sp_selection_item_prev(), Inkscape::UI::Dialog::sp_set_experimental(), sp_svg_transform_write(), sp_transientize(), Inkscape::UI::Tools::sp_tweak_switch_mode_temporarily(), sp_usepath_delete_self(), sp_usepath_move_compensate(), Inkscape::UI::Dialog::GridArrangeTab::Spacing_button_changed(), Inkscape::UI::Tools::spdc_apply_bend_shape(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_concat_colors_and_flush(), Inkscape::UI::Tools::spdc_create_single_dot(), Inkscape::UI::Tools::spdc_endpoint_snap_rotation(), Inkscape::UI::Tools::spdc_paste_curve_as_freehand_shape(), SPDesktop::SPDesktop(), SPDesktopWidget::SPDesktopWidget(), Inkscape::UI::Dialog::CloneTiler::spinbox(), Inkscape::UI::Tools::SpiralTool::SpiralTool(), Inkscape::UI::Tools::SprayTool::SprayTool(), Inkscape::UI::Toolbar::SprayToolbar::SprayToolbar(), Inkscape::UI::Toolbar::SprayToolbar::standard_deviation_value_changed(), Inkscape::AutoSave::start(), Inkscape::Rubberband::start(), Inkscape::UI::Tools::StarTool::StarTool(), Inkscape::UI::Toolbar::StarToolbar::StarToolbar(), Inkscape::UI::Widget::StatusBar::StatusBar(), SPDesktopWidget::sticky_zoom_toggled(), SPDesktopWidget::sticky_zoom_updated(), Inkscape::Extension::store_file_extension_in_prefs(), Inkscape::Extension::store_save_path_in_prefs(), store_snapping_action(), Inkscape::ObjectSet::strokesToPaths(), Inkscape::UI::Dialog::StyleFromSelectionToTool(), Inkscape::SVGIStringStream::SVGIStringStream(), Inkscape::SVGIStringStream::SVGIStringStream(), Inkscape::SVGOStringStream::SVGOStringStream(), Inkscape::UI::Dialog::SwatchesPanel::SwatchesPanel(), Inkscape::UI::Dialog::CloneTiler::switch_to_create(), Inkscape::UI::Dialog::CloneTiler::switch_to_fill(), Inkscape::UI::Tools::InteractiveBooleansTool::switching_away(), Inkscape::UI::Dialog::InkscapePreferences::symbolicThemeCheck(), Inkscape::UI::Dialog::CloneTiler::symgroup_changed(), Inkscape::Colors::CMS::System::System(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::tabs_btn_change(), text_flow_into_shape(), Inkscape::UI::Dialog::TextEdit::TextEdit(), Inkscape::UI::Tools::TextTool::TextTool(), Inkscape::UI::Toolbar::TextToolbar::TextToolbar(), Inkscape::UI::Dialog::StartScreen::theme_changed(), Inkscape::UI::Dialog::InkscapePreferences::themeChange(), Inkscape::UI::ThemeContext::themechangecallback(), Inkscape::UI::Toolbar::PaintbucketToolbar::threshold_changed(), Inkscape::ObjectSet::tile(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_all_layers(), Inkscape::UI::Toolbar::EraserToolbar::toggle_break_apart(), Inkscape::UI::Toolbar::SelectToolbar::toggle_corners(), Inkscape::UI::Toolbar::TweakToolbar::toggle_doh(), Inkscape::UI::Toolbar::TweakToolbar::toggle_dol(), Inkscape::UI::Toolbar::TweakToolbar::toggle_doo(), Inkscape::UI::Toolbar::TweakToolbar::toggle_dos(), Inkscape::UI::Toolbar::MeshToolbar::toggle_fill_stroke(), Inkscape::UI::Toolbar::SelectToolbar::toggle_gradient(), Inkscape::UI::Toolbar::MeshToolbar::toggle_handles(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_ignore_1st_and_last(), Inkscape::UI::Toolbar::SelectToolbar::toggle_lock(), Inkscape::UI::Toolbar::SprayToolbar::toggle_no_overlap(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_only_selected(), Inkscape::UI::Toolbar::SelectToolbar::toggle_pattern(), Inkscape::UI::Toolbar::SprayToolbar::toggle_picker(), Inkscape::UI::Toolbar::SprayToolbar::toggle_pressure_scale(), Inkscape::UI::Toolbar::LPEToolbar::toggle_set_bbox(), Inkscape::UI::Toolbar::LPEToolbar::toggle_show_bbox(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_show_hidden(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_show_in_between(), Inkscape::UI::Toolbar::LPEToolbar::toggle_show_measuring_info(), Inkscape::UI::Toolbar::SelectToolbar::toggle_stroke(), Inkscape::UI::Toolbar::SelectToolbar::toggle_touch(), Inkscape::UI::Widget::CanvasGrid::ToggleRulers(), Inkscape::UI::Widget::CanvasGrid::ToggleScrollbars(), Inkscape::UI::Dialog::InkscapePreferences::toggleSymbolic(), SPDesktop::toggleToolbar(), Inkscape::ObjectSet::toGuides(), Inkscape::UI::Toolbar::PencilToolbar::tolerance_value_changed(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), Inkscape::ObjectSet::toMarker(), tool_preferences(), Inkscape::UI::Toolbar::ToolToolbar::ToolToolbar(), Inkscape::ObjectSet::toSymbol(), transform_grow_step(), Inkscape::LivePathEffect::LPEJoinType::transform_multiply(), Inkscape::LivePathEffect::LPETaperStroke::transform_multiply(), transform_rotate_step(), Inkscape::UI::Toolbar::CalligraphyToolbar::tremor_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::tremor_value_changed(), Inkscape::UI::Tools::TweakTool::TweakTool(), Inkscape::UI::Toolbar::TweakToolbar::TweakToolbar(), Inkscape::UI::Handle::ungrabbed(), Inkscape::UI::Dialog::CloneTiler::unit_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::unit_changed(), Inkscape::UI::Toolbar::LPEToolbar::unit_changed(), Inkscape::UI::Toolbar::MeasureToolbar::unit_changed(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::units_btn_change(), Inkscape::ObjectSet::unlinkRecursive(), Inkscape::LivePathEffect::Effect::unsetDefaultParam(), Inkscape::ObjectSet::unsetMask(), Inkscape::UI::Tools::LpeTool::update_measuring_items(), Inkscape::UI::Dialog::ExtensionsGallery::update_name(), Inkscape::Extension::update_pref(), Inkscape::UI::Toolbar::CalligraphyToolbar::update_presets_list(), Inkscape::UI::Tools::InteractiveBooleansTool::update_status(), Inkscape::UI::Widget::StatusBar::update_visibility(), Inkscape::UI::Toolbar::PencilToolbar::update_width_value(), Inkscape::UI::Widget::StatusBar::update_zoom(), GrDrag::updateLines(), Inkscape::UI::Widget::CanvasGrid::updateScrollbars(), Inkscape::UI::Toolbar::PencilToolbar::use_pencil_pressure(), Inkscape::UI::Toolbar::EraserToolbar::usepressure_toggled(), Inkscape::UI::Dialog::CloneTiler::value_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::velthin_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::velthin_value_changed(), view_set_gui(), Inkscape::UI::Toolbar::CalligraphyToolbar::width_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::width_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::width_value_changed(), Inkscape::UI::Toolbar::TweakToolbar::width_value_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::wiggle_value_changed(), SPObject::write(), Inkscape::UI::Tools::MeasureTool::writeMeasurePoint(), Inkscape::UI::Toolbar::TextToolbar::writing_mode_changed(), Inkscape::UI::Dialog::XmlTree::XmlTree(), Inkscape::UI::Dialog::CloneTiler::xy_changed(), SPDesktop::zoom_realworld(), Inkscape::UI::Tools::ZoomTool::ZoomTool(), Inkscape::Preferences::Observer::~Observer(), Inkscape::UI::SimplePrefPusher::~SimplePrefPusher(), and Inkscape::UI::Dialog::StartScreen::~StartScreen().

◆ getAllDirs()

std::vector< Glib::ustring > Inkscape::Preferences::getAllDirs ( Glib::ustring const &  path)

Get all subdirectories of the specified directory.

Get the paths to all subdirectories of the specified path.

This will return a vector populated with full paths to the subdirectories present in the specified path.

Parameters
pathPreference path to query.
Returns
A vector containing absolute paths to all subdirectories in the given path.

Definition at line 332 of file preferences.cpp.

References _getNode(), Inkscape::XML::Node::firstChild(), and node.

Referenced by Inkscape::UI::Toolbar::get_presets_list(), and Inkscape::UI::Dialog::IconPreviewPanel::IconPreviewPanel().

◆ getAllEntries()

std::vector< Preferences::Entry > Inkscape::Preferences::getAllEntries ( Glib::ustring const &  path)

Get all entries from the specified directory.

Get names of all entries in the specified path.

This method will return a vector populated with preference entries from the specified directory. Subdirectories will not be represented.

Parameters
pathPreference path to query.
Returns
A vector containing all entries in the given directory.

Definition at line 314 of file preferences.cpp.

References _getNode(), Inkscape::XML::Node::attributeList(), and node.

Referenced by Inkscape::UI::Toolbar::CalligraphyToolbar::change_profile(), SPStyle::readFromPrefs(), and Inkscape::UI::Toolbar::CalligraphyToolbar::update_presets_list().

◆ getBool()

bool Inkscape::Preferences::getBool ( Glib::ustring const &  pref_path,
bool  def = false 
)
inline

Retrieve a Boolean value.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.

Definition at line 429 of file preferences.h.

References Inkscape::Preferences::Entry::getBool(), and getEntry().

Referenced by Inkscape::UI::Tools::PenTool::_bsplineSpiroBuild(), Inkscape::SelTrans::_calcAbsAffineDefault(), Inkscape::SelTrans::_calcAbsAffineGeom(), Inkscape::DistributionSnapper::_collectBBoxes(), Inkscape::AlignmentSnapper::_collectBBoxPoints(), Inkscape::ObjectSnapper::_collectNodes(), Inkscape::ObjectSnapper::_collectPaths(), SnapManager::_findCandidates(), Inkscape::SelTrans::_getGeomHandlePos(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Dialog::ObjectProperties::_init(), Inkscape::SelCue::_newItemBboxes(), Inkscape::SelTrans::_selChanged(), Inkscape::UI::Dialog::ObjectsPanel::_selectionChanged(), Inkscape::UI::Tools::PenTool::_setAngleDistanceStatusMessage(), Inkscape::UI::Dialog::SelectorsDialog::_showWidgets(), Inkscape::UI::Tools::PencilTool::_sketchInterpolate(), Inkscape::SelCue::_updateItemBboxes(), add_actions_pages(), Inkscape::UI::ThemeContext::add_gtk_css(), GrDrag::addDraggersMesh(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::Application::Application(), Inkscape::UI::Dialog::CloneTiler::apply(), SPDesktop::applyCurrentOrToolStyle(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageRotate(), Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Tools::ArcTool::ArcTool(), Inkscape::UI::Tools::calculate_intersections(), Inkscape::CanvasItemGrid::CanvasItemGrid(), Inkscape::UI::Tools::cc_item_is_shape(), Inkscape::UI::Dialog::InkscapePreferences::changeIconsColors(), Inkscape::UI::Dialog::checkFontSubstitutions(), Inkscape::ObjectSet::cloneOriginal(), Inkscape::UI::Tools::ConnectorTool::ConnectorTool(), SnapManager::constrainedSnap(), ContextMenu::ContextMenu(), SPBox3D::convert_to_guides(), SPRect::convert_to_guides(), Inkscape::UI::Tools::MeasureTool::copyToClipboard(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Dialog::DialogWindow::DialogWindow(), SnapManager::displaySnapsource(), SPDocument::do_change_filename(), Inkscape::LivePathEffect::LPEPowerStroke::doOnApply(), Inkscape::LivePathEffect::LPEPowerClip::doOnRemove(), Inkscape::LivePathEffect::LPEPowerMask::doOnRemove(), SPItem::doWriteTransform(), Inkscape::ObjectSet::duplicate(), Inkscape::UI::Dialog::TextEdit::fillTextStyle(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterEffectsDialog(), Inkscape::UI::Dialog::CommandPalette::generate_action_operation(), Inkscape::Extension::get_file_save_path(), Inkscape::UI::Dialog::InkscapePreferences::get_highlight_colors(), Inkscape::UI::ThemeContext::get_symbolic_colors(), SPIFontSize::get_value(), Inkscape::SelTrans::getNextClosestPoint(), Inkscape::UI::TransformHandle::getNextClosestPoint(), getOptionalBool(), Inkscape::AlignmentSnapper::getSnapperAlwaysSnap(), Inkscape::DistributionSnapper::getSnapperAlwaysSnap(), Inkscape::GridSnapper::getSnapperAlwaysSnap(), Inkscape::GuideSnapper::getSnapperAlwaysSnap(), Inkscape::ObjectSnapper::getSnapperAlwaysSnap(), Inkscape::SelTrans::grab(), Inkscape::UI::TransformHandle::grabbed(), Inkscape::UI::Widget::GradientEditor::GradientEditor(), graphlayout(), gui_request_dpi_fix_method(), Inkscape::UI::Dialog::IconPreviewPanel::IconPreviewPanel(), Inkscape::SelTrans::increaseState(), Inkscape::UI::Widget::PrefCheckButton::init(), Inkscape::Extension::ProcessingAction::is_enabled(), Inkscape::UI::Dialog::ColorItem::is_pinned(), Inkscape::UI::ThemeContext::isCurrentThemeDark(), Inkscape::SnappedPoint::isOtherSnapBetter(), Inkscape::load_svg_cursor(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), Inkscape::UI::Tools::MarkerTool::MarkerTool(), Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Tools::MeshTool::MeshTool(), Inkscape::PageManager::move_objects(), SnapManager::multipleConstrainedSnaps(), Inkscape::LivePathEffect::LPETiling::newWidget(), Inkscape::UI::Toolbar::StarToolbar::notifyAttributeChanged(), object_align(), object_distribute(), SPDesktopWidget::onFocus(), Inkscape::Extension::open(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::Internal::Svg::open(), SPLPEItem::optimizeTransforms(), Inkscape::LivePathEffect::ScalarParam::param_transform_multiply(), Inkscape::LivePathEffect::NodeSatelliteArrayParam::param_transform_multiply(), Inkscape::LivePathEffect::PowerStrokePointArrayParam::param_transform_multiply(), Inkscape::Extension::ParamBool::ParamBool(), path_simplify(), Inkscape::SVG::PathString::PathString(), Inkscape::UI::Widget::PatternEditor::PatternEditor(), Inkscape::UI::Tools::PencilTool::PencilTool(), Inkscape::UI::Tools::PenTool::PenTool(), Inkscape::UI::Widget::ComboToolItem::populate_combobox(), Inkscape::UI::Dialog::InkscapePreferences::preferDarkThemeChange(), rdf_add_from_preferences(), Inkscape::Pref< bool >::read(), Inkscape::UI::Tools::RectTool::RectTool(), GrDrag::refreshDraggersMesh(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::Widget::RenderingOptions::RenderingOptions(), SPObject::requestOrphanCollection(), Inkscape::UI::Dialog::InkscapePreferences::resetIconsColors(), SPDocument::scaleContentBy(), Inkscape::FontLister::selection_update(), Inkscape::UI::Tools::SelectTool::SelectTool(), Inkscape::SelTrans::SelTrans(), Inkscape::Display::SnapIndicator::set_new_snapsource(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), SPText::set_transform(), Inkscape::UI::Toolbar::ToolToolbar::set_visible_buttons(), Inkscape::XML::SimpleNode::setAttributeImpl(), Inkscape::UI::Tools::SprayTool::setCloneTilerPrefs(), Inkscape::LayerManager::setCurrentLayer(), Inkscape::ObjectSet::setMask(), Inkscape::UI::Dialog::LivePathEffectEditor::setMenu(), Inkscape::UI::Dialog::ExtensionList::setup(), Inkscape::Extension::Internal::Metafile::setViewBoxIfMissing(), Inkscape::UI::Dialog::ObjectsPanel::showChildInTree(), Inkscape::ObjectSet::simplifyPaths(), sp_attribute_clean_get_prefs(), Inkscape::LivePathEffect::sp_bspline_do_effect(), sp_desktop_apply_style_tool(), sp_desktop_get_color_tool(), sp_desktop_get_font_size_tool(), sp_desktop_get_master_opacity_tool(), sp_desktop_get_opacity_tool(), sp_document_default_gradient_vector(), sp_edit_select_all_full(), sp_file_convert_dpi(), sp_gradient_fork_vector_if_necessary(), sp_gradient_get_private_normalized(), Inkscape::UI::Dialog::sp_icon_doc_icon(), sp_import_document(), sp_marker_fork_if_necessary(), sp_namedview_document_from_window(), sp_namedview_window_from_document(), sp_repr_do_read(), sp_repr_save_writer(), sp_repr_write_stream_root_element(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), sp_selection_item_next(), sp_selection_item_prev(), Inkscape::UI::Dialog::sp_set_experimental(), Inkscape::UI::Tools::SpiralTool::SpiralTool(), Inkscape::UI::Tools::SprayTool::SprayTool(), Inkscape::AutoSave::start(), Inkscape::UI::Tools::StarTool::StarTool(), Inkscape::UI::Toolbar::StarToolbar::StarToolbar(), SPDesktopWidget::sticky_zoom_updated(), Inkscape::ObjectSet::strokesToPaths(), Inkscape::UI::Tools::InteractiveBooleansTool::switching_away(), Inkscape::UI::Dialog::InkscapePreferences::symbolicThemeCheck(), Inkscape::UI::Dialog::InkscapePreferences::themeChange(), Inkscape::UI::ThemeContext::themechangecallback(), Inkscape::UI::Dialog::InkscapePreferences::toggleSymbolic(), SPDesktop::toggleToolbar(), Inkscape::ObjectSet::toGuides(), Inkscape::LivePathEffect::LPEJoinType::transform_multiply(), Inkscape::LivePathEffect::LPETaperStroke::transform_multiply(), Inkscape::UI::Tools::TweakTool::TweakTool(), Inkscape::ObjectSet::unlinkRecursive(), Inkscape::ObjectSet::unsetMask(), GrDrag::updateLines(), and SPObject::write().

◆ getColor()

◆ getDouble()

double Inkscape::Preferences::getDouble ( Glib::ustring const &  pref_path,
double  def = 0.0,
Glib::ustring const &  unit = "" 
)
inline

Retrieve a floating point value.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.
unitSpecifies the unit of the returned result. Will be ignored when equal to "". If the preference has no unit set, the default unit will be assumed.

Definition at line 501 of file preferences.h.

References Inkscape::Preferences::Entry::getDouble(), and getEntry().

Referenced by Inkscape::UI::Toolbar::ArcToolbar::_setupDerivedSpinButton(), Inkscape::UI::Toolbar::SpiralToolbar::_setupDerivedSpinButton(), Inkscape::UI::Toolbar::ArcToolbar::_setupStartendButton(), Inkscape::UI::Toolbar::BooleansToolbar::BooleansToolbar(), canvas_zoom_absolute(), Inkscape::Pixbuf::create_from_buffer(), Inkscape::Pixbuf::create_from_data_uri(), Inkscape::UI::Tools::do_trace(), Inkscape::UI::Widget::ZoomCorrRuler::draw_marks(), Inkscape::Extension::Internal::BlurEdge::effect(), find_group_at_point(), find_items_at_point(), SPImage::getBrokenImage(), Inkscape::Preferences::Entry::getDoubleLimited(), SPDocument::getItemFromListAtPointBottom(), SPDocument::getItemsAtPoints(), getPoint(), graphlayout(), Inkscape::UI::Dialog::GridArrangeTab::GridArrangeTab(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::ParamFloat::ParamFloat(), SPGenericEllipse::position_set(), Inkscape::UI::Toolbar::RectToolbar::RectToolbar(), Inkscape::UI::Widget::RenderingOptions::RenderingOptions(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), Inkscape::UI::Dialog::ExportList::setup(), Inkscape::UI::Toolbar::SelectToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::MeasureToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::PaintbucketToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::ConnectorToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::EraserToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::MeshToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::SprayToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::StarToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::TextToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::TweakToolbar::setup_derived_spin_button(), Inkscape::UI::Toolbar::Box3DToolbar::setup_derived_spin_button(), Inkscape::UI::Dialog::SingleExport::setupSpinButtons(), Inkscape::ObjectSet::simplifyPaths(), sp_gradient_reset_to_userspace(), sp_selected_path_create_offset_object(), sp_selected_path_inset(), sp_selected_path_offset(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_paste_curve_as_freehand_shape(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), Inkscape::UI::Dialog::CloneTiler::unit_changed(), and SPDesktop::zoom_realworld().

◆ getDoubleLimited()

double Inkscape::Preferences::getDoubleLimited ( Glib::ustring const &  pref_path,
double  def = 0.0,
double  min = DBL_MIN,
double  max = DBL_MAX,
Glib::ustring const &  unit = "" 
)
inline

Retrieve a limited floating point value.

The default value is returned if the actual value is larger than max or smaller than min.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.
minMinimum value to return.
maxMaximum value to return.
unitSpecifies the unit of the returned result. Will be ignored when equal to "". If the preference has no unit set, the default unit will be assumed.

Definition at line 517 of file preferences.h.

References Inkscape::Preferences::Entry::getDoubleLimited(), and getEntry().

Referenced by Inkscape::UI::PathManipulator::_deleteStretch(), Inkscape::UI::Tools::PencilTool::_interpolate(), Inkscape::UI::ControlPointSelection::_keyboardScale(), Inkscape::UI::Tools::ToolBase::_schedule_delayed_snap_event(), Inkscape::UI::Tools::PencilTool::_sketchInterpolate(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::Application::Application(), Inkscape::UI::Dialog::CloneTiler::apply(), canvas_color_mode_gray(), canvas_transform(), Inkscape::UI::ThemeContext::getFontScale(), Inkscape::UI::Widget::PrefSpinUnit::init(), Inkscape::UI::Widget::PrefSpinButton::init(), Inkscape::UI::Widget::PrefSlider::init(), Inkscape::UI::Widget::ZoomCorrRulerSlider::init(), Inkscape::SnappedPoint::isOtherSnapBetter(), Inkscape::Pref< double >::read(), Inkscape::UI::PathManipulator::scaleHandle(), Inkscape::UI::Tools::SprayTool::setCloneTilerPrefs(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), and transform_grow_step().

◆ getEntry()

◆ getInheritedStyle()

SPCSSAttr * Inkscape::Preferences::getInheritedStyle ( Glib::ustring const &  pref_path)
inline

Retrieve an inherited CSS style.

This method will look up preferences with the same entry name in ancestor directories and return a style obtained by inheriting properties from ancestor styles.

Parameters
pref_pathPath to the retrieved preference.
Returns
An inherited CSS style that has to be unrefed after use.

Definition at line 562 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getInheritedStyle().

Referenced by SPDesktop::applyCurrentOrToolStyle(), sp_desktop_apply_style_tool(), and Inkscape::UI::Dialog::StyleFromSelectionToTool().

◆ getInt()

int Inkscape::Preferences::getInt ( Glib::ustring const &  pref_path,
int  def = 0 
)
inline

Retrieve an integer.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.

Definition at line 464 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getInt().

Referenced by Inkscape::SelCue::_boundingBoxPrefsChanged(), Inkscape::UI::Tools::PencilTool::_fitAndSplit(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PencilTool::_interpolate(), Inkscape::SelCue::_newItemBboxes(), Inkscape::UI::Dialog::GuidelinePropertiesDialog::_setup(), Inkscape::UI::Tools::PencilTool::_sketchInterpolate(), Inkscape::SelCue::_updateItemBboxes(), Inkscape::UI::ThemeContext::add_gtk_css(), Inkscape::UI::Toolbar::PencilToolbar::add_shape_option(), Inkscape::UI::Dialog::InkscapePreferences::AddNewObjectsStyle(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::Application::Application(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::ObjectSet::applyAffine(), Inkscape::UI::Toolbar::ArcToolbar::ArcToolbar(), build_menu(), Inkscape::UI::Dialog::CommandPalette::CommandPalette(), Inkscape::UI::Toolbar::TextToolbar::configure_mode_buttons(), ContextMenu::ContextMenu(), SPItem::convert_to_guides(), Inkscape::UI::Tools::MeasureTool::copyToClipboard(), SPMeshNodeArray::create(), Inkscape::ObjectSet::createBitmapCopy(), Inkscape::CSSOStringStream::CSSOStringStream(), SPUse::delete_self(), SPText::description(), Inkscape::LivePathEffect::LPEKnot::doEffect_path(), Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::StarTool::drag(), Inkscape::UI::MultiPathManipulator::event(), Inkscape::UI::Dialog::TextEdit::fillTextStyle(), Inkscape::FontLister::get_font_family_markup(), Inkscape::Extension::InxParameter::get_int(), SPIFontSize::get_value(), Inkscape::Preferences::Entry::getIntLimited(), gr_knot_moved_handler(), Inkscape::UI::Dialog::GridArrangeTab::GridArrangeTab(), gui_request_dpi_fix_method(), Inkscape::UI::Tools::has_mesh(), Inkscape::UI::Toolbar::PencilToolbar::hide_extra_widgets(), Inkscape::UI::Dialog::IconPreviewPanel::IconPreviewPanel(), Inkscape::UI::Toolbar::SprayToolbar::init(), Inkscape::UI::Widget::PrefRadioButton::init(), Inkscape::UI::ThemeContext::isCurrentThemeDark(), HatchKnotHolderEntityAngle::knot_set(), Inkscape::UI::Dialog::DialogContainer::load_container_state(), Inkscape::UI::Toolbar::ToolToolbar::makeContextMenu(), Inkscape::UI::Dialog::InkscapePreferences::matchPage(), Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Toolbar::SnapToolbar::mode_update(), SPUse::move_compensate(), Inkscape::UI::Tools::MeshTool::new_default(), Inkscape::UI::Dialog::DialogContainer::new_dialog(), Inkscape::UI::Dialog::SpellCheck::nextWord(), object_distribute(), object_rearrange(), object_remove_overlaps(), Inkscape::UI::Dialog::InkscapePreferences::on_pagelist_selection_changed(), Inkscape::UI::Widget::FontSelector::on_size_changed(), Inkscape::UI::Dialog::TextEdit::onReadSelection(), Inkscape::Extension::ParamInt::ParamInt(), Inkscape::SVG::PathString::PathString(), SPGenericEllipse::position_set(), Inkscape::RecentlyUsedFonts::RecentlyUsedFonts(), Inkscape::UI::Dialog::DialogContainer::recreate_dialogs_from_state(), Inkscape::ObjectSet::relink(), Inkscape::UI::Dialog::DialogManager::restore_dialogs_state(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::SelTrans::rotateRequest(), Inkscape::AutoSave::save(), Inkscape::UI::Dialog::DialogManager::save_dialogs_state(), Inkscape::UI::Widget::FontSelector::set_fontsize_tooltip(), Inkscape::UI::Widget::FontSelector::set_sizes(), Inkscape::UI::Tools::SprayTool::setCloneTilerPrefs(), Inkscape::UI::Toolbar::PencilToolbar::setDesktop(), Inkscape::ObjectSet::setMask(), Inkscape::UI::Tools::PenTool::setPolylineMode(), Inkscape::UI::Dialog::TextEdit::setPreviewText(), Inkscape::UI::Dialog::InkscapePreferences::show_not_found(), Inkscape::SelTrans::skewRequest(), sp_edit_select_all_full(), sp_namedview_document_from_window(), sp_namedview_window_from_document(), sp_offset_delete_self(), sp_offset_move_compensate(), sp_repr_save_writer(), sp_select_same_fill_stroke_style(), sp_selection_item_next(), sp_selection_item_prev(), sp_svg_transform_write(), Inkscape::UI::Tools::sp_tweak_switch_mode_temporarily(), sp_usepath_delete_self(), sp_usepath_move_compensate(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_concat_colors_and_flush(), Inkscape::AutoSave::start(), Inkscape::SVGIStringStream::SVGIStringStream(), Inkscape::SVGIStringStream::SVGIStringStream(), Inkscape::SVGOStringStream::SVGOStringStream(), Inkscape::UI::Dialog::TextEdit::TextEdit(), Inkscape::ObjectSet::tile(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), Inkscape::ObjectSet::toMarker(), Inkscape::ObjectSet::toSymbol(), transform_rotate_step(), and Inkscape::UI::Dialog::XmlTree::XmlTree().

◆ getIntLimited()

int Inkscape::Preferences::getIntLimited ( Glib::ustring const &  pref_path,
int  def = 0,
int  min = INT_MIN,
int  max = INT_MAX 
)
inline

Retrieve a limited integer.

The default value is returned if the actual value is larger than max or smaller than min. Do not use to store Boolean values.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.
minMinimum value to return.
maxMaximum value to return.

Definition at line 479 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getIntLimited().

Referenced by Inkscape::UI::Tools::PencilTool::_addFreehandPoint(), Inkscape::UI::PathManipulator::_getStrokeTolerance(), Inkscape::UI::Tools::PenTool::_handleMotionNotify(), Inkscape::UI::Tools::PencilTool::_handleMotionNotify(), Inkscape::UI::ControlPointSelection::_keyboardRotate(), Inkscape::UI::Dialog::LayerPropertiesDialog::_setup_position_controls(), Inkscape::UI::TransformHandleSet::_updateVisibility(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Dialog::AttrDialog::AttrDialog(), Inkscape::Trace::Depixelize::DepixelizeTracingEngine::DepixelizeTracingEngine(), Inkscape::UI::Handle::dragged(), Inkscape::UI::Node::dragged(), Inkscape::get_size_default(), Inkscape::Colors::CMS::System::getDisplayTransform(), Inkscape::UI::Widget::PrefSpinButton::init(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::SVG::PathString::PathString(), Inkscape::UI::Widget::PatternEditor::PatternEditor(), Inkscape::Pref< int >::read(), Inkscape::UI::PathManipulator::rotateHandle(), Inkscape::UI::snap_increment_degrees(), and Inkscape::UI::Dialog::XmlTree::XmlTree().

◆ getLastError()

bool Inkscape::Preferences::getLastError ( Glib::ustring &  primary,
Glib::ustring &  secondary 
)

Return details of the last encountered error, if any.

This method will return true if an error has been encountered, and fill in the primary and secondary error strings of the last error. If an error had been encountered, this will reset it.

Parameters
stringto set to the primary error message.
stringto set to the secondary error message.
Returns
True if an error has occurred since last checking, false otherwise.

Definition at line 290 of file preferences.cpp.

References _hasError, _lastErrPrimary, _lastErrSecondary, and result.

Referenced by Inkscape::Application::Application().

◆ getOptionalBool()

std::optional< bool > Inkscape::Preferences::getOptionalBool ( Glib::ustring const &  pref_path)
inline

Retrieve a Boolean value, if it exists.

Parameters
pref_pathPath to the retrieved preference.

Definition at line 438 of file preferences.h.

References getBool(), and hasPref().

◆ getPoint()

Geom::Point Inkscape::Preferences::getPoint ( Glib::ustring const &  pref_path,
Geom::Point  def = Geom::Point() 
)
inline

Retrieve a point.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.

Definition at line 451 of file preferences.h.

References getDouble(), getEntry(), Geom::X, and Geom::Y.

Referenced by Inkscape::UI::NewFromTemplate::NewFromTemplate(), and Inkscape::UI::Tools::MeasureTool::readMeasurePoint().

◆ getPrefsFilename()

Glib::ustring Inkscape::Preferences::getPrefsFilename ( ) const

Get the preferences file name in UTF-8.

Definition at line 1166 of file preferences.cpp.

References _prefs_filename.

Referenced by Inkscape::UI::Dialog::InkscapePreferences::initPageSystem().

◆ getString()

Glib::ustring Inkscape::Preferences::getString ( Glib::ustring const &  pref_path,
Glib::ustring const &  def = "" 
)
inline

Retrieve an UTF-8 string.

Parameters
pref_pathPath to the retrieved preference.

Definition at line 526 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getString().

Referenced by Inkscape::UI::Widget::ColorNotebook::_initUI(), Inkscape::UI::ThemeContext::add_gtk_css(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::Application::Application(), Inkscape::UI::Toolbar::CalligraphyToolbar::build_presets_list(), Inkscape::UI::Dialog::InkscapePreferences::changeIconsColors(), Inkscape::UI::Tools::MeasureTool::copyToClipboard(), SPAttributeTable::create(), Inkscape::Extension::get_file_save_extension(), Inkscape::Extension::get_file_save_path(), Inkscape::FontLister::get_font_family_markup(), Inkscape::UI::Dialog::InkscapePreferences::get_highlight_colors(), Inkscape::UI::Dialog::get_start_directory(), Inkscape::UI::ThemeContext::get_symbolic_colors(), get_syntax_theme(), Inkscape::Colors::CMS::System::getDisplayProfile(), Inkscape::UI::ThemeContext::getMonospacedFont(), Inkscape::UI::Dialog::BatchExport::getPreviousBatchPath(), Inkscape::Shortcuts::init(), Inkscape::UI::Widget::PrefRadioButton::init(), Inkscape::UI::Widget::PrefUnit::init(), Inkscape::UI::Widget::PrefEntry::init(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::init(), Inkscape::UI::Widget::PrefEntryButtonHBox::init(), Inkscape::UI::Widget::PrefMultiEntry::init(), Inkscape::UI::Widget::ZoomCorrRulerSlider::init(), Inkscape::UI::Dialog::InkscapePreferences::initPageIO(), Inkscape::UI::Dialog::InkscapePreferences::initPageSystem(), Inkscape::UI::Dialog::InkscapePreferences::initPageUI(), Inkscape::UI::ThemeContext::isCurrentThemeDark(), Inkscape::UI::Widget::EntityLineEntry::load_from_preferences(), Inkscape::UI::Widget::EntityMultiLineEntry::load_from_preferences(), Inkscape::load_svg_cursor(), Inkscape::LivePathEffect::LPEMeasureSegments::LPEMeasureSegments(), node_align(), object_align(), object_align_text(), Inkscape::UI::Widget::ZoomCorrRuler::on_draw(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::Internal::Svg::open(), Inkscape::Extension::ParamNotebook::ParamNotebook(), Inkscape::Extension::ParamOptionGroup::ParamOptionGroup(), Inkscape::Extension::ParamPath::ParamPath(), Inkscape::Extension::ParamString::ParamString(), rdf_add_from_preferences(), Inkscape::Pref< Glib::ustring >::read(), Inkscape::LivePathEffect::Effect::readallParameters(), Inkscape::UI::Dialog::InkscapePreferences::resetIconsColors(), Inkscape::AutoSave::save(), Inkscape::UI::Dialog::BatchExport::selectionChanged(), Inkscape::UI::Dialog::SingleExport::selectionChanged(), Inkscape::UI::Dialog::BatchExport::setDefaultSelectionMode(), Inkscape::UI::Dialog::SingleExport::setDefaultSelectionMode(), Inkscape::IO::Resource::shared_path(), Inkscape::UI::Widget::ColorTagRenderer::snapshot_vfunc(), Inkscape::UI::Dialog::sp_add_fav(), sp_desktop_get_font_size_tool(), Inkscape::UI::Dialog::sp_has_fav(), Inkscape::UI::Dialog::sp_remove_fav(), Inkscape::UI::Dialog::SpellCheck::SpellCheck(), Inkscape::UI::Dialog::InkscapePreferences::symbolicThemeCheck(), Inkscape::UI::Dialog::InkscapePreferences::themeChange(), Inkscape::UI::Dialog::InkscapePreferences::toggleSymbolic(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), and Inkscape::Extension::update_pref().

◆ getStyle()

SPCSSAttr * Inkscape::Preferences::getStyle ( Glib::ustring const &  pref_path)
inline

Retrieve a CSS style.

Parameters
pref_pathPath to the retrieved preference.
Returns
A CSS style that has to be unrefed after use.

Definition at line 548 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getStyle().

Referenced by Inkscape::UI::Dialog::InkscapePreferences::AddNewObjectsStyle(), mergeStyle(), sp_desktop_get_color_tool(), sp_desktop_get_master_opacity_tool(), and sp_desktop_get_opacity_tool().

◆ getUInt()

unsigned int Inkscape::Preferences::getUInt ( Glib::ustring const &  pref_path,
unsigned int  def = 0 
)
inline

Retrieve an unsigned integer.

Parameters
pref_pathPath to the retrieved preference.
defThe default value to return if the preference is not set.

Definition at line 489 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getUInt().

Referenced by Inkscape::UI::Dialog::InkscapePreferences::changeIconsColors(), Inkscape::UI::ThemeContext::get_symbolic_colors(), and Inkscape::UI::Widget::ColorTagRenderer::snapshot_vfunc().

◆ getUnit()

Glib::ustring Inkscape::Preferences::getUnit ( Glib::ustring const &  pref_path)
inline

Retrieve the unit string.

Parameters
pref_pathPath to the retrieved preference.

Definition at line 536 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::getUnit().

Referenced by Inkscape::Preferences::Entry::getDouble(), Inkscape::UI::Widget::PrefSpinUnit::init(), and Inkscape::Preferences::Entry::isConvertibleTo().

◆ hasPref()

bool Inkscape::Preferences::hasPref ( Glib::ustring const &  pref_path)
inline

Return true if there is a value at this prefs-path.

Parameters
pref_pathPath to preference to check.

Definition at line 419 of file preferences.h.

References getEntry(), and Inkscape::Preferences::Entry::isSet().

Referenced by getOptionalBool().

◆ isWritable()

bool Inkscape::Preferences::isWritable ( )
inline

Check whether saving the preferences will have any effect.

Definition at line 370 of file preferences.h.

References _writable.

◆ mergeStyle()

void Inkscape::Preferences::mergeStyle ( Glib::ustring const &  pref_path,
SPCSSAttr style 
)

Merge a CSS style with the current preference value.

This method is similar to setStyle(), except that it merges the style rather than replacing it. This means that if style doesn't have a property set, it is left unchanged in the style stored in the preferences.

Definition at line 479 of file preferences.cpp.

References _setRawValue(), current, getStyle(), SP_ATTRCLEAN_DEFAULT_REMOVE, sp_attribute_purge_default_style(), sp_repr_css_attr_unref(), sp_repr_css_merge(), and sp_repr_css_write_string().

Referenced by Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Toolbar::TextToolbar::mergeDefaultStyle(), Inkscape::UI::Dialog::TextEdit::onSetDefault(), and sp_desktop_set_style().

◆ operator=()

Preferences Inkscape::Preferences::operator= ( Preferences const &  )
delete

◆ remove()

void Inkscape::Preferences::remove ( Glib::ustring const &  pref_path)

Remove a node from prefs.

Remove an entry Make sure observers have been removed before calling.

Parameters
pref_path Pathto entry

Definition at line 494 of file preferences.cpp.

References _getNode(), _prefs_doc, cachedEntry, child, Inkscape::XML::Node::firstChild(), node, Inkscape::XML::Node::parent(), Inkscape::XML::Node::removeAttribute(), Inkscape::XML::Node::removeChild(), and Inkscape::XML::Node::root().

Referenced by Inkscape::LivePathEffect::Effect::unsetDefaultParam().

◆ removeObserver()

◆ reset()

void Inkscape::Preferences::reset ( )

◆ save()

void Inkscape::Preferences::save ( )

Save all preferences to the hard disk.

Flush all pref changes to the XML file.

For some backends, the preferences may be saved as they are modified. Not calling this method doesn't guarantee the preferences are unmodified the next time Inkscape runs.

Definition at line 238 of file preferences.cpp.

References _prefs_doc, _prefs_filename, _writable, and sp_repr_save_file().

Referenced by reset(), save_preferences(), and unload().

◆ setBool()

void Inkscape::Preferences::setBool ( Glib::ustring const &  pref_path,
bool  value 
)

Set a Boolean value.

Set a boolean attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.
Todo:
Boolean values should be stored as "true" and "false", but this is not possible due to an interaction with event contexts. Investigate this in depth.

Definition at line 388 of file preferences.cpp.

References _setRawValue().

Referenced by Inkscape::Extension::Implementation::Script::_change_extension(), Inkscape::UI::Dialog::ObjectProperties::_init(), _loadDefaults(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_angle_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_deltas_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_deltas_label_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_segments_label_change(), Inkscape::UI::Dialog::SelectorsDialog::_toggleDirection(), Inkscape::UI::Dialog::ColorItem::action_toggle_pin(), Inkscape::UI::ThemeContext::add_gtk_css(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::angle_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::between_btn_change(), canvas_color_manage_toggle(), canvas_rotate_lock(), Inkscape::UI::Toolbar::ConnectorToolbar::directed_graph_layout_toggled(), Inkscape::UI::Dialog::Print::draw_page(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::dX_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::dY_btn_change(), gui_request_dpi_fix_method(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::labels_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::length_btn_change(), Inkscape::UI::Toolbar::GradientToolbar::linked_changed(), Inkscape::UI::Dialog::IconPreviewPanel::modeToggled(), Inkscape::UI::Tools::MeshTool::new_default(), Inkscape::UI::Toolbar::ConnectorToolbar::nooverlaps_graph_layout_toggled(), object_align_on_canvas(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_as_group_clicked(), Inkscape::UI::Toolbar::CalligraphyToolbar::on_pref_toggled(), Inkscape::UI::Toolbar::NodeToolbar::on_pref_toggled(), Inkscape::UI::Widget::PrefCheckButton::on_toggled(), Inkscape::UI::Dialog::Transformation::onApplySeparatelyToggled(), Inkscape::UI::Dialog::Transformation::onRotateClockwiseClicked(), Inkscape::UI::Dialog::Transformation::onRotateCounterclockwiseClicked(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::Internal::Svg::open(), Inkscape::UI::Toolbar::ConnectorToolbar::orthogonal_toggled(), Inkscape::UI::Widget::PatternEditor::PatternEditor(), Inkscape::UI::Dialog::InkscapePreferences::preferDarkThemeChange(), Inkscape::UI::Toolbar::TweakToolbar::pressure_state_changed(), SPDocument::scaleContentBy(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::segments_btn_change(), Inkscape::Extension::ParamBool::set(), set_simple_snap(), Inkscape::Extension::Internal::Metafile::setViewBoxIfMissing(), shape_builder_replace(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_height_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_length_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_width_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_X_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_Y_btn_change(), Inkscape::UI::Widget::GradientEditor::show_stops(), Inkscape::UI::Toolbar::StarToolbar::side_mode_changed(), Inkscape::UI::Toolbar::PencilToolbar::simplify_lpe(), sp_file_convert_dpi(), Inkscape::UI::Tools::SprayTool::SprayTool(), SPDesktopWidget::sticky_zoom_toggled(), store_snapping_action(), Inkscape::ObjectSet::strokesToPaths(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::tabs_btn_change(), Inkscape::UI::Dialog::InkscapePreferences::themeChange(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_all_layers(), Inkscape::UI::Toolbar::EraserToolbar::toggle_break_apart(), Inkscape::UI::Toolbar::SelectToolbar::toggle_corners(), Inkscape::UI::Toolbar::TweakToolbar::toggle_doh(), Inkscape::UI::Toolbar::TweakToolbar::toggle_dol(), Inkscape::UI::Toolbar::TweakToolbar::toggle_doo(), Inkscape::UI::Toolbar::TweakToolbar::toggle_dos(), Inkscape::UI::Toolbar::SelectToolbar::toggle_gradient(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_ignore_1st_and_last(), Inkscape::UI::Toolbar::SelectToolbar::toggle_lock(), Inkscape::UI::Toolbar::SprayToolbar::toggle_no_overlap(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_only_selected(), Inkscape::UI::Toolbar::LPEToolbar::toggle_show_bbox(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_show_hidden(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_show_in_between(), Inkscape::UI::Toolbar::LPEToolbar::toggle_show_measuring_info(), Inkscape::UI::Toolbar::SelectToolbar::toggle_stroke(), Inkscape::UI::Toolbar::SelectToolbar::toggle_touch(), SPDesktop::toggleToolbar(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::units_btn_change(), and Inkscape::UI::Toolbar::EraserToolbar::usepressure_toggled().

◆ setColor()

void Inkscape::Preferences::setColor ( Glib::ustring const &  pref_path,
Colors::Color const &  color 
)

◆ setDouble()

void Inkscape::Preferences::setDouble ( Glib::ustring const &  pref_path,
double  value 
)

Set a floating point value.

Set a floating point attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.

Definition at line 436 of file preferences.cpp.

References _setRawValue(), and Inkscape::ustring::format_classic().

Referenced by Inkscape::UI::Dialog::MeasureToolSettingsDialog::_segments_min_length_change(), Inkscape::UI::Toolbar::ArcToolbar::_startendValueChanged(), Inkscape::UI::Toolbar::RectToolbar::_valueChanged(), Inkscape::UI::Toolbar::SpiralToolbar::_valueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_valueChanged(), Inkscape::UI::Toolbar::CalligraphyToolbar::angle_value_changed(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Toolbar::BooleansToolbar::BooleansToolbar(), Inkscape::UI::Toolbar::CalligraphyToolbar::cap_rounding_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::cap_rounding_value_changed(), Inkscape::UI::Toolbar::ConnectorToolbar::curvature_changed(), Inkscape::UI::Dialog::SingleExport::dpiChange(), Inkscape::UI::Dialog::Print::draw_page(), Inkscape::UI::Toolbar::TweakToolbar::fidelity_value_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::flatness_value_changed(), Inkscape::UI::Toolbar::MeasureToolbar::fontsize_value_changed(), Inkscape::UI::Toolbar::TweakToolbar::force_value_changed(), SPDocument::getItemsAtPoints(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), Inkscape::UI::Toolbar::ConnectorToolbar::length_changed(), Inkscape::UI::Toolbar::StarToolbar::length_value_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::mass_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::mass_value_changed(), Inkscape::UI::Toolbar::PencilToolbar::maxpressure_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::mean_value_changed(), Inkscape::UI::Toolbar::PencilToolbar::minpressure_value_changed(), Inkscape::UI::Toolbar::MeasureToolbar::offset_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::offset_value_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_ColSize_checkbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_colSize_spinbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_RowSize_checkbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_rowSize_spinbutton_changed(), Inkscape::UI::Widget::ZoomCorrRulerSlider::on_slider_value_changed(), Inkscape::UI::Widget::PrefSlider::on_slider_value_changed(), Inkscape::UI::Widget::ZoomCorrRulerSlider::on_spinbutton_value_changed(), Inkscape::UI::Widget::PrefSlider::on_spinbutton_value_changed(), Inkscape::UI::Widget::PrefSpinButton::on_value_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_xpad_spinbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_ypad_spinbutton_changed(), Inkscape::UI::Toolbar::SprayToolbar::population_value_changed(), Inkscape::UI::Toolbar::StarToolbar::proportion_value_changed(), Inkscape::UI::Toolbar::StarToolbar::randomized_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::rotation_value_changed(), Inkscape::UI::Toolbar::StarToolbar::rounded_value_changed(), Inkscape::UI::ThemeContext::saveFontScale(), Inkscape::UI::Toolbar::MeasureToolbar::scale_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::scale_value_changed(), Inkscape::Extension::ParamFloat::set(), setPoint(), Inkscape::UI::Dialog::GridArrangeTab::Spacing_button_changed(), Inkscape::UI::Toolbar::SprayToolbar::standard_deviation_value_changed(), Inkscape::UI::Toolbar::PencilToolbar::tolerance_value_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::tremor_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::tremor_value_changed(), Inkscape::UI::Toolbar::CalligraphyToolbar::velthin_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::velthin_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::width_value_changed(), Inkscape::UI::Toolbar::SprayToolbar::width_value_changed(), Inkscape::UI::Toolbar::TweakToolbar::width_value_changed(), and Inkscape::UI::Toolbar::CalligraphyToolbar::wiggle_value_changed().

◆ setDoubleUnit()

void Inkscape::Preferences::setDoubleUnit ( Glib::ustring const &  pref_path,
double  value,
Glib::ustring const &  unit_abbr 
)

Set a floating point value with unit.

Set a floating point attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.
unit_abbrThe string of the unit (abbreviated).

Definition at line 449 of file preferences.cpp.

References _setRawValue(), and Inkscape::ustring::format_classic().

Referenced by Inkscape::Extension::Internal::BlurEdge::effect(), Inkscape::UI::Widget::PrefSpinUnit::init(), and Inkscape::UI::Widget::PrefSpinUnit::on_my_value_changed().

◆ setErrorHandler()

void Inkscape::Preferences::setErrorHandler ( ErrorReporter handler)

Definition at line 1149 of file preferences.cpp.

References _errorHandler.

Referenced by Inkscape::Application::Application().

◆ setInt()

void Inkscape::Preferences::setInt ( Glib::ustring const &  pref_path,
int  value 
)

Set an integer value.

Set an integer attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.

Definition at line 414 of file preferences.cpp.

References _setRawValue(), and Inkscape::ustring::format_classic().

Referenced by Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), _loadDefaults(), Inkscape::UI::Dialog::XmlTree::_resized(), Inkscape::UI::Dialog::FillAndStroke::_savePagePref(), Inkscape::UI::Dialog::SelectorsDialog::_toggleDirection(), Inkscape::UI::Toolbar::ArcToolbar::_typeChanged(), Inkscape::UI::Dialog::GridArrangeTab::Align_changed(), Inkscape::UI::Toolbar::TextToolbar::align_mode_changed(), Inkscape::UI::Toolbar::PaintbucketToolbar::autogap_changed(), Inkscape::UI::Toolbar::PencilToolbar::change_cap(), Inkscape::UI::Toolbar::PencilToolbar::change_shape(), Inkscape::UI::Toolbar::MeshToolbar::col_changed(), Inkscape::UI::Toolbar::TextToolbar::direction_changed(), Inkscape::LivePathEffect::LPEKnot::doEffect_path(), Inkscape::UI::Toolbar::TextToolbar::fontsize_unit_changed(), gui_request_dpi_fix_method(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Toolbar::StarToolbar::magnitude_value_changed(), Inkscape::UI::Toolbar::EraserToolbar::mode_changed(), Inkscape::UI::Toolbar::LPEToolbar::mode_changed(), Inkscape::UI::Toolbar::PencilToolbar::mode_changed(), Inkscape::UI::Toolbar::SprayToolbar::mode_changed(), Inkscape::UI::Toolbar::TweakToolbar::mode_changed(), Inkscape::UI::Toolbar::GradientToolbar::new_fillstroke_changed(), Inkscape::UI::Toolbar::MeshToolbar::new_fillstroke_changed(), Inkscape::UI::Toolbar::MeshToolbar::new_geometry_changed(), Inkscape::UI::Toolbar::GradientToolbar::new_type_changed(), object_distribute(), object_rearrange(), object_remove_overlaps(), Inkscape::UI::Dialog::InkscapePreferences::on_pagelist_selection_changed(), Inkscape::UI::Widget::PrefRadioButton::on_toggled(), SPDesktopWidget::on_unrealize(), Inkscape::UI::Widget::PrefSpinButton::on_value_changed(), Inkscape::UI::Toolbar::TextToolbar::orientation_changed(), Inkscape::UI::Widget::PatternEditor::PatternEditor(), Inkscape::UI::Toolbar::MeasureToolbar::precision_value_changed(), Inkscape::UI::Toolbar::MeshToolbar::row_changed(), Inkscape::Handles::Manager::select_theme(), Inkscape::Extension::ParamInt::set(), Inkscape::UI::Dialog::AttrDialog::setPrecision(), shape_builder_mode(), Inkscape::UI::Toolbar::SnapToolbar::SnapToolbar(), Inkscape::UI::Tools::sp_tweak_switch_mode_temporarily(), Inkscape::UI::Toolbar::PaintbucketToolbar::threshold_changed(), Inkscape::ObjectSet::tile(), Inkscape::UI::Toolbar::SelectToolbar::toggle_pattern(), Inkscape::ObjectSet::toMarker(), Inkscape::ObjectSet::toSymbol(), Inkscape::UI::Toolbar::TextToolbar::writing_mode_changed(), and Inkscape::UI::Dialog::XmlTree::XmlTree().

◆ setPoint()

void Inkscape::Preferences::setPoint ( Glib::ustring const &  pref_path,
Geom::Point  value 
)

Set a point value.

Set an point attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.

Definition at line 402 of file preferences.cpp.

References setDouble(), Geom::X, and Geom::Y.

Referenced by Inkscape::UI::NewFromTemplate::NewFromTemplate(), and Inkscape::UI::Tools::MeasureTool::writeMeasurePoint().

◆ setString()

void Inkscape::Preferences::setString ( Glib::ustring const &  pref_path,
Glib::ustring const &  value 
)

Set an UTF-8 string value.

Set a string attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.

Definition at line 467 of file preferences.cpp.

References _setRawValue().

Referenced by Inkscape::UI::Toolbar::Box3DToolbar::_selectionChanged(), Inkscape::UI::ThemeContext::add_gtk_css(), Inkscape::UI::Dialog::DocumentProperties::browseExternalScript(), Inkscape::UI::Dialog::gamutColorChanged(), Inkscape::Shortcuts::init(), Inkscape::UI::Dialog::InkscapePreferences::initPageIO(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_relative_node_changed(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_relative_object_changed(), Inkscape::UI::Widget::PrefMultiEntry::on_changed(), Inkscape::UI::Widget::PrefEntry::on_changed(), Inkscape::UI::Widget::PrefEntryFile::on_changed(), Inkscape::UI::Widget::PrefUnit::on_changed(), Inkscape::UI::Widget::PrefRadioButton::on_toggled(), Inkscape::UI::Widget::ZoomCorrRulerSlider::on_unit_changed(), Inkscape::UI::Dialog::BatchExport::onAreaTypeToggle(), Inkscape::UI::Dialog::SingleExport::onAreaTypeToggle(), Inkscape::UI::Dialog::SpellCheck::onLanguageChanged(), Inkscape::UI::Widget::PrefEntryButtonHBox::onRelatedButtonClickedCallback(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::onRelatedButtonClickedCallback(), Inkscape::UI::Widget::PrefEntryButtonHBox::onRelatedEntryChangedCallback(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::onRelatedEntryChangedCallback(), Inkscape::UI::Widget::PrefEditFolder::onRelatedEntryChangedCallback(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::Internal::Svg::open(), Inkscape::UI::Dialog::profileComboChanged(), Inkscape::UI::Dialog::proofComboChanged(), Inkscape::UI::Widget::EntityEntry::save_to_preferences(), Inkscape::UI::ThemeContext::saveMonospacedFont(), Inkscape::UI::Dialog::BatchExport::selectionChanged(), Inkscape::UI::Dialog::SingleExport::selectionChanged(), Inkscape::Extension::ParamOptionGroup::set(), Inkscape::Extension::ParamNotebook::set(), Inkscape::Extension::InxParameter::set(), Inkscape::Extension::ParamPath::set(), Inkscape::Extension::ParamString::set(), Inkscape::UI::Tools::LpeTool::set(), Inkscape::UI::Dialog::BatchExport::setBatchPath(), Inkscape::LivePathEffect::Effect::setDefaultParam(), Inkscape::UI::Dialog::BatchExport::setDefaultSelectionMode(), Inkscape::UI::Dialog::SingleExport::setDefaultSelectionMode(), Inkscape::UI::Widget::PrefEditFolder::setFolderPath(), Inkscape::UI::Dialog::sp_add_fav(), Inkscape::UI::Dialog::sp_remove_fav(), Inkscape::Extension::store_file_extension_in_prefs(), Inkscape::Extension::store_save_path_in_prefs(), Inkscape::UI::Toolbar::LPEToolbar::unit_changed(), Inkscape::UI::Toolbar::MeasureToolbar::unit_changed(), and Inkscape::Extension::update_pref().

◆ setStyle()

void Inkscape::Preferences::setStyle ( Glib::ustring const &  pref_path,
SPCSSAttr style 
)

◆ setUInt()

void Inkscape::Preferences::setUInt ( Glib::ustring const &  pref_path,
unsigned int  value 
)

Set an unsigned integer value.

Set an unsigned integer attribute of a preference.

Parameters
pref_pathPath of the preference to modify.
valueThe new value of the pref attribute.

Definition at line 425 of file preferences.cpp.

References _setRawValue(), and Inkscape::ustring::format_classic().

Referenced by Inkscape::UI::Dialog::InkscapePreferences::resetIconsColors().

◆ temporaryPreferences()

auto Inkscape::Preferences::temporaryPreferences ( )
inline

Create a temporary transaction which will be rolled back when the returned scope guard is destroyed.

This will allow you to change preferences and have them revert/rollback when your local process is complete.

Definition at line 713 of file preferences.h.

References _prefs_doc, Inkscape::XML::Document::beginTransaction(), cachedEntry, Inkscape::XML::Document::inTransaction(), and Inkscape::XML::Document::rollback().

◆ unload()

void Inkscape::Preferences::unload ( bool  save = true)
static

Unload all preferences.

Parameters
saveWhether to save the preferences; defaults to true.

This deletes the singleton object. Calling get() after this function will reinstate it, so you shouldn't. Pass false as the parameter to suppress automatic saving.

Definition at line 1154 of file preferences.cpp.

References _instance, and save().

Referenced by Inkscape::Application::crash_handler(), Inkscape::Application::exit(), and Inkscape::Application::~Application().

Friends And Related Symbol Documentation

◆ Entry

friend class Entry
friend

Definition at line 775 of file preferences.h.

◆ PrefNodeObserver

friend class PrefNodeObserver
friend

Definition at line 774 of file preferences.h.

Referenced by addObserver().

Member Data Documentation

◆ _errorHandler

ErrorReporter* Inkscape::Preferences::_errorHandler = nullptr
private

Pointer to object reporting errors.

Definition at line 754 of file preferences.h.

Referenced by _reportError(), and setErrorHandler().

◆ _hasError

bool Inkscape::Preferences::_hasError = false
private

Indication that some error has occurred;.

Definition at line 756 of file preferences.h.

Referenced by _reportError(), and getLastError().

◆ _initialized

bool Inkscape::Preferences::_initialized = false
private

Is this instance fully initialized? Caching should be avoided before.

Definition at line 757 of file preferences.h.

Referenced by _setRawValue(), getEntry(), and Preferences().

◆ _instance

Preferences * Inkscape::Preferences::_instance = nullptr
staticprivate

Definition at line 772 of file preferences.h.

Referenced by get(), and unload().

◆ _lastErrPrimary

Glib::ustring Inkscape::Preferences::_lastErrPrimary
private

Last primary error message, if any.

Definition at line 751 of file preferences.h.

Referenced by _reportError(), and getLastError().

◆ _lastErrSecondary

Glib::ustring Inkscape::Preferences::_lastErrSecondary
private

Last secondary error message, if any.

Definition at line 752 of file preferences.h.

Referenced by _reportError(), and getLastError().

◆ _observer_map

_ObsMap Inkscape::Preferences::_observer_map
private

Map that keeps track of wrappers assigned to PrefObservers.

Definition at line 767 of file preferences.h.

Referenced by addObserver(), removeObserver(), and reset().

◆ _prefs_doc

XML::Document* Inkscape::Preferences::_prefs_doc = nullptr
private

XML document storing all the preferences.

Definition at line 753 of file preferences.h.

Referenced by _getNode(), _load(), _loadDefaults(), remove(), reset(), save(), temporaryPreferences(), and ~Preferences().

◆ _prefs_filename

std::string Inkscape::Preferences::_prefs_filename
private

Full filename (with directory) of the prefs file.

Definition at line 750 of file preferences.h.

Referenced by _load(), getPrefsFilename(), Preferences(), reset(), and save().

◆ _writable

bool Inkscape::Preferences::_writable = false
private

Will the preferences be saved at exit?

Definition at line 755 of file preferences.h.

Referenced by _load(), isWritable(), and save().

◆ cachedEntry

std::unordered_map<std::string, Entry> Inkscape::Preferences::cachedEntry
private

Cache for getEntry()

Definition at line 760 of file preferences.h.

Referenced by _setRawValue(), getEntry(), remove(), and temporaryPreferences().


The documentation for this class was generated from the following files: