Commit Graph

3683 Commits

Author SHA1 Message Date
Klaus Basan
ff394f4785 refs #787, support for Header / shared files in database reader / web services
* split JsonDatastoreResponse in subclass HeaderResponse
* support for request newtwork request duration ("started") in application
* removed ps_setupChanged because it was unused
2016-12-06 09:35:02 +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
4c1890dbd2 refs #793, renamed function in simulator common 2016-12-06 09:34:57 +01:00
Klaus Basan
72fdf7c5bc refs #793, added function to reset model (after it was manually changed)
* located in context since context owns matcher object
* call from GUI
* some code formatting to indicate the cross simulator slots connected in runtime

refs #780
2016-12-06 09:34:56 +01:00
Klaus Basan
55020277b5 refs #793, adjusted model to use network model, also renamed mode to better relect meaning 2016-12-06 09:34:55 +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
Klaus Basan
7231ec06f3 refs #792, do not reverse lookup a model if it is not 100% identifiable
Instead only use livery, airline, aircraft ICAO
2016-12-06 09:34:52 +01:00
Klaus Basan
ca6d9ce7b2 refs #792, formatting 2016-12-06 09:34:48 +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
a1bea9703d refs #777, using feature in launcher
plus bug fix in application
2016-12-06 09:34:44 +01:00
Klaus Basan
4f447cd408 refs #791, further improve reverse lookup
* utility function if web data are already available
* moved setOwnAircraftModel as reverseLookupAndUpdateOwnAircraftModel to CSimulatorCommon
* reverseLookupAndUpdateOwnAircraftModel also handles async lookup when data are not yet available
* removed context ps_allSwiftWebDataRead reverse lookup, done in CSimulatorCommon now
2016-12-06 09:34:43 +01:00
Klaus Basan
4478af119d refs #791, also perform lookup in simulator plugin`s CSimulatorFsCommon::setOwnAircraftModel 2016-12-06 09:34:41 +01:00
Klaus Basan
4e2a01c1e4 refs #791, adjusted own aircraft context
* function for default model and situation in context (so they can be reused as in login component)
* use CDatabaseUtils::consolidateOwnAircraftModelWithDbData for lookup
2016-12-06 09:34:40 +01:00
Klaus Basan
a92b67db6b refs #791, reverse lookup for own model in the utils class 2016-12-06 09:34:39 +01:00
Klaus Basan
0811536e57 refs #791, new ctor by ICAO/livery 2016-12-06 09:34:38 +01:00
Klaus Basan
c02cbcb952 Updated some documentation based on a brief slack discussion with MG 2016-12-06 09:34:37 +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
de7821ff86 refs #781, use admit in database reader
* added amit functions in readers
* cacheHasChanged functions (needed because data of caches are loaded in background)
* pinned small caches
* CDatabaseReader::readInBackgroundThread uses admitCaches now
2016-12-06 09:34:35 +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
c57a9e2e5b Fixed reload all DB data issue reported by MS on slack
* use triggerReloadFromDb
* improved documentation

MS report:
`AllDbEntities` should be `AllDbEntitiesNoInfoObjects` in `CDataInfoAreaComponent::requestUpdateOfAllDbData`?
Otherwise it triggers assert `!whatToRead.testFlag(CEntityFlags::InfoObjectEntity)` in `CWebDataServices::triggerRead`.
2016-12-06 09:34:32 +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
Klaus Basan
14f3eadc08 refs #766, refs #776 using object name as setting name %OwnerName%
* removed CDockWidgetsSettings (note Widgets, not Widget)
* goal: Use CDockWidgetSettings for all dock widgets

refs #684
2016-12-06 09:34:30 +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
Klaus Basan
49f2d5566c refs #786, improved matching messages 2016-12-06 09:34:27 +01:00
Klaus Basan
c938e2b961 refs #780, allow to reset changed rendered aircraft 2016-12-06 09:34:26 +01:00
Klaus Basan
df60474510 refs #789, added signal when adding models fails
Signatures in context and simulator
2016-12-06 09:34:25 +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
44fcba296b ref #780, streamlined mapping component
* remove a lot redundant slots
* renamed to rendered aircraft in code
* also use aircraftRemoved signal
2016-12-06 09:34:23 +01:00
Klaus Basan
313aa9f679 refs #780, formatting simulator common class 2016-12-06 09:34:22 +01:00
Klaus Basan
99538dd2c2 refs #780, signal installedAircraftModelsChanged dangling
* discovered during testing, signal is not used (since we now use model set)
* renamed context signal to "modelSetChanged"
* prepared context for message settings
2016-12-06 09:34:21 +01:00
Klaus Basan
f8c9782da4 refs #789, FSX errors OPERATION_INVALID and EXCEPTION_UNRECOGNIZED_ID
* only emit aircraft as rendered when object id is received, not before
* added CSimualtedAircraft to CSimConnectObject (so it can be used as signal argument)
* some utility functions to get callsign/simobject by id
2016-12-06 09:34:20 +01:00
Klaus Basan
6a8c8c8889 refs #748, airport JSON reader bug in changed URL fixed (URL was always flagged as changed)
In same step some code cleanup
2016-12-06 09:34:19 +01:00
Klaus Basan
b87a3dffaa refs #780, during tests adjusted
* doxygen for fsx driver
* moved stats members in base class (so all drivers can update those
2016-12-06 09:34:18 +01:00
Klaus Basan
311a613494 refs #768, use new tooltips in login comment
(plus some minor adjustments)
2016-12-06 09:34:17 +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
Klaus Basan
847348cbe0 refs #768, model string in login component is supposed to be empty without simulator 2016-12-06 09:34:13 +01:00
Klaus Basan
8c282a33bf refs #786, adjust matcher log to also support matching messages 2016-12-06 09:34:12 +01:00
Klaus Basan
514bcdd055 refs #786, follow up / corresponding adjustments based on context changes
* removed reload models menu item
* changed to renamed functions
2016-12-06 09:34:11 +01:00
Klaus Basan
c2bf473f3f refs #786, prepare contexts for matching messages
In same step cleaned up contexts a bit
* added function for model set strings
* renamed functions to getModelSet... instead of installed models (the set is smaller and is what we want to use with DBus)
* signal when debug/log flags changed
* removed some \copydoc
* allow to enable/disable rev.lookup/matching messages
* removed reload model function (dangling)
2016-12-06 09:34:10 +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