Commit Graph

61 Commits

Author SHA1 Message Date
Mayfield
5246f0231e enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 17:08:53 +01:00
Willem Melching
d898841e87 Change APN from settings (#22440)
* Change APN from settings

* subtext

* one function

* bring connection down and up

* fix adapter type

* trim input

* fix scrolling in scanning state

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-07 23:47:23 -07:00
cydia2020
70e1c9c40c UI: Fix mph and wi-fi spelling (#22334)
* display WiFi as Wi-Fi

* fix typo in metric setting description
2021-09-23 22:23:34 -07:00
Dean Lee
abffc8b2ad UI: new class ListWidget (#21273)
* ListWidget

* continue

* remove function horizontal_line

* cleanup

* default spacing 25

* fix networkpanel margin on EON

* solid expanding

* 0 width

* cleanup

* apply reviews

* remove function addLayout,make it looks like QLIstWidget

* rename addWidget to addItem

* rebase master

* rebase master

* merge master

* cleanup

* fixed title bar position

* no flash while folding

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-19 15:14:54 -07:00
sshane
6fad0055b4 UI: roaming toggle (#21750)
* roaming toggle

* clean up

* only tici

* fix order

* move to wifiManager

* should be working

* clean up

clean up

* use map icon

* move to advanced settings

* clean up

* temporarily change home-only

* keep setting for now

* set both to defaults in case ui doesn't start

* knownConnections stores conn names

* Revert "knownConnections stores conn names"

This reverts commit 4466a029a38f8c89876fad3c221e95e8fc572ded.

* save lteConnectionPath instead

* use the if statement

Co-authored-by: Comma Device <device@comma.ai>
2021-09-01 14:33:06 -07:00
Dean Lee
1786416e3c ui: clickable ElidedLabel (#21773)
* ElidedButton

* rename to ClickableLabel

* move to ElidedLabel
2021-08-30 22:16:48 -07:00
ambientocclusion
ed271911c2 Fixed build issues on macOS (#22075)
* Fixed deprecated enum value

* Changed to build Qt replay on macOS
2021-08-30 09:18:14 -07:00
sshane
e28785199f networking: disable tethering toggle while connecting (#21785)
* disable until connected

* disabling takes longest

* try enabling on refresh

* clean up
2021-07-29 22:36:47 -07:00
sshane
a34a779ba2 ui: grey out unsupported networks (#21753)
* grey out unsupported networks

* show slash icon

* add to qrc
2021-07-28 20:23:48 -07:00
sshane
1ada078857 networking: show correct strength for mesh networks (#21690)
* update seen network if higher strength

* keep in wifiManager

* more readable
2021-07-28 15:03:41 -07:00
sshane
d8a6e6144a networking: cleanup style sheets (#21696)
* cleanup style sheets

* set weight when needed

* if disconnected is the same

* no need anymore

* use property

* disconnected
2021-07-23 18:48:29 -07:00
sshane
85c3cbd7ba networking: refresh on connect (#21691)
* takes a while to refresh connecting to known network

* no need to refresh an
2021-07-23 16:12:01 -07:00
sshane
7193ff57e0 networking: fix stretching with only 1 network (#21675) 2021-07-21 16:36:55 -07:00
Dean Lee
41538753f9 Qt/Networking: same border-radius as other panels (#21646)
* fix border-radius

* setup:set style for Networking
2021-07-19 09:26:08 -07:00
Adeeb Shihadeh
9215748080 UI: button released -> clicked (#21606) 2021-07-17 13:58:09 -07:00
Adeeb Shihadeh
62077abd3c more touchups (#21634)
* wait to hide

* same msg

* networking ui fixups

* clicked

Co-authored-by: Comma Device <device@comma.ai>
2021-07-17 00:14:50 -07:00
Adeeb Shihadeh
4f9ac7a1aa show network connecting indicator (#21631)
* spinner for connecting

* move that

* cleanup

* fix that

* connecting label

* touchups

* cleanup
2021-07-16 20:38:31 -07:00
Adeeb Shihadeh
c5bd6735d6 nice popup (#21630)
* nicer popup

* cleanup
2021-07-16 16:23:30 -07:00
Adeeb Shihadeh
6039f1e7ac 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>
2021-07-15 21:30:23 -07:00
sshane
0076dd3588 Update wifi setup design (#21604)
* wifi design draft

* ui draft 2

* draft

* updates

* fix spacing

* strength indicator

* font weight

* fix lock icon aspect ratio

* fix font weights

* new checkmark

* fix spacing

* was being applied to everything

* network handles its own padding

* fix spacing

* cleanup

* looks pretty good

* little more

* revert that

* scroll bar

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-15 17:41:01 -07:00
Adeeb Shihadeh
6a62cf7d5d input dialog design (#21607)
* style

* eye

* fix spacing

* use two lines
2021-07-15 02:56:21 -07:00
ShaneSmiskol
bb09f68783 Update networking comment 2021-07-14 13:39:39 -07:00
sshane
cdc386d5bb networking: update on show (#21575)
* refresh on show event

* setup fix

* show scanning message if no networks nearby

* setup isn't ready in 1 second, use signal again

* clean up

* clean up

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

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

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-14 13:27:18 -07:00
Dean Lee
aee2b893a7 Qt: new class ElidedLabel (#21277)
* shorten ssid

* truncate with ellipsis

* rename to trancate

* truncate 22 characters

* elidedLabel

* trimmed

* remove function elidedString

* cache elidedTest

* rebase master

* minimizeSizeHint

* add sizeHint

* cleanup

* revert

* inherit from QLabel

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-10 01:43:47 -07:00
Dean Lee
5be75f5354 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
2021-07-07 21:06:50 -07:00
sshane
f96b3cc597 Tethering: Edit password while enabled (#21457)
* restart tethering if password is edited

* fixes

* connect straight to WifiManager

* revert
2021-07-04 18:17:46 -07:00
sshane
146973da7f 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
2021-07-01 19:59:02 -07:00
sshane
924e8d5c28 Wait for adapter to setup WifiManager (#21432)
* wait for adapter to initialize wifimanager

* clean up

* formatting

* don't try to use adapter when not available

* Revert "don't try to use adapter when not available"

This reverts commit 3887fc87ebfea2e8acc6b440b4c7a49b0feb1975.

* only tetheringEnabled for now

* request scan once adapter is up (prev behavior)

* populate introspection cache when we need it

populate introspection cache when we need it
2021-07-01 14:01:29 -07:00
ShaneSmiskol
f1ee79ef14 Revert "debugging"
This reverts commit 67e32b4a3c.
2021-06-30 12:39:15 -07:00
ShaneSmiskol
67e32b4a3c debugging 2021-06-30 12:38:53 -07:00
sshane
01773c11f0 Quicker refreshing and use connection signals (#21408)
* Quicker refreshing and use connection signals

* Android remembers connections with incorrect passwords

* forget network on password incorrect

* knownConnections is already filled here
2021-06-28 13:26:24 -07:00
sshane
0a603d2d21 Fix connect button race condition (#21406) 2021-06-25 14:30:04 -07:00
Dean Lee
c9d4dfe99f DevicePanel: set specific stylesheet for reboot & poweroff buttons (#21364)
* set specific stylesheet for reboot&poweroff buttons

* remove hack

* fix css in network panel
2021-06-22 13:24:55 -07:00
sshane
a3a8fa9eac Scan for networks on UI init (#21310)
* refresh on UI init

* scan and wait for signal from networkmanager to update

* fixes incorrectPassword never triggering on known connections

* Update UI on connect state change

* pause timer on leaving networking

* no need to update adapter state on init

* uses AccessPoints signal

clean up

clean up

* Revert "uses AccessPoints signal"

This reverts commit 534219857a10dc200f979e1a66705ac13ca68698.

* perform non-blocking scan on first start only

* suggestions

* forgetNetwork already checks this

* Prevent double refresh on connect interaction and revert timer change

* Should fix nm is inactive error

* Revert "Should fix nm is inactive error"

This reverts commit 36a7ad098b713ae7e17cf1a8d717455ecdd29e2b.

* Fixup original timer code. could be cleaned up, but works

* use WifiManager's firstScan

* no more force!

* fix after rebase

fix after rebase

* scan for next update (seems clearer this way)

* see how responsive device is at scanning, PC is taking up to 15 seconds

* clean up and check ifVisible for scanning and UI updating

* explicitly define relationship since it's not called in Networking any more
2021-06-21 20:55:55 -07:00
sshane
26343951c9 Fix forget network button on tethering connection (#21340) 2021-06-18 22:41:51 -07:00
sshane
290e9fb9f6 UI: forget button and security type icon (#21320)
* forget and security buttons first draft

* Text left margin closely matches other panels

* add lock label

* implement new icon

* actually add icon

rename

* smaller lock icon

smaller icon

* better
2021-06-18 21:14:26 -07:00
Dean Lee
8675c970d4 UI: refactor ButtonControl (#21315) 2021-06-17 23:17:52 -07:00
ShaneSmiskol
305786f0da ui: remember previous connections (#21233)
* remember previous connections

* minor

* remove ssid_from_path

* abstract into function

* forgot one

* const

* add path_from_ssid function

* more clear what these do

* fix

* more clear

* structured binding test

* remove ssid_from_path

* fix name

* disconnect if connected

* let's just match the activate function in naming

* return if empty

* revert and clean up
2021-06-14 16:17:08 -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
ee46672d3c Passing arguments by reference (#21205) 2021-06-09 14:09:02 +02:00
Dean Lee
0958bd2253 networking: draw network strength without images (#21187)
* draw network strength wighout images

* remove include qpixmap

* space

* lower case

* cleanup
2021-06-08 14:20:08 -07:00
Dean Lee
b06b3ecb60 Use full include path (#21194) 2021-06-08 12:09:30 -07:00
Willem Melching
86aefbe766 Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-17 14:57:07 +02: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
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
Comma Device
204d878c6f update qt setup 2021-04-01 22:12:33 -07:00
Adeeb Shihadeh
bd12a787ff cleanup tici networking + remove pagination (#20528)
* remove wifi pagination

* cleanup

* little more cleanup

* fix tethering button

Co-authored-by: Comma Device <device@comma.ai>
2021-03-29 19:11:27 -07:00
Adeeb Shihadeh
e547a97216 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
2021-03-22 03:52:28 -07:00