Klaus Basan
ced9f5294e
refs #751 , info if user can directly update models
...
* modified login component, give hints
* user object has flag for direct write
2016-09-19 16:18:40 +02:00
Klaus Basan
03c642d88a
refs #751 , detect invalid JSON message
...
(which normally means a PHP error message in HTML)
* utility function to remove HTML parts
* adjustments
2016-09-19 16:18:40 +02:00
Mathew Sutcliffe
520f593d51
refs #747 It must be possible to load CSL models from a user-supplied directory.
2016-09-02 00:57:01 +01:00
Mathew Sutcliffe
87eeac4e15
refs #710 Simple algorithms to replace several regular expressions.
2016-08-30 04:02:00 +01:00
Klaus Basan
1d1815de43
refs #748 , add airport completers
...
* in flight plan
* in login
* utility functions
2016-08-28 23:26:11 +02:00
Klaus Basan
eeea9db9c9
refs #748 , support for airports in CDbInfo
2016-08-28 23:25:41 +02:00
Klaus Basan
58faed5ea7
refs #745 , removed unused hover code
...
(this was a trial to highlight the drop position, the callback function was kept)
2016-08-27 14:31:42 +02:00
Klaus Basan
f91cf3bbf3
refs #734 , added NAVY/MARINES as 2 letter codes
...
* adjustement for 2 letter codes
* icons
2016-08-26 21:06:05 +01:00
Klaus Basan
74740991a3
refs #742 , allow to search by colors
...
* color distance in livery
* and in container
2016-08-26 21:05:58 +01:00
Mathew Sutcliffe
8b1bdbdcf8
refs #721 Use QLatin1String for JSON object keys (disabled until Qt 5.7.1).
2016-08-26 21:05:53 +01:00
Mathew Sutcliffe
e2e1e53d42
refs #721 Avoid looking up the JSON object key twice every time.
2016-08-26 21:05:52 +01:00
Klaus Basan
f1cd73a268
refs #734 , allow to set temp.livery
2016-08-26 21:05:47 +01:00
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