Commit Graph

3043 Commits

Author SHA1 Message Date
Mat Sutcliffe
66a06427f9 Ref T495 Using QThreadStorage because thread_local caused a static destruction order fiasco. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
80308b85d5 Changed QOverload to qOverload. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
03e68de890 Removed workarounds for old versions of MSVC. 2019-02-22 20:35:10 +00:00
Klaus Basan
7be54fde87 Display number of included/DB models in "1st model set wizard" 2019-02-22 20:35:10 +00:00
Klaus Basan
90b893c62a Ref T494, moved audio settings Trait directly info BlackMisc settings file 2019-02-22 20:35:07 +00:00
Klaus Basan
3137af30bb Ref T494, detect callsign in text message 2019-02-22 20:35:07 +00:00
Klaus Basan
f8c17e10e8 Ref T494, CNotificationSounds refactring
* use Q_DECLARE_FLAGS NotificationFlag/Notification for sounds, not the weird version from very early swift days
* splt into h/cpp files
* added new sounds
2019-02-22 20:35:06 +00:00
Klaus Basan
80ed972e53 Ref T494, style
* removed some old "foreach" loops
* fixed some CLANG warnings
2019-02-22 20:35:05 +00:00
Klaus Basan
cb084427ec Unified "simplification" to ASCII only for text messages
Based on the codepage discussion of text messages

* in text message value object still store the unicode string
* the text is only "cleaned" up and Qt "simplified" (do not confuse with conversion to ASCII)
* only place where we simplify to ASCII only is
** in VATLIB
** or the utility
2019-02-22 20:35:05 +00:00
Klaus Basan
1e35519a0d Added some resources (URLs) after the text message discussion 2019-02-22 20:35:05 +00:00
Klaus Basan
788f827110 Ref T489, Ref T484, string improvements 2019-02-22 20:35:03 +00:00
Klaus Basan
efb1ac46f2 Ref T489, added "parsing" state for entity read states 2019-02-22 20:35:02 +00:00
Klaus Basan
5c785643c7 Ref T484, string improvements 2019-02-22 20:35:00 +00:00
Klaus Basan
b6844e4a44 Fixed bug, some values not considered 2019-02-22 20:35:00 +00:00
Mat Sutcliffe
4f2579b812 Ref T275 testaircraftsituation: detach lists to get meaningful benchmark results. 2019-02-22 20:34:58 +00:00
Mat Sutcliffe
d088a9bec4 Minor adjustments in CLogMessage implementation. 2019-02-22 20:34:58 +00:00
Mat Sutcliffe
e709d27e05 Ref T488 Fixed mistake in CStatusMessage::severitiesToString. 2019-02-22 20:34:57 +00:00
Mat Sutcliffe
5a17f43a5b Ref T488 Update cppcheck suppressions. 2019-02-22 20:34:56 +00:00
Mat Sutcliffe
3b07618830 Ref T482 Enable makeKeysRange and makePairsRange for non-const lvalues. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
cba820cbce Ref T485 Update for efficient QString usage in CLogMessage:
- `debug()`, `warning()`, `error()` etc. overloaded on `const char16_t[]` to accept UTF-16 string literals.
- Overloads on `const char *` are deleted to avoid accidents.
- Message is stored as QString and/or QStringView depending which overload is used.
- The multiplexing between QString and QStringView is handled by a special value class, to keep the metaclass simple.
- QStringView does not have `arg()` method, so had to implement our own.
2019-02-22 20:34:54 +00:00
Mat Sutcliffe
dd655bcb25 Ref T486 Using QRandomGenerator. 2019-02-22 20:34:53 +00:00
Mat Sutcliffe
bd9948bbff Ref T486 Using QMetaObject::invokeMethod with pointer-to-member-function (or functor). 2019-02-22 20:34:53 +00:00
Klaus Basan
b648960b59 Ref T451, utility functions 2019-02-22 20:24:04 +00:00
Klaus Basan
93cf349a04 Ref T451, context menu in views (simulated aircraft/model) to disable model 2019-02-22 20:24:03 +00:00
Klaus Basan
0efb24f7fc Minor tweaks, style 2019-02-22 20:24:01 +00:00
Klaus Basan
da0e021332 Ref T265, Ref T430, Ref T473 parts added to mapping UI 2019-02-22 20:23:58 +00:00
Klaus Basan
ecb77191e5 Ref T265, Ref T430, Ref T473 "supported parts" in model
* added part member
* unified parsing from DB "CAircraftModel::fromDatabaseJsonBaseImpl"
2019-02-22 20:23:57 +00:00
Klaus Basan
2d3e2e2d99 Ref T265, Ref T430, Ref T473 functions renamed 2019-02-22 20:23:55 +00:00
Klaus Basan
6bd3a50ed8 Ref T265, Ref T430, Ref T473 improved validator for parts 2019-02-22 20:23:54 +00:00
Klaus Basan
d89b217e9b PQ parsing using "best guess" strategy as default plus renamings 2019-02-22 20:23:54 +00:00
Klaus Basan
7ded12a965 Ref T265, Ref T430, Ref T473 DB model changes/JSON changes 2019-02-22 20:23:52 +00:00
Klaus Basan
a40e37e59b Ref T473, added version attribute for DB based value objects.
So all DB objects could have version.
2019-02-22 20:23:51 +00:00
Mat Sutcliffe
d651a9ee95 Fixed mistake in CAircraftIcaoCode::guessModelParameters 2019-02-22 20:23:50 +00:00
Mat Sutcliffe
d6b5dca6b2 Return a default-constructed QString instead of implicitly converting an empty string literal. 2019-02-22 20:23:49 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Mat Sutcliffe
5443701e09 Fixed return by const value. 2019-02-22 20:23:45 +00:00
Mat Sutcliffe
b4724996c6 Fixed clazy warnings: unused QString. 2019-02-22 20:23:42 +00:00
Mat Sutcliffe
4344ca1a77 Suppressed clazy false positives: method potentially mismarked as slot. 2019-02-22 20:23:39 +00:00
Mat Sutcliffe
cecec6107c Fixed clazy warnings: use QStringRef. 2019-02-22 20:23:38 +00:00
Mat Sutcliffe
c71d358648 Fixed clazy warnings: unnecessary containers and containers being detached. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
462172a87f Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
684ffeb671 Fixed clazy warnings: rule of zero/three/five. 2019-02-22 20:23:35 +00:00
Mat Sutcliffe
20d4575c55 Suppressed clazy false positive: qHash namespace. 2019-02-22 20:23:35 +00:00
Mat Sutcliffe
8979b5257e Fixed clazy warnings: returning void expression. 2019-02-22 20:23:34 +00:00
Mat Sutcliffe
e32ea65a27 Fixed clazy warnings: fully-qualified signal parameter types. 2019-02-22 20:23:34 +00:00
Mat Sutcliffe
9f85a7b560 Fixed clazy warnings: pass large objects by reference to const. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
e40af8132c Fixed clazy warnings: missing Q_OBJECT. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00