mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #587, allow to modify multiple properties at once
functions to update a property map
This commit is contained in:
@@ -204,6 +204,13 @@ namespace BlackGui
|
||||
this->ui->tvp_StashAircraftModels->applyToSelected(distributor);
|
||||
}
|
||||
|
||||
void CDbStashComponent::applyToSelected(const CPropertyIndexVariantMap &vm)
|
||||
{
|
||||
if (vm.isEmpty()) { return; }
|
||||
if (!this->ui->tvp_StashAircraftModels->hasSelection()) { return; }
|
||||
this->ui->tvp_StashAircraftModels->applyToSelected(vm);
|
||||
}
|
||||
|
||||
void CDbStashComponent::ps_onUnstashPressed()
|
||||
{
|
||||
this->ui->tvp_StashAircraftModels->removeSelectedRows();
|
||||
|
||||
@@ -82,18 +82,21 @@ namespace BlackGui
|
||||
//! The stashed models
|
||||
const BlackMisc::Simulation::CAircraftModelList &getStashedModels() const;
|
||||
|
||||
//! Apply object to select objects
|
||||
//! Apply livery to selected objects
|
||||
void applyToSelected(const BlackMisc::Aviation::CLivery &livery, bool acceptWarnings = true);
|
||||
|
||||
//! Apply object to select objects
|
||||
//! Apply airline ICAO code to selected objects
|
||||
void applyToSelected(const BlackMisc::Aviation::CAircraftIcaoCode &icao, bool acceptWarnings = true);
|
||||
|
||||
//! Apply object to select objects
|
||||
//! Apply aircraft ICAO code to selected objects
|
||||
void applyToSelected(const BlackMisc::Aviation::CAirlineIcaoCode &icao, bool acceptWarnings = true);
|
||||
|
||||
//! Apply object to select objects
|
||||
//! Apply distributor to selected objects
|
||||
void applyToSelected(const BlackMisc::Simulation::CDistributor &distributor, bool acceptWarnings = true);
|
||||
|
||||
//! Apply set of properties to selected objects
|
||||
void applyToSelected(const BlackMisc::CPropertyIndexVariantMap &vm);
|
||||
|
||||
//! Consolidate with other available data
|
||||
BlackMisc::Simulation::CAircraftModel consolidateModel(const BlackMisc::Simulation::CAircraftModel &model) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user