summaryrefslogtreecommitdiff
path: root/navit/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Add/Android: Provide geo coordinates for clicked position in contextual menu ↵lains2019-09-221-0/+17
| | | | | | | | | | | | | | | | | | | | (#794) * Adding unescape string utility and unescaping alls values in textfile attributes * Moving coordinates_geo out of internal use in gui_internal_command.c (to coord.c) * Moving gui_internal_escape() into generic str_escape() function in util.c * Moving strncpy_unescape() into generic function in util.c * Using geo coords as item name in Android contextual menu "Route Here" * Using string escaping (for double quotes) when writing former destinations to file * Adding new type DEGREES_MINUTES_SECONDS_BRIEF to factorize coordinates_geo() And fixing the example strings to match what is actually output by the function * Adding support for DEGREES_MINUTES_SECONDS_BRIEF format into coord_format And add internal coord_format_with_sep() to specify the separator * Fixing doxygen doc for coord_format_with_sep() * Making coord_format() inline * Using new factorized generic function coord_geo_format_short() instead of coordinates_geo() * Changing single contextual window title with GPS coords on Android * Adding string bytes length for each coord to string format, using short format in pcoord_format_short() and coord_geo_format_short() * Using pcoord_format_short() in android
* Refactor:GUI/GTK:Adding pointer and label when displaying POI on map (#729)lains2019-03-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * Moving get_search_results_map from internal gui to generic navit functions * Moving square_shape_str() and populate_search_results_map() in generic files (not making them gui_internal-specific) * Adding GList cleanup after adding search results to a map, setting result names properly in GTK POI * Using common navit_populate_search_results_map() in internal GUI (factorizing code) * Adding doxygen comments * Reverting added empty lines * Applying expected style (indentation) * Adding dedicated code to free payload for GList (instead of using unavailable g_list_free_full()) * Avoiding for loop initial declarations * Remove obsolete FIXME comment * Minor tweaking doxygen comments and variables * Removing highlighted points on result map when starting routing
* Merge branch 'master' into trafficmvglasow2018-08-211-0/+1
|\
| * Refactor:gui/internal: Add pointer and label when using function "view on ↵lains2018-08-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | map" (#631) * Factorizing gui_internal_cmd_results_to_map() to also highlight points selected by command "View on map" * Adding comments on displayed text for type_waypoint and type_route_end * Adding comments * Restoring zoom_to_rect in gui_internal_cmd_results_to_map() * Making zoom_to_rect conditional, moving results_map preparation code to a dedicated function * Moving "search_results" map preparation into a dedicated function * Removing unused var * Adding doxygen comments and disabling widget dealloc (causes segfault) * Fixing segfault at next do_drawy() when adding pointer for view on map * Reformatting labels to be displayed in a compact square area rather than all on a line * Applying astyle to comply to ci_sanity_checks.sh * Handling newlines in labels associated to element_circle * Fixing hardcoded nblines * Moving multi-line label processing to a dedicated function multiline_label_draw() * Rework on arg naming to line-up with other simular functions. Minor update on doxygen comments * Moving unsigned int sqrt calculation to utils * Minor improvement of comment * Fixing typo on comment * Also applying size xslt processing to layer itemgra This allows to also process the size of item_types="found_item", which is used by "View on map" and "Show results on map"
* | Refactor:traffic:Prepare for partial road ref matchesmvglasow2018-08-181-0/+2
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Fix:core:Add (presumably) missing includemvglasow2018-06-141-0/+1
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Revert "Add:core:MIN macro"mvglasow2018-05-201-2/+0
| | | | | | | | This reverts commit 2ee827a5384406f28ace0e2f3ca6eaae57d223ae.
* | Add:core:MIN macromvglasow2018-05-191-0/+2
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Add:core:Export iso_8601_to_time() in util.hmvglasow2018-01-311-0/+1
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Add:core:Time conversion functionsmvglasow2018-01-241-0/+2
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Add:util:compare_name_systematic()mvglasow2017-12-021-0/+1
|/ | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Fix:core:Remove unused macros min/max, which conflict with C++ standard macros.Sebastian Leske2017-09-181-3/+0
| | | | Thanks to trldp for pointing this out in PR #312.
* Fix:core:Refine criteria for announcing maneuvers|Partial fix for #660mvglasow2014-11-081-0/+3
| | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com> git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5929 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Refactor:core:Rename get_direction -> get_compass_directionsleske2014-08-111-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5866 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Refactor:core:Centralise get_direction.sleske2014-08-111-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5865 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Fix warnings by not using g_str(n)casecmp; new function ↵sleske2013-08-111-0/+1
| | | | | | navit_utf8_strcasecmp.|Part of #1154. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5572 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:core:Added command function for spawn systemprocesses and string ↵woglinde2011-05-011-0/+8
| | | | | | catenation, patch provided by tryagain git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4458 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:build:Enable replacement gettimeofday for old ming32/mingw32ce versionsrikky2011-03-091-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4321 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:core:Added simplified version of gettimeofday to MSVC build. (needed to ↵rikky2011-03-031-0/+9
| | | | | | build osd_core and map/csv) git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4292 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Revert rev 4169 (also: please fix proper) and fixed building with ↵rikky2011-02-151-1/+1
| | | | | | autotools git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4170 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:vehicle_demo:Give back a reasonable timestampmartin-s2009-07-121-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2394 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Win32:Clean up Win32 gui, remove duplicate of win32_gui.h and make ↵horwitz2009-05-141-0/+7
| | | | | | gui_win32 work again. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2269 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Avoid strptime (not available on win32/wince)martin-s2009-03-101-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2094 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Converted graphics to hashesmartin-s2009-01-261-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1970 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Add new function g_strconcat_printf to make some tasks easiermartin-s2008-10-091-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1436 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/+11
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1059 ffa7fe5e-494d-0410-b361-a75ebd5db220