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: 952d720b6e854b3ebbb9fd0fd82cd38f3ae04b90
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: c4e63d14ab158118efc6eadd0e20d8d533f9e046
2022-09-15 15:12:36 -07:00
Dean Lee 65e6ba763e Multilang: remove redundant QString() around tr() (#25003)
remove qstring
old-commit-hash: 8d53e2c2b4e549119538d1baf36d202dbe33d012
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: 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
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
eFini 6558e04dcb UI: minor changes to make it translation friendly (#23032)
old-commit-hash: 21ff97b8c93f63644345c77914ad12c8b178e8b8
2021-11-25 22:30:07 -08:00
Dean Lee 9d12eb4d3a HttpRequest: don't send request in ctor (#21665)
old-commit-hash: c24227c3abb9bfd371c89845c75b7104d0862fb2
2021-07-25 15:36:04 -07:00
Adeeb Shihadeh 17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 92157480800d604b9a53873a66ecb7fcdd622535
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: 5be75f53541c83f0681e55959023bc03758ac62a
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: 9ebfc2ba8df7dcde5c6ea6be3b61d8577d89d652
2021-06-18 23:47:23 -07:00
Dean Lee 95a9e22120 UI: refactor ButtonControl (#21315)
old-commit-hash: 8675c970d49499d541c38172b1c5516dec7df480
2021-06-17 23:17:52 -07:00
Dean Lee d8ac1df789 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
old-commit-hash: 2c6d27f4828bc57e69f86aed0d1f48364233dffb
2021-06-16 00:08:02 -07:00
Dean Lee 3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60c651dacf079513635f7d9d99228783
2021-06-08 12:09:30 -07:00
Dean Lee 33d48d8139 ssh_keys.cc: remove shadowed params (#21184)
old-commit-hash: e772bbf7239a8f33e45310a0410a60c1d742dc29
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: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
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: 00aa20f55a6df3dbda339cc107efcd23f0c2dc5a
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: ed3b6bd90cb882b543bfaa680c4f09f356439b65
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: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
2021-05-03 11:53:11 +02:00
Comma Device eda1bcaef9 configure SSL globally on NEOS
old-commit-hash: 23faedd25eb6895c86bb890fdbf4f48889ecf4c3
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: 4781598e1228b3f8707afa7237864f4cb4df9d71
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: 98e55996f67aaaf715c941d417ae4d3b0187f388
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: 5cd676797a21215dcf574d545f38ec2e1a0b14f0
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: 7f56991b41c40a765125635919a91bca55815bd6
2021-03-24 21:18:12 -07:00
Adeeb Shihadeh fd5ea05d20 add description for SSH keys
old-commit-hash: c33f839e9d1b7bb4b5f87b70affbe881a2f20795
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: e547a97216d226135e2b3a170fe0c525cc56f0e5
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: d8418f2abe2fba10a75238aa7692895acc5dcab5
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: 4c99d83474336420badb2a12335b745c9c301ce6
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: 1ef7d4a4c8aa8adb93ac64772673b0014bec0ead
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: 9e29d5621c22afa405a1ae0109ab1a2916932765
2021-02-24 17:52:37 +01:00
Adeeb Shihadeh 80c3d67a28 Qt UI refactoring + improvements (#20033)
old-commit-hash: f9d8652cbda86a4777166b1f970f770fcf65f4f3
2021-02-07 17:33:48 -08:00
grekiki 2ebacdc364 Add Github SSH keys (#19879)
old-commit-hash: 7408569c1b7fc858125c2ec131037ccc407aad3a
2021-01-27 12:07:17 +01:00