Commit Graph

62 Commits

Author SHA1 Message Date
Dean Lee
2483fc5d5d ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
2021-12-14 22:28:12 -08:00
Dean Lee
c5dbee4e58 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>
2021-12-14 11:22:16 +01:00
Dean Lee
dd1531af96 ui/MainWindow: remove emit keyword on slot (#22790) 2021-11-04 14:43:28 +01:00
Dean Lee
3b936aaca9 remove unused signal displayPowerChanged (#22719) 2021-10-29 12:09:03 +02:00
Adeeb Shihadeh
e33cd47b5c UI: add opensans semibold 2021-10-28 13:07:39 -07:00
Adeeb Shihadeh
950acb476c add inter fonts to assets (#22704) 2021-10-26 20:40:09 -07:00
Dean Lee
2d640e25c3 UI: lazy onboarding widgets init (#21780)
* don't show onboarding on startup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-11 18:18:58 -07:00
sshane
c7fc312237 ui: wake for touch events (#21794) 2021-07-29 22:24:24 -07:00
Dean Lee
f67467f321 HomeWindow: fix background white flash while switching to onroad (#21695) 2021-07-23 16:05:58 -07:00
Willem Melching
c21ea8b506 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
2021-06-22 13:25:22 +02:00
Dean Lee
8781f586c5 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>
2021-06-18 16:01:22 -07:00
Dean Lee
2c6d27f482 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
2021-06-16 00:08:02 -07:00
Dean Lee
8f5c7e7bb5 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>
2021-06-12 21:28:17 -07:00
Dean Lee
e4e669bb0f add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Dean Lee
b06b3ecb60 Use full include path (#21194) 2021-06-08 12:09:30 -07:00
Adeeb Shihadeh
9876723169 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>
2021-06-01 20:59:41 -07:00
Maxime Desroches
553e7d1cce Fix Terms and Training guide skip when the screen turns off (#20942) 2021-05-18 11:26:04 +02:00
Dean Lee
2c73cac0a2 MainWindow: use static QSet for filter_events (#20924) 2021-05-16 21:21:46 -07:00
Dean Lee
7222d0f20d 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>
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh
e1a58e6268 match nvg sidebar (#20847) 2021-05-07 15:12:29 -07:00
Adeeb Shihadeh
f907219957 Qt onroad alerts (#20776) 2021-05-04 23:23:00 -07:00
Dean Lee
81491dc57f c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
2021-05-03 11:53:11 +02:00
Dean Lee
4781598e12 Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
2021-05-01 14:12:35 -07:00
Adeeb Shihadeh
140e6248e2 UI: refactor GLWindow (#20764) 2021-04-29 11:18:59 -07:00
iejMac
d63dab950a 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>
2021-03-28 23:32:09 -07:00
Adeeb Shihadeh
a2084c2a60 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>
2021-03-28 03:53:03 -07:00
iejMac
806226820c 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>
2021-03-25 17:36:44 -07:00
Adeeb Shihadeh
61a0129fdc tici touch ups (#20434)
* tici touch ups

* trim

* less squish

Co-authored-by: Comma Device <device@comma.ai>
2021-03-22 13:40:08 -07:00
Adeeb Shihadeh
ec8b21c261 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>
2021-02-28 18:10:50 -08:00
grekiki
b805200194 Qt-UI Close settings when screen turns off (#20117) 2021-02-23 14:40:56 +01:00
grekiki
dab2e1298b Qt ui: close settings on onroad transition (#20114)
* need to test

* works

* reduce diff

* refactor

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

* inter

* frame

* this looks pretty good

* revert that

* fix bg hack

* don't override style sheet
2020-12-24 14:10:43 -08:00
Adeeb Shihadeh
8320a153fb 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>
2020-12-04 15:21:55 -08:00
Adeeb Shihadeh
fed642c4ed 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
2020-12-02 20:47:47 -08:00
grekiki
744a3317e3 Offroad alerts (#2664)
We now have a working offroad alerts
2020-12-01 16:39:14 +01:00
Adeeb Shihadeh
6a2678aae7 add wifi to setup (#2604)
* add wifi to setup

* wifi looks better

* move widgets

* this looks ok

* small fixups

* fix relase tests
2020-11-30 22:35:17 -08:00
Adeeb Shihadeh
efc30f4a83 Qt cleanup (#2622)
* scale

* contain weston hack in one file

* rest

* no show

* missed one
2020-11-24 22:07:03 -08:00
Willem Melching
99ea3ef178 Qt ui: fix onboarding 2020-11-24 13:53:15 +01:00
Willem Melching
899902de8f qt ui: dont resize window on start 2020-11-24 13:36:56 +01:00
grekiki
b147d91afc new wifi strength icon (#2601)
* make wifi usable in apartments with lots of access points

* remove unused thing I added a few days ago...

* use a different image

* simpl. and correct scaling
2020-11-22 22:46:04 +01:00
grekiki
3a7fcc62fb Fix Wifi UI not working on PC (#2597) 2020-11-22 00:10:00 +01:00
Adeeb Shihadeh
9725128331 fix small terms (#2593)
Co-authored-by: Comma Device <device@comma.ai>
2020-11-20 22:03:01 -08:00
grekiki
7478b21e2e Qt keyboard (#2381)
* add keyboard

* put widget in settings

* port a keyboard

* forgot git add

* reduce diff

* submodules

* fix macOS and reduce diff

* cleanup

* little more cleanup

* test input

* not working yet

* compiles now

* add stuff

* add keyboard on panel 3

* works now

* small layout improvements

* cleanup

* styling

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-11-20 16:29:29 +01:00
Willem Melching
7f3bf2093f Qt ui: turn off screen after inactivity (#2583)
* qt ui: turn off screen after inactivity

* handle touch events globally

* whitespace
2020-11-20 13:21:18 +01:00
Adeeb Shihadeh
eae04fc67e improve onboarding (#2537) 2020-11-12 21:37:02 -08:00
Adeeb Shihadeh
9d84a835d8 Qt onboarding (#2465)
* terms

* clean up

* style
2020-10-31 17:07:04 -07:00
Adeeb Shihadeh
06400af09f Qt offroad (#2451) 2020-10-30 17:03:51 -07:00
Willem Melching
b73e8ab324 improve Qt ui smoothess (#2380)
* improve ui smoothess

* fix backlight filter

* More default brightness

* write backlight in real background thread

* immediate repaint
2020-10-21 15:15:21 +02:00
George Hotz
cb3ade51ef std::async has nodiscard in 20.04, i believe that function won't return until the async completes 2020-10-20 15:38:07 -07:00
Willem Melching
442f2543e3 tici: set brightness in std::async (#2347)
* set brightness in std::async

* CI
2020-10-15 20:48:05 +02:00