aboutsummaryrefslogtreecommitdiffstats
path: root/extras/UI_Handeler.py
AgeCommit message (Collapse)AuthorFilesLines
2024-06-24Port AGL Demo Control Panel to Qt6Suchinton1-11/+11
This commit includes the following changes: V1: - Migrated from PyQt5 to PyQt6/PySide6 with minor syntax adjustments. - Removed the dependency on qtwidgets and extracted only the required animated toggle module, patching it to work with PyQt6. - Updated the README to include new steps for compiling resources. - Bumped QtPy from version 2.3.1 to 2.4.1 V2: - Refactored set_icon function in Dashboard module to make use of QIcon directly instead of using the QtSvg library (Invalid in PyQt6) - Syntax changes in UI_Handeler to use PyQt6 V3: - Update gitignore - Remove dependency on qtpy V4: - Added new animated toggle button - Refactored ICPage and Settings to use new toggle - Updated Navigation Bar Animation to have Bounce effect using "OutBounce" QEasingCurve Bug-AGL: SPEC-5161 Change-Id: I44499bb5165d5794af7e9aae3407ffae1f7e1928 Signed-off-by: Suchinton <suchinton.2001@gmail.com>
2023-11-23VSS 4.0 updatesScott Murray1-15/+15
Change Left/Right to Driver/Passenger in HVAC VSS signal names to match VSS 4.0, and update fuel level signal. Bug-AGL: SPEC-4970 Change-Id: Iedd0a8ac721cc9b48266d75b2ad03c8f15f990de Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-11-02agl-demo-control-panel: Improve gRPC Modesuchinton20011-31/+125
V1: - Remove redundant calls to set instance - Start client as soon as connection is established V2: - Enable Subscriptions in gRPC mode - Fix UI stutter by blocking signals for specific widgets - Fix Vehicle Simulator, no longer run thread as a daemon SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Iea3b9ce0532c1ebae530aed9dddd92d72ff4dd7b
2023-10-26agl-demo-control-panel: Add Fullscreen / maximized optionsuchinton20011-0/+5
V1: - Add fullscreen flag in config.ini to hide the header bar and launch the control-center in fullscreen mode. V2: - Write default user-session config if not found in config.ini Bug-AGL: SPEC-4948 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I549390711cdda95f99ee166d99c302176d105f1f
2023-10-25agl-demo-control-panel: Save user preferences for next sessionsuchinton20011-9/+0
Read from config.ini to load users last uses settings. SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I7a8da78a745f56596a84eb6c791af10881c0f7e5
2023-10-23agl-demo-control-panel: Fix Svg icons scaling on Dashboardsuchinton20011-31/+27
V1: - Use QtSvg to set icons for dashboard icons - Update Readme and install_package script for docker image V2: Clean up code and improve formatting V3: - Increase font size for UI files - Fix HVAC bug, Control panel no longer crashes when Temp goes out of range - Refactor blocking subscription updates when CP in use Bug-AGL: SPEC-4939 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I4f256d29fac614dd3e3c4193c2a08b230359906e
2023-10-19agl-demo-control-panel: Refactor Settings, Config and UI scalingsuchinton20011-2/+17
V1: - Add template to specify new configs in config.ini - Add drop-down to load all configurations specified in config.ini - Add new assets and refine UI elements (Scaling issue fixed) - Add size grip to main window - Add options in settings to configure port and AGL's CA.pem file - Removed unused or redundant files V2: - Check for user configs agl-demo-control-panel.ini & config.ini before resorting to default config.ini - Check for CA.pem and jwt tokens in default paths - Add new fields in settings for CA.pem file, jwt token path, TLS Server name - Fix crash in dashboard.py module due to icon.availableSizes() V3: Add Start/Stop states for the client V4: Block subscription event updates to the UI when values are changed on the control panel Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Id7883ba3bc88248dabb58d54e6e931f6d365fd54
2023-10-12agl-demo-control-panel: Add installation steps for debian/RPiOSsuchinton20011-1/+9
V1: - Fix window dragging event crash - Update dependencies in requirements.txt - Add installation instructions for Debian-based systems - Update Dashboard scaling of icons SPEC-4929 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I200f18606a6008780d2f4553052f24a9df5d10b7
2023-09-18Update extra modulessuchinton20011-55/+195
V1: - Add module to feed Steering Control CAN messages - Add License headers to files - Modify UI_Handler to accommodate new Navigation bar animations - Minor code refactoring V2: - Add subscription handling in UI_Handler module - Add documentation for code - Remove redundant code Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I6f7c2c2fb00885064c7894329329f13e447648d3
2023-09-07Upload progress on AGL demo control panel in one batchsuchinton20011-0/+81
AGL Demo Control Panel is a PyQt5 application used to simulate CAN bus signals using Kuksa.val v1: Initial commit v2: Remove unused assets v3: Add Opensans fonts, remove un-used styles and add Lisences as attributions v4: - Remove Opensans fonts, default to Dejavu fonts - Replace feather icons with carbon icons. - Reusing AGL demo app assests for HVAC and Steering wheel inputs. v5: Remove assets/Images/Lisences.md attribution file Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I1529495deff6fc27eacb92f7a29c4f71f8c8d5d9