refs #720, file name handling in models

* normalize file name before writing to DB
* use local file paths for local models
* display "C" for color liveries
This commit is contained in:
Klaus Basan
2016-08-12 02:58:50 +02:00
committed by Mathew Sutcliffe
parent 1a4b0c5e76
commit 364914cc31
6 changed files with 73 additions and 15 deletions

View File

@@ -313,6 +313,12 @@ namespace BlackMisc
//! Info, which members (Livery, Aircraft ICAO, ...) are already based on DB data
QString getMembersDbStatus() const;
//! File path for DB (absolute paths make no sense in DB)
void normalizeFileNameForDb();
//! If we have local file names, we use those
void updateByLocalFileNames(const CAircraftModel &model);
//! Matches model string?
bool matchesModelString(const QString &modelString, Qt::CaseSensitivity sensitivity) const;
@@ -328,10 +334,13 @@ namespace BlackMisc
//! Model type
static QString modelTypeToString(ModelType type);
//! File path used for DB
static QString normalizeFileNameForDb(const QString &filePath);
//! Model mode
static ModelMode modelModeFromString(const QString &mode);
//! Model mode
//! Model mode-
static const QString &modelModeToString(ModelMode mode);
//! From swift DB JSON