mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Ref T773, allow to set test elevation (from log.display)
This commit is contained in:
committed by
Mat Sutcliffe
parent
5f1bd14fcf
commit
60b556f118
@@ -245,6 +245,19 @@ namespace BlackGui
|
||||
{
|
||||
if (!m_simulator) { return; }
|
||||
m_simulator->setTestEnablePseudoElevation(checked);
|
||||
|
||||
CAltitude elvTest = CAltitude::null();
|
||||
if (!ui->le_ElevationTestValue->text().isEmpty())
|
||||
{
|
||||
CLength l;
|
||||
const QString v = ui->le_ElevationTestValue->text();
|
||||
l.parseFromString(v);
|
||||
if (!l.isNull())
|
||||
{
|
||||
elvTest = CAltitude(l, CAltitude::MeanSeaLevel);
|
||||
}
|
||||
}
|
||||
m_simulator->setTestElevation(elvTest);
|
||||
}
|
||||
|
||||
void CInterpolationLogDisplay::toggleStartStop()
|
||||
|
||||
@@ -877,9 +877,16 @@
|
||||
<item row="1" column="1">
|
||||
<widget class="QListView" name="lv_ElevevationHistory"/>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QWidget" name="wi_ElvButtons" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_ElevationAtPosition">
|
||||
<property name="text">
|
||||
<string>Elevation:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="hs_ElvButtons">
|
||||
<property name="orientation">
|
||||
@@ -895,6 +902,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_ElvClear">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>clear</string>
|
||||
</property>
|
||||
@@ -911,7 +924,7 @@
|
||||
<widget class="QLineEdit" name="le_ElvHistoryCount">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<width>75</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
@@ -946,16 +959,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="le_ElevationTestValue">
|
||||
<property name="placeholderText">
|
||||
<string>elv. test value</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lbl_ElevationAtPosition">
|
||||
<property name="text">
|
||||
<string>Elevation for coordinates:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user