Ref T515, settings for matching (run validation)

This commit is contained in:
Klaus Basan
2019-01-22 21:27:57 +01:00
committed by Mat Sutcliffe
parent e46b7f5494
commit da92f3885c
4 changed files with 115 additions and 68 deletions

View File

@@ -28,7 +28,6 @@ namespace BlackGui
connect(ui->rb_Reduction, &QRadioButton::released, this, &CMatchingForm::onAlgorithmChanged, Qt::QueuedConnection);
connect(ui->rb_ScoreAndReduction, &QRadioButton::released, this, &CMatchingForm::onAlgorithmChanged, Qt::QueuedConnection);
connect(ui->rb_ScoreOnly, &QRadioButton::released, this, &CMatchingForm::onAlgorithmChanged, Qt::QueuedConnection);
connect(ui->pb_Reset, &QPushButton::released, this, &CMatchingForm::clear, Qt::QueuedConnection);
}
@@ -47,6 +46,8 @@ namespace BlackGui
CGuiUtility::checkBoxReadOnly(ui->cb_ScoreIgnoreZeros, readonly);
CGuiUtility::checkBoxReadOnly(ui->cb_ScorePreferColorLiveries, readonly);
CGuiUtility::checkBoxReadOnly(ui->cb_ModelSetRemoveFailed, readonly);
CGuiUtility::checkBoxReadOnly(ui->cb_ModelFailedFailover, readonly);
CGuiUtility::checkBoxReadOnly(ui->cb_ModelSetVerification, readonly);
const bool enabled = !readonly;
ui->rb_Reduction->setEnabled(enabled);
@@ -82,6 +83,8 @@ namespace BlackGui
ui->cb_ExclNoExcludedModels->setChecked(mode.testFlag(CAircraftMatcherSetup::ExcludeNoExcluded));
ui->cb_ExclNoDbData->setChecked(mode.testFlag(CAircraftMatcherSetup::ExcludeNoDbData));
ui->cb_ModelSetRemoveFailed->setChecked(mode.testFlag(CAircraftMatcherSetup::ModelSetRemoveFailedModel));
ui->cb_ModelFailedFailover->setChecked(mode.testFlag(CAircraftMatcherSetup::ModelFailoverWhenNoModelCanBeLoaded));
ui->cb_ModelSetVerification->setChecked(mode.testFlag(CAircraftMatcherSetup::ModelVerificationAtStartup));
this->setMatchingAlgorithm(setup);
this->setPickStrategy(setup);
@@ -118,7 +121,8 @@ namespace BlackGui
ui->cb_ByVtol->isChecked(),
ui->cb_ScoreIgnoreZeros->isChecked(), ui->cb_ScorePreferColorLiveries->isChecked(),
ui->cb_ExclNoDbData->isChecked(), ui->cb_ExclNoExcludedModels->isChecked(),
ui->cb_ModelSetRemoveFailed->isChecked()
ui->cb_ModelSetVerification->isChecked(), ui->cb_ModelSetRemoveFailed->isChecked(),
ui->cb_ModelFailedFailover->isChecked()
);
}

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>293</width>
<height>453</height>
<height>465</height>
</rect>
</property>
<property name="windowTitle">
@@ -190,13 +190,30 @@
<item>
<widget class="QGroupBox" name="gb_FailureHandling">
<property name="title">
<string>Failure handling</string>
<string>Failure handling and verification</string>
</property>
<layout class="QHBoxLayout" name="hFailureHandling">
<item>
<layout class="QGridLayout" name="gl_FailureHandling">
<item row="1" column="0">
<widget class="QCheckBox" name="cb_ModelSetRemoveFailed">
<property name="toolTip">
<string>temp.remove failed from model set</string>
</property>
<property name="text">
<string>removed failed from set</string>
<string>temp.remove failed</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cb_ModelSetVerification">
<property name="text">
<string>verify set on startup</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="cb_ModelFailedFailover">
<property name="text">
<string>use other model if failed</string>
</property>
</widget>
</item>
@@ -215,7 +232,7 @@
<string>models marked as excluded are ignored</string>
</property>
<property name="text">
<string>Excluded models</string>
<string>excluded models</string>
</property>
</widget>
</item>
@@ -225,7 +242,7 @@
<string>models without DB data are ignored</string>
</property>
<property name="text">
<string>Exclude if no DB data</string>
<string>exclude if no DB data</string>
</property>
</widget>
</item>
@@ -274,7 +291,9 @@
<tabstop>cb_ByVtol</tabstop>
<tabstop>cb_ByForceMilitary</tabstop>
<tabstop>cb_ByForceCivilian</tabstop>
<tabstop>cb_ModelSetVerification</tabstop>
<tabstop>cb_ModelSetRemoveFailed</tabstop>
<tabstop>cb_ModelFailedFailover</tabstop>
<tabstop>cb_ExclNoExcludedModels</tabstop>
<tabstop>cb_ExclNoDbData</tabstop>
<tabstop>cb_ScorePreferColorLiveries</tabstop>