Commit Graph

184 Commits

Author SHA1 Message Date
Klaus Basan
e78ad0e0d1 Style 2019-08-17 21:01:11 +02:00
Klaus Basan
ece0c67431 Ref T709, updated XSwiftBus service and messages to support settings 2019-08-17 21:01:11 +02:00
Klaus Basan
6c2d140b1b Ref T709, added support for taxi lights in XPlane, using the "bundle lights" flag 2019-08-15 23:08:19 +02:00
Klaus Basan
14e396bce0 Ref T709, avoid pure virtual assert by removing the JSON ctor, which is calling a virtual function in the ctor 2019-08-15 20:32:57 +02:00
Klaus Basan
f9e7449fdd Ref T709, smaller style changes 2019-08-15 20:32:57 +02:00
Klaus Basan
bd49f5151a Ref T709, doxygen 2019-08-14 00:22:36 +02:00
Mat Sutcliffe
3d413c749c Ref T709 Encapsulate the CSettingsProvider pointer in a CSettingsAware base class. 2019-08-13 20:18:23 +01:00
Mat Sutcliffe
b90327cf07 Ref T709 Made settings provider non-static. 2019-08-13 19:17:58 +01:00
Mat Sutcliffe
dbba3ccf6f Ref T709 Prevent instantiation of CXSwiftBusSettingsQtFree, to avoid slicing.
- Constructors and destructor are protected.
- Therefore destructor doesn't need to be virtual.
- objectUpdated is pure virtual, so the class is abstract.
- Both derived classes are declared final.
2019-08-12 22:39:14 +01:00
Mat Sutcliffe
8510fbe3bb Update libxplanemp. 2019-08-11 23:16:10 +01:00
Klaus Basan
038a2ffdf0 Ref T709, avoid camera below ground if aircraft is on ground 2019-08-11 23:16:09 +01:00
Klaus Basan
08ba4d8f65 Ref T709, review points
* overload "normalize"
* renamed to CSettingsProvider
2019-08-11 23:16:09 +01:00
Klaus Basan
4830bbc646 Ref T709, improved normalization and space pressed handling, unit test 2019-08-11 23:16:08 +01:00
Klaus Basan
9cb9556d87 Ref T715, use "night texture mode" in traffic class 2019-08-11 23:16:07 +01:00
Klaus Basan
2fc01bc568 Ref T709, style 2019-08-11 23:16:07 +01:00
Klaus Basan
3260209ca5 Ref T709, static "ownAircraftString" and improved logging 2019-08-11 23:16:06 +01:00
Klaus Basan
60ea80301e Ref T709, further checks and voodoo as "follow aircraft still crashes 2019-08-11 23:16:06 +01:00
Klaus Basan
ade65dedde Log XSwiftBus version when starting 2019-08-11 23:16:05 +01:00
Klaus Basan
45427f5ef3 Ref T709, add colon for "swiftbus:" log messages 2019-08-11 23:15:57 +01:00
Klaus Basan
d090295471 Ref T709, check on screen w/h and report warning instead of info. Also log missing traffic object. 2019-08-11 23:15:56 +01:00
Klaus Basan
6be0586fbc Ref T709, normalize degrees to +/i180degs 2019-08-11 23:15:56 +01:00
Klaus Basan
5e9be9e96e Ref T709, return 0 if there is no camera position (nullptr) 2019-08-11 23:15:55 +01:00
Klaus Basan
917d9bb3e7 Ref T709, style 2019-08-11 23:15:55 +01:00
Klaus Basan
cd06c52cb7 Ref T709, only update settings if changed 2019-08-11 23:15:55 +01:00
Klaus Basan
5a8f41611b Ref T709, changed DBus function to get/setSettingsJson, disambiguate from get/setSettings (returning CSettings) 2019-08-11 23:15:54 +01:00
Klaus Basan
761c45c547 Ref T709, further aircraft camera pos. checks and init zoom to 1.0
Attempts to avoid the follow aircraft crash
2019-08-11 23:15:54 +01:00
Klaus Basan
972cca9fed Ref T709, update labels every n-th frame 2019-08-11 23:15:53 +01:00
Klaus Basan
034cd0c8f3 Ref T709, check position for "follow aircraft" 2019-08-11 23:15:53 +01:00
Klaus Basan
384b50ff80 Ref T709, changed to settings provider
* CPlugin is the provider
* it is "kept" in DBus object for traffic, service, weather
2019-08-11 23:15:52 +01:00
Klaus Basan
ba7b97df11 Ref T709, removed unused includes and style 2019-08-11 23:15:52 +01:00
Klaus Basan
c97f1974d7 Ref T709, settings provider to get settings
* allows to use the provider without and overhead
* single source, can be made threadsafe

