Commit Graph

3325 Commits

Author SHA1 Message Date
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
Mathew Sutcliffe
0b07088639 refs #782 Extended error information when data cache fails to write. 2016-12-06 09:34:05 +01:00
Klaus Basan
6a5444590e refs #780, send FsInn Query in airspace monitor 2016-12-06 09:34:04 +01:00
Klaus Basan
4a91cb9503 refs #780, adjusted matcher log component`s UI 2016-12-06 09:34:03 +01:00
Klaus Basan
86b8230bf7 refs #780, encapsulate model string completer in class
* use it in mapping component
* support DB, own model set and installed models for completion
2016-12-06 09:34:02 +01:00
Klaus Basan
67f5b38391 UI finetuning and minor code formatting 2016-12-06 09:34:01 +01:00
Roland Winklmeier
f8fe843687 [FSX] Fix issue that interpolated aircraft parts are not used
refs #780
2016-12-06 09:33:59 +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
3b68a3b19d refs #768, fixed model form selectOnly, also hide drop area when read only
Reported during #780 by RW
2016-12-06 09:33:55 +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
fa76b5411e refs #777 CApplication methods for detecting already running applications. 2016-12-06 09:33:50 +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
cf9b6f039c refs #777 Moved enum CApplication::SwiftApplication to CApplicationInfo::Application. 2016-12-06 09:33:47 +01:00
Mathew Sutcliffe
d1c2c96c31 refs #777 Added classes CApplicationInfo and CApplicationInfoList. 2016-12-06 09:33:47 +01:00
Klaus Basan
34a68ca336 refs #748, added airports in cache overview UI 2016-12-06 09:33:45 +01:00
Klaus Basan
35283d8887 refs #748, fixed airport entity and reader resolution 2016-12-06 09:33:45 +01:00