Commit Graph

1621 Commits

Author SHA1 Message Date
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
Mathew Sutcliffe
7f422eb3e4 refs #777 Utilities for reading/writing files while holding a QLockFile. 2016-12-06 09:33:49 +01:00
Mathew Sutcliffe
d1c2c96c31 refs #777 Added classes CApplicationInfo and CApplicationInfoList. 2016-12-06 09:33:47 +01:00
Klaus Basan
35283d8887 refs #748, fixed airport entity and reader resolution 2016-12-06 09:33:45 +01:00
Klaus Basan
7279772cab refs #768, changes to QSet<QString>
* based on review https://dev.vatsim-germany.org/issues/768#note-5
* changed a few signatures to QSet<QString>
2016-12-06 09:33:42 +01:00
Klaus Basan
85c5945aa1 refs #756, init id to -1 2016-12-06 09:33:40 +01:00
Klaus Basan
b8d323226f refs #748, fixed airport JSON bugs and removed workaround
* removed workaround in web data services
* removed convertFromDatabaseJson functions, not needed
* changed to use the correct static fromDatabaseJson functions
* fixed prefixes
* load correct Country object by loading it as nested object
* key and timestamp was missing in CAirport tuple metadata
2016-12-06 09:33:29 +01:00
Klaus Basan
45a620dab5 refs #768, some minor formatting during debugging of mapping wizard
(found that some unnecessary model changed events are sent, will result in some refactoring)
2016-12-06 09:33:27 +01:00
Klaus Basan
4c6bb6e3fd refs #768, return DB keys as set 2016-12-06 09:33:13 +01:00
Klaus Basan
8718260623 refs #768, update of value objects
* Adjusted validation
* Use default airline object when a color livery is created (refs #774 also)
* Added/improved completer strings (e.g. getVDesignatorDbKey())
* utility functions in lists
2016-12-06 09:33:07 +01:00
Mathew Sutcliffe
ab20b6c713 refs #756 Fixed mingw linker error. 2016-10-18 14:10:45 +01:00
Mathew Sutcliffe
384d59b084 refs #684, #766, #776 Removed CValueCacheCategory. 2016-10-17 14:37:47 +01:00
Mathew Sutcliffe
8a65a33384 refs #684, #766, #776 Support %OwnerName% in cache keys by allowing CCached::m_element to be a dummy
and by using a trick with explicit destructor call and placement new to reconstruct CCached when owner's name changes.
2016-10-17 14:37:47 +01:00
Michał Garapich
9acfb89e65 refs #748 Add operating attribute to CAirport 2016-10-17 14:34:33 +01:00
Michał Garapich
cf3e9f1f67 refs #748 Support database format in CAirportDataReader
* CAirport is now database object
* CAirportList is now datastore object list
* CAirportDataReader adjustments
2016-10-17 14:34:31 +01:00
Mathew Sutcliffe
7320969888 Performance fix: rewrote an algorithm to be linear instead of quadratic. 2016-10-17 14:34:25 +01:00
Mathew Sutcliffe
64315e1022 refs #756 Allow to mark data cache traits with a session flag, so they are overwritten when starting a new session.
(Starting a new session means, that a swift application is started when no other swift application is running.)
2016-10-17 14:34:24 +01:00