Ref T357, simulator selector can hide simulators

This commit is contained in:
Klaus Basan
2018-09-17 02:52:21 +02:00
parent 869217f1e2
commit 73c4af4c6d
2 changed files with 12 additions and 1 deletions

View File

@@ -154,6 +154,14 @@ namespace BlackGui
});
}
void CSimulatorSelector::setFsxP3DOnly()
{
ui->cb_FS9->setVisible(false);
ui->cb_XPlane->setVisible(false);
ui->rb_FS9->setVisible(false);
ui->rb_XPlane->setVisible(false);
}
void CSimulatorSelector::checkAll()
{
// checkboxes

View File

@@ -53,7 +53,7 @@ namespace BlackGui
void setMode(Mode mode);
//! No selection treated same as all selected (filters)
void setNoSelectionMeansAll(bool v) { this->m_noSelectionMeansAll = v; }
void setNoSelectionMeansAll(bool v) { m_noSelectionMeansAll = v; }
//! Get the value
BlackMisc::Simulation::CSimulatorInfo getValue() const;
@@ -70,6 +70,9 @@ namespace BlackGui
//! Set to the connected simulator but deferred
void setToConnectedSimulator(int deferredMs, bool makeReadOnly = true);
//! Only show FSX/P3D
void setFsxP3DOnly();
//! Set all, only making sense with checkboxes
void checkAll();