refs #745, allow to decide which descriptions are overridden in auto stashing

* adjusted CAircraftModel to ignore auto generated message
* radio buttons in GUI to select all/non-empty descriptions
* allow to use the temp. livery
This commit is contained in:
Klaus Basan
2016-08-27 00:35:30 +02:00
parent 58faed5ea7
commit a49b98166c
3 changed files with 222 additions and 95 deletions

View File

@@ -30,11 +30,9 @@ namespace BlackMisc
namespace Simulation { class CAircraftModel; }
}
namespace Ui { class CDbAutoStashingComponent; }
namespace BlackGui
{
namespace Views { class CAircraftModelView; }
namespace Components
{
/*!
@@ -78,6 +76,9 @@ namespace BlackGui
//! Data have been read
void ps_entitiesRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState readState, int count);
//! Reset the description settings
void ps_resetDescription();
private:
QScopedPointer<Ui::CDbAutoStashingComponent> ui;
@@ -105,7 +106,13 @@ namespace BlackGui
//! Try stashing a model
//! \param model this model can be updated with consolidated data
//! \return true means stashing is possible
bool tryToStashModel(BlackMisc::Simulation::CAircraftModel &model);
bool tryToStashModel(BlackMisc::Simulation::CAircraftModel &model, const BlackMisc::Aviation::CLivery &tempLivery);
//! Set the model description
void setModelDescription(BlackMisc::Simulation::CAircraftModel &model, const QString &description) const;
//! Get the temp.livery if available
static BlackMisc::Aviation::CLivery getTempLivery();
//! Categories
const BlackMisc::CLogCategoryList &categgories();