summaryrefslogtreecommitdiffstats
path: root/src/util/units.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* | Switch setWidth and setHeight to use Quantity and switch to forward ↵Matthew Petroff2013-07-061-1/+1
| | | | | | | | | | declaration of Inkscape::Util::Quantity in document.h. (bzr r12380.1.7)
* | Renamed Length class to Quantity class, fixed bugs, and added functions.Matthew Petroff2013-07-021-22/+62
| | | | | | (bzr r12380.1.3)
* | Added length class.Matthew Petroff2013-06-251-1/+38
|/ | | (bzr r12380.1.1)
* cppcheck tells us: scanf without field width limits can crash with huge ↵Kris De Gussem2012-02-041-13/+20
| | | | | input data. (bzr r10934)
* rv some issues with previous commitKris De Gussem2012-02-021-18/+7
| | | (bzr r10929)
* cppcheck tells us: scanf without field width limits can crash with huge ↵Kris De Gussem2012-02-021-7/+18
| | | | | input data. (bzr r10928)
* Fix missing header in units.cppAlex Valavanis2012-01-221-0/+1
| | | | | | Fixed bugs: - https://launchpad.net/bugs/920154 (bzr r10919)
* memleak / header stuff / unused variable.Kris De Gussem2012-01-221-1/+0
| | | (bzr r10917)
* cppcheck: initialization / warning cleanupKris De Gussem2011-11-101-19/+18
| | | (bzr r10736)
* Super duper mega (fun!) commit: replaced encoding=utf-8 with ↵Chris Morgan2010-11-171-1/+1
| | | | | | | | | | | | | | | fileencoding=utf-8 in all 1074 Vim modelines. The reason for this is that (a) setting the encoding isn't nice, and (b) Vim 7.3 (with modeline enabled) disallows it and pops up an error whenever you open any file with it ("invalid modeline"). Also corrected five deviant modestrings: * src/ui/widget/dock.cpp and src/ui/widget/dock.h: missing colon at the end * src/ui/dialog/tile.cpp: removed gratuitous second colon at the end * src/helper/units-test.h: removed gratuitous space before a colon * share/extensions/export_gimp_palette.py: missing textwidth=99 That's my geekiest commit yet. (bzr r9900)
* moving trunk for module inkscapeMenTaLguY2006-01-161-0/+344
(bzr r1)