diff options
author | 2024-10-15 23:57:36 +0530 | |
---|---|---|
committer | 2024-10-22 16:09:43 +0530 | |
commit | 6fdddee7d45206dc64eacd08700f79566ad9b4a6 (patch) | |
tree | 7d688595f69cdb7d7484f37542059d7406da28c5 /ui/IC.ui | |
parent | 2e2dd79e41b27a1d50be3c118955cdbd76e65539 (diff) |
Fix Visual Bugs and Add options for Keypad input
- Fixed spin wheel input alignment for HVAC controls
- Minor tweaks to Gauge input, Added new tick marks and improved gradient
- Adding option(s) in config to handle Keypad input settings
- Reconnect QML signals to enable two way input for Speed, RPM and other QML elements
- Refactor and Add CLI option to start and stop playback.
- Make Tire Pressure Dock into floating window and align to screen center.
- Update resources to include keypad icons.
- Add new tile for Keypad inputs
Bug-AGL: SPEC-5161
Change-Id: I1ecefdfd114ecad081c138e74c1598907d91fd23
Signed-off-by: Suchinton Chakravarty <suchinton.2001@gmail.com>
Diffstat (limited to 'ui/IC.ui')
-rw-r--r-- | ui/IC.ui | 243 |
1 files changed, 126 insertions, 117 deletions
@@ -170,12 +170,21 @@ QLCDNumber { <layout class="QGridLayout" name="gridLayout_3"> <item row="0" column="0"> <widget class="QDockWidget" name="TirePressureDock"> + <property name="minimumSize"> + <size> + <width>400</width> + <height>600</height> + </size> + </property> <property name="floating"> - <bool>false</bool> + <bool>true</bool> </property> <property name="features"> <set>QDockWidget::NoDockWidgetFeatures</set> </property> + <property name="allowedAreas"> + <set>Qt::LeftDockWidgetArea</set> + </property> <widget class="QWidget" name="dockWidgetContents"> <property name="autoFillBackground"> <bool>false</bool> @@ -236,69 +245,6 @@ QLCDNumber { <enum>QFrame::Raised</enum> </property> <layout class="QGridLayout" name="gridLayout"> - <item row="3" column="3" alignment="Qt::AlignBottom"> - <widget class="QSlider" name="Speed_slider"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>60</height> - </size> - </property> - <property name="font"> - <font> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="maximum"> - <number>240</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="tickPosition"> - <enum>QSlider::NoTicks</enum> - </property> - <property name="tickInterval"> - <number>0</number> - </property> - </widget> - </item> - <item row="2" column="3"> - <widget class="QWidget" name="Speed_Gauge_Placeholder" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="autoFillBackground"> - <bool>false</bool> - </property> - </widget> - </item> - <item row="0" column="2" colspan="4"> - <spacer name="verticalSpacer_5"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>10</height> - </size> - </property> - </spacer> - </item> <item row="2" column="4"> <widget class="QWidget" name="RPM_Gauge_Placeholder" native="true"> <property name="sizePolicy"> @@ -309,25 +255,6 @@ QLCDNumber { </property> </widget> </item> - <item row="3" column="4" alignment="Qt::AlignBottom"> - <widget class="QSlider" name="RPM_slider"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>60</height> - </size> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> <item row="1" column="2" colspan="3"> <widget class="QFrame" name="frame_3"> <property name="sizePolicy"> @@ -355,6 +282,32 @@ QLCDNumber { <enum>QFrame::Raised</enum> </property> <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="4" rowspan="2"> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="0" column="1" rowspan="2"> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> <item row="1" column="3"> <widget class="QPushButton" name="rightIndicatorBtn"> <property name="text"> @@ -418,35 +371,91 @@ QLCDNumber { </property> </widget> </item> - <item row="0" column="1" rowspan="2"> - <spacer name="horizontalSpacer_3"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item row="0" column="4" rowspan="2"> - <spacer name="horizontalSpacer_4"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </widget> </item> + <item row="3" column="3" alignment="Qt::AlignBottom"> + <widget class="QSlider" name="Speed_slider"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>60</height> + </size> + </property> + <property name="font"> + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="maximum"> + <number>240</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="tickPosition"> + <enum>QSlider::NoTicks</enum> + </property> + <property name="tickInterval"> + <number>0</number> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QWidget" name="Speed_Gauge_Placeholder" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="3" column="4" alignment="Qt::AlignBottom"> + <widget class="QSlider" name="RPM_slider"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>60</height> + </size> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="0" column="2" colspan="4"> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>10</height> + </size> + </property> + </spacer> + </item> <item row="1" column="0" rowspan="4" colspan="2" alignment="Qt::AlignHCenter"> <widget class="QFrame" name="coolant_gauge_frame"> <property name="sizePolicy"> @@ -518,8 +527,8 @@ QLCDNumber { </property> <property name="minimumSize"> <size> - <width>0</width> - <height>0</height> + <width>200</width> + <height>200</height> </size> </property> </widget> @@ -594,8 +603,8 @@ QLCDNumber { </property> <property name="minimumSize"> <size> - <width>0</width> - <height>0</height> + <width>200</width> + <height>200</height> </size> </property> </widget> @@ -840,7 +849,7 @@ QLCDNumber { <item> <widget class="QPushButton" name="TirePressureBtn"> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> @@ -848,7 +857,7 @@ QLCDNumber { <property name="minimumSize"> <size> <width>50</width> - <height>50</height> + <height>40</height> </size> </property> <property name="font"> @@ -869,8 +878,8 @@ QLCDNumber { </property> <property name="iconSize"> <size> - <width>50</width> - <height>50</height> + <width>40</width> + <height>40</height> </size> </property> <property name="checkable"> |