summaryrefslogtreecommitdiffstats
path: root/src/preferences.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-26Dialogs: improve opacity handling through use of CSSPatrick Storz1-1/+0
In particular this allows us to get rid of our custom implementation for the opacity transition (which did not always work properly).
2019-10-20Preferences: hold-off on caching until fully instantiatedPatrick Storz1-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
2019-10-14Re-Add blending modes UI using CSS instead filtersJabier Arraiza1-1/+1
2019-10-13add extension to prefs backupsMarc Jeanmougin1-2/+2
2019-10-09Backup prefs instead of deletingMarc Jeanmougin1-3/+15
Fixes https://gitlab.com/inkscape/inbox/issues/850
2019-07-22Preferences: add methods to set/get unsigned integersPatrick Storz1-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).
2019-06-08Preferences: Work around issue with parsing unsigned integersPatrick Storz1-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).
2019-03-27Remove dead code.Tavmjong Bah1-88/+0
2019-03-13Move Calligraphy preset names to more appropriate place.Tavmjong Bah1-12/+0
2019-03-11Don't translate Caligraphy presets in Preferences::_loadDefaults.Tavmjong Bah1-6/+10
Fixes GitLab issue 128.
2019-02-10Fix (hopefully) Internationalization of default Calligraphy presets.Tavmjong Bah1-0/+9
2019-01-14std::unique_ptr<_ObserverData>Thomas Holder1-12/+7
2019-01-14std::unique_ptr<PrefNodeObserver>Thomas Holder1-9/+1
2019-01-14Fixing Bug #1811551: GCC is not liking missing string_literal in ↵Kishore Debnath1-2/+2
g_strdup_printf(). In this change, I'm adding string literal and this is revoming the compilation problem in mac.
2019-01-14Fix memleak and hopefully windows CIMarc Jeanmougin1-1/+1
2019-01-11Add button to delete prefsMarc Jeanmougin1-9/+30
2018-12-18Convert preferences_skeleton to a C++11 raw string.Tavmjong Bah1-0/+8
Move #ifdef stuff to Preferences::_loadDefaults()
2018-12-18Change parsing an integer from 'atoi' to 'strtol' to allow parsing ↵Tavmjong Bah1-1/+1
hexidecimal values.
2018-11-25Fix bug 1804946: Measurement tool is very slow when using gridsJabier Arraiza1-0/+23
This move from Namedview to a new prefernecr point to not reload full namedview on meassure
2018-11-08Clarify licensesMax Gaukler1-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
2018-09-12More caching in prefsMarc Jeanmougin1-6/+27
2018-09-12Fix preferences crashThomas Holder1-3/+24
a81d0009 regression
2018-09-11Cache preference raw valuesMarc Jeanmougin1-0/+6
2018-06-18Run clang-tidy’s modernize-pass-by-value pass.Emmanuel Gil Peyrot1-4/+5
This avoids having to pass variables by reference before copying them when calling a constructor.
2018-06-18Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot1-1/+1
This replaces empty constructors and destructors with the default keyword.
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-41/+41
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-06-18Run clang-tidy’s modernize-use-override pass.Emmanuel Gil Peyrot1-2/+2
This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-12/+12
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-12/+12
2017-11-07Misc. typosUnknown1-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 ```
2017-10-27Protect against missing "id".Tavmjong Bah1-0/+6
2017-10-20Define INKSCAPE_FONTSDIR and add USER/SYSTEM resource paths for fontsEduard Braun1-1/+1
(Note we always had an empty /share/fonts directory that didn't seem to have any purpose yet)
2017-10-18Refactor Util::ptr_sharedJan Lingscheid1-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.
2017-06-28Refactor profile directory use and promote IO::Resource get_path and ↵Martin Owens1-18/+10
get_filename methods
2017-04-29Rewrite UXJabiertxof1-0/+29
(bzr r15620.1.12)
2017-04-28ResetJabiertxof1-29/+0
(bzr r15620.1.9)
2017-04-27Fixing remove prefsJabier Arraiza Cenoz1-0/+29
(bzr r15620.1.7)
2016-09-20Remove properties with default values from 'style' entries in users ↵Tavmjong Bah1-0/+2
preferences.xml file. This prevents 'style' entries from becoming full of unnecessary properties. (bzr r15123)
2016-08-03Removed unused includes, decreased compilation time. Once againAdrian Boguszewski1-1/+0
(bzr r15034)
2016-07-28Reverted changes to r15024 after many building problemsAdrian Boguszewski1-0/+1
(bzr r15027)
2016-07-28Removed unused includes, decrease compilation timeAdrian Boguszewski1-1/+0
(bzr r15025)
2014-06-26Convert accidental member accesses into static function accessesLiam P. White1-3/+5
(bzr r13341.5.7)
2014-06-251. make it compileLiam P. White1-3/+3
(bzr r13341.5.1)
2014-04-20Stop observer from crashing when it doesn't exist in preferences.xmlMartin Owens1-1/+3
(bzr r13293)
2014-03-16string class usageKris De Gussem1-16/+9
(bzr r13157)
2014-01-08add null check: should fix bug #1163241 (inkscape crashed with SIGSEGV in ↵Kris De Gussem1-0/+3
Inkscape::Preferences::_getNode()) (bzr r12902)
2013-10-12Units: stop newing Unit objects. pass around pointers to "undeletable" Unit ↵Johan B. C. Engelen1-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)
2013-08-04Switched to global UnitTable.Matthew Petroff1-2/+2
(bzr r12380.1.62)
2013-02-11A couple of forward declarationsAlex Valavanis1-0/+1
(bzr r12119)
2012-11-30Fix for 255792 : Calligraphy tool presets managementJohn Smith1-0/+11
(bzr r11916)