Ref T268, allow to reset last sent values from log. display for testing

This commit is contained in:
Klaus Basan
2018-07-10 17:15:56 +02:00
parent b74de43ce0
commit 226abd0d38
5 changed files with 36 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ namespace BlackGui
connect(ui->comp_CallsignCompleter, &CCallsignCompleter::validCallsignEntered, this, &CInterpolationLogDisplay::onCallsignEntered);
connect(ui->hs_UpdateTime, &QSlider::valueChanged, this, &CInterpolationLogDisplay::onSliderChanged);
connect(ui->pb_StartStop, &QPushButton::released, this, &CInterpolationLogDisplay::toggleStartStop);
connect(ui->pb_ResetLastSent, &QPushButton::released, this, &CInterpolationLogDisplay::resetLastSentValues);
connect(ui->pb_ResetStats, &QPushButton::released, this, &CInterpolationLogDisplay::resetStatistics);
connect(ui->pb_ShowLogInSimulator, &QPushButton::released, this, &CInterpolationLogDisplay::showLogInSimulator);
connect(ui->pb_FollowInSimulator, &QPushButton::released, this, &CInterpolationLogDisplay::followInSimulator);
@@ -332,6 +333,11 @@ namespace BlackGui
if (m_simulatorCommon) { m_simulatorCommon->resetAircraftStatistics(); }
}
void CInterpolationLogDisplay::resetLastSentValues()
{
if (m_simulatorCommon) { m_simulatorCommon->resetLastSentValues(); }
}
void CInterpolationLogDisplay::clear()
{
ui->tvp_AircraftParts->clear();

View File

@@ -120,6 +120,9 @@ namespace BlackGui
//! \copydoc BlackCore::CSimulatorCommon::resetAircraftStatistics
void resetStatistics();
//! \copydoc BlackCore::CSimulatorCommon::resetLastSentValues
void resetLastSentValues();
//! Clear
void clear();

View File

@@ -130,7 +130,7 @@
</item>
<item>
<widget class="QFrame" name="fr_LogStatus">
<layout class="QHBoxLayout" name="hl_LogCallsign" stretch="2,1,4,0,0,0,1">
<layout class="QHBoxLayout" name="hl_LogCallsign" stretch="2,1,4,0,0,0,0,1">
<property name="leftMargin">
<number>3</number>
</property>
@@ -183,6 +183,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_ResetLastSent">
<property name="text">
<string> reset last sent </string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_ShowLogInSimulator">
<property name="text">
@@ -765,6 +772,7 @@
<tabstop>le_UpdateTime</tabstop>
<tabstop>hs_UpdateTime</tabstop>
<tabstop>pb_ResetStats</tabstop>
<tabstop>pb_ResetLastSent</tabstop>
<tabstop>pb_ShowLogInSimulator</tabstop>
<tabstop>pb_FollowInSimulator</tabstop>
<tabstop>pb_StartStop</tabstop>