Signed-off-by: Klaus Basan <klaus.basan@klausbasan.de>
2019-08-11 23:15:52 +01:00
Klaus Basan
cb4d291621 Ref T709, ctor from JSON string 2019-08-11 23:15:51 +01:00
Klaus Basan
5170f3b500 Ref T709, changed to MACRO INFO_LOG 2019-08-11 23:15:50 +01:00
Klaus Basan
4f08fd1083 Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences" 2019-08-11 23:15:49 +01:00
Klaus Basan
a5cefcf18c Ref T709, style 2019-08-11 23:15:47 +01:00
Klaus Basan
f2bf038501 Ref T709, send XSwiftBusSettings when driver is connected
* send from swift -> XPlane side
* also send if settings on swift side are updated
2019-08-11 23:15:47 +01:00
Klaus Basan
81577d29c5 Ref T709, style 2019-08-11 23:15:45 +01:00
Klaus Basan
44d8e043e0 Ref T709, added DBus signatures and use CSettings class in service class
* CSettings objects will be shared among all services (traffic, weather, service)
* It is "global" for plugin
2019-08-11 23:15:44 +01:00
Klaus Basan
2d2eca6ccd Ref T709, added XSwiftBus settings class als based on the same Qt free base class
In order to compile included the cpp file
2019-08-11 23:15:44 +01:00
Klaus Basan
6793fbdc43 Ref T709, move case insensitive compare to utils (so it can be used elsewhere) 2019-08-11 23:15:43 +01:00
Klaus Basan
73808d696e Clang warnings (QtC) static_cast 2019-08-11 23:15:13 +01:00
Mat Sutcliffe
eaa24952d1 Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors. 2019-07-29 23:36:58 +01:00
Klaus Basan
9c5d5c1ae7 Ref T669, improved logging for XPlane model loading 2019-07-23 02:08:43 +02:00
Mat Sutcliffe
70a79bdd10 [XSwiftBus] Fixed UTF-8 ellipsis character indicating wrapped text messages. 2019-06-26 22:08:47 +01:00
Mat Sutcliffe
81352d8f07 Disable X-Plane's built-in voice ATIS when XSwiftBus is active. 2019-06-26 22:08:46 +01:00
Mat Sutcliffe
24d45b7f85 Update libxplanemp. 2019-06-26 22:08:45 +01:00
Mat Sutcliffe
c3f7173d21 Ref T476 Static asserts to ensure array and non-array datarefs are used correctly. 2019-06-26 22:08:45 +01:00
Roland Rossgotterer
013bd08b5f Fix segfault when a parser error occurred before any parsed CSL plane 2019-05-16 10:12:51 +02:00
Roland Rossgotterer
8943db5b2b Revert "[xSwiftBus] Automatically find and load CSL packages"
This reverts commit 61adfefa7a.
2019-05-15 17:19:56 +02:00
Roland Rossgotterer
aebf07511e [XSwiftBus] Allocate big memory buffers on the heap instead of stack 2019-05-14 11:37:54 +02:00