aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
AgeCommit message (Collapse)AuthorFilesLines
2024-06-24Port AGL Demo Control Panel to Qt6Suchinton1-19/+12
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>
2024-05-27Add ability to disable HVAC and steering wheel pagesScott Murray1-5/+14
Add configuration file options to disable the HVAC and steering wheel pages. Also includes a bit of refactoring around the KUKSA.val databroker client mostly focused on cleaning up naming for now. If significant development continues on this application the KuksaClient class should be used as the place where more refactoring occurs. Bug-AGL: SPEC-5142 Change-Id: I986c7cac4e6543e2a1ad40ebf436fd40e2ae2300 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-10-26agl-demo-control-panel: Add Fullscreen / maximized optionsuchinton20011-2/+7
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-24agl-demo-control-panel: Fix circular import problemsuchinton20011-24/+14
Fix circular import, causing control panel to fail to launch SPEC-4942 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Id035ba28b8c19d1002abf0073656d99572c43b0e
2023-10-23agl-demo-control-panel: Fix Svg icons scaling on Dashboardsuchinton20011-35/+59
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/+20
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-09-27Update UI filessuchinton20011-22/+47
V1: - Widen Scroll bars in IC and HVAC Page - Update UI to use carbon icon resources - Add new Dashboard page - Add bottom navigation bar to main window UI - Remove deprecated navigation page files Bug-AGL: SPEC-4905 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: Ia307d326c4bc9af9969e1d6b2a2cb4948a7ee286
2023-09-07Upload progress on AGL demo control panel in one batchsuchinton20011-0/+120
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