Commit Graph

75 Commits

Author SHA1 Message Date
Dean Lee
4584e883dc ui/networking: call isTetheringEnabled out of the loop (#29028) 2023-07-19 12:28:44 +01:00
Cameron Clough
8495510c29 networking: add forget btn pressed state (#28618) 2023-06-21 14:42:18 +01:00
Cameron Clough
e78280da12 ui: set dialog confirm button text (#26365)
* ui: set dialog confirm button text

* short

* blue confirm
2022-11-04 17:27:58 -07:00
Kurt Nistelberger
0c03fb1be4 Revert "remove black connecting background"
This reverts commit eecd698205.
2022-10-30 17:43:15 -07:00
Kurt Nistelberger
eecd698205 remove black connecting background 2022-10-30 17:39:40 -07:00
Adeeb Shihadeh
06e283a750 UI: only show cell settings on non-prime connection (#25067)
* fix indentation

* add primeTypeChanged signal to uiState

* hide advanced networking toggles on prime type change

* switch between map settings on prime type change

* cleanup

* remove duplicate code, wait for signal

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2022-10-05 16:10:14 -07:00
Cameron Clough
f611960391 networking: add unmetered cellular toggle (#25902)
* add metered toggle to UI

* add GsmMetered param

* add NMMetered constants

* change LTE connection settings: connection.metered

* change to GsmUnmetered override

* update translations

* debug ui

* remove comment

* Revert "debug ui"

This reverts commit 2ad9e65ea229b814782be9f30cc7664125d7e908.

* 'Force Unmetered Cellular' toggle

* update translations

* remove description

* update translations

* change unmetered to metered
2022-10-01 14:47:06 -07:00
Dean Lee
578b8fba1a networking: create scanning label once (#25782)
* create scanning label only once

* rename

* fix

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-09-14 12:33:56 -07:00
Shane Smiskol
3b4e939b9f 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
2022-07-12 19:58:39 -07:00
Shane Smiskol
879a7c3201 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
2022-06-29 14:47:46 -07:00
Willem Melching
bb02c1c515 networking.cc: remove resolved TODO 2022-06-15 16:19:04 +02:00
Lee Jong Mun
d2400150e5 ui: advanced network settings fix button colors and sizes (#24846)
* ui: button pressed color add

* match colors from other buttons

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-06-15 16:16:18 +02:00
Dean Lee
75be1223f8 ui/WifiManager: inherit from QObject instead of QWidget (#23523) 2022-01-14 08:40:39 -08:00
Adeeb Shihadeh
6aeb542750 make that consistent with other labels 2021-12-21 16:38:18 -08:00
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