Commit Graph

1748 Commits

Author SHA1 Message Date
Mathew Sutcliffe
3351b1f8e1 refs #800 Fixed warning: deprecated implicit copy ctor/assign with user-declared dtor (rule of zero). 2016-12-13 19:00:38 +01:00
Mathew Sutcliffe
95a82f37a0 refs #800 QtInfoMsg severity was added in Qt 5.5, we can remove the category suffix workaround. 2016-12-13 19:00:36 +01:00
Mathew Sutcliffe
ced70c4612 refs #800 Replaced some C-style casts. 2016-12-13 19:00:31 +01:00
Mathew Sutcliffe
1f54bbc0d5 refs #800 Removed redundant semi-colons, etc. 2016-12-13 19:00:30 +01:00
Mathew Sutcliffe
429c6946c6 refs #800 Fixed making unnecessary copies. 2016-12-13 19:00:29 +01:00
Mathew Sutcliffe
6f972035ab refs #800 Fixed some declaration shadows variable in outer scope warnings. 2016-12-13 19:00:27 +01:00
Mathew Sutcliffe
5791de6860 refs #800 Fixed some implicit conversion warnings. 2016-12-13 19:00:26 +01:00
Mathew Sutcliffe
461474e29d refs #800 Fixed "using namespace" in header. 2016-12-13 19:00:25 +01:00
Mathew Sutcliffe
2ab2819867 refs #784 Adjust CValueCache to use the new JSON schema. 2016-12-13 19:00:21 +01:00
Mathew Sutcliffe
72a5a0e670 refs #784 CVariant can detect whether a value object supports memoized JSON and pick the appropriate methods to call. 2016-12-13 19:00:20 +01:00
Mathew Sutcliffe
5d7289adb3 refs #784 The data cache worker thread could interfere with performance measurements,
so only run it in applications that start the main event loop.
2016-12-13 19:00:19 +01:00
Mathew Sutcliffe
45bb9a2737 refs #784 Use CMemoTable to implement a compact JSON schema for CAircraftModelList. 2016-12-13 19:00:17 +01:00
Mathew Sutcliffe
f6f2d38821 refs #784 Added helper class for using CMemoTable with containers of value objects. 2016-12-13 19:00:16 +01:00
Mathew Sutcliffe
13380aa85d refs #784 Added CMemoTable, a data structure for performing memoization. 2016-12-13 19:00:15 +01:00
Klaus Basan
590433bc9f refs #780, renamed as mentioned in MS review
https://dev.vatsim-germany.org/issues/780 no 6
2016-12-13 19:00:14 +01:00
Klaus Basan
f57eadef7c refs #780, remove unused signatures in variantprivate
* as discussed MS/KB on slack
* MS: "`setFromQVariant` is never actually called, so I prefer to remove it"
2016-12-13 19:00:13 +01:00
Klaus Basan
cb2be14083 Fixed "synchronized" typos 2016-12-13 19:00:12 +01:00
Klaus Basan
dff8db131f refs #780, "qUtf8Printable" fixes
https://dev.vatsim-germany.org/issues/780#note-9 number 2
2016-12-13 19:00:11 +01:00
Klaus Basan
6f1a6deefd refs #796, started to move rendering distance/max.aircraft to CInterpolationAndRenderingSetup
(this will allow to remove a lot of signatures in context/simulator interface)
2016-12-13 19:00:08 +01:00
Klaus Basan
1a771aaed0 refs #789, treat aircraft with no model string as disabled 2016-12-13 19:00:07 +01:00
Klaus Basan
8a44774c98 refs #799, use message settings 2016-12-13 19:00:01 +01:00
Klaus Basan
356e91c22f refs #789, fixed wrong geodetic height for onGround guessing
use null unit instead
2016-12-13 18:59:53 +01:00
Klaus Basan
fbf048db4e Utility function allows to remove multiple callsigns 2016-12-13 18:59:52 +01:00
Klaus Basan
438e72555a refs #799, own component for view update times
* utility function in CTime
* settings class for update times
2016-12-13 18:59:48 +01:00
Klaus Basan
9386741144 Fixed isValidAtcCallsign 2016-12-06 09:47:10 +01:00
Klaus Basan
9deedf1e10 refs #789, improvements when addressing FSX driver issue
* added new utility funtion is model list / aircraft list
* added setters/getters for CSimConnectObject
* added setters/getters for InterpolationStatus / PartsStatus
* added CSimConnectObjects (better encapsulation)
2016-12-06 09:47:04 +01:00
Klaus Basan
3f6cef1c9f refs #796, allow to toggle full interpolation
* add setup class, metadata registration, property index ...
* removed enableDebugMessages, added setInterpolatorSetup
* adjusted contexts
* used in interolator
2016-12-06 09:47:01 +01:00
Klaus Basan
f1ce5fc173 refs #793, display mismatch between rendered and network model
* utility functions to display that info
* added in aircraft model
2016-12-06 09:47:00 +01:00
Klaus Basan
8a5d50a167 refs #780, fixed property index compare issues found in the client 2016-12-06 09:46:57 +01:00
Mathew Sutcliffe
c9ddb2ba39 Added missing methods in CSequence. 2016-12-06 09:46:53 +01:00
Mathew Sutcliffe
e25785d09b Fixed wrong CLogMessage constructor being used
nullptr was being implicitly converted to a null C-style string
via the initializer_list constructor of CLogCategoryList.

