Commit Graph

31 Commits

Author SHA1 Message Date
Adeeb Shihadeh
c4e63d14ab good updater experience (#25724)
* good updater experience

* set params on startup

* no fetch on first loop

* little type hinting

* little more

* update translations

* always set params with valid overlay

* wrap check

* use the param

* more wrapping

* vanish

* cleanup

* remove that
2022-09-15 15:12:36 -07:00
Dean Lee
8d53e2c2b4 Multilang: remove redundant QString() around tr() (#25003)
remove qstring
2022-06-30 10:55:49 +02: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
Dean Lee
3fd0264960 refactor httprequest: emit single signals (#23039)
* refactor httprequest

* Trigger Build
2021-11-29 11:19:08 +01:00
eFini
21ff97b8c9 UI: minor changes to make it translation friendly (#23032) 2021-11-25 22:30:07 -08:00
Dean Lee
c24227c3ab HttpRequest: don't send request in ctor (#21665) 2021-07-25 15:36:04 -07:00
Adeeb Shihadeh
9215748080 UI: button released -> clicked (#21606) 2021-07-17 13:58:09 -07:00
Dean Lee
5be75f5354 input.cc: close dialog when parent is hidden (#21318)
* close dialog when parent is hidden

* Q_OBJECT

* apply reviews

* rebase master

* rebase master

* fix wroing minLength

* merge master
2021-07-07 21:06:50 -07:00
Dean Lee
9ebfc2ba8d HttpRequest: move http cache to RequestRepeater (#21228)
* move cache from HttpRequest to RequestRepeater

* apply review
2021-06-18 23:47:23 -07:00
Dean Lee
8675c970d4 UI: refactor ButtonControl (#21315) 2021-06-17 23:17:52 -07:00
Dean Lee
2c6d27f482 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
2021-06-16 00:08:02 -07:00
Dean Lee
b06b3ecb60 Use full include path (#21194) 2021-06-08 12:09:30 -07:00
Dean Lee
e772bbf723 ssh_keys.cc: remove shadowed params (#21184) 2021-06-08 01:57:46 -07:00
Dean Lee
7222d0f20d Cleanup selfdrive/ includes (#20822)
* cleanup include path

* continue

* format includes

* fix testraw.cc

* remove include path from SConstruct

* regroup

* rebase master

* almost done

* apply review

* rename FileReader.xx to filereader.xx

* rename Unlogger.x->unlogger.x

* rename FrameReader.xx -> framereader.xx

* apply reviews

* ui.h

* continue

* fix framebuffer.cc build error:mv util.h up

* full path to msm_media_info

* fix qcom2 camerad

Co-authored-by: Comma Device <device@comma.ai>
2021-05-08 22:15:17 -07:00
Dean Lee
00aa20f55a SshControl: use HttpRequest to get ssh keys (#20784)
* use HttpRequest

* remove eventloop

* rebase master

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-04 22:28:41 -07:00
Adeeb Shihadeh
ed3b6bd90c UI: fast startup (#20781)
* faster startup

* faster

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-05-04 10:05:23 -07:00
Dean Lee
81491dc57f c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
2021-05-03 11:53:11 +02:00
Comma Device
23faedd25e configure SSL globally on NEOS 2021-05-02 16:29:02 -07:00
Dean Lee
4781598e12 Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
2021-05-01 14:12:35 -07:00
Dean Lee
98e55996f6 Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
2021-03-30 12:54:59 +02:00
Dean Lee
5cd676797a Qt: show username for current SSH keys (#20508)
* Show username for current SSH keys

* Update ssh_keys.cc

* Update ssh_keys.cc

* Update selfdrive/ui/qt/widgets/ssh_keys.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* rename param

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-28 22:32:33 -07:00
Adeeb Shihadeh
7f56991b41 Qt touchups (#20465)
* reduce minimum size

* clean that up

* consistent

* feels pretty good

* cleanup

* less laggy toggle

* openpilot

Co-authored-by: Comma Device <device@comma.ai>
2021-03-24 21:18:12 -07:00
Adeeb Shihadeh
c33f839e9d add description for SSH keys 2021-03-24 00:32:09 -07:00
Adeeb Shihadeh
e547a97216 Qt UI: SSH keys (#20430)
* rename

* toggle control

* SSH toggle

* hw

* qcom

* lines

* fix that

* start refactoring

* adding keys

* hacky remove

* alerts

* fix qcom ssl

* use the same widgets everywhere

* clean up

* more cleanup

* little more

* bigger

* fix tethering toggleg
2021-03-22 03:52:28 -07:00
Adeeb Shihadeh
d8418f2abe qt confirmation dialogs (#20202)
* confirmation dialog widget

* looks pretty good

* fix qcom2

Co-authored-by: Comma Device <device@comma.ai>
2021-02-28 20:44:00 -08:00
grekiki
4c99d83474 Qt-UI fix ssh username (#20159)
* Fix SSH username. Squased Gregor's commits.

* revert keyboard size

* reduce diff

* fix build

* whitespace

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-02-25 18:27:00 +01:00
Adeeb Shihadeh
1ef7d4a4c8 Revert "fix some refactor commits that weren't tested (#20140)"
This reverts commit 9e29d5621c.
2021-02-24 12:09:19 -08:00
grekiki
9e29d5621c fix some refactor commits that weren't tested (#20140)
Co-authored-by: Comma Device <device@comma.ai>
2021-02-24 17:52:37 +01:00
Adeeb Shihadeh
f9d8652cbd Qt UI refactoring + improvements (#20033) 2021-02-07 17:33:48 -08:00
grekiki
7408569c1b Add Github SSH keys (#19879) 2021-01-27 12:07:17 +01:00