From 20fe2d131df0041e121eccaf4fc58d4ac88dfbbc Mon Sep 17 00:00:00 2001 From: suchinton2001 Date: Sun, 15 Oct 2023 23:30:36 +0530 Subject: agl-demo-control-panel: Refactor Settings, Config and UI scaling 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 Change-Id: Id7883ba3bc88248dabb58d54e6e931f6d365fd54 --- Main_Window.ui | 726 ++++++++++++++++++++++++++------------------------------- 1 file changed, 335 insertions(+), 391 deletions(-) (limited to 'Main_Window.ui') diff --git a/Main_Window.ui b/Main_Window.ui index 6b8ba83..7bfb0ef 100644 --- a/Main_Window.ui +++ b/Main_Window.ui @@ -9,8 +9,8 @@ 0 0 - 1297 - 739 + 903 + 705 @@ -542,19 +542,16 @@ QStackedWidget{ false - - - + + + - + 0 0 - - - - + 0 @@ -571,37 +568,89 @@ QStackedWidget{ 0 - + - + 0 0 - - - 0 - 70 - + + true - + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + - - - - 0 - 0 - - + QFrame::StyledPanel QFrame::Raised - + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 60 + 60 + + + + + 90 + 55 + + + + + + + :/Images/Images/logo_agl.png + + + true + + + - + DejaVu Sans @@ -611,192 +660,143 @@ QStackedWidget{ - - - - - :/Carbon_Icons/carbon_icons/workspace.svg:/Carbon_Icons/carbon_icons/workspace.svg - - - - 35 - 35 - + AGL Demo Control Panel - - - - Qt::Horizontal - - - QSizePolicy::Maximum - - - - 40 - 20 - - - - - - - - - 0 - 0 - - + + QFrame::StyledPanel QFrame::Raised - + + + 6 + + + 0 + + + 0 + + + 6 + + + 0 + - - - true - - - - 0 - 0 - - - - - DejaVu Sans - 75 - true - true - true - - + - :/Carbon_Icons/carbon_icons/meter.svg:/Carbon_Icons/carbon_icons/meter.svg + :/Carbon_Icons/carbon_icons/subtract.svg:/Carbon_Icons/carbon_icons/subtract.svg - - - 35 - 35 - + + false - - - - DejaVu Sans - 75 - true - true - true - - + - :/Carbon_Icons/carbon_icons/windy--strong.svg:/Carbon_Icons/carbon_icons/windy--strong.svg - - - - 35 - 35 - + :/Carbon_Icons/carbon_icons/scale.svg:/Carbon_Icons/carbon_icons/scale.svg - - - - DejaVu Sans - 75 - true - true - true - - + - :/Images/Images/steering-wheel.svg:/Images/Images/steering-wheel.svg - - - - 35 - 35 - + :/Carbon_Icons/carbon_icons/close.svg:/Carbon_Icons/carbon_icons/close.svg + + + + + + + + 0 + 0 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + - - - Qt::Horizontal - - - QSizePolicy::Maximum + + + + 0 + 0 + - - - 40 - 20 - - - - - - - - QFrame::StyledPanel - - - QFrame::Raised - - + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + - - - - DejaVu Sans - 75 - true - true - - - - Configure - - - - :/Carbon_Icons/carbon_icons/settings.svg:/Carbon_Icons/carbon_icons/settings.svg + + + + 0 + 0 + - - - 35 - 35 - + + 3 + + + + + @@ -808,15 +808,18 @@ QStackedWidget{ - - + + - + 0 0 - + + + + 0 @@ -832,90 +835,44 @@ QStackedWidget{ 0 - - + + - + 0 0 - - true + + + 0 + 70 + - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - + + + + + + 0 + 0 + + QFrame::StyledPanel QFrame::Raised - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - + + + - + 0 0 - - - 60 - 60 - - - - - 90 - 55 - - - - - - - :/Images/Images/logo_agl.png - - - true - - - - - DejaVu Sans @@ -925,22 +882,54 @@ QStackedWidget{ - AGL Demo Control Panel + + + + + :/Carbon_Icons/carbon_icons/workspace.svg:/Carbon_Icons/carbon_icons/workspace.svg + + + + 35 + 35 + - - + + + + Qt::Horizontal + + + QSizePolicy::Maximum + + + + 40 + 20 + + + + + + + + + 0 + 0 + + QFrame::StyledPanel QFrame::Raised - + 6 @@ -951,213 +940,168 @@ QStackedWidget{ 0 - 6 + 0 0 - - - Qt::Vertical + + + true + + + + 0 + 0 + + + + + DejaVu Sans + 75 + true + true + true + - - - - - :/Carbon_Icons/carbon_icons/subtract.svg:/Carbon_Icons/carbon_icons/subtract.svg + :/Carbon_Icons/carbon_icons/meter.svg:/Carbon_Icons/carbon_icons/meter.svg - - false + + + 35 + 35 + - + + + + 0 + 0 + + + + + DejaVu Sans + 75 + true + true + true + + - :/Carbon_Icons/carbon_icons/scale.svg:/Carbon_Icons/carbon_icons/scale.svg + :/Carbon_Icons/carbon_icons/windy--strong.svg:/Carbon_Icons/carbon_icons/windy--strong.svg + + + + 35 + 35 + - + + + + 0 + 0 + + + + + DejaVu Sans + 75 + true + true + true + + - :/Carbon_Icons/carbon_icons/close.svg:/Carbon_Icons/carbon_icons/close.svg + :/Images/Images/steering-wheel.svg:/Images/Images/steering-wheel.svg - - - - - - - - - - - - - 0 - 0 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 1 + + + 35 + 35 + - - - - - - - - - - - - - 0 - 0 - - - - - 16777215 - 100 - - - - + + + Qt::Horizontal + + + QSizePolicy::Maximum + + + + 40 + 20 + + + + + + QFrame::StyledPanel QFrame::Raised - - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - - - - :/icons/feather/alert-octagon.svg - - - - - - - - 0 - 0 - - - - Establish Connection to server - - - - - - - - + + + - + 0 0 - - - 40 - 0 - + + + DejaVu Sans + 75 + true + true + - OK - - - - - - - Qt::Horizontal + Configure - - QSizePolicy::Fixed + + + :/Carbon_Icons/carbon_icons/settings.svg:/Carbon_Icons/carbon_icons/settings.svg - + - 20 - 20 + 35 + 35 - + -- cgit 1.2.3-korg