Commit Graph

1689 Commits

Author SHA1 Message Date
Klaus Basan
227190ab42 Minor adjustments
* ignore empty root dir
* check for empty context
2016-08-26 21:05:43 +01:00
Klaus Basan
5789120ecc refs #555, load models from directory
* file dialog
* adjusted signatures to pass directory
2016-08-26 21:05:42 +01:00
Klaus Basan
e3fc72d775 refs #720, fixed: display all models when only selected models are consolidated
* in same step fixed location of error message
* minor renaming
2016-08-26 21:05:06 +01:00
Klaus Basan
4582387684 refs #720, treat auto gen. descriptions as "empty" 2016-08-26 21:05:03 +01:00
Klaus Basan
da343d81c1 refs #720, allow to publish when there are errors, but some models pass validation
* return valid and invalid models
* return value "success" when there are any valid models
2016-08-26 21:05:02 +01:00
Klaus Basan
d10fe5ad18 refs #728, hide load indicator when no vPilot rules are loaded 2016-08-26 21:05:01 +01:00
Klaus Basan
364914cc31 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
2016-08-26 21:05:00 +01:00
Klaus Basan
89ac38a072 refs #720, ui context menu finetuning
* renaming / formatting
* const predefined subdir menus
2016-08-26 21:04:52 +01:00
Mathew Sutcliffe
661254371c refs #730 Avoid duplicate "empty cache value" debug messages. 2016-08-26 21:04:49 +01:00
Mathew Sutcliffe
67b36bbfcf refs #721 Trying the unaltered name first is slower
because in nearly all cases, it just leads to comparing the names twice.
2016-08-26 21:04:48 +01:00
Mathew Sutcliffe
15cf07c1c5 refs #721 For performance, avoid regular expressions where a simple algorithm would suffice. 2016-08-26 21:04:47 +01:00
Mathew Sutcliffe
ffa24411d2 Narrow the explicit iterator category of our iterator adaptors to reflect their implicit category. 2016-08-26 21:04:45 +01:00
Mathew Sutcliffe
4071fcb6d3 Fixed mistake. 2016-08-26 21:04:44 +01:00
Mathew Sutcliffe
a30eb18a9c On Windows, warn if a thread was terminated with its QThread still in running state.
I hope this catches if the data cache serializer is killed in the middle of a save.
2016-08-26 21:04:43 +01:00
Mathew Sutcliffe
f8fc82019d Invert logic of CAtomicFile destructor:
abandon changes if destruction is due to an exception,
instead of applying changes if destruction is NOT due to an exception.
Because otherwise QFile destructor will apply changes regardless,
by calling the close method via virtual dispatch.
2016-08-26 21:04:42 +01:00
Mathew Sutcliffe
3c82bb3a9c Data cache shall emit an error message if it fails to save the revision file. 2016-08-26 21:04:40 +01:00
Klaus Basan
009bfc3ed1 refs #720, finder by Telephony designator (aka callsign) and name 2016-08-26 21:04:35 +01:00
Klaus Basan
dbdea2d846 Fix handling of base index properties in CAirport/ICoordinateWithRelativePosition 2016-08-26 21:04:33 +01:00
Klaus Basan
019b623f43 refs #720, adjusted model loader
* callback function to data consolidation (so I can refer to consolidation in BlackCore)
* use status message in parser
* avoid duplicate keys (WOAI has ambiguous model strings which are to be excluded)
2016-08-26 21:04:21 +01:00
Klaus Basan
d75b105ee3 refs #720, moved data consolidation with DB data into own class in BlackCore
(in blackcore I can access the readers)
2016-08-26 20:54:52 +01:00
Klaus Basan
f9922353c4 refs #720, improved distributor and airline/livery detection
* mark data read from DB (req. for string key where existing key value is not reliable indicator for DB data)
* detect distributors by part of model string
* use a simplified name (no spaces, no special characters) to find a match
* allow to obtain model strings (=keys) as set and list
2016-08-26 20:54:52 +01:00
Michał Garapich
39dae7ed45 Fix possible memleak in CDatabaseWriter
* CApplication network methods cleanup
2016-08-26 00:18:41 +02:00
Michał Garapich
1032b2f506 refs #650 Implement CAirportDataReader
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Roland Winklmeier
0c51323db0 Fix incorrect include in fscommonutil.cpp 2016-08-08 11:23:07 +02:00
Mathew Sutcliffe
a0c20baf53 refs #697 Type traits renamed with T prefix. 2016-08-03 02:20:45 +01:00
Mathew Sutcliffe
0ae1e70923 refs #697 Data cache traits renamed with T prefix. 2016-08-03 02:20:27 +01:00
Mathew Sutcliffe
8275b0d9bf refs #697 BlackMisc settings renamed and reorganized. 2016-08-03 02:19:08 +01:00
Mathew Sutcliffe
e7c9d3b62f CDataCacheRevision: always need to lock the mutex when accessing m_updateInProgress. 2016-08-02 17:14:14 +01:00
Mathew Sutcliffe
88920501bf refs #715 Assert no longer appropriate: pruning revision file means calling writeNewRevision when m_pendingWrite is false. 2016-08-02 05:09:39 +01:00
Klaus Basan
862a84b661 refs #697, BlackGui settings renamed 2016-08-01 16:48:48 +02:00
Klaus Basan
3554c0b718 refs #716, value class / setting 2016-08-01 15:51:56 +02:00
Mathew Sutcliffe
91ba7d9f12 CLogMessageHelper::stripFlags: fixed mistake when using QString::section(). 2016-07-31 23:17:48 +01:00
Mathew Sutcliffe
b0dd2a76ff CAtomicFile invariant: any method that closes the file must restore the original filename. 2016-07-31 23:17:47 +01:00
Mathew Sutcliffe
98a2b3253a refs #694 Use human readable names in cache validation messages. 2016-07-31 23:17:46 +01:00
Mathew Sutcliffe
87b2396edb refs #694 Support human readable names for settings and data cache traits. 2016-07-31 23:15:35 +01:00
Mathew Sutcliffe
61f3655b2c refs #695 Allow to set a mock root directory for caches, for unit tests. 2016-07-29 17:09:08 +01:00
Mathew Sutcliffe
9339991644 refs #715 When loading data cache, prune revision file to remove keys that weren't found. 2016-07-29 17:09:07 +01:00
Mathew Sutcliffe
b449487a71 refs #715 Support implicit conversion from CRange to QSet. 2016-07-29 17:09:05 +01:00
Mathew Sutcliffe
08b404906d refs #708 Human-readable name for the "default" category used by QMessageLogger (e.g. qWarning).
The empty category is technically different, indicates a direct call to qt_message_output (e.g. qErrnoWarning).
2016-07-28 23:49:22 +01:00
Mathew Sutcliffe
47e0f7f335 Neater implementation of constexpr std::tuple for gcc 4.9 2016-07-28 23:49:22 +01:00
Klaus Basan
c4d9ab06be refs #712, airline icons in pilot client 2016-07-28 21:08:26 +02:00
Klaus Basan
e2f8f097e0 refs #712, completers and load from disk for flight plan 2016-07-28 21:08:26 +02:00
Klaus Basan
31b03fe2e1 refs #712, signals when all DB data are read / the web services are started
(useful for GUI as it can be used to init only when data are available)
2016-07-28 21:08:24 +02:00
Klaus Basan
90c3c35609 refs #709, as result of testing created special database views for ICAO codes
* view already filter incomplete data
* as result, info object count values are aligned with data eventually parsed (which will allow to detect changes by comparing counts)
* smaller adjustments to allow airlines with designator
2016-07-28 21:08:20 +02:00
Klaus Basan
85d76d364c refs #709, name to entity 2016-07-28 21:08:13 +02:00
Klaus Basan
2ea826afe2 Small fix for bit count 2016-07-28 21:08:11 +02:00
Klaus Basan
541d673acd Fixed year formatter / formatting 2016-07-28 21:08:10 +02:00
Roland Winklmeier
04013d0747 Optimize METAR decoding by constructing regular expressions only once
Before this commit, the regular expression strings and objects were
constructed for each METAR. This is expensive and unnecessary.
This commit optimizes this by moving the string preparation into
a helper method, which is called once to construct a static
QRegularExpression.

refs #711
2016-07-16 19:52:00 +02:00
Klaus Basan
44faccb568 refs #707, found during testing very odd characters can break the GUI 2016-07-14 18:49:27 +02:00
Klaus Basan
8d4876967e refs #708 fix 2016-07-14 18:49:26 +02:00