1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-399 Use checkboxes for status and settingsComplete - Tooltip changes

This commit is contained in:
Laurent Lalanne 2017-07-10 13:01:04 +02:00
parent bbaa1b32d9
commit c9903f9bbc
2 changed files with 60 additions and 72 deletions

View File

@ -534,7 +534,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Throttle level to hover (%)</string>
<string>Throttle level needed to hover, in percent. How the multirotor is under/over powered.</string>
</property>
<property name="frame">
<bool>true</bool>
@ -915,8 +915,30 @@
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QCheckBox" name="stateComplete">
<property name="toolTip">
<string>Automatically checked for a good complete tune or unchecked for incomplete or bad tune.</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="objrelation" stdset="0">
<stringlist>
<string>objname:SystemIdentState</string>
<string>fieldname:Complete</string>
</stringlist>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLabel" name="label_19">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Complete</string>
</property>
@ -925,43 +947,6 @@
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QLineEdit" name="stateComplete">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Automatically set True for a good complete tune or False for incomplete or bad</string>
</property>
<property name="text">
<string>False</string>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@ -1077,7 +1062,7 @@
</size>
</property>
<property name="toolTip">
<string>Smooth - Quick value for PID calc based on AutoTune measurements.</string>
<string>Smooth - Normal - Quick PID response desired for PID calc based on AutoTune measurements.</string>
</property>
<property name="decimals">
<number>1</number>
@ -1124,6 +1109,9 @@
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Smooth PID response, preferred for photography</string>
</property>
<property name="styleSheet">
<string notr="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);
@ -1159,6 +1147,9 @@ font:bold;</string>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Quick PID response, preferred for racing</string>
</property>
<property name="styleSheet">
<string notr="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);
@ -1183,7 +1174,7 @@ font:bold;</string>
</size>
</property>
<property name="toolTip">
<string>Smooth - Quick value for PID calc based on AutoTune measurements.</string>
<string>Smooth - Normal - Quick PID response desired for PID calc based on AutoTune measurements.</string>
</property>
<property name="minimum">
<number>-10</number>
@ -1239,6 +1230,9 @@ font:bold;</string>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Normal PID response</string>
</property>
<property name="styleSheet">
<string notr="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);
@ -1317,7 +1311,7 @@ font:bold;</string>
<item row="3" column="1">
<widget class="QComboBox" name="SmoothQuickSource">
<property name="toolTip">
<string>Choose Accessory or FMS 3x toggle method with 3, 5, 7 positions.</string>
<string>How the SmoothQuick slider is controlled, using Accessory or FMS 3x toggle method with 3, 5, 7 positions. Allow testing smooth/quick PID sets after a AutoTune flight.</string>
</property>
<property name="objrelation" stdset="0">
<stringlist>
@ -1680,7 +1674,7 @@ font:bold;</string>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<width>110</width>
<height>0</height>
</size>
</property>
@ -1885,22 +1879,6 @@ font:bold;</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="label">
<property name="minimumSize">
<size>
<width>110</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Complete</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="7" colspan="5">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
@ -1965,25 +1943,37 @@ font:bold;</string>
</layout>
</item>
<item row="1" column="4">
<widget class="QComboBox" name="settingsComplete">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<widget class="QCheckBox" name="settingsComplete">
<property name="toolTip">
<string>Automatically set True for a good complete tune or False for incomplete or bad</string>
<string>Automatically checked for a good complete tune or unchecked for incomplete or bad tune.</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="objrelation" stdset="0">
<stringlist notr="true">
<stringlist>
<string>objname:SystemIdentSettings</string>
<string>fieldname:Complete</string>
<string>buttongroup:30</string>
</stringlist>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="label">
<property name="text">
<string>Complete</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@ -2072,7 +2062,7 @@ font:bold;</string>
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>

View File

@ -84,8 +84,6 @@ void ConfigAutoTuneWidget::refreshWidgetsValuesImpl(UAVObject *obj)
bool moduleRunning = (taskInfo->runningAutoTune() == TaskInfo_Running::True);
if (obj == systemIdentStateObj) {
m_autotune->stateComplete->setText((systemIdentStateObj->getComplete() == SystemIdentState::COMPLETE_TRUE) ? tr("True") : tr("False"));
QString message;
QString tooltip_message;
QString color;