diff --git a/src/blackgui/components/simulatorselector.cpp b/src/blackgui/components/simulatorselector.cpp index 040e50721..4c1800320 100644 --- a/src/blackgui/components/simulatorselector.cpp +++ b/src/blackgui/components/simulatorselector.cpp @@ -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 diff --git a/src/blackgui/components/simulatorselector.h b/src/blackgui/components/simulatorselector.h index 80fc84cb6..a5da44d2f 100644 --- a/src/blackgui/components/simulatorselector.h +++ b/src/blackgui/components/simulatorselector.h @@ -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();