Commit Graph

73 Commits

Author SHA1 Message Date
Shane Smiskol
222f7f6727 ui: singleton Device instance (#28908)
* singleton

* remove awake
old-commit-hash: b8dd4dcc28
2023-07-12 18:36:44 -07:00
Shane Smiskol
b9aa2c232f ui: fix timeout typo (#28905)
tim is out -> timeout
old-commit-hash: d68bd905fc
2023-07-12 13:09:42 -07:00
Shane Smiskol
37ee12de52 ui: show map with nav (#28867)
* accept touch events in map settings

* draft

* draft 2.0

* revert this stuff

* need this

* fix

* clean up debug prints

* fraft

* only show map on closeSettings if nav

* works!

* can't do it here

* I was going to connect signals from UIState to HomeWindow, then to OnroadWidget, but that seems like too much

* just need to keep track of it in onroad, seems like the cleanest option

* ideally we show the map where we set the scene variable, and that's in map.cc

* old variable

* comments

* less confusing

* app comment

* add back

* fix

* move to top

* remove this comment
old-commit-hash: 34a5e626d6
2023-07-11 14:49:19 -07:00
Dean Lee
e32111a7a7 ui: ignore tap to wake device (#28656)
revert to first version
old-commit-hash: 5df45dcef4
2023-06-28 18:01:31 -07:00
Dean Lee
cdd5958ab7 ui/MainWindow: use switch in eventFilter (#28276)
old-commit-hash: 2c44c8980c
2023-05-24 20:45:58 -07:00
Shane Smiskol
dcd22dda7a ui: offroad experimental mode button (#26498)
* draft

* draft

* before qpushbutton

* icon, clean up button, clicked goes to toggles

* fix icon

* add imgs

* img

* make square

* works with layouts!

* fix gradient

* this looks good

* clean up

* clean up

* remove padding around couch

* use scene's experimental_model, new onroad design

* rename widget

* def want 3

* update translations

* add img

* add 25px of padding!

* make 300px (no change)

* clean up old images

* 5 px smaller

* add white img

* fix from merge

* no style sheets

* see how this looks on device

* aliased vertical line (clean up)

* clean up

* imgs

* couch

* delete

* bye bye

* expand toggle support

* clean up

* fix dynamic icon

* make exp icon dynamic

* order

* move to offroad
old-commit-hash: 58b84fb401
2022-11-15 22:18:26 -08:00
Willem Melching
d3d90ef5d2 remove Open Sans fonts from assets (#24946)
old-commit-hash: 1908b89e29
2022-06-22 20:41:24 +02: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
5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86
2022-04-18 17:55:23 -07:00
Dean Lee
77b0d4363c MainWindow::eventFilter: add static keyword for evts (#23521)
old-commit-hash: 785180d234
2022-01-14 15:28:38 +01:00
Dean Lee
d8f55a81ab UI: reset interactivity timeout on PC (#23508)
* reset interactive timeout on pc

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6dbae9593e
2022-01-13 19:20:22 -08:00
Dean Lee
1fc1819c2b ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
old-commit-hash: 2483fc5d5d
2021-12-14 22:28:12 -08:00
Dean Lee
c031c1a8d4 UI: add timeout to close settings window while onroad (#22980)
* refactor updateWakefulness

* don't hide sidebar

* rename reset->reset_timeout

* move related variables and functions into class Device

* reset timeout in ctor

* set timeout to 10s if ignition is on

* cleanup

* remove unused QTimer *timer

* check getTimestamp

* keep socket reading in update_state

* keep filtering

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c5dbee4e58
2021-12-14 11:22:16 +01:00
Dean Lee
0b73c09488 ui/MainWindow: remove emit keyword on slot (#22790)
old-commit-hash: dd1531af96
2021-11-04 14:43:28 +01:00
Dean Lee
da6ebc2f9d remove unused signal displayPowerChanged (#22719)
old-commit-hash: 3b936aaca9
2021-10-29 12:09:03 +02:00
Adeeb Shihadeh
72d7b40eec UI: add opensans semibold
old-commit-hash: e33cd47b5c
2021-10-28 13:07:39 -07:00
Adeeb Shihadeh
95f5cabc04 add inter fonts to assets (#22704)
old-commit-hash: 950acb476c
2021-10-26 20:40:09 -07:00
Dean Lee
66c6adc436 UI: lazy onboarding widgets init (#21780)
* don't show onboarding on startup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d640e25c3
2021-09-11 18:18:58 -07:00
sshane
46dc29fd4d ui: wake for touch events (#21794)
old-commit-hash: c7fc312237
2021-07-29 22:24:24 -07:00
Dean Lee
5a240419e6 HomeWindow: fix background white flash while switching to onroad (#21695)
old-commit-hash: f67467f321
2021-07-23 16:05:58 -07:00
Willem Melching
dc19c670b6 nav: home/work shortcuts (#21276)
* add home/work widgets

* remove todo

* set contents from response

* turn into buttons

* add navigate button

* fix includes

* close settings on nav press

* close sidebar when closing settings

* use live api endpoint

* larger fonts

* more text fits

* only place name

* remove static response

* properly clear
old-commit-hash: c21ea8b506
2021-06-22 13:25:22 +02:00
Dean Lee
abffb4db29 UI: refactor onboarding (#21223)
* refactor onboarding

* skip training guide if is dashcam

* apply review

* cleanup include

* move public ctro up

* slots is private

* cleanup headers

* set style sheet in onboardingwindow

* rebase master

* match ui

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8781f586c5
2021-06-18 16:01:22 -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
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
Adeeb Shihadeh
56e9dbcf99 Qt driverview (#21063)
* CameraViewWidget

* continue

* cleanup

* mv DriverViewWindow to ui/qt/offroad

* write IsDriverViewEnabled in showEvent/hideEvnet

* sm.update(0) in onTimeout()

* CameraViewWidget

* use unique_ptr for vipc_client

* virtual draw

* fix viewport

* connected()->frameReceived()

* bg_colors use QColor

* fix draw

* rebase master

* whitespace

* apply reviews

* indent

* like onroad

continue

* white space

* continue

* show == false

* remove border

* use widget's size

* fix shadowed rect

* cleanup driverview

* fix transform

* remove video_rect

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9876723169
2021-06-01 20:59:41 -07:00
Maxime Desroches
7042222026 Fix Terms and Training guide skip when the screen turns off (#20942)
old-commit-hash: 553e7d1cce
2021-05-18 11:26:04 +02:00
Dean Lee
8d2dc5b18c MainWindow: use static QSet for filter_events (#20924)
old-commit-hash: 2c73cac0a2
2021-05-16 21:21: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
Adeeb Shihadeh
7b8f164793 match nvg sidebar (#20847)
old-commit-hash: e1a58e6268
2021-05-07 15:12:29 -07:00
Adeeb Shihadeh
5d82a760db Qt onroad alerts (#20776)
old-commit-hash: f907219957
2021-05-04 23:23:00 -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
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
Adeeb Shihadeh
b263a8d934 UI: refactor GLWindow (#20764)
old-commit-hash: 140e6248e2
2021-04-29 11:18:59 -07:00
iejMac
4a3e73ddb5 disable buttons when onroad (#20475)
* disables reset calib

* works for all buttons

* naming convention + final works on PC

* stylesheets + works on manager.py

* fixing stylesheet

* add that backg

* no reviewing while onroad

* better disabled hint

* little cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d63dab950a
2021-03-28 23:32:09 -07:00
Adeeb Shihadeh
5ef648fe02 filter out touches while in android activity (#20515)
* filter touches while in android activity

* only check after launching activity

* move to hw abstraction layer

* little cleanup

* remove print

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a2084c2a60
2021-03-28 03:53:03 -07:00
iejMac
5f96a3407b review training guide button (#20466)
* works

* move the param deletion

* clean that up

* Revert "move the param deletion"

This reverts commit 31d8a65f004e7bcf14d29465a9c9d6db03e9dee7.

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 806226820c
2021-03-25 17:36:44 -07:00
Adeeb Shihadeh
ae0756edc6 tici touch ups (#20434)
* tici touch ups

* trim

* less squish

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 61a0129fdc
2021-03-22 13:40:08 -07:00
Adeeb Shihadeh
7ac52e2374 qt fixups (#20171)
* no outline

* disable on qcom for now

* fix qt 5.12.8

* cleanup drive stats

* widgets cleanup

* ssl test

* revert that

* disable by default

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ec8b21c261
2021-02-28 18:10:50 -08:00
grekiki
1e74eb0547 Qt-UI Close settings when screen turns off (#20117)
old-commit-hash: b805200194
2021-02-23 14:40:56 +01:00
grekiki
2b6237dd4c Qt ui: close settings on onroad transition (#20114)
* need to test

* works

* reduce diff

* refactor

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dab2e1298b
2021-02-22 10:47:33 +01:00
Adeeb Shihadeh
4d2ccb3a79 qt settings style (#19588)
* dark mode

* inter

* frame

* this looks pretty good

* revert that

* fix bg hack

* don't override style sheet
old-commit-hash: 550b5e422f
2020-12-24 14:10:43 -08:00
Adeeb Shihadeh
672d0d4727 move offroad alerts to home screen (#2681)
* move offroad alerts to home screen

* offroad aletrs work, but sidebar doesn't look nice

* fix sidebar

* looks better

* cleanup

* little bigger

Co-authored-by: grekiki <gregor1234567890@gmail.com>
old-commit-hash: 8320a153fb
2020-12-04 15:21:55 -08:00
Adeeb Shihadeh
86dd0f5df1 Qt offroad home screen (#2672)
* some cleanup first

* home sweet home

* basic home screen

* date

* fix touch

* fix mac

* hide when onroad

* box layout didn't do what i thought
old-commit-hash: fed642c4ed
2020-12-02 20:47:47 -08:00
grekiki
e4b5b9a297 Offroad alerts (#2664)
We now have a working offroad alerts

old-commit-hash: 744a3317e3
2020-12-01 16:39:14 +01:00
Adeeb Shihadeh
fa147c5d6e add wifi to setup (#2604)
* add wifi to setup

* wifi looks better

* move widgets

* this looks ok

* small fixups

* fix relase tests
old-commit-hash: 6a2678aae7
2020-11-30 22:35:17 -08:00
Adeeb Shihadeh
12e6f7a607 Qt cleanup (#2622)
* scale

* contain weston hack in one file

* rest

* no show

* missed one
old-commit-hash: efc30f4a83
2020-11-24 22:07:03 -08:00
Willem Melching
97fe386b3a Qt ui: fix onboarding
old-commit-hash: 99ea3ef178
2020-11-24 13:53:15 +01:00
Willem Melching
45e99acbb6 qt ui: dont resize window on start
old-commit-hash: 899902de8f
2020-11-24 13:36:56 +01:00