refs #395, GUI for simulator settings

* improved formatting of aircraft views
* extended settings for render restrictions (such as max. aircraft, max range ...)
* connected new signal / slots in runtime
* Doxygen / formatting
This commit is contained in:
Klaus Basan
2015-05-06 02:50:45 +02:00
committed by Mathew Sutcliffe
parent bbd5ad2cbc
commit e7f65ba0b6
10 changed files with 245 additions and 113 deletions

View File

@@ -58,14 +58,19 @@ namespace BlackGui
void CRemoteAircraftSelector::ps_onAddedAircraft(const CSimulatedAircraft &aircraft)
{
Q_UNUSED(aircraft);
CCallsign cs(aircraft.getCallsign());
if (cs.isEmpty()) { return; }
if (this->m_aircraft.containsCallsign(cs)) { return; }
this->fillComboBox();
}
void CRemoteAircraftSelector::ps_onRemovedAircraft(const CCallsign &callsign)
{
Q_UNUSED(callsign);
this->fillComboBox();
if (callsign.isEmpty()) { return; }
if (this->m_aircraft.containsCallsign(callsign))
{
this->fillComboBox();
}
}
void CRemoteAircraftSelector::fillComboBox()