Commit Graph

47 Commits

Author SHA1 Message Date
Cameron Clough 69d7ecac9c ui/NavManager: parse location timestamp from API (#29665)
old-commit-hash: 3d1a6f61463f022462c93a331add64af1cb48e94
2023-08-27 16:18:42 +01:00
Dean Lee 2e4a23510a ui/MapSettings: sort destinations by recent activity (#29079)
old-commit-hash: 12073c07afbd0de42ed475c9368ad9f51fd0c631
2023-08-27 15:13:43 +01:00
Dean Lee 0984736972 cpplint: add filter build/include_subdir (#29585)
old-commit-hash: 21da5a216fc8f5269d2deedc538c2f543a1c270a
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: 2d99521e7500902070d0aacce69528bcfd8b9964
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: 15bb9dd09612bc23cc0d59da6fafd74669e1190e
2023-08-11 02:45:54 -07:00
Dean Lee 8d2a08723a ui/map: remove unused variables (#29098)
old-commit-hash: 980ba1312fc587b735c71887251e16dd20f6cec3
2023-07-22 12:24:16 -07:00
Dean Lee ee42f316d7 ui/MapSettings: remove function shorten (#29078)
old-commit-hash: cc551fe24bf62e1825b36b1b9d37df34e84b0188
2023-07-21 19:51:25 +01:00
Dean Lee 8c026eff7c ui/MapSettings: remove call to clearLayout (#28961)
old-commit-hash: 1afdca2ef1a0d2ae9d0ad03205667dc644e319ac
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: d47d8808d1f973e4765a3fc806bcce6d33681048
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: 187696977e32c0042b9141d6042e8dddb507fceb
2023-07-15 11:37:41 +01:00
Dean Lee 1c2f2d52e1 ui/MapSettings: sort location JsonArray inplace (#28886)
old-commit-hash: c3fe3c816298fc862b3136a7f52822a4c0525393
2023-07-13 10:59:46 +01:00
Cameron Clough 6b3daee3d3 UI: preserve recent destinations sort order (#28881)
old-commit-hash: 4d61d680b256b38251bd8231d2e4aeb2e31f28de
2023-07-11 12:39:06 +01:00
Dean Lee 261d7ed673 ui/map: singleton navigation requests (#28862)
old-commit-hash: 8149c07fac9aa651608aa761f50744edcb5b9ea1
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: 71e001ee577811d2bf1ea1973545322c6a3ba95d
2023-07-11 00:21:25 -07:00
Dean Lee c25ca091ff ui: cleanup controls (#28809)
* cleanup controls

* restore LayoutWidget
old-commit-hash: 2d37c219e794cc4d8ed0de031b38b183af281db3
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: 93413c43df594a63b36c896c629daaef27dd9fe4
2023-07-01 09:45:05 +01:00
Dean Lee 38be68ff5e ui/MapSettings: remove white border around destinations (#28771)
old-commit-hash: 081cc2eb79ba917fe037b31d01f669c1a8b16ab9
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: 3e1ba3ff3522bb2eb8a8f41ecb1158314af6c3dc
2023-06-30 13:22:20 -07:00
Dean Lee 666467266d ui: fix memory leak in MapSettings (#28701)
old-commit-hash: 5a00b420923a1fc7563c68642dca9fbb7d7b7fa7
2023-06-29 13:37:19 -07:00
Dean Lee 34db65aad0 ui/map_settings: remove repaint (#28642)
old-commit-hash: e8db988f2a40716bca2cf1767ddb7b589274dfc4
2023-06-23 00:31:05 +01:00
Cameron Clough b6e6f008f1 UI: improved nav destination entry (#28476)
old-commit-hash: bc5a8990241311e347455ea8d69a064bd0693266
2023-06-22 19:57:29 +01:00
Cameron Clough e199a1a953 MapPanel cleanup (#28474)
old-commit-hash: f7f5537af74625e3a08352fef73eebffd4991a49
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: 06e283a7504b23de79f12ec2c0a7ab280eda57e4
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: ef767f633287445f7861eb5b82c5a17ab6325664
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: 903bb405286295b48d5192cb2a7b2c01029193e3
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: 879a7c3201a037c27c92ad6b92143114f52f29d3
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: cb8885cffb313bea258c012c3026461a22bf8135
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: f8c81103fc1dc98b0403a89c549947a9777f87ce
2022-02-15 16:39:10 +01:00
Dean Lee 67c748d62a refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
old-commit-hash: 3fd02649601856b2780168d36c49940ff49f4de2
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: 5246f0231e6bfa572c0dd89c60e538910817faa2
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: 23ae67bbf95fd95e9a092ca19bd3391a2f16f453
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: d5475ba9462ad9c6a18db05e96a4fa9d3bf9772a
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: 543e019f715a7e485c7402d1e145dc8e81d43611
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: 073b96e5d16c4780ed4adfb50b506fa1afd40d68
2021-08-02 11:21:51 +02:00
Willem Melching 380a3e1923 nav: Send DELETE to clear next destination on server (#21746)
old-commit-hash: 34bb5b935fd3c2bb481129cb4bc27ce646c24f12
2021-07-28 11:02:32 +02:00
Willem Melching 5dab3d577e nav: update favorites/recents while onroad
old-commit-hash: 94f85c615cff5177b29bbac8abb7da06af460d10
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: 190409c9387ade9bc988b6603ac6f41248e0a5fd
2021-07-19 14:18:01 +02:00
Willem Melching 2417bac975 nav: cleanup settings page (#21561)
old-commit-hash: a148bcb3efdaf34e41ad8392f7656ad6c7662f8b
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: bec054116f4eea51c3ed9db606076be4c460d5af
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: 32d5239912b592078faf50628e0f08b07a0eb755
2021-07-04 15:34:25 +02:00
Willem Melching 3ad659a211 nav: truncate favorite length
old-commit-hash: 240214afc0531cf9611b462deca8033c4172ea91
2021-06-30 16:14:12 +02:00
Willem Melching 2db1d4589e nav: show star for favorites (#21434)
old-commit-hash: 2de4c09e6284e14885ac02c83721163d86138111
2021-06-29 15:16:16 +02:00
Willem Melching 492083a4a8 nav: pull next location while onroad (#21421)
old-commit-hash: 60cc07c62ac5dd8a5cd63312758353695cf040de
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: 9f98a3e44f3b5b70d7e420f9e51f737bb854266d
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: c21ea8b50653bfb3b4c93e7042d7ffa62abfcf2a
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: 8f5c7e7bb5e4796708a8be672529bf65e89edaca
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: 3c197953bc19c470547b950cd987af39909c5e9e
2021-06-10 09:59:34 +02:00