refs #535, updated aircraft model / view

* add functions to apply changes to selected objects
* allow to highlight models by their model strings
* Utility function to show which parts come from DB
* model strings can be obtained sorted/unsorted
This commit is contained in:
Klaus Basan
2015-12-13 19:40:04 +01:00
parent ecb4694c7f
commit 1601ca62fd
10 changed files with 156 additions and 30 deletions

View File

@@ -70,7 +70,8 @@ namespace BlackMisc
IndexModelTypeAsString,
IndexModelMode,
IndexModelModeAsString,
IndexHasQueriedModelString
IndexHasQueriedModelString,
IndexPartsDbStatus
};
//! \copydoc BlackMisc::CValueObject::registerMetadata
@@ -199,7 +200,7 @@ namespace BlackMisc
//! Set simulator info
void setSimulatorInfo(const CSimulatorInfo &simulator) { this->m_simulator = simulator; }
//! File name (corresponding data for simulator, only available if representing simulator model=
//! File name (corresponding data for simulator, only available if representing simulator model
QString getFileName() const { return m_fileName; }
//! File name?
@@ -226,6 +227,9 @@ namespace BlackMisc
//! Valid simulator
bool hasValidSimulator() const;
//! Info, which parts/subparts (Livery, Aircraft ICAO, ...) are already based on DB data
QString getPartsDbStatus() const;
//! Matches model string?
bool matchesModelString(const QString &modelString, Qt::CaseSensitivity sensitivity) const;