Dean Lee
98b70f957f
ui/wifi.cc: fix small QPixmap leak ( #30395 )
...
fix QPixmap leaks
old-commit-hash: 0f6b16d1e08b05826d2ce93295e510842eef4b53
2023-11-07 15:22:43 -08:00
Shane Smiskol
24906c79b4
Revert "ui/wifi.cc: fix QPixmap leaks" ( #30394 )
...
Revert "ui/wifi.cc: fix QPixmap leaks (#30377 )"
This reverts commit 656ea6efd472e1b7b48fff910dfca6dd8a99a756.
old-commit-hash: d2c3c92fb4c9007ab37d0d8242b646f391732283
2023-11-06 13:55:23 -08:00
Dean Lee
6945af4ea3
ui/wifi.cc: fix QPixmap leaks ( #30377 )
...
fix QPixmap leaks
old-commit-hash: b4e1ad5e62ea81f0c8b662bdef6fa826a49150e1
2023-11-06 13:31:00 -08:00
Adeeb Shihadeh
dd9b72292e
UI: remove drive stats ( #30183 )
...
* UI: remove drive stats
* little more
* vanish
old-commit-hash: f80db10720099d34fd19e3aa0be36d05647ea897
2023-10-05 14:53:49 -07:00
Adeeb Shihadeh
a9153a39cc
Update Python packages and pre-commit hooks ( #30149 )
...
* Update Python packages and pre-commit hooks
* fixes
* Update common/transformations/README.md
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* fix
---------
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com >
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 377722fd5ed13349acf99c71954f56e6ccd17c3c
2023-10-03 15:31:26 -07:00
Adeeb Shihadeh
13b57bb6a9
Revert "ui: brighten cameraview ( #29744 )"
...
This reverts commit 4772e46121f9adaf35b85f3dcaa416d9aaa7ee1b.
old-commit-hash: 023792c431828baa67e63012db55db77f9e8e02b
2023-09-30 15:14:48 -07:00
Dean Lee
aafed83acc
ui/CameraView: fix divide by zero issue ( #29770 )
...
old-commit-hash: a1306114bc8de7d55137258088d8d042afb86018
2023-09-06 13:25:40 -07:00
ZwX1616
641d52aa2d
ui: brighten cameraview ( #29744 )
...
* test
* test2
* Revert "test2"
This reverts commit 22e38f82ae81f625f00179413f4c5f869a6de23e.
* Revert "test"
This reverts commit 717490c1bcddcd5339aed85d4716a58495a5c52c.
* looks fine
* mid
* description
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: a08cdfdda7e1a2bc50024bffc45295a322da42f9
2023-09-05 10:59:58 -07:00
Dean Lee
3627574114
ui: rename QDialogBase to DialogBase ( #29675 )
...
rename QDialogBase to DialogBase
old-commit-hash: c36774dfba513f6ea64cff06b215c355ee059dff
2023-08-28 01:57:49 -07:00
Dean Lee
ce0e2ec905
AGNOS setup: multi-lang support ( #25680 )
...
* multilang
* update translations
* Specifies dependency
* load lang from json file
* update translations
* fix white border
* remove stretch
* update translations
* fix tr
* no default language
* update translations
* rm main_en.qm
* cleanup
* cleanup
* add language files
* remove type=unfinish
* build languages before assets
* depends lrelease
old-commit-hash: 0767a6dee5355d1d7c0b6aaed8f358d9045268a9
2023-08-26 08:17:07 -07:00
Dean Lee
de809632bf
cpplint: add filter whitespace/comma ( #29595 )
...
old-commit-hash: 7bfd3dac811ae95bfd09495e88377dfbaacda393
2023-08-24 10:42:06 -07:00
Dean Lee
c6db4c515c
ui: use enum PrimeType for prime_type ( #29491 )
...
old-commit-hash: 99279b8eef43586aa09d001668355fa41e01b98f
2023-08-24 12:26:45 +01:00
Dean Lee
56b582a059
cpplint: add filter whitespace/forcolon ( #29582 )
...
whitespace/forcolon
old-commit-hash: ac939029835542a02b866e8a0d174f09773e4e6e
2023-08-23 22:46:02 -07:00
Dean Lee
5ac4f52c6f
ui/PrimeUserWidget: cleanup layout ( #29492 )
...
cleanup layout
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 5fcb7e9038ec9054dcdb8d9b832bea2f597d6aa9
2023-08-23 16:34:18 -07: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
11b5cfa422
ui/settings: Don't apply styles to more elements than needed. ( #29463 )
...
old-commit-hash: 5765c1d978c5890513e55398490447590d3b1d3e
2023-08-22 14:00:01 -07:00
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
178d9adec3
ui: less confusing wifi training ( #29137 )
...
* ui: less confusing wifi training
* update
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 0922a1040f3fba4d446f1f1ae03df897375a9341
2023-07-25 13:32:00 -07:00
Dean Lee
b8110a90d2
ui: set max brightness when showing the QR code ( #28907 )
...
* set max brightness when showing the QR code
* set brightness in ui
* set in device
old-commit-hash: e958ce1c313f3dbe8724bf3d574bc12305862ebb
2023-07-14 12:22:35 -07:00
Adeeb Shihadeh
5d520dc7ae
ui: add nav to prime features ( #28842 )
...
old-commit-hash: 99f9d21e4b46e7aa1596c47740c1cb1c6ee84437
2023-07-07 15:07:37 -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
235235b2d9
modeldata.h: convert constants to uppercase ( #28769 )
...
old-commit-hash: 32c5e6aafb702a5a17ca7b43c9062ce9e4462d34
2023-07-01 08:26:21 +01:00
Cameron Clough
b6e6f008f1
UI: improved nav destination entry ( #28476 )
...
old-commit-hash: bc5a8990241311e347455ea8d69a064bd0693266
2023-06-22 19:57:29 +01:00
Dean Lee
1b3ba1c7ee
ui: multilang offroad alerts ( #28512 )
...
Co-authored-by: Shane Smiskol <shane@smiskol.com >
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
old-commit-hash: 2b800cf2e79048bbccb821135d1cf03ec7a580b0
2023-06-22 15:04:28 +01:00
Dean Lee
e5f294783f
ui: disable longitudinal personality settings when using stock long ( #28443 )
...
* disable longitdinal personality settings
* disable title label
* Revert "disable title label"
This reverts commit ef315ac2770191f1309f774185266e0cd9fe54b0.
* gray checked button on disable
old-commit-hash: 9295aca8eaebaadbc7ec96e82ece55dcaa3b668e
2023-06-08 16:03:18 -07:00
Shane Smiskol
633cdf0d0a
ButtonParamControl: minimum button width ( #28442 )
...
* min width
* param
old-commit-hash: a92cd659cef7c517b40e7fd1455a12bacb3184b9
2023-06-07 01:11:41 -07:00
Dean Lee
bfecfe3f8e
ui: refactor ButtonParamControl ( #28425 )
...
* refactor ButtonParamControl
* add pressed style
* connect to buttonToggled
* typo
old-commit-hash: 7f41047178b5390581b9f18435939ba43a43a423
2023-06-06 01:18:17 -07:00
Harald Schäfer
36aa81cdc3
Driving Personality setting (also changes follow distance) ( #24742 )
...
* Skeleton
* Adjustable follow parameter
* fix rebase
* long planner
* typo
* Add ui toggle
* Fix icon
* Improve text
* Better toggle position
* Im a UX engineer now
* add param reader
* CHange jerk to have same crash test performance
* Try reading param
* Unused comment
* translate ui text
* std stoi
* Parametrized buttons
* Empty strings are ints
* Move to generic
* Update translations
* Fix translation diffs
* Release notes
* update refs
* tweaks
* Misc fixes
* No param is standard
old-commit-hash: 205c900742a18ca4662f4535a1a4008624c05995
2023-06-05 22:17:41 -07:00
Cameron Clough
adb8a80ff4
UI: connect to wifi prompt ( #28273 )
...
* OffroadHome: move experimental mode button to right column
* OffroadHome: replace DriveStats with PrimeAd when no prime
* SetupWidget: remove PrimeAd
* SetupWidget: tweaks to fit smaller space
* UI: add WiFiPromptWidget
* WiFiPrompt: update using network type
* add WiFiPromptWidget to offroad home
* reduce spacing to fit vertical space
* WiFiPromptWidget: open Wi-Fi settings
* no longer necessary
* cleanup
* shrink PrimeUser widget and increase Setup Wi-Fi font size
* correctly resize widget when stack index changes
* layout tweaks
* debug
* spacing
* slightly improved style
* helps -> help
* .
old-commit-hash: 4f815db141db8b0257158d6969e78dea1b727912
2023-06-02 23:24:38 -07:00
Cameron Clough
bdb92e691c
UI: remove comma points ( #28303 )
...
* UI: remove comma points
* remove param
old-commit-hash: e875bcfaeec9a4bfab2d8e4e4bb5b7ee978eb047
2023-05-30 18:18:47 -07:00
Shane Smiskol
afe7825130
Revert "ui: smooth wide cam transition" ( #28298 )
...
Revert "ui: smooth wide cam transition (#28277 )"
This reverts commit ee6df0ef025d95c495248e46d53de2842363058e.
old-commit-hash: 21f88f997d80430dac16513c9dafb358ce3494ae
2023-05-25 19:23:50 -07:00
Cameron Clough
7db6687227
UI: PrimeUserWidget cleanup ( #28300 )
...
* cleanup
* setMargin is obsolete
* more
old-commit-hash: 13cf6957384f0ce620c6f74f87f77d04e19800c3
2023-05-25 16:40:40 -07:00
Cameron Clough
36a72433c7
UI: update "Finish Setup" widget style ( #28287 )
...
* UI: update SetupWidget registration design
* SetupWidget: add icon
* Revert "SetupWidget: add icon"
This reverts commit 325d2d390496f287953beb1634b229ff4ff31717.
old-commit-hash: 387e865793a72011a6dfa096557987601c816809
2023-05-25 13:01:51 -07:00
Cameron Clough
397665d45c
UI: add missing QPushButton pressed styles ( #28289 )
...
* UI: add missing QPushButton pressed styles
* keyboard is special
old-commit-hash: 488975f06ec6a282e023dbd5db9e265299458f4c
2023-05-24 22:44:10 -07:00
Shane Smiskol
33ddd8eb44
ui: smooth wide cam transition ( #28277 )
...
* horribly messy
* bit simpler
* is this right?
* simpler and should work?
* used to be int/frames, but added easing so treat as float
* end slow (start fast)
* little faster
* clean up
* not needed
* try ease in/ease out and fix
* remove debugging print
* fix
* revert to previous curve
* based on speed
* not right
* fix
* fix
* this kinda works
* Revert zoom by speed
Revert "this kinda works"
This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.
Revert "fix"
This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.
Revert "fix"
This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.
Revert "not right"
This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.
Revert "based on speed"
This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.
Revert "Revert "not right""
This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.
* better curve
* revert
* use constants and fixes
* up here too
* feels more intuitive to make zoom_transition=1 be zoomed in
* rm line
* fix
* cmt
* better handling
* better name
* zoom if ANY other stream is requested
* Update selfdrive/ui/qt/widgets/cameraview.cc
old-commit-hash: 26064196d0362d7719ce7b1ee835eb2193a3dc57
2023-05-24 17:28:33 -07:00
Dean Lee
9858839db0
ui: refactor setPrimeType ( #28143 )
...
handle prime type change in new function UIState::setPrimeType
old-commit-hash: 8ca3be97880cfddb230f02924017d9a2edeb7a89
2023-05-15 13:08:21 -07:00
Angus Gratton
f1e674f30c
cabana/cameraview: Scale the glViewPort by devicePixelRatio() ( #27941 )
...
* cameraview: Scale the glViewPort by devicePixelRatio()
This fixes an issue seen in Cabana on a "hidpi" system with Wayland where
devicePixelRatio() != 1 and the video doesn't take up the full widget area.
On the recommended Ubuntu 20.04 install I wasn't able to reproduce, because
devicePixelRatio() was always equal to 1 even with scaling to 200% or 300%. It
might be different if "Fractional Scaling" is enabled in GNOME (I couldn't make
that option work in mv WM.)
Was going to enable just for Linux, but it appears to also be recommended for
Retina MacOS:
https://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios
... so have worked from the assumption that glViewport() always takes dimensions
in device pixels, never the "device independent pixels" of Qt.
* Update selfdrive/ui/qt/widgets/cameraview.cc
* Update selfdrive/ui/qt/widgets/cameraview.cc
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: fbcd0821c92af58137e5b34f0cfe37ffd1c08642
2023-04-19 11:06:54 -07:00
Adeeb Shihadeh
09e9ae012b
UI: remove spammy CameraView log
...
old-commit-hash: 9a6bcba7416b9e3f4dcf527131f4ca7250bb0f35
2023-03-15 14:34:33 -07:00
Dean Lee
2936d72386
ui: auto detect available streams ( #27470 )
...
* auto detect available streams
* no switch if wide cam not available
* clear frames before getAvailableStreams
* warning
* clear at same time
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: d5375af2f5c9f74cb88ffa1ab52feb9fef77a43c
2023-03-14 13:59:22 -07:00
Adeeb Shihadeh
261f4d7524
UI: fix old frame shown on startup ( #27283 )
...
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 1f85f84027015ee20fa4affff23e121f4388d93c
2023-02-09 20:44:29 -08:00
Shane Smiskol
5587ce2220
cameraview: fix spaces in debug print
...
old-commit-hash: c1fcd63bba1797133309d94b360d98e147b69548
2023-01-19 18:42:34 -08:00
Shane Smiskol
4a4703fdcb
Fix spacing in MultiOptionDialog ( #26817 )
...
Update input.cc
old-commit-hash: 66bdd8b1228eb725006cc4c2d389fe2cef7e674a
2022-12-17 00:50:37 -08:00
Shane Smiskol
c6e6482603
Remove stretch from MultiOptionDialog
...
old-commit-hash: 6dc1fa255970a5976a6acc1f1b9424258ee3fcf3
2022-12-15 22:31:34 -08:00
Dean Lee
b2d2104360
ui: stop vipc thread before the DriverViewWindow is hidden ( #26738 )
...
old-commit-hash: b1009c7f7d8bebd2d88867f52e792b39904dbff4
2022-12-12 14:44:04 -08:00
Dean Lee
1b9b62f934
CameraView: remove double semicolon ( #26728 )
...
remove double semicolon
old-commit-hash: 1c5c0e723cd3adc32c1cf398228d79601d2f25a2
2022-12-08 11:06:38 -08:00
Shane Smiskol
097f501e0d
ui: handle two dynamic toggle icon cases ( #26517 )
...
handles two cases
old-commit-hash: 797c626984080e1ff17206b99e67a11bba87992f
2022-11-15 21:07:11 -08:00
Shane Smiskol
cd33325949
ui: toggle control supports active icons ( #26514 )
...
* support active icons
* function
* fix crash if not setting icon but active icon
* revert
* clean up
old-commit-hash: 62024176c6e0386401374873e73512ab76f4204a
2022-11-15 20:52:31 -08:00
Shane Smiskol
f53cdd6857
ui: function for setting toggle confirmation settings ( #26516 )
...
function for setting confirmation settings
old-commit-hash: b3f75b0c5b151cbcb048a31bb33c8f49b2a818b1
2022-11-15 20:46:42 -08:00
Dean Lee
4756106694
UI: fix CameraView crash on deleting. ( #26390 )
...
* fix crash on delete
* TODO?
* after makeCurrent
old-commit-hash: 97a205c94df412d40db1a94bbc4bb735b5afea27
2022-11-15 19:07:50 -08:00
Shane Smiskol
74aa9e5b80
offroad ui: support storing confirmation of a toggle ( #26510 )
...
* show confirmation toggle on first toggle of experimental mode
* don't store confirmation if users toggle off *after* this PR
* refactor
* cleaner
* not true
* try here
old-commit-hash: 2ad9a4f95a82bf922c86b373026c0e96f9971a80
2022-11-15 16:44:03 -08:00