summaryrefslogtreecommitdiff
path: root/navit/gui
Commit message (Collapse)AuthorAgeFilesLines
* Qt5 qml gui - POC update (#263)R7602Pierre GRANDIN2017-06-0447-199/+2091
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding qt5/qml2 UI proof of concept * Code cleanup * Minor cleanup * Apply coding style by clang-format -style=WebKit For better diff tracking, I applied coding style once more. * Removed useless QtQuick.Controls dependency * QML2 : Minor work around POIs * QML2 : Use real POIs icons * More minor work around POIs. This commit adds a draft of POI display, and the possibility to set a POI as destination. Also sets the current position to wherever we clicked on the map, to simulate routing using the Demo vehicle * Renamed default skin to 'modern' This will allow us to easily create other skins and make the skin to load configurable * Added town search capability * Resize the QNavitQuick object when exiting the menu * Minor work on the qml2 gui * Implemented street search * Disabled virtual keyboard until it's ready * More modular default country code * Block draw operations when displaying the menu * Removed useless QML ressources
* QT5/qml2 UI proof of concept (#254)R7551Pierre GRANDIN2017-05-1539-13/+1539
| | | | | | | | | | | | | | * Adding qt5/qml2 UI proof of concept * Code cleanup * Minor cleanup * Apply coding style by clang-format -style=WebKit For better diff tracking, I applied coding style once more. * Removed useless QtQuick.Controls dependency
* Add:gui_internal:New POI filter for bus&train.Sebastian Leske2017-05-121-0/+3
| | | | | | New filter entry "Bus&Train" for the POI menu of the internal GUI, to show only bus stops and train stations. Useful for finding nearby public transport options.
* Add Qt5 qml gui skeleton (#236)R7461Stefan Wildemann2017-05-044-0/+289
| | | | | | | | | | | | | | | | | | | * Initial parts of qt5 qml graphics based on graphics/qt5_qml * Qt5 QML gui: working handover The hand over of the QML engine between the graphics and the gui part is working now. The gui can load it's own QML component and embed the navit widget inside other QML code. * Remove unneeded moc include * Fix: Apply coding style * Fix:extern "C" the navit includes in graphics qt5 Seems the navit includes are not fully "c++" aware, so extern "C" them in the c++ parts.
* Fix: Don't crash if LANG environment not set (#232)R7447Stefan Wildemann2017-05-031-0/+4
| | | | Since getenv may return NULL if a variable is not set, current keyboard code crashes if LANG environment is not set.
* Add network info menu in gui/internal for Linux (#228)Pierre GRANDIN2017-04-291-1/+59
| | | | | | | | | | * Add network info menu in gui/internal for Linux * Ensures that ifaddrs.h is available before enabling network info code * Add network info to sailfish config as well * Prevent linker and undefined reference errors for non-unix builds
* keep active vehicle profile when deactivating vehicle (#217)R7393mcapdeville2017-04-191-4/+13
| | | | | | | | | | | | | | | | | | | | When deactivating vehicle, profile is choosen from "car" vehicle_profile or by default the first vehicle_profile in list. So, by example, car_avoid_tolls never work when manually selecting current position (and deactivate vehicle). Now, if there is a selected vehicle profile, we keep it as vehicle_profile (not changing it). Aditionnaly, in internal gui, selecting a vehicle profile when wehicle is deactivated, in gui_internal_cmd_set_active_profile(), call navit_set_vehicleprofile_name() with new vehicle_profile (by name) before setting vehicle_attr to NULL (like in gui_internal_cmd_set_position()). Now, we can switch profile when vehicle is deactivatied and route is update correctly. TO DO : Same in other gui TO TEST : with more than one vehicle enable
* Fix:gui_internal:Rename new option to hide_impossible_next_keysR7360Sebastian Leske2017-03-031-1/+1
|
* Hide impossible keys at the internal keyboard instead of highlighting the ↵R7358Robert Pohlink2017-03-025-13/+73
| | | | | | | | | | | | | | | | | | | | possible ones (leftover from PR5) (#210) * Add:gui_internal:In search, hide on-screen keys which will not find a result. During incremental search in the search dialog, hide keys on the on-screen keyboard which will not lead to any search result. Before, keys where highlighted if they would lead to a result. * Remap special characters in Search to standard characters to enable useful hide-key-functionality * Fix highlight (hide) possible next keys for search internal Now only shows possible keys, not the nth key of the searched item. Takes care of umlauts. * Add a switch attr for gui internal to decide to use hide_keys or the old highlight key behaviour usage: add the attr 'hide_next_possible_keys="1"' to <gui type="internal" [...] />
* Merge branch 'trunk' into trac/1341trac/1341Pierre Grandin2016-12-0114-117/+356
|\ | | | | | | | | | | | | Conflicts: navit/Makefile.am navit/xpm/Makefile.am po/Makefile.am
| * Refactor:core:For plugins, use term 'category' instead of 'type'.Sebastian Leske2016-10-314-4/+4
| | | | | | | | | | | | | | Use the term 'category' for all plugins with the same API (GUI plugins, map plugins etc.). This used to be called 'type', which was confusing, because in the XML config, 'type' refers to what is called 'name' in the code.
| * gui_internal: free heightlines and diagram_pointsR6785jandegr2016-09-161-3/+24
| |
| * gui_internal_heightprofilejandegr2016-09-051-5/+10
| | | | | | show a notification in heightprofile when no map is found providing heightlines
| * update docjandegr2016-09-041-4/+0
| |
| * gui_internal: fix occasional crash of heightprofilejandegr2016-09-041-21/+12
| |
| * Update gui_internal_command.cjandegr2016-09-011-0/+1
| |
| * gui internal : some more heightprofile fixesjandegr2016-09-011-25/+45
| |
| * CI triggerjandegr2016-08-301-1/+0
| |
| * gui_internal : fix heightprofilejandegr2016-08-301-9/+16
| |
| * Revert "Fix:gui_internal:Hide native keyboard when displaying POI search ↵R6702Michael Dankov2016-07-101-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | results" This reverts commit 53b333a617146bc304063f8ddd0dfe2927bb6064. That commit made POI filtering behave unexpectedly, returning empty result sets sometimes. I was able to reproduce it on x64 linux in following way: start POI filtering, then press "POIs" on the top to return to POI list, then press looking glass to start POI filter once again. I was unable to get non-empty results on my Android device. It also has introduced some valgrind warnings about accessing an already freed location after query text is entered and actual search is fired. Hope @mvglasow will take a closer look on this issue.
| * fix:gui_internal:Properly switch keyboard to lower/uppercaseR6698Michael Dankov2016-07-103-17/+36
| | | | | | | | | | | | Do the automatic switch in gui_internal_keypress_do instead of gui_internal_search_changed so that other text input widgets would benefit, e.g. poi search.
| * Fix:gui_internal:Fix Cyrillic caps switch buttonR6695Michael Dankov2016-07-101-1/+1
| |
| * Fix:gui_internal:Repair "Set distance to"/"Get more" menu items. Fixes #1342.Sebastian Leske2016-05-313-6/+12
| | | | | | | | | | | | | | | | | | During table rendering, do not disable off-screen table entries by toggling STATE_SENSITIVE. Doing so breaks the menu items "Set distance to"/ "Get more"; these must never be STATE_SENSITIVE, since their sub-widgets should receive clicks. Instead, use STATE_OFFSCREEN to mark off-screen entries and skip them during traversal with a rotary encoder.
| * Refactor:gui_internal:Remove out-ifdefed code and unused widget states.Sebastian Leske2016-05-313-17/+15
| |
| * Refactor:gui_internal:Code cleanup.Sebastian Leske2016-05-311-4/+3
| |
| * Fix:gui_internal:Hide native keyboard when displaying POI search resultsmvglasow2016-02-241-0/+4
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Fix:gui_internal:Make native keyboard compatible with changes after R6421mvglasow2016-02-242-0/+9
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Add:gui_internal:Support mode for native virtual keyboardmvglasow2016-02-241-0/+1
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Fix:gui_internal:Further native keyboard refinementsmvglasow2016-02-241-23/+14
| | | | | | | | | | | | | | | | | | | | Allow graphics plugin to specify size occupied by keyboard Create placeholder for Android keyboard Show Android keyboard in landscape mode Skip keyboard logic if hardware keyboard is present on Android Add some documentation and comments Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Add:gui_internal:Rudimentary native on-screen keyboard implementationmvglasow2016-02-248-5/+126
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Fix:gui_internal:Correctly handle fullscreen toggle on Android API 17+mvglasow2016-02-021-0/+6
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Add:gui_internal:Use padding if supported by graphics drivermvglasow2016-02-021-6/+40
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Refactor:gui_internal:Determine menu widget size based on parent sizemvglasow2016-02-021-6/+6
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
| * Refactor:gui_internal:Document gui_internal_menu.cR6550mvglasow2016-01-241-0/+15
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Removing autotools supportPierre GRANDIN2015-12-317-63/+0
|/
* Fix:gui_internal:Correct keyboard highlighting in search.R6427Sebastian Leske2015-12-191-5/+9
| | | | | | During search, clear the list of possible keys when the search input changes. Otherwise too many keys are highlighted if search input is changed while the search is still running.
* Refactor:gui_internal:Better variable names, some docs.R6424Sebastian Leske2015-12-172-30/+39
|
* Refactor:gui_internal:Remove dead or redundant code.Sebastian Leske2015-12-174-26/+2
|
* Fix:gui_internal:Simplify and fix gui_internal_keynav_find_prev.Sebastian Leske2015-12-171-19/+17
| | | | | | Simplify gui_internal_keynav_find_prev, and fix small bug: In the search menu, if the Prev/Next buttons are visible and the keyboard is hidden, going backwards with PgUp skips some widgets.
* Add:gui_internal:Navigating menus with rotary encodergreg2015-12-172-45/+164
| | | | | | | Allow navigating the menus of the internal GUI with only PgUp/PgDown keys, instead of using arrow and Enter keys (which remains supported). This allows to operate the menus with a rotary encoder, if its two actions are mapped to PgUp/PgDown.
* Fix:gui_internal:Properly hide Prev/Next buttons initially.greg2015-12-171-0/+2
| | | | | | | | | Prevent the Prev/Next buttons in the search dialog from being reachable using the cursor keys even if they are not displayed. To reproduce: Open search dialog, press Cursor down until focus returns to the top of the screen. Without this fix, the Prev button appears at the top of the screen and is focused.
* Fix:gui_internal:Correct case-switching & highlighting in search dialog.greg2015-12-173-8/+37
| | | | | | | | Fixes for the on-screen keyboard of the search dialog in the internal GUI: Switch the keyboard to lower-case after first input character, even if entered via the physical keyboard. Switch back to upper-case and un-highlight all keys if user clears search input.
* Fix:gui_internal:Prevent back/prev buttons from staying highlightedgreg2015-12-171-0/+1
| | | | | | | The Prev/Next buttons in the search result list of the internal GUI can be selected by moving the input focus using the arrow keys. This fix prevents the Prev/Next buttons from staying hightlighted when the focus is moved away.
* Fix navigation messages translations in Android LollipopR6372Michael Dankov2015-11-151-2/+1
| | | | | | | | Do not set locale to "C" for LC_NUMERIC, and do not call setlocale at all on Android, because: - Since Lollipop, Android attempts to do something in setlocale, but its implementation is far from complete and makes no sense for us at this point. - Older Android versions used to completely ignore setlocale() calls.
* Fix:gui_internal:memleakR6368mdankov2015-11-141-16/+2
| | | Different implementation of #1331 to fix memory leak
* Refactor:gui_internal:Use enum for keyboard modes and flagsmvglasow2015-11-137-94/+107
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Refactor:gui_internal:More documentationmvglasow2015-11-133-31/+62
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Refactor:gui_internal:Documentation updatemvglasow2015-11-122-76/+147
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Refactor:gui_internal:Some documentation updatesmvglasow2015-11-123-47/+98
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Fix:gui_internal:Format coordinates properly on Android Lollipopmvglasow2015-11-121-1/+26
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>