Commit Graph

42 Commits

Author SHA1 Message Date
Dean Lee
3627574114 ui: rename QDialogBase to DialogBase (#29675)
rename QDialogBase to DialogBase
old-commit-hash: c36774dfba
2023-08-28 01:57:49 -07:00
Cameron Clough
397665d45c UI: add missing QPushButton pressed styles (#28289)
* UI: add missing QPushButton pressed styles

* keyboard is special
old-commit-hash: 488975f06e
2023-05-24 22:44:10 -07:00
Shane Smiskol
4a4703fdcb Fix spacing in MultiOptionDialog (#26817)
Update input.cc
old-commit-hash: 66bdd8b122
2022-12-17 00:50:37 -08:00
Shane Smiskol
c6e6482603 Remove stretch from MultiOptionDialog
old-commit-hash: 6dc1fa2559
2022-12-15 22:31:34 -08:00
Cameron Clough
88b083885e ui: set dialog confirm button text (#26365)
* ui: set dialog confirm button text

* short

* blue confirm
old-commit-hash: e78280da12
2022-11-04 17:27:58 -07:00
Cameron Clough
f46b6ed70a ui: toggle confirmation and dialog redesign (#26331)
* toggle confirmation

* change text

* not for e2e

* get current description

* remove are you sure

* merge rich text and confirmation dialogs

* add some line breaks

* font colour

* fix padding a little

* revert

* updated toggle design
old-commit-hash: 91a1f1a91e
2022-11-04 15:37:41 -07:00
Shane Smiskol
9e06421bfe Multilang: handle localized plurals (#25337)
* Add localized plural handling

* Do another location with plurals

* fix test
old-commit-hash: ecba873208
2022-08-02 12:44:21 -07:00
Shane Smiskol
d3c4739ce1 UI: translations cleanup (#25120)
* Make this one translation

* Remote html from translations

* getBrand as argument

* some stuff

* Forget Wi-Fi network

* Update translations

* Remove obsolete

* compilation fixes

* remove

* Fix missing translation
old-commit-hash: 3b4e939b9f
2022-07-12 19:58:39 -07:00
Dean Lee
8ca0e9b941 Display the current language in MultiOptionDialog (#25098)
* check the selected language in lange select dialog

* disable if user selects current option

* update line numbers

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: eb17291ca1
2022-07-09 01:47:10 -07:00
Shane Smiskol
23de7b166e UI: Internationalization support (#21212)
* 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

* update names

* Add Chinese (Simplified) translations

* Do missing French translations

* unit tests caught that :)

* fix test

* fix other test (on PC)

* add entries to dialog to test

* add cancel button, clean up a bit

* just chinese

* some clean up

* use quotes

* clean up

* Just quit, set timeout to 0

* half a second

* use exitcode

* don't print if it's expected

* this comment is outdated

* update translations

* Update translations

* re-order input classes

* Update line numbers

* use enabled property for button style

* Get rid of ListWidget

* Update line numbers

* Log failed to load language

* Log failed to load language

* Move to utils and fix english logging

extra line

* Update translations

* spacing

* looks a bit better

* try this instead of exitcode

fixes

fix

* only one function

* comment

* Update line numbers

* fixup some japanese translations

* clean up multi option dialog

* Update line numbers
old-commit-hash: 949de4d2b6
2022-07-08 20:25:54 -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
9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b
2022-06-11 16:38:24 -07:00
Adeeb Shihadeh
26e39eb441 UI: big pairing QR code (#22384)
old-commit-hash: 45409cb4fe
2021-09-30 14:00:52 -07:00
Dean Lee
36839399f2 C3: Fix keyboard buttons on the right getting stuck in pressed state (#22050)
* fix keyboard state stuck

* remove popup flag

* update in time
old-commit-hash: 5fea367fc9
2021-09-03 22:24:37 -07:00
Adeeb Shihadeh
71678b9d17 Add C3 FCC regulatory info page (#21833)
* move uninstall to software

* fcc page

* only tici

* cleanup

* more cleanup
old-commit-hash: a96f358966
2021-08-02 20:02:07 -07:00
Adeeb Shihadeh
d39c6f0f1e better password character
old-commit-hash: d0a650a8ba
2021-07-28 13:43:05 -07:00
sshane
32ca1abf40 ui: password mask delay (#21737)
old-commit-hash: dd8eb23ea9
2021-07-26 22:55:12 -07:00
Adeeb Shihadeh
17faf6e48f UI: button released -> clicked (#21606)
old-commit-hash: 9215748080
2021-07-17 13:58:09 -07:00
sshane
b1d4b80f01 keyboard: separate signals (#21629)
* separate signals

* clean up

clean up

clean up

* clean up

* Revert "clean up"

This reverts commit 38c1f18a56a946e97ee05f8e18b1797f060d011b.

* Revert "clean up"

This reverts commit 06430e29bfeaa3dd3a8d7f8911e0f0ba17d35d7b.

* Revert "separate signals"

This reverts commit 77ca8e3d17b34e84d8d1331b565b0b2ef6bc55d0.

* separate signals

* clean up

* caps fix
old-commit-hash: 0f93cb12ac
2021-07-16 17:27:43 -07:00
Adeeb Shihadeh
256dda3c5b nice popup (#21630)
* nicer popup

* cleanup
old-commit-hash: c5bd6735d6
2021-07-16 16:23:30 -07:00
Adeeb Shihadeh
5bdb0f7b18 more setup (#21628)
* fix up kb

* blue continue

* dashcam

* clean up
old-commit-hash: 62e63f0573
2021-07-16 15:06:10 -07:00
Adeeb Shihadeh
75886ce093 setup qt resources (#21617)
* setup qt resources

* networking

* input

* fix that

* nicer scrolling

* big eye

* fix flashing

* why is it linking against map stuff

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6039f1e7ac
2021-07-15 21:30:23 -07:00
Adeeb Shihadeh
1e39e578c6 input dialog design (#21607)
* style

* eye

* fix spacing

* use two lines
old-commit-hash: 6a62cf7d5d
2021-07-15 02:56:21 -07:00
Adeeb Shihadeh
569f54aefa keyboard improvements (#21502)
* design

* period

* one more

* blue

* cleanup
old-commit-hash: 89c42041ec
2021-07-11 22:30:33 -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
sshane
6755365476 Networking: populate tethering password (#21455)
* populate password from hotspot connection

move to setup()

populate tethering password

fix password editing

setup tethering when editing password or enabling

fix

* fixes

* last fix, don't activate when adding

* check before

* if not
old-commit-hash: 146973da7f
2021-07-01 19:59:02 -07: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
Dean Lee
147b355dde add space after function name and if statement (#21225)
old-commit-hash: e4e669bb0f
2021-06-11 10:17:52 +02:00
Dean Lee
3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60
2021-06-08 12:09:30 -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
Willem Melching
78bf4f5867 Replace ifdef with hw abstraction layer (#20843)
* Replace ifdefs with hardware abstraction layer (#20801)

* add type to class hadwareXXX

* replace ifdefs with hardware layer

* continue

* continue

* new function get_driver_view_transform

* full path to hw.h

* fix build error setup.cc

* apply review

* fix typo

* fix deprecated error:replace deprecated fromPath with new

* fix build error

* Fixes after ifdef clenaup (#20842)

* inheritance doesnt work with static

* fix debayer

* small cleanup

* Update selfdrive/camerad/cameras/camera_common.cc

* Update selfdrive/ui/qt/offroad/settings.cc

* Update selfdrive/common/modeldata.h

* flip conditions

* fix comment

Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: ab319d4f54
2021-05-06 14:39:05 +02:00
Willem Melching
39c18d4c5a Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.

old-commit-hash: 3a95d3ccaa
2021-05-06 12:29:30 +02:00
Dean Lee
e0282ced49 Replace ifdefs with hardware abstraction layer (#20801)
* add type to class hadwareXXX

* replace ifdefs with hardware layer

* continue

* continue

* new function get_driver_view_transform

* full path to hw.h

* fix build error setup.cc

* apply review

* fix typo

* fix deprecated error:replace deprecated fromPath with new

* fix build error
old-commit-hash: 757d2923d2
2021-05-06 11:41:46 +02: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
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
iejMac
fbe27337ca UI: close dialogs on settings close (#20541)
* this works

* fix

* fix

* fix

* blacklist

* style

* tabs

* tabs

* temporary

* hideEvent

* fix

* changes

* dont need this

* works

* no signal

* Merge branch 'master' of github.com:commaai/openpilot into ui_close_after_timeout

* works

* cleanup

* little more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0fe155b7c3
2021-04-23 21:24:53 -07:00
Dean Lee
7756fb0739 Qt input: pass QString by reference (#20467)
* simple arry for keyboard layout

* revert some changes
old-commit-hash: f7957f681d
2021-03-25 14:15:58 -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
Dean Lee
1364c0c794 QT: click outside of confirmation dialog to dismiss (#20394)
old-commit-hash: 90da15778c
2021-03-18 17:39:38 -07:00
Adeeb Shihadeh
33022f854c fix rotation on input dialog
old-commit-hash: 4c84a33d01
2021-03-02 17:14:32 -08:00
Willem Melching
d83935e19d Qt ui: fix minimum pass length
old-commit-hash: a0987cb098
2021-03-01 13:55:48 +01: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