mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 07:35:53 +08:00
Ref T357, simulator selector can hide simulators
This commit is contained in:
@@ -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()
|
void CSimulatorSelector::checkAll()
|
||||||
{
|
{
|
||||||
// checkboxes
|
// checkboxes
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace BlackGui
|
|||||||
void setMode(Mode mode);
|
void setMode(Mode mode);
|
||||||
|
|
||||||
//! No selection treated same as all selected (filters)
|
//! 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
|
//! Get the value
|
||||||
BlackMisc::Simulation::CSimulatorInfo getValue() const;
|
BlackMisc::Simulation::CSimulatorInfo getValue() const;
|
||||||
@@ -70,6 +70,9 @@ namespace BlackGui
|
|||||||
//! Set to the connected simulator but deferred
|
//! Set to the connected simulator but deferred
|
||||||
void setToConnectedSimulator(int deferredMs, bool makeReadOnly = true);
|
void setToConnectedSimulator(int deferredMs, bool makeReadOnly = true);
|
||||||
|
|
||||||
|
//! Only show FSX/P3D
|
||||||
|
void setFsxP3DOnly();
|
||||||
|
|
||||||
//! Set all, only making sense with checkboxes
|
//! Set all, only making sense with checkboxes
|
||||||
void checkAll();
|
void checkAll();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user