From 777bad5708e9e0b113fb2b239ad9145977cef6fb Mon Sep 17 00:00:00 2001 From: chris pember Date: Thu, 30 Aug 2012 23:00:25 -0700 Subject: [PATCH] fixed the vertical sliders, fixed input/output header spacing over the config sliders, switched around the progress bar in stabi ui, more to come --- .../stylesheets/default_macos.qss | 6 +- .../openpilotgcs/src/plugins/config/input.ui | 778 +++++++++++------- .../src/plugins/config/inputchannelform.ui | 265 +++--- .../openpilotgcs/src/plugins/config/output.ui | 87 +- .../src/plugins/config/stabilization.ui | 12 +- 5 files changed, 701 insertions(+), 447 deletions(-) diff --git a/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_macos.qss b/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_macos.qss index 22958dbdd..3d41094d5 100644 --- a/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_macos.qss +++ b/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_macos.qss @@ -69,14 +69,14 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: border-radius: 2px; margin 0px 2px; } - QSlider::add-page:vertical { + QSlider::sub-page:vertical { background: #fff; border: 1px solid #777; width: 1px; border-radius: 4px; } - QSlider::sub-page:vertical { + QSlider::add-page:vertical { background: rgb(249,117,76); border: 1px solid #777; width: 1px; @@ -87,7 +87,7 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: QSlider::handle:vertical { background: rgb(196,196,196); width: 18px; - margin: -6 0; + margin: -6 -6; border-radius: 3px; border: 1px solid #777; } \ No newline at end of file diff --git a/ground/openpilotgcs/src/plugins/config/input.ui b/ground/openpilotgcs/src/plugins/config/input.ui index 185a63900..c5ab2d9dc 100644 --- a/ground/openpilotgcs/src/plugins/config/input.ui +++ b/ground/openpilotgcs/src/plugins/config/input.ui @@ -6,8 +6,8 @@ 0 0 - 716 - 754 + 991 + 711 @@ -116,8 +116,8 @@ 0 0 - 686 - 630 + 961 + 587 @@ -145,7 +145,7 @@ 0 - + @@ -161,261 +161,20 @@ - + + + 0 + + + 8 + 0 - - - - true - - - - 0 - 0 - - - - - 0 - 26 - - - - - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -margin:5px; -font:bold; - - - Neutral - - - Qt::AlignCenter - - - - - - - true - - - - 0 - 0 - - - - - 42 - 26 - - - - - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -margin:5px; -font:bold; - - - Rev. - - - Qt::AlignCenter - - - - - - - true - - - - 0 - 0 - - - - - 80 - 26 - - - - - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -margin:5px; -font:bold; - - - Number - - - Qt::AlignCenter - - - - - - - true - - - - 0 - 0 - - - - - 45 - 26 - - - - - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -margin:5px; -font:bold; - - - Min - - - Qt::AlignCenter - - - - - - - true - - - - 0 - 0 - - - - - 100 - 26 - - - - - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -margin:5px; -font:bold; - - - Type - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 5 - 20 - - - - - - - - true - - - - 0 - 0 - - - - - 45 - 26 - - - - - 75 - false - true - - - - background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); -color: rgb(255, 255, 255); -border-radius: 5; -margin:5px; -font:bold; - - - Max - - - Qt::AlignCenter - - - - + + -1 + + true @@ -454,7 +213,7 @@ font:bold; - + true @@ -493,8 +252,153 @@ font:bold; - + + + + true + + + + 0 + 0 + + + + + 105 + 26 + + + + + 75 + false + true + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +margin:5px; +font:bold; + + + Type + + + Qt::AlignCenter + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 0 + 20 + + + + + + + + true + + + + 0 + 0 + + + + + 70 + 26 + + + + + 75 + false + true + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +margin:5px; +font:bold; + + + Neutral + + + Qt::AlignCenter + + + + + + + true + + + + 0 + 0 + + + + + 53 + 26 + + + + + 75 + false + true + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +margin:5px; +font:bold; + + + Min + + + Qt::AlignCenter + + + + + + + 0 + 26 + + Qt::Horizontal @@ -503,7 +407,256 @@ font:bold; - 2 + 12 + 20 + + + + + + + + true + + + + 0 + 0 + + + + + 95 + 26 + + + + + 75 + false + true + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +margin:5px; +font:bold; + + + Number + + + Qt::AlignCenter + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 12 + 20 + + + + + + + + true + + + + 0 + 0 + + + + + 42 + 26 + + + + + 75 + false + true + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +margin:5px; +font:bold; + + + Rev. + + + Qt::AlignCenter + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 5 + 20 + + + + + + + + true + + + + 0 + 0 + + + + + 55 + 26 + + + + + 75 + false + true + + + + background-color: qlineargradient(spread:reflect, x1:0.507, y1:0, x2:0.507, y2:0.772, stop:0.208955 rgba(74, 74, 74, 255), stop:0.78607 rgba(36, 36, 36, 255)); +color: rgb(255, 255, 255); +border-radius: 5; +margin:5px; +font:bold; + + + Max + + + Qt::AlignCenter + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 9 + 20 + + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 3 + 20 + + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 3 + 20 + + + + + + + + + 0 + 26 + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 0 20 @@ -770,8 +923,8 @@ font:bold; 0 0 - 540 - 526 + 961 + 587 @@ -787,8 +940,17 @@ font:bold; FlightMode Switch Positions + + 12 + - + + + 16 + + + 10 + @@ -835,49 +997,6 @@ font:bold; - - - - false - - - Qt::StrongFocus - - - This slider moves when you move the flight mode switch -on your remote. It shows currently active flight mode. - -Setup the flight mode channel on the RC Input tab if you have not done so already. - - - 0 - - - 5 - - - 10 - - - 0 - - - 0 - - - Qt::Vertical - - - true - - - QSlider::TicksBelow - - - 1 - - - @@ -939,6 +1058,49 @@ Setup the flight mode channel on the RC Input tab if you have not done so alread + + + + false + + + Qt::StrongFocus + + + This slider moves when you move the flight mode switch +on your remote. It shows currently active flight mode. + +Setup the flight mode channel on the RC Input tab if you have not done so already. + + + 0 + + + 5 + + + 10 + + + 0 + + + 0 + + + Qt::Vertical + + + true + + + QSlider::TicksBelow + + + 1 + + + @@ -1310,8 +1472,8 @@ margin:1px; 0 0 - 529 - 173 + 961 + 587 diff --git a/ground/openpilotgcs/src/plugins/config/inputchannelform.ui b/ground/openpilotgcs/src/plugins/config/inputchannelform.ui index 8a1d260f3..be7fdb27d 100644 --- a/ground/openpilotgcs/src/plugins/config/inputchannelform.ui +++ b/ground/openpilotgcs/src/plugins/config/inputchannelform.ui @@ -6,27 +6,24 @@ 0 0 - 666 - 59 + 726 + 49 Form - + + + -1 + 1 1 - - 2 - - - 0 - - + @@ -45,67 +42,7 @@ - - - - - 4 - 0 - - - - - 0 - 25 - - - - - 80 - 16777215 - - - - Qt::StrongFocus - - - 7 - - - - - - - false - - - - 0 - 20 - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 10 - 20 - - - - - + @@ -130,30 +67,8 @@ - - - - - 0 - 25 - - - - Qt::StrongFocus - - - QAbstractSpinBox::NoButtons - - - 9999 - - - 1000 - - - - - + + Qt::Horizontal @@ -162,38 +77,41 @@ - 10 + 5 20 - - + + - - 0 + + 4 0 - 35 - 0 + 90 + 25 - 30 + 80 16777215 - - + + Qt::StrongFocus + + + 7 - + true @@ -206,7 +124,7 @@ - + @@ -228,7 +146,23 @@ - + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 10 + 20 + + + + + @@ -250,8 +184,93 @@ - - + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 7 + 20 + + + + + + + + + 0 + 0 + + + + + 0 + 25 + + + + Qt::StrongFocus + + + QAbstractSpinBox::NoButtons + + + 9999 + + + 1000 + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 5 + 20 + + + + + + + + + 0 + 0 + + + + + 35 + 0 + + + + + 30 + 16777215 + + + + + + + + + Qt::Horizontal @@ -266,8 +285,30 @@ - - + + + + false + + + + 0 + 0 + + + + + 0 + 20 + + + + + + + + + Qt::Horizontal diff --git a/ground/openpilotgcs/src/plugins/config/output.ui b/ground/openpilotgcs/src/plugins/config/output.ui index a30668aee..32a6337f7 100644 --- a/ground/openpilotgcs/src/plugins/config/output.ui +++ b/ground/openpilotgcs/src/plugins/config/output.ui @@ -6,7 +6,7 @@ 0 0 - 811 + 698 754 @@ -125,7 +125,7 @@ 0 0 - 781 + 668 642 @@ -528,6 +528,9 @@ Leave at 50Hz for fixed wing. + + 10 + @@ -547,14 +550,14 @@ Leave at 50Hz for fixed wing. - + 0 0 - 22 + 20 0 @@ -596,7 +599,7 @@ margin:1px; - 1 + 5 20 @@ -605,14 +608,14 @@ margin:1px; - + 0 0 - 104 + 90 0 @@ -638,17 +641,33 @@ margin:1px; + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 12 + 20 + + + + - + 0 0 - 61 + 60 0 @@ -674,17 +693,33 @@ margin:1px; + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 0 + 20 + + + + - + 0 0 - 45 + 20 0 @@ -720,7 +755,7 @@ margin:1px; - 40 + 45 20 @@ -729,14 +764,14 @@ margin:1px; - + 0 0 - 50 + 55 0 @@ -765,14 +800,14 @@ margin:1px; - + 0 0 - 40 + 20 0 @@ -801,14 +836,14 @@ margin:1px; - + 0 0 - 40 + 20 0 @@ -834,6 +869,22 @@ margin:1px; + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 18 + 20 + + + + diff --git a/ground/openpilotgcs/src/plugins/config/stabilization.ui b/ground/openpilotgcs/src/plugins/config/stabilization.ui index 344fdaeec..399d85372 100755 --- a/ground/openpilotgcs/src/plugins/config/stabilization.ui +++ b/ground/openpilotgcs/src/plugins/config/stabilization.ui @@ -621,13 +621,13 @@ 24 - 11 + 12 0 - 11 + 12 0 @@ -6971,8 +6971,8 @@ border-radius: 5; 0 0 - 948 - 713 + 567 + 650 @@ -16849,8 +16849,8 @@ border-radius: 5; 0 0 - 948 - 713 + 818 + 599