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
Klaus Basan
ff3f04f74c
refs #768 , allow more detailed tooltips
...
(makes it sometimes much easier to identify an entity)
2016-12-06 09:34:14 +01:00
Mathew Sutcliffe
1e3afea9c2
refs #783 Used BlackMisc::singleShot in CDataPageQueue::queueValuesFromCache, to tolerate the page owner moving thread.
2016-12-06 09:34:08 +01:00
Mathew Sutcliffe
b62d1c303c
refs #783 Remove the flawed 4-arg version of BlackMisc::singleShot and change signature of 3-arg version.
2016-12-06 09:34:07 +01:00
Mathew Sutcliffe
64e2414b56
refs #783 Isolated improvements in BlackMisc::singleShot using QSharedPointer and C++14 lambda init-capture.
2016-12-06 09:34:06 +01:00
Mathew Sutcliffe
0b07088639
refs #782 Extended error information when data cache fails to write.
2016-12-06 09:34:05 +01:00
Klaus Basan
cdea8cff95
refs #780 , fixes login/flightplan preset
...
* empty airline is valid
* sync with flightplan (new signal to indicate changed login values)
* better preset of own model
2016-12-06 09:33:57 +01:00
Klaus Basan
492649c061
fixes "unable to login", discovered during #780 ,
...
* fixed bootstrap file
* improved timeout of connect, now in single static function
* some minor tweaks
2016-12-06 09:33:56 +01:00
Klaus Basan
9d51ee5bc8
refs #748 , further airport from DB follow up fixes
...
* Ignore mode, not all applications need to load everything (mapping tool no airports)
* removed signal in airport reader which is already in base class
* added "virtual" keyword
* fixed another syncronize typo
* added allDbEntiiesUsed() to also reflect the config (ignore flag)
* ensure allSwiftDbData are signaled correctly even with ignore flag
2016-12-06 09:33:54 +01:00
Klaus Basan
1ba42714ed
refs #768 , fixed capture as discussed
...
https://dev.vatsim-germany.org/issues/768#note-10
2016-12-06 09:33:53 +01:00
Mathew Sutcliffe
d0d1a9c8b8
refs #756 Fixed session cache concept:
...
Each new session generates an ID identifying that session, and
the .rev file annotates the ID associated with each cache value.
This is needed to avoid reading a value from a previous session
when loading for a continuing (non-new) session. The coarse-
grained approach of distinguishing new sessions from non-new
sessions was insufficient.
2016-12-06 09:33:52 +01:00
Mathew Sutcliffe
937cdbcc55
refs #756 Minor simplification and removal of unnecessary code.
2016-12-06 09:33:51 +01:00