Commit Graph

42 Commits

Author SHA1 Message Date
Dean Lee
980ba1312f ui/map: remove unused variables (#29098) 2023-07-22 12:24:16 -07:00
Dean Lee
cc551fe24b ui/MapSettings: remove function shorten (#29078) 2023-07-21 19:51:25 +01:00
Dean Lee
1afdca2ef1 ui/MapSettings: remove call to clearLayout (#28961) 2023-07-17 15:32:28 +01:00
Dean Lee
d47d8808d1 ui/map: update destination on param change (#28957)
* update destination on param change

* use ParamWatcher

* remove include
2023-07-16 13:48:33 -07:00
Dean Lee
187696977e ui/MapSettings: store destinations to load on widget init (#28950)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-15 11:37:41 +01:00
Dean Lee
c3fe3c8162 ui/MapSettings: sort location JsonArray inplace (#28886) 2023-07-13 10:59:46 +01:00
Cameron Clough
4d61d680b2 UI: preserve recent destinations sort order (#28881) 2023-07-11 12:39:06 +01:00
Dean Lee
8149c07fac ui/map: singleton navigation requests (#28862) 2023-07-11 11:42:10 +01:00
Shane Smiskol
71e001ee57 map settings: accept touch events (#28865)
* accept touch events in map settings

* use override

* revert this

* remove debug stuff

* add comments

* not the main purpose
2023-07-11 00:21:25 -07:00
Dean Lee
2d37c219e7 ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
2023-07-05 10:50:14 -07:00
Dean Lee
93413c43df UI: fix memory leak in MapSettings (#28759)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-07-01 09:45:05 +01:00
Dean Lee
081cc2eb79 ui/MapSettings: remove white border around destinations (#28771) 2023-07-01 08:40:06 +01:00
Adeeb Shihadeh
3e1ba3ff35 Revert "ui: fix memory leak in MapSettings (#28701)"
This reverts commit 5a00b42092.
2023-06-30 13:22:20 -07:00
Dean Lee
5a00b42092 ui: fix memory leak in MapSettings (#28701) 2023-06-29 13:37:19 -07:00
Dean Lee
e8db988f2a ui/map_settings: remove repaint (#28642) 2023-06-23 00:31:05 +01:00
Cameron Clough
bc5a899024 UI: improved nav destination entry (#28476) 2023-06-22 19:57:29 +01:00
Cameron Clough
f7f5537af7 MapPanel cleanup (#28474) 2023-06-09 17:08:57 -07:00
Adeeb Shihadeh
06e283a750 UI: only show cell settings on non-prime connection (#25067)
* fix indentation

* add primeTypeChanged signal to uiState

* hide advanced networking toggles on prime type change

* switch between map settings on prime type change

* cleanup

* remove duplicate code, wait for signal

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-10-05 16:10:14 -07:00
Dean Lee
ef767f6332 MapPanel: refresh only when visible and destination changes (#25739)
rebuild widgets only when mappanel is visible
2022-09-12 22:54:33 -07:00
Lee Jong Mun
903bb40528 Improve Korean translations (#25105)
* kor translations fix

update_translations --release

qm

* space

* qm

* map setting tr space remove

* ts update

fix

ko_update

ch_update

* qm release

* Update QM

* Fix this translation

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-07-11 16:51:03 -07:00
Shane Smiskol
879a7c3201 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
2022-06-29 14:47:46 -07:00
Adeeb Shihadeh
cb8885cffb Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
2022-05-18 14:11:57 -07:00
Willem Melching
f8c81103fc nav: set settings stack based on uiState.prime_type (#23770)
* nav: set settings stack based on uiState.prime_type

* also show on success
2022-02-15 16:39:10 +01:00
Dean Lee
3fd0264960 refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
2021-11-29 11:19:08 +01:00
Mayfield
5246f0231e enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 17:08:53 +01:00
Adeeb Shihadeh
23ae67bbf9 UI: auto wide detection on PC (#22392)
* UI: auto wide detection on PC

* invert width

* cleanup
2021-09-30 20:48:02 -07:00
Adeeb Shihadeh
d5475ba946 nav: add button to clear current route (#22167)
* nav: add button to clear current route

* fix scroll

* retab

Co-authored-by: Comma Device <device@comma.ai>
2021-09-07 17:39:24 -07:00
Dean Lee
543e019f71 api: use API_HOST env variable everywhere (#21814)
* api base url to global constant

* update api/__init__.py
2021-08-03 13:49:49 +02:00
Dean Lee
073b96e5d1 qt/util: new function getDongleId (#21810)
* new function getDongleId

* return std::optional
2021-08-02 11:21:51 +02:00
Willem Melching
34bb5b935f nav: Send DELETE to clear next destination on server (#21746) 2021-07-28 11:02:32 +02:00
Willem Melching
94f85c615c nav: update favorites/recents while onroad 2021-07-27 14:46:38 +02:00
Willem Melching
190409c938 nav: show settings without token (#21624)
* map settings always in sidebar

* show screenshot when no prime

* remove print

* repaint to fix star sizing

* checked in sconsscript

* match designs
2021-07-19 14:18:01 +02:00
Willem Melching
a148bcb3ef nav: cleanup settings page (#21561) 2021-07-12 13:44:30 +02:00
Adeeb Shihadeh
bec054116f nav: scroller for recents (#21549)
* nav: scroller for recents

* stretch

* one more stretch
2021-07-10 22:56:18 -07:00
Willem Melching
32d5239912 nav: improve logging (#21477)
* nav: add logging

* handle errors in route reply
2021-07-04 15:34:25 +02:00
Willem Melching
240214afc0 nav: truncate favorite length 2021-06-30 16:14:12 +02:00
Willem Melching
2de4c09e62 nav: show star for favorites (#21434) 2021-06-29 15:16:16 +02:00
Willem Melching
60cc07c62a nav: pull next location while onroad (#21421) 2021-06-29 11:08:37 +02:00
Willem Melching
9f98a3e44f nav: show recents (#21405)
* add recent buttons

* remove static request

* layout

* recent doesn't have to be a favorite

* work

* spacing

* spacing

* no recents

* query next

* not null

* this needs to live here

* less spacing between items
2021-06-25 16:26:02 +02:00
Willem Melching
c21ea8b506 nav: home/work shortcuts (#21276)
* add home/work widgets

* remove todo

* set contents from response

* turn into buttons

* add navigate button

* fix includes

* close settings on nav press

* close sidebar when closing settings

* use live api endpoint

* larger fonts

* more text fits

* only place name

* remove static response

* properly clear
2021-06-22 13:25:22 +02:00
Dean Lee
8f5c7e7bb5 UI widgets: remove unnecessary setLayout (#21232)
* remove setlayout

* remove setLayout

* space

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-12 21:28:17 -07:00
Willem Melching
3c197953bc nav: add page to settings (#21208)
* add navigation panel to settings

* am/pm display and dynamic width
2021-06-10 09:59:34 +02:00