summaryrefslogtreecommitdiff
path: root/navit/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* feature: graphics: allow spiked lines for cliff and embarkments (#1174)Stefan Wildemann2022-01-011-0/+33
| | | | | | | | | | | | | * feature: graphics: allow spiked lines for cliff and embarkments This adds another drwing element to graphics system. It can produce lines with spikes as used for cliffs on maps. Additionally this adds embarlment support for map. * review fixes. Add changes requested by review, plus add paranoia check on xml parameter.
* change:core:Remove unused argument from attr_searchjkoan2020-08-081-43/+43
|
* Add:Core+Graphics+Qt5:Add support for textured polygons (#989)Stefan Wildemann2020-04-261-2/+38
| | | | | | | | | | This pull request adds the basic support for textured polygons. It adds a function to graphics plugins to set texture. It enhances itemgra configuration that allows to set a picture to polygon map elements Basic support for Qt5 graphics. Some example textures added to car layout. Texture files have own resource directory.
* fix:all:fix compiler warnings (#935)Stefan Wildemann2019-10-291-1/+2
| | | * fix:core:remove many compiler warnings from core
* fix/enhancement:graphics/layout:get default icon size from layout + draw ↵Stefan Wildemann2019-09-251-1/+40
| | | | | | | | | | | | | tunnels transparent + mark oneway streets (#884) This pull request adds the possibility to globally set a default for icon size of a layout. You can now give "icon_h" and "icon_w" properties in "layout" tag. This causes navit to not use the real size of an icon but to scale it to have the requested size. Guessing prescaled icons (the name_w_h.png's of course works. Default size of 22x22px which is the default size hint on most of the svg's is used. This fixes #819. This pull request adds the property "underground_alpha" to the "graphics" tag giving the alpha value to use as transparency if ways are flagged with AF_UNDERGROUND. This effectively renders tunnels in transparent. This pull request adds a "oneway" tag to itemgras in layouts. Together with the enhancements of the "arrows" itemgra used for drawing the route graph one can print nice arrows on oneway roads.
* Refactoring:Xmlconfig:Moving layout definition in their own .xml file (makes ↵lains2018-11-181-3/+19
| | | | | | | | | | main navit.xml file lighter) (#559) Layouts contain quite heavy xml code, and there are many layouts available for navit. They are all inserted inside the main navit.xml, which makes it hard to edit because of its size, even if changes or customizations by users are very rarely on the layout code. I have thus moved the layout code away from navit.xml, each layout having its own xml definition file, called navit_layout_*.xml These files are inserted inside the main navit.xml file by using the already existing xi:include mechanism, this also allow for backwards compatibility (old monolithic navit.xml files are still valid and can be used). The other advantage for this is that f the user wants to have his/her own customized navit.xml, he/she can still include the shipped layout files, making their xml lighter. This also allow to enable/disable specific layouts easily by including or not each layout file. It is also easier to perform side-by-side comparison between two layout files.
* Cleanup:global:force the re-attach the return type to the function ↵Joseph Herlant2018-05-301-42/+21
| | | | | | | | declaration (#605) * Cleanup:global:force the re-attach the return type to the function declaration * cleanup:global:some loose ends
* cleanup:global:Use astyle to reformat everythingJoseph Herlant2018-05-251-508/+473
|
* Fix:debug:Change line separators for dbg to work also on win* platform (#546)Joseph Herlant2018-04-261-5/+5
| | | | | | | | * Fix:debug:Change line separators for dbg to work also on win* platform * Fix:debug:Break multiline dbg statements to use the new model * Fix:debug:Move the EOL into debug_vprintf
* Refactor:core:Introduce enum for debug levels, and use it everywhere.|First ↵sleske2014-11-221-5/+5
| | | | | | part of #1269. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5960 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Allow to query nightlayout and daylayout attributes of layout object.mdankov2014-08-131-1/+7
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5870 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Handle <layer> without name or with invalid ref=.sleske2013-08-221-0/+12
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5590 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Build with -Wcast-align -Wmissing-prototypes, -Wpointer-arith, fix ↵sleske2013-08-211-11/+1
| | | | | | corresponding warnings. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5586 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Fix warnings from pointer type problems.|Part of #1154.sleske2013-08-111-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5571 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Allow layer tag to reference layers within navit context, object ↵martin-s2013-01-191-5/+63
| | | | | | handling cleanup git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5340 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:core:Option to specify hot point for pngs/svgsmartin-s2012-12-151-1/+9
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5293 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Changed layout_func to new schememartin-s2012-07-161-0/+18
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5189 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Enable getting name attribute from layoutmartin-s2012-06-051-0/+3
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5133 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Possibilty to specify the default layout. Add active="1" to the ↵rikky2011-03-131-1/+6
| | | | | | layout node which should be active on default. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4342 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Fixed wrong color definitionsmartin-s2011-01-261-5/+5
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4037 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:MSVC fixes|Thanks chollyamartin-s2011-01-241-5/+10
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3985 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Possibility for colored text in labelsmartin-s2010-11-081-0/+18
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3658 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Support for disabling/enabling map layersmartin-s2010-09-021-7/+105
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3547 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Support for automatic day night switching|Thanks chollyamartin-s2009-11-121-1/+7
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2746 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Add the possibility to define cursors in layoutseralph2009-10-141-1/+91
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2667 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:core:Added possibility to use pngs as cursor, added cursor desings from ↵martin-s2008-11-061-1/+3
| | | | | | nekohayo git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1662 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Made cursor configurable via navit.xmlmartin-s2008-11-061-12/+46
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1653 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Make icons scaleablemartin-s2008-11-041-1/+9
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1636 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Cleaned up xmlconfig in preparation for more flexible cursorsmartin-s2008-10-261-62/+175
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1564 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Added support for arrows showing the direction of linesmartin-s2008-09-251-0/+15
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1417 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Patch:Core:Patch from Helge to add offset to dashed polylines. Thank youkazer_2008-09-011-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1354 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Tickets 141 & 182:Make fonts configurable from the xml file, and change ↵kazer_2008-08-211-2/+4
| | | | | | default fonts to Sans instead of Mono. Thanks Sarah & Nekohayo for the patches git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1288 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Made detail level for layouts configurablemartin-s2008-07-261-4/+14
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1231 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add license files and headershorwitz2008-06-051-0/+19
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1100 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Renamed src to navit for cleanup of includesmartin-s2008-05-181-0/+139
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1059 ffa7fe5e-494d-0410-b361-a75ebd5db220