summaryrefslogtreecommitdiffstats
path: root/src/util/units.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-02-15Fix unmatched svg_length_lookup[] array and SVGLength::UnitTim Rawlinson1-5/+1
2019-01-02modernize loopsMarc Jeanmougin1-5/+5
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-10-18Remove util/unordered-containers.h aliases.Emmanuel Gil Peyrot1-2/+3
2018-10-01Remove #include "config.h" wherever possibleEduard Braun1-4/+0
2018-06-18Run clang-tidy’s modernize-pass-by-value pass.Emmanuel Gil Peyrot1-8/+9
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-1/+1
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-4/+4
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-5/+5
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-5/+5
2016-03-22Un-revert: Allow Unit object to do conversions, pipe Quality class method ↵Martin Owens1-12/+25
via that. (bzr r14739)
2016-03-18Reverting 14701.Tavmjong Bah1-56/+14
(bzr r14716.1.2)
2016-03-12Add a units box to line height and wire in the style units, plus some cleanupMartin Owens1-14/+56
(bzr r14701)
2014-11-25Move 'm' handling code from document.cpp to svg-length.cpp and units.cpp to ↵Tavmjong Bah1-0/+3
match handling of 'ft'. (bzr r13758)
2014-11-24Units: make it absolutely clear that Document properties unit dropdown is ↵Johan B. C. Engelen1-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)
2014-11-19units: remove a remnant from old code. There should be only one UnitTable ↵Johan B. C. Engelen1-1/+0
instantiated. (bzr r13737)
2014-08-17Fix grid jumping (bug #1342238).Matthew Petroff1-1/+5
Fixed bugs: - https://launchpad.net/bugs/1342238 (bzr r13522)
2014-02-24inspired by r13052, fix up the code to hopefully work when someone has ↵Johan B. C. Engelen1-3/+10
different units for height and width of the page. Fixed bugs: - https://launchpad.net/bugs/1240308 (bzr r13053)
2013-10-29saving units is not implemented yet, and noone should call the save methodJohan B. C. Engelen1-3/+4
(bzr r12750)
2013-10-29"fix" some "unused parameter" warningsKris De Gussem1-3/+3
(bzr r12746)
2013-10-28unit display: fix typoJohan B. C. Engelen1-1/+1
(bzr r12741)
2013-10-12Units: stop newing Unit objects. pass around pointers to "undeletable" Unit ↵Johan B. C. Engelen1-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)
2013-10-05Rewrite the internals of the unit code for somewhat better performanceKrzysztof Kosi??ski1-134/+173
(bzr r12661)
2013-09-22units: Catch FileError if no units.xml is in /usr/local/...Bryce Harrington1-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)
2013-09-16C++ify expression evaluator.Matthew Petroff1-0/+1
(bzr r12475.1.23)
2013-09-01Fix grids with comma as decimal separator [Bug #1216306].Matthew Petroff1-2/+3
Fixed bugs: - https://launchpad.net/bugs/1216306 (bzr r12498)
2013-08-28Added Quantity comparison functions.Matthew Petroff1-0/+21
(bzr r12475.1.7)
2013-08-28Use enum names instead of numbers.Matthew Petroff1-20/+20
(bzr r12475.1.6)
2013-08-25Use real world units for page sizes.Matthew Petroff1-0/+30
(bzr r12475.1.1)
2013-08-04Switched to global UnitTable.Matthew Petroff1-7/+2
(bzr r12380.1.62)
2013-07-30Cleanup.Matthew Petroff1-9/+0
(bzr r12380.1.52)
2013-07-30Update unit extraction regular expressions.Matthew Petroff1-2/+2
(bzr r12380.1.50)
2013-07-24Remove unnecessary variable from the GMarkup-based unit parserKrzysztof Kosi??ski1-8/+6
(bzr r12439)
2013-07-24Remove the "simple SAX" parser. Replace its only use (loading of unitKrzysztof Kosi??ski1-150/+63
definitions in util/units.cpp) with Glib::Markup (bzr r12438)
2013-07-22Removed SPMetric.Matthew Petroff1-22/+0
(bzr r12380.1.49)
2013-07-20Add string output functions for units.Matthew Petroff1-0/+13
(bzr r12380.1.46)
2013-07-20Added percentage support to "Inkscape::Util::Quantity::convert".Matthew Petroff1-0/+5
(bzr r12380.1.43)
2013-07-18Switch unit functions from using pointer arguements to reference arguements.Matthew Petroff1-41/+51
(bzr r12380.1.28)
2013-07-18Added more more convientent unit functions.Matthew Petroff1-0/+17
(bzr r12380.1.27)
2013-07-18Added more convienient unit conversion functions.Matthew Petroff1-1/+25
(bzr r12380.1.26)
2013-07-18Added quantity string parsing.Matthew Petroff1-0/+22
(bzr r12380.1.24)
2013-07-17Fixed botched merge.Matthew Petroff1-5/+0
(bzr r12380.1.18)
2013-07-17Added copyright header and name to AUTHORS.Matthew Petroff1-0/+11
(bzr r12380.1.13)
2013-07-13Minor C++ish refactoring pass.Jon A. Cruz1-92/+103
(bzr r12419)
2013-07-13Whitespace cleanup.Jon A. Cruz1-79/+79
(bzr r12418)
2013-07-09Ported sp-namedview.cpp (todo: fix a bunch of things).Matthew Petroff1-0/+21
(bzr r12380.1.8)
2013-07-06Switch setWidth and setHeight to use Quantity and switch to forward ↵Matthew Petroff1-1/+1
declaration of Inkscape::Util::Quantity in document.h. (bzr r12380.1.7)
2013-07-02Renamed Length class to Quantity class, fixed bugs, and added functions.Matthew Petroff1-22/+62
(bzr r12380.1.3)
2013-06-25Added length class.Matthew Petroff1-1/+38
(bzr r12380.1.1)