Commit Graph

8448 Commits

Author SHA1 Message Date
Mat Sutcliffe
b2bfbabb18 Downgrade assert to verify, in case the format string came from an external data source.
Part 2 of hotfix for assert caused by percent character in vatsim-data.txt
2019-09-16 22:41:29 +01:00
Mat Sutcliffe
942417b7a9 Avoid constructing CStatusMessage format string from external data source.
Put external data source as argument using stream operator instead.

Part 1 of hotfix for assert caused by percent character in vatsim-data.txt
2019-09-16 22:41:29 +01:00
Klaus Basan
bb8f46ed68 Ref T718, improved country "resolution" in server names/descriptions 2019-09-16 22:41:29 +01:00
Klaus Basan
009719a7be Ref T681, fixed handling of CG from DB
* consider settings
* remember DB CG data correctly
2019-09-16 22:41:28 +01:00
Klaus Basan
b43ab76007 Add URL info for reading 2019-09-16 22:41:28 +01:00
Klaus Basan
153602d99e [libxplanemp] Different containers for render and TCAS planes 2019-09-16 22:41:28 +01:00
Klaus Basan
083293c016 Style 2019-09-16 22:41:28 +01:00
Klaus Basan
f8c73c772a Continue to send CTraffic values if a plane is NOT found, do NOT return 2019-09-16 22:41:27 +01:00
Klaus Basan
1409dae355 Ref T717, initial UI components for model browser 2019-09-16 22:41:27 +01:00
Klaus Basan
c9d5a18421 Make sure the main window shows up again if the navigator is closed 2019-09-16 22:41:27 +01:00
Klaus Basan
9ec1d54908 Ref T610, added COM async getter functions and bundled async calls
* reduced the number of async XSwiftBus calls by getting multiple values at once
* the concept was already used for getOwnAircraftSituationDataAsync
* now also used for COM, parts, model and lights
* As Qt restricts to 8 parameters not further bundled
* new COM1 getter functions for receive/volume/transmit
2019-09-16 22:41:26 +01:00
Klaus Basan
d1fac2e1a4 Ref T610, support for XPlane COM volume and receive/transmit
* proxy and
* DBus service functions
2019-09-16 22:41:26 +01:00
Klaus Basan
62f5ddab99 Follow aircraft allow to zoom in/out
* renamed sniffer
* ignore keystrokes if NO aircraft is followed
* allow to zoom in/out my multiplying the distance
2019-09-16 22:41:25 +01:00
Klaus Basan
0d29471144 Reset keydown (follow aircraft) if mouse no longer moves 2019-09-16 22:41:25 +01:00
Klaus Basan
713972ad7c Checks to avoid issues during the XPlane startup.
Those here are precautionary.
2019-09-16 22:41:25 +01:00
Klaus Basan
3ea8f9c24f Log starting of the XSwiftPlugin
Rational: If XPlane crashes before that log it is most likely something else
Remark: Logger macros using namespace, so they can be used outside XSwiftBus
2019-09-16 22:41:24 +01:00
Klaus Basan
eed46f47a9 [libxplanemp] Fix for the TCAS crash and wrong TCAS distance
Closing the gaps:
* Pro: The dataref list is being cleaned up and no "0" entries are needed
* Con: A blip can be re-assigned, maybe loosing map "follow aircraft"

