summaryrefslogtreecommitdiffstats
path: root/src/util/units.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix unmatched svg_length_lookup[] array and SVGLength::UnitTim Rawlinson2019-02-151-5/+1
|
* modernize loopsMarc Jeanmougin2019-01-021-5/+5
|
* 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
* Remove util/unordered-containers.h aliases.Emmanuel Gil Peyrot2018-10-181-2/+3
|
* Remove #include "config.h" wherever possibleEduard Braun2018-10-011-4/+0
|
* Run clang-tidy’s modernize-pass-by-value pass.Emmanuel Gil Peyrot2018-06-181-8/+9
| | | | | 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-1/+1
| | | | | 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-4/+4
| | | | | 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-5/+5
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-5/+5
|
* Un-revert: Allow Unit object to do conversions, pipe Quality class method ↵Martin Owens2016-03-221-12/+25
| | | | | via that. (bzr r14739)
* Reverting 14701.Tavmjong Bah2016-03-181-56/+14
| | | (bzr r14716.1.2)
* Add a units box to line height and wire in the style units, plus some cleanupMartin Owens2016-03-121-14/+56
| | | (bzr r14701)
* Move 'm' handling code from document.cpp to svg-length.cpp and units.cpp to ↵Tavmjong Bah2014-11-251-0/+3
| | | | | match handling of 'ft'. (bzr r13758)
* Units: make it absolutely clear that Document properties unit dropdown is ↵Johan B. C. Engelen2014-11-241-0/+24
| | | | | | | for UI Display Units. Upon document load, calculate the units used for SVG values, if a viewbox is available. If not, default to "px" SVG units. Change all code to use either Display units OR svg units. (bzr r13751)
* units: remove a remnant from old code. There should be only one UnitTable ↵Johan B. C. Engelen2014-11-191-1/+0
| | | | | instantiated. (bzr r13737)
* Fix grid jumping (bug #1342238).Matthew Petroff2014-08-171-1/+5
| | | | | | Fixed bugs: - https://launchpad.net/bugs/1342238 (bzr r13522)
* inspired by r13052, fix up the code to hopefully work when someone has ↵Johan B. C. Engelen2014-02-241-3/+10
| | | | | | | | different units for height and width of the page. Fixed bugs: - https://launchpad.net/bugs/1240308 (bzr r13053)
* saving units is not implemented yet, and noone should call the save methodJohan B. C. Engelen2013-10-291-3/+4
| | | (bzr r12750)
* "fix" some "unused parameter" warningsKris De Gussem2013-10-291-3/+3
| | | (bzr r12746)
* unit display: fix typoJohan B. C. Engelen2013-10-281-1/+1
| | | (bzr r12741)
* Units: stop newing Unit objects. pass around pointers to "undeletable" Unit ↵Johan B. C. Engelen2013-10-121-31/+33
| | | | | 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)
* Rewrite the internals of the unit code for somewhat better performanceKrzysztof Kosi??ski2013-10-051-134/+173
| | | (bzr r12661)
* units: Catch FileError if no units.xml is in /usr/local/...Bryce Harrington2013-09-221-0/+3
| | | | | | | | | | Reproducible by building and running inkscape in-tree, without installation. #10 0x0000000000aa6873 in Inkscape::Util::UnitTable::UnitTable (this=0x11f75e0) at util/units.cpp:195 filename = 0x121e8f0 "/usr/local/share/inkscape/ui/units.xml" (bzr r12571)
* C++ify expression evaluator.Matthew Petroff2013-09-161-0/+1
| | | (bzr r12475.1.23)
* Merge from trunk.Matthew Petroff2013-09-121-2/+3
|\ | | | | (bzr r12475.1.16)
| * Fix grids with comma as decimal separator [Bug #1216306].Matthew Petroff2013-09-011-2/+3
| | | | | | | | | | | | Fixed bugs: - https://launchpad.net/bugs/1216306 (bzr r12498)
* | Added Quantity comparison functions.Matthew Petroff2013-08-281-0/+21
| | | | | | (bzr r12475.1.7)
* | Use enum names instead of numbers.Matthew Petroff2013-08-281-20/+20
| | | | | | (bzr r12475.1.6)
* | Use real world units for page sizes.Matthew Petroff2013-08-251-0/+30
|/ | | (bzr r12475.1.1)
* Switched to global UnitTable.Matthew Petroff2013-08-041-7/+2
| | | (bzr r12380.1.62)
* Cleanup.Matthew Petroff2013-07-301-9/+0
| | | (bzr r12380.1.52)
* Merge from trunk.Matthew Petroff2013-07-301-151/+61
|\ | | | | (bzr r12380.1.51)
| * Remove unnecessary variable from the GMarkup-based unit parserKrzysztof Kosi??ski2013-07-241-8/+6
| | | | | | (bzr r12439)
| * Remove the "simple SAX" parser. Replace its only use (loading of unitKrzysztof Kosi??ski2013-07-241-150/+63
| | | | | | | | | | definitions in util/units.cpp) with Glib::Markup (bzr r12438)
* | Update unit extraction regular expressions.Matthew Petroff2013-07-301-2/+2
| | | | | | (bzr r12380.1.50)
* | Removed SPMetric.Matthew Petroff2013-07-221-22/+0
| | | | | | (bzr r12380.1.49)
* | Add string output functions for units.Matthew Petroff2013-07-201-0/+13
| | | | | | (bzr r12380.1.46)
* | Added percentage support to "Inkscape::Util::Quantity::convert".Matthew Petroff2013-07-201-0/+5
| | | | | | (bzr r12380.1.43)
* | Switch unit functions from using pointer arguements to reference arguements.Matthew Petroff2013-07-181-41/+51
| | | | | | (bzr r12380.1.28)
* | Added more more convientent unit functions.Matthew Petroff2013-07-181-0/+17
| | | | | | (bzr r12380.1.27)
* | Added more convienient unit conversion functions.Matthew Petroff2013-07-181-1/+25
| | | | | | (bzr r12380.1.26)
* | Added quantity string parsing.Matthew Petroff2013-07-181-0/+22
| | | | | | (bzr r12380.1.24)
* | Fixed botched merge.Matthew Petroff2013-07-171-5/+0
| | | | | | (bzr r12380.1.18)
* | Merge from trunk.Matthew Petroff2013-07-171-123/+139
|\| | | | | (bzr r12380.1.17)
| * Minor C++ish refactoring pass.Jon A. Cruz2013-07-131-92/+103
| | | | | | (bzr r12419)
| * Whitespace cleanup.Jon A. Cruz2013-07-131-79/+79
| | | | | | (bzr r12418)
* | Added copyright header and name to AUTHORS.Matthew Petroff2013-07-171-0/+11
| | | | | | (bzr r12380.1.13)
* | Ported sp-namedview.cpp (todo: fix a bunch of things).Matthew Petroff2013-07-091-0/+21
| | | | | | (bzr r12380.1.8)