mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
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:
committed by
Mathew Sutcliffe
parent
1a4b0c5e76
commit
364914cc31
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user