See also https://discordapp.com/channels/539048679160676382/539925070550794240/613834869713272845
2019-09-16 22:41:24 +01:00
Klaus Basan
678166175b Style 2019-09-16 22:41:24 +01:00
Klaus Basan
92f3dd392f Avoid shutdown if modal window closes
See https://discordapp.com/channels/539048679160676382/567139633964646411/613564665255034903
2019-09-16 22:41:24 +01:00
Klaus Basan
d9948af103 Ref T609, fixed signal/slot connection of cross context hookup
* audio can be local or remote special case
* so we have to hookup on core or remote side depending on that
2019-09-16 22:41:24 +01:00
Klaus Basan
105db27fa8 Avoid ASSERT in XPlane "rapid shutdown" 2019-09-16 22:41:23 +01:00
Klaus Basan
a2a186a2f5 Frameless window close button 2019-09-16 22:41:23 +01:00
Klaus Basan
a583def040 Ref T703, sending and receiving of relayed text messages
* turn relayed messages into normal messages
* avoid signals for relayed messaged
* relay received messages to partner (co-pilot)
2019-09-16 22:41:23 +01:00
Klaus Basan
0a372edef6 Ref T703, utility functions for "relayed messages" (i.e. copilot/pilot) 2019-09-16 22:41:22 +01:00
Klaus Basan
25532497d6 Fixed FS9/FSX message handling as reported here: https://discordapp.com/channels/539048679160676382/567139633964646411/612104936574156870 2019-09-16 22:41:22 +01:00
Klaus Basan
51ce3778b6 FS9 style 2019-09-16 22:41:22 +01:00
Klaus Basan
dd70a67cf0 Ref T703, get partner callsign and validate it
* added functions in network details
* validation and login with partner callsign
2019-09-16 22:41:21 +01:00
Klaus Basan
6adea91618 Ref T703, set partner callsign in network vatlib / functions in context adjusted 2019-09-16 22:41:21 +01:00
Klaus Basan
bfcf553e3f Ref T703, overlay message utility functions 2019-09-16 22:41:21 +01:00
Klaus Basan
55d0eb97d0 Ref T709, also log model name (so we can see if a particular model causes a crash) 2019-09-16 22:41:21 +01:00
Klaus Basan
2793502839 [libxplanemp] Ref T715, draw translucent (blend) part after lights (as in the original code) 2019-09-16 22:41:20 +01:00
Klaus Basan
8a6a4ae7d1 Ref T709, use std::advance for message iterator 2019-09-16 22:41:20 +01:00
Klaus Basan
aa765e9adb Style 2019-09-16 22:41:20 +01:00
Klaus Basan
fab6e677a8 Ref T709, updated XSwiftBus service and messages to support settings 2019-09-16 22:41:19 +01:00
Klaus Basan
23d29e1f33 Ref T709, UI for settings "lights" and "message box margins" 2019-09-16 22:41:19 +01:00
Klaus Basan
0da1881003 Ref T709, added support for taxi lights in XPlane, using the "bundle lights" flag 2019-09-16 22:41:19 +01:00
Klaus Basan
6e90ec5c72 Ref T709, added settings for lights and message box margins 2019-09-16 22:41:18 +01:00
Klaus Basan
024360a5df Ref T709, avoid pure virtual assert by removing the JSON ctor, which is calling a virtual function in the ctor 2019-09-16 22:41:18 +01:00
Klaus Basan
0b728053f0 Ref T709, smaller style changes 2019-09-16 22:41:17 +01:00
Klaus Basan
26afc5160d Improved logging of "adding aircraft" so we can see details such as the model string 2019-09-16 22:41:17 +01:00
Klaus Basan
d947baf344 Ref T709, doxygen 2019-09-16 22:41:17 +01:00
Mat Sutcliffe
7295ac5331 Ref T709 Encapsulate the CSettingsProvider pointer in a CSettingsAware base class. 2019-09-16 22:41:17 +01:00
Mat Sutcliffe
463ed4bfbd Ref T709 Made settings provider non-static. 2019-09-16 22:41:16 +01:00
Mat Sutcliffe
349da3633b 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-09-16 22:41:16 +01:00
Mat Sutcliffe
2e571b72fd Update libxplanemp. 2019-09-16 22:41:15 +01:00
Mat Sutcliffe
db146435fd Added a new clazy warning. 2019-09-16 22:41:15 +01:00
Klaus Basan
93bf6cb44c Ref T709, avoid camera below ground if aircraft is on ground 2019-09-16 22:41:15 +01:00
Klaus Basan
55690b423f Ref T709, review points
* overload "normalize"
* renamed to CSettingsProvider
2019-09-16 22:41:15 +01:00
Klaus Basan
741843d0c6 Make sure listener does NOT restart when settings are updated, but DBus address did not change (set member correctly) 2019-09-16 22:41:14 +01:00
Klaus Basan
add649c321 Ref T709, improved normalization and space pressed handling, unit test 2019-09-16 22:41:14 +01:00