refs #393, allow to highlight a certain aircraft by blinking

* signatures in contexts
* some specialized functions in aircraft list
* context menus in aircraft view
* default "blinking" implementation in driver common base class
This commit is contained in:
Klaus Basan
2015-03-23 19:50:15 +01:00
parent 66da4d7353
commit 70670b74c6
38 changed files with 557 additions and 78 deletions

View File

@@ -107,5 +107,25 @@ namespace BlackMisc
}
}
void CAircraftLights::setAllOn()
{
m_beaconOn = true;
m_landingOn = true;
m_logoOn = true;
m_navOn = true;
m_strobeOn = true;
m_taxiOn = true;
}
void CAircraftLights::setAllOff()
{
m_beaconOn = false;
m_landingOn = false;
m_logoOn = false;
m_navOn = false;
m_strobeOn = false;
m_taxiOn = false;
}
} // namespace
} // namespace

View File

@@ -83,6 +83,12 @@ namespace BlackMisc
//! Set logo lights
void setLogoOn(bool on) { m_logoOn = on; }
//! All on
void setAllOn();
//! All off
void setAllOff();
//! Returns object with all lights switched on
static CAircraftLights allLightsOn();

View File

@@ -98,6 +98,16 @@ namespace BlackMisc
}
}
void CAircraftParts::setAllLightsOn()
{
m_lights.setAllOn();
}
void CAircraftParts::setAllLightsOff()
{
m_lights.setAllOff();
}
CAircraftEngine CAircraftParts::getEngine(int number) const
{
return this->m_engines.getEngine(number);

View File

@@ -70,6 +70,12 @@ namespace BlackMisc
//! Set aircraft lights
void setLights(const CAircraftLights &lights) { m_lights = lights; }
//! Set all lights on
void setAllLightsOn();
//! Set all lights off
void setAllLightsOff();
//! Is gear down?
bool isGearDown() const { return m_gearDown; }