Commit Graph

47 Commits

Author SHA1 Message Date
Cameron Clough
69d7ecac9c ui/NavManager: parse location timestamp from API (#29665)
old-commit-hash: 3d1a6f6146
2023-08-27 16:18:42 +01:00
Dean Lee
2e4a23510a ui/MapSettings: sort destinations by recent activity (#29079)
old-commit-hash: 12073c07af
2023-08-27 15:13:43 +01:00
Dean Lee
0984736972 cpplint: add filter build/include_subdir (#29585)
old-commit-hash: 21da5a216f
2023-08-24 15:42:17 +01:00
Dean Lee
97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2023-08-23 13:25:17 -07:00
Dean Lee
a494b38f6e ui/map: set WA_NoMousePropagation to prevent mouse event from propagating up (#29329)
set WA_NoMousePropagation
old-commit-hash: 15bb9dd096
2023-08-11 02:45:54 -07:00
Dean Lee
8d2a08723a ui/map: remove unused variables (#29098)
old-commit-hash: 980ba1312f
2023-07-22 12:24:16 -07:00
Dean Lee
ee42f316d7 ui/MapSettings: remove function shorten (#29078)
old-commit-hash: cc551fe24b
2023-07-21 19:51:25 +01:00
Dean Lee
8c026eff7c ui/MapSettings: remove call to clearLayout (#28961)
old-commit-hash: 1afdca2ef1
2023-07-17 15:32:28 +01:00
Dean Lee
e8478e81c7 ui/map: update destination on param change (#28957)
* update destination on param change

* use ParamWatcher

* remove include
old-commit-hash: d47d8808d1
2023-07-16 13:48:33 -07:00
Dean Lee
b81910128d ui/MapSettings: store destinations to load on widget init (#28950)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 187696977e
2023-07-15 11:37:41 +01:00
Dean Lee
1c2f2d52e1 ui/MapSettings: sort location JsonArray inplace (#28886)
old-commit-hash: c3fe3c8162
2023-07-13 10:59:46 +01:00
Cameron Clough
6b3daee3d3 UI: preserve recent destinations sort order (#28881)
old-commit-hash: 4d61d680b2
2023-07-11 12:39:06 +01:00
Dean Lee
261d7ed673 ui/map: singleton navigation requests (#28862)
old-commit-hash: 8149c07fac
2023-07-11 11:42:10 +01:00
Shane Smiskol
c9630b0a7a 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
old-commit-hash: 71e001ee57
2023-07-11 00:21:25 -07:00
Dean Lee
c25ca091ff ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
old-commit-hash: 2d37c219e7
2023-07-05 10:50:14 -07:00
Dean Lee
c49d605320 UI: fix memory leak in MapSettings (#28759)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 93413c43df
2023-07-01 09:45:05 +01:00
Dean Lee
38be68ff5e ui/MapSettings: remove white border around destinations (#28771)
old-commit-hash: 081cc2eb79
2023-07-01 08:40:06 +01:00
Adeeb Shihadeh
82893982e5 Revert "ui: fix memory leak in MapSettings (#28701)"
This reverts commit 3ab739ea1374fc13297884b62065b0612dba7358.

old-commit-hash: 3e1ba3ff35
2023-06-30 13:22:20 -07:00
Dean Lee
666467266d ui: fix memory leak in MapSettings (#28701)
old-commit-hash: 5a00b42092
2023-06-29 13:37:19 -07:00
Dean Lee
34db65aad0 ui/map_settings: remove repaint (#28642)
old-commit-hash: e8db988f2a
2023-06-23 00:31:05 +01:00
Cameron Clough
b6e6f008f1 UI: improved nav destination entry (#28476)
old-commit-hash: bc5a899024
2023-06-22 19:57:29 +01:00
Cameron Clough
e199a1a953 MapPanel cleanup (#28474)
old-commit-hash: f7f5537af7
2023-06-09 17:08:57 -07:00
Adeeb Shihadeh
6831f3499f 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>
old-commit-hash: 06e283a750
2022-10-05 16:10:14 -07:00
Dean Lee
df1668b35f MapPanel: refresh only when visible and destination changes (#25739)
rebuild widgets only when mappanel is visible
old-commit-hash: ef767f6332
2022-09-12 22:54:33 -07:00
Lee Jong Mun
77a6b2d0cd 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>
old-commit-hash: 903bb40528
2022-07-11 16:51:03 -07:00
Shane Smiskol
2c5e890a23 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
old-commit-hash: 879a7c3201
2022-06-29 14:47:46 -07:00
Adeeb Shihadeh
f4675fc260 Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

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

* also show on success
old-commit-hash: f8c81103fc
2022-02-15 16:39:10 +01:00
Dean Lee
67c748d62a refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
old-commit-hash: 3fd0264960
2021-11-29 11:19:08 +01:00
Mayfield
43e1903073 enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

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

* invert width

* cleanup
old-commit-hash: 23ae67bbf9
2021-09-30 20:48:02 -07:00
Adeeb Shihadeh
706542a7b2 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>
old-commit-hash: d5475ba946
2021-09-07 17:39:24 -07:00
Dean Lee
ceb40d8384 api: use API_HOST env variable everywhere (#21814)
* api base url to global constant

* update api/__init__.py
old-commit-hash: 543e019f71
2021-08-03 13:49:49 +02:00
Dean Lee
c40edd4b56 qt/util: new function getDongleId (#21810)
* new function getDongleId

* return std::optional
old-commit-hash: 073b96e5d1
2021-08-02 11:21:51 +02:00
Willem Melching
380a3e1923 nav: Send DELETE to clear next destination on server (#21746)
old-commit-hash: 34bb5b935f
2021-07-28 11:02:32 +02:00
Willem Melching
5dab3d577e nav: update favorites/recents while onroad
old-commit-hash: 94f85c615c
2021-07-27 14:46:38 +02:00
Willem Melching
47a646ecb1 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
old-commit-hash: 190409c938
2021-07-19 14:18:01 +02:00
Willem Melching
2417bac975 nav: cleanup settings page (#21561)
old-commit-hash: a148bcb3ef
2021-07-12 13:44:30 +02:00
Adeeb Shihadeh
c583cc99a3 nav: scroller for recents (#21549)
* nav: scroller for recents

* stretch

* one more stretch
old-commit-hash: bec054116f
2021-07-10 22:56:18 -07:00
Willem Melching
c266cffa97 nav: improve logging (#21477)
* nav: add logging

* handle errors in route reply
old-commit-hash: 32d5239912
2021-07-04 15:34:25 +02:00
Willem Melching
3ad659a211 nav: truncate favorite length
old-commit-hash: 240214afc0
2021-06-30 16:14:12 +02:00
Willem Melching
2db1d4589e nav: show star for favorites (#21434)
old-commit-hash: 2de4c09e62
2021-06-29 15:16:16 +02:00
Willem Melching
492083a4a8 nav: pull next location while onroad (#21421)
old-commit-hash: 60cc07c62a
2021-06-29 11:08:37 +02:00
Willem Melching
fba42aab80 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
old-commit-hash: 9f98a3e44f
2021-06-25 16:26:02 +02:00
Willem Melching
dc19c670b6 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
old-commit-hash: c21ea8b506
2021-06-22 13:25:22 +02:00
Dean Lee
63ff493fe8 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>
old-commit-hash: 8f5c7e7bb5
2021-06-12 21:28:17 -07:00
Willem Melching
ba1a20414e nav: add page to settings (#21208)
* add navigation panel to settings

* am/pm display and dynamic width
old-commit-hash: 3c197953bc
2021-06-10 09:59:34 +02:00