mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #577, allow to assign editor values to a bunch of models by context menu
This commit is contained in:
@@ -59,6 +59,11 @@ namespace BlackGui
|
||||
return livery;
|
||||
}
|
||||
|
||||
CAirlineIcaoCode CLiveryForm::getValueAirlineIcao() const
|
||||
{
|
||||
return this->ui->editor_AirlineIcao->getValue();
|
||||
}
|
||||
|
||||
void CLiveryForm::setValue(const CLivery &livery)
|
||||
{
|
||||
this->ui->livery_Selector->setLivery(livery);
|
||||
@@ -88,6 +93,11 @@ namespace BlackGui
|
||||
return msgs;
|
||||
}
|
||||
|
||||
CStatusMessageList CLiveryForm::validateAirlineIcao() const
|
||||
{
|
||||
return this->ui->editor_AirlineIcao->validate();
|
||||
}
|
||||
|
||||
void CLiveryForm::allowDrop(bool allowDrop)
|
||||
{
|
||||
this->ui->drop_DropData->allowDrop(allowDrop);
|
||||
|
||||
@@ -45,9 +45,15 @@ namespace BlackGui
|
||||
//! Value
|
||||
BlackMisc::Aviation::CLivery getValue() const;
|
||||
|
||||
//! Embedded ariline
|
||||
BlackMisc::Aviation::CAirlineIcaoCode getValueAirlineIcao() const;
|
||||
|
||||
//! Validate, empty list means OK
|
||||
BlackMisc::CStatusMessageList validate(bool withNestedForms) const;
|
||||
|
||||
//! Validate airline ICAO code only
|
||||
BlackMisc::CStatusMessageList validateAirlineIcao() const;
|
||||
|
||||
//! Allow to drop
|
||||
void allowDrop(bool allowDrop);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user