refs #790
2016-12-06 09:46:52 +01:00
Mathew Sutcliffe
969c077182 Fixed possible memory leak in BlackMisc::singleShot. 2016-12-06 09:46:47 +01:00
Mathew Sutcliffe
5035e7b5fb refs #782 CAtomicFile on Windows: flush buffer before attempting to rename,
and use ReplaceFile to rename if target already exists.
2016-12-06 09:46:39 +01:00
Klaus Basan
5379215dd5 Unrelated typo/formatting fixes 2016-12-06 09:35:01 +01:00
Klaus Basan
dcaa745e7b refs #787, utility functions for shared files
* entity to shared file, shared file for DB Info
* CUrl path function
* removed redundant code in CDbInfo::getEntity() and fixed CEntityFlags::singleEntityByName
2016-12-06 09:35:00 +01:00
Klaus Basan
cbcb307748 Clang warning reported by MS (slack) 2016-12-06 09:34:59 +01:00
Klaus Basan
ca6f3b15b7 refs #793, added updateAircraftNetworkModel in provider
* adjusted network context (implementing provider interface)
* and airspace monitor (also implementing provider interface)
* also formatted provider / context to new style (less copydoc)
2016-12-06 09:34:54 +01:00
Klaus Basan
0dd9bce697 refs #793, keep network model (as reverse looked up) 2016-12-06 09:34:53 +01:00
Mathew Sutcliffe
4ed72706fc refs #794 Utility function to establish a signal/slot connection that auto-disconnects upon the first delivery. 2016-12-06 09:34:47 +01:00
Mathew Sutcliffe
ab8dcbad97 refs #794 Private::invokeSlot needs to ignore arguments of type QPrivateSignal. 2016-12-06 09:34:46 +01:00
Mathew Sutcliffe
f709d959d0 Minor adjustment in CAtomicFile. 2016-12-06 09:34:45 +01:00
Klaus Basan
0811536e57 refs #791, new ctor by ICAO/livery 2016-12-06 09:34:38 +01:00
Mathew Sutcliffe
0fd0ce05f0 refs #776 Use pointers instead of references for members of CCached,
to avoid subtle undefined behaviour with the placement-new trick (§3.8¶8.3).
2016-12-06 09:34:36 +01:00
Klaus Basan
f385e46d67 refs #781, added admit functions for model caches
* interface constructor protected
* flag for synchronize in ctor
2016-12-06 09:34:33 +01:00
Klaus Basan
1678ca8919 refs #780, improved model string completion
* added signatures for completer string (when send via context size matters)
* support of all instaled models in completer
* added BLACKMISC_EXPORT in model cache classes
2016-12-06 09:34:31 +01:00
Mathew Sutcliffe
1d22bd9acf refs #782 Changes to CAtomicFile::replaceOriginal on Windows:
* Remember to supply canonical paths with native path separators to Win32 API calls.
* Supply the flag to MoveFileEx to wait for the move to really happen.
* Support long paths (more than 260 characters).
2016-12-06 09:34:29 +01:00
Mathew Sutcliffe
d9d16dc8e0 refs #782 Check permissions in CAtomicFile::open to get earlier indication of any problems. 2016-12-06 09:34:28 +01:00
Roland Winklmeier
42737faf2c Fix wrong pitch and bank value interpolation
Pitch and bank angle in CAircraftSituation are according to the
common aeronautical convention:
* Bank in degrees, positive = roll right
* Pitch in degrees, positive = pitch up

Microsoft Flight Simulator is using inverted angles, which was incorrectly
adjusted in the interpolator. This caused wrong values for X-Plane.
This angle correction is now moved into the MSFS specific plugins.
Additionally, so far the pitch and bank angles from own aircraft were
not yet corrected for MSFS. So we did send wrong values to the network.

refs #790
2016-12-06 09:34:24 +01:00
Klaus Basan
bdaaaa7373 refs #780, avoid assert
In the past we used one situation list, now a map (per callsign).
The assert was checking if the callsign is really correct for that situation, now we can just set the callsign.
2016-12-06 09:34:16 +01:00
Klaus Basan
fc65deb778 Just typos and formatting 2016-12-06 09:34:15 +01:00