summaryrefslogtreecommitdiffstats
path: root/src/preferences.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Dialogs: improve opacity handling through use of CSSPatrick Storz2019-10-261-1/+0
| | | | | In particular this allows us to get rid of our custom implementation for the opacity transition (which did not always work properly).
* Preferences: hold-off on caching until fully instantiatedPatrick Storz2019-10-201-11/+12
| | | | | | | | | | This avoids caching "wrong" values when setting defaults in Preferences::_loadDefaults(). (we did this since 7ca9dc4c53873955a31c1b71559da9f7b29b4a2e for OS-specific defaults) Fixes https://gitlab.com/inkscape/inkscape/issues/99
* Re-Add blending modes UI using CSS instead filtersJabier Arraiza2019-10-141-1/+1
|
* add extension to prefs backupsMarc Jeanmougin2019-10-131-2/+2
|
* Backup prefs instead of deletingMarc Jeanmougin2019-10-091-3/+15
| | | | Fixes https://gitlab.com/inkscape/inbox/issues/850
* Preferences: add methods to set/get unsigned integersPatrick Storz2019-07-221-0/+31
| | | | | | | | | | | | | | Those should be used for RGBA color values, which would overflow the signed type otherwise. Replacement will be seamless and fully backwards-compatible, as we can read the overflowed (i.e. negative) signed integers we used to save and they will be properly unwrapped. Also reading the unsigned ints as signed ints in older versions of Inkscape will still work, as we always depended on the undefined behavior of atoi in case of out of range numbers (which luckily is means overflowing in gcc).
* Preferences: Work around issue with parsing unsigned integersPatrick Storz2019-06-081-1/+17
| | | | | | | | | | | | | | | | | | | As we handle unsigned integers the same way as signed integers, large unsigned values (notably RGBA values) overflow the signed type. The issue became apparent when we switched from atoi to strtol in 0e92e8e519b33b35ab63600c31feb7c639e347a6 While the former has undefined behavior for out of range numbers it luckily seemed to "just" overflow as expected on supported OSs. The latter however returns LONG_MAX (which for a 32-bit value is 0x7fffffff and turned out to show turquoise in unexpected places, e.g. the default path highlighting color in node tool). Avoid this by catching the error and try to parse as unsigned type in this case (which will still overflow, but seems to have worked as expected so far).
* Remove dead code.Tavmjong Bah2019-03-271-88/+0
|
* Move Calligraphy preset names to more appropriate place.Tavmjong Bah2019-03-131-12/+0
|
* Don't translate Caligraphy presets in Preferences::_loadDefaults.Tavmjong Bah2019-03-111-6/+10
| | | | Fixes GitLab issue 128.
* Fix (hopefully) Internationalization of default Calligraphy presets.Tavmjong Bah2019-02-101-0/+9
|
* std::unique_ptr<_ObserverData>Thomas Holder2019-01-141-12/+7
|
* std::unique_ptr<PrefNodeObserver>Thomas Holder2019-01-141-9/+1
|
* Fixing Bug #1811551: GCC is not liking missing string_literal in ↵Kishore Debnath2019-01-141-2/+2
| | | | g_strdup_printf(). In this change, I'm adding string literal and this is revoming the compilation problem in mac.
* Fix memleak and hopefully windows CIMarc Jeanmougin2019-01-141-1/+1
|
* Add button to delete prefsMarc Jeanmougin2019-01-111-9/+30
|
* Convert preferences_skeleton to a C++11 raw string.Tavmjong Bah2018-12-181-0/+8
| | | | Move #ifdef stuff to Preferences::_loadDefaults()
* Change parsing an integer from 'atoi' to 'strtol' to allow parsing ↵Tavmjong Bah2018-12-181-1/+1
| | | | hexidecimal values.
* Fix bug 1804946: Measurement tool is very slow when using gridsJabier Arraiza2018-11-251-0/+23
| | | | This move from Namedview to a new prefernecr point to not reload full namedview on meassure
* Clarify licensesMax Gaukler2018-11-081-1/+2
| | | | | | - add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
* More caching in prefsMarc Jeanmougin2018-09-121-6/+27
|
* Fix preferences crashThomas Holder2018-09-121-3/+24
| | | | a81d0009 regression
* Cache preference raw valuesMarc Jeanmougin2018-09-111-0/+6
|
* Run clang-tidy’s modernize-pass-by-value pass.Emmanuel Gil Peyrot2018-06-181-4/+5
| | | | | This avoids having to pass variables by reference before copying them when calling a constructor.
* Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot2018-06-181-1/+1
| | | | | This replaces empty constructors and destructors with the default keyword.
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-41/+41
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Run clang-tidy’s modernize-use-override pass.Emmanuel Gil Peyrot2018-06-181-2/+2
| | | | | This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-12/+12
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-12/+12
|
* Misc. typosUnknown2017-11-071-1/+1
| | | | | | | | | | | | Found using `codespell -q 3 -w --skip="*.svg,*.po,*.ts,./share/tutorials,./src/libavoid,./packaging/win32/languages,./man,./src/2geom" -I ../inkscape-whitelist.txt` whereby whitelist file contained: ``` dum iff glight substract te upto ```
* Protect against missing "id".Tavmjong Bah2017-10-271-0/+6
|
* Define INKSCAPE_FONTSDIR and add USER/SYSTEM resource paths for fontsEduard Braun2017-10-201-1/+1
| | | | | (Note we always had an empty /share/fonts directory that didn't seem to have any purpose yet)
* Refactor Util::ptr_sharedJan Lingscheid2017-10-181-2/+2
| | | | | Util::ptr_shared<T> was only used in its <char> specialization, so it is now refactored into a non-template class. Using it with arbitary classes was dangerous anyway.
* Refactor profile directory use and promote IO::Resource get_path and ↵Martin Owens2017-06-281-18/+10
| | | | get_filename methods
* Rewrite UXJabiertxof2017-04-291-0/+29
| | | (bzr r15620.1.12)
* ResetJabiertxof2017-04-281-29/+0
| | | (bzr r15620.1.9)
* Fixing remove prefsJabier Arraiza Cenoz2017-04-271-0/+29
| | | (bzr r15620.1.7)
* Remove properties with default values from 'style' entries in users ↵Tavmjong Bah2016-09-201-0/+2
| | | | | | | preferences.xml file. This prevents 'style' entries from becoming full of unnecessary properties. (bzr r15123)
* Removed unused includes, decreased compilation time. Once againAdrian Boguszewski2016-08-031-1/+0
| | | (bzr r15034)
* Reverted changes to r15024 after many building problemsAdrian Boguszewski2016-07-281-0/+1
| | | (bzr r15027)
* Removed unused includes, decrease compilation timeAdrian Boguszewski2016-07-281-1/+0
| | | (bzr r15025)
* Convert accidental member accesses into static function accessesLiam P. White2014-06-261-3/+5
| | | (bzr r13341.5.7)
* 1. make it compileLiam P. White2014-06-251-3/+3
| | | (bzr r13341.5.1)
* Stop observer from crashing when it doesn't exist in preferences.xmlMartin Owens2014-04-201-1/+3
| | | (bzr r13293)
* string class usageKris De Gussem2014-03-161-16/+9
| | | (bzr r13157)
* add null check: should fix bug #1163241 (inkscape crashed with SIGSEGV in ↵Kris De Gussem2014-01-081-0/+3
| | | | | Inkscape::Preferences::_getNode()) (bzr r12902)
* Units: stop newing Unit objects. pass around pointers to "undeletable" Unit ↵Johan B. C. Engelen2013-10-121-2/+1
| | | | | objects in the UnitTable. I think we should move to using indexed units, and pass around the index of the unit in the unittable, or smth like that... ? (bzr r12679)
* Switched to global UnitTable.Matthew Petroff2013-08-041-2/+2
| | | (bzr r12380.1.62)
* A couple of forward declarationsAlex Valavanis2013-02-111-0/+1
| | | (bzr r12119)
* Fix for 255792 : Calligraphy tool presets managementJohn Smith2012-11-301-0/+11
| | | (bzr r11916)