Commit Graph

32 Commits

Author SHA1 Message Date
Adeeb Shihadeh
701cd6f6fe add cpplint (#26855)
* setup cpplint

* only start that

* check line length

* check these

* rm exceptions
old-commit-hash: 952d720b6e
2023-08-22 13:55:23 -07:00
Adeeb Shihadeh
46cfb5c45b 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
old-commit-hash: c4e63d14ab
2022-09-15 15:12:36 -07:00
Dean Lee
65e6ba763e Multilang: remove redundant QString() around tr() (#25003)
remove qstring
old-commit-hash: 8d53e2c2b4
2022-06-30 10:55:49 +02: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
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
eFini
6558e04dcb UI: minor changes to make it translation friendly (#23032)
old-commit-hash: 21ff97b8c9
2021-11-25 22:30:07 -08:00
Dean Lee
9d12eb4d3a HttpRequest: don't send request in ctor (#21665)
old-commit-hash: c24227c3ab
2021-07-25 15:36:04 -07:00
Adeeb Shihadeh
17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 9215748080
2021-07-17 13:58:09 -07:00
Dean Lee
0c59f626c7 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
old-commit-hash: 5be75f5354
2021-07-07 21:06:50 -07:00
Dean Lee
701ee27c91 HttpRequest: move http cache to RequestRepeater (#21228)
* move cache from HttpRequest to RequestRepeater

* apply review
old-commit-hash: 9ebfc2ba8d
2021-06-18 23:47:23 -07:00
Dean Lee
95a9e22120 UI: refactor ButtonControl (#21315)
old-commit-hash: 8675c970d4
2021-06-17 23:17:52 -07:00
Dean Lee
d8ac1df789 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
old-commit-hash: 2c6d27f482
2021-06-16 00:08:02 -07:00
Dean Lee
3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60
2021-06-08 12:09:30 -07:00
Dean Lee
33d48d8139 ssh_keys.cc: remove shadowed params (#21184)
old-commit-hash: e772bbf723
2021-06-08 01:57:46 -07:00
Dean Lee
e333e4f189 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>
old-commit-hash: 7222d0f20d
2021-05-08 22:15:17 -07:00
Dean Lee
03f823a3fc SshControl: use HttpRequest to get ssh keys (#20784)
* use HttpRequest

* remove eventloop

* rebase master

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

* faster

* cleanup

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

* cleanup files_common
old-commit-hash: 81491dc57f
2021-05-03 11:53:11 +02:00
Comma Device
eda1bcaef9 configure SSL globally on NEOS
old-commit-hash: 23faedd25e
2021-05-02 16:29:02 -07:00
Dean Lee
309a873e7d Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
old-commit-hash: 4781598e12
2021-05-01 14:12:35 -07:00
Dean Lee
405df8b165 Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
old-commit-hash: 98e55996f6
2021-03-30 12:54:59 +02:00
Dean Lee
c5194fcb85 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>
old-commit-hash: 5cd676797a
2021-03-28 22:32:33 -07:00
Adeeb Shihadeh
30f036680b 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>
old-commit-hash: 7f56991b41
2021-03-24 21:18:12 -07:00
Adeeb Shihadeh
fd5ea05d20 add description for SSH keys
old-commit-hash: c33f839e9d
2021-03-24 00:32:09 -07:00
Adeeb Shihadeh
c360723411 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
old-commit-hash: e547a97216
2021-03-22 03:52:28 -07:00
Adeeb Shihadeh
fa0bd1990f qt confirmation dialogs (#20202)
* confirmation dialog widget

* looks pretty good

* fix qcom2

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d8418f2abe
2021-02-28 20:44:00 -08:00
grekiki
cd38b27338 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>
old-commit-hash: 4c99d83474
2021-02-25 18:27:00 +01:00
Adeeb Shihadeh
bf0d5c2140 Revert "fix some refactor commits that weren't tested (#20140)"
This reverts commit e25516e0a4ea9cfe459c400c331e1206ea3336c8.

old-commit-hash: 1ef7d4a4c8
2021-02-24 12:09:19 -08:00
grekiki
4af3c6f533 fix some refactor commits that weren't tested (#20140)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9e29d5621c
2021-02-24 17:52:37 +01:00
Adeeb Shihadeh
80c3d67a28 Qt UI refactoring + improvements (#20033)
old-commit-hash: f9d8652cbd
2021-02-07 17:33:48 -08:00
grekiki
2ebacdc364 Add Github SSH keys (#19879)
old-commit-hash: 7408569c1b
2021-01-27 12:07:17 +01:00