Commit Graph

8754 Commits

Author SHA1 Message Date
Klaus Basan
12f50dc92c [FSD] Check for empty string in FSD serializer
* follow up of Q_UNREACHABLE
* without that check the UNIT test fails, as BLACK_AUDIT is called
2020-01-23 04:08:03 +01:00
Klaus Basan
c46ca3c616 [AFV] restart function 2020-01-22 20:02:01 +01:00
Klaus Basan
5f6912e814 [AFV] deadlock prevention in AFV client,
follow up of fixing the loading of audio settings

* use "m_mutexSampleProviders" for finer granularity
* call output/input volume in AFV client thread (avoid potential deadlocks)
* tryLock for a critical part which has caused deadlocks in the past (just precautionary)

remarks:
* mixing QTimer::singleShot and QMutex is mixing two concepts (not good)
* this is just a pragmatic apporach at this time to avoid some noticed issues as the AFVClient was 1st running in the main thread, then was moved into background (improved performance)
2020-01-22 19:47:25 +01:00
Klaus Basan
4d5e3ee0ae Init context devices deferred as the settings are ONLY available after DBus is initialized
* we init in a context constructor
* a this time it is not clear:
** if we will use a DBus scenario
** or standalone scenario
2020-01-22 19:46:14 +01:00
Klaus Basan
4378b6c959 Detect if running with DBus (core + GUI) or just "standalone" (no swift DBus) 2020-01-22 19:46:14 +01:00
Klaus Basan
2704d5e542 minor UI adjustments 2020-01-22 19:46:14 +01:00
Klaus Basan
f9bc5ceec4 Trivial 2020-01-22 19:46:14 +01:00
Klaus Basan
bda20f8ff1 Ignore queries in FSD serializer, follows "Q_UNREACHABLE" fixes
See https://discordapp.com/channels/539048679160676382/539925070550794240/669186795790925848
2020-01-22 19:46:14 +01:00
Klaus Basan
bd39b0638c Q_UNREACHABLE fix, minor style adjustments 2020-01-18 20:15:24 +01:00
Klaus Basan
785dc7f016 [XPlane][FG] Q_UNREACHABLE removal follow up
* removed CSimulatorXPlane::connectionFromString as this only works for session DBus
* renamed to "checkConnectionViaSessionBus"
* discussed around here: https://discordapp.com/channels/539048679160676382/539925070550794240/668105458300485652
2020-01-18 18:46:19 +01:00
Klaus Basan
2ff46c5e11 FPS (XPlane) formatting 2020-01-18 02:50:24 +01:00
Klaus Basan
6284ed0c5a Minor style adjustments 2020-01-18 02:48:28 +01:00
Klaus Basan
5542fcd7d3 Unified how settings are read in audio context 2020-01-18 02:46:56 +01:00
Klaus Basan
455dc23b84 Utility function "isDefault" in settings cache 2020-01-15 02:44:32 +01:00
Klaus Basan
143ac8576a Log.category for DBus server 2020-01-15 02:44:32 +01:00
Mat Sutcliffe
9dee6acef9 Update libxplanemp 2020-01-13 18:53:31 +00:00
Mat Sutcliffe
0a2001a68e [xswiftbus] Use std::string_view for performance in CDBusMessage
This avoids repeated dynamic memory allocations in dbusMessageHandler
methods and elsewhere due to repeatedly constructing temporary strings.

std::string_view is a C++17 feature but also part of the Library
Fundamentals TS and available in all our compilers.
2020-01-13 18:53:31 +00:00
Mat Sutcliffe
0c444ca45c [xswiftbus] Using raw string literal delimiter so parentheses can be embedded in the XML 2020-01-13 18:53:31 +00:00
Mat Sutcliffe
cd716bdfd5 [xswiftbus] Added missing method signatures 2020-01-13 18:53:30 +00:00
Mat Sutcliffe
20a2f3b9e7 [XP driver] Using unsigned for timer call counters, to avoid UB on overflow 2020-01-13 18:53:30 +00:00
Mat Sutcliffe
35cfaebc7d [xplane] Added display of simulation time ratio in simulator component 2020-01-13 18:53:30 +00:00
Klaus Basan
c88b05a734 [AFV] Do not show audio LED on if audio is disabled 2020-01-10 01:26:21 +01:00
Klaus Basan
8c5fe89f6c [Windows registry] Allow to clean all swift registry entries
* for uninstallation
* few users reported a hanging (white screen) swift issue, solved by "cleaning the registry"

see https://discordapp.com/channels/539048679160676382/539925070550794240/664557031784448010
2020-01-09 20:25:59 +01:00
Klaus Basan
e5449347e0 [qss] Format QTableView "corner" 2020-01-07 19:57:28 +00:00
Klaus Basan
9dc85da42d Text message view, scroll down if sorted by timestamp 2020-01-07 19:57:28 +00:00
Klaus Basan
8eaa4f7f15 Qt 5.14 hi-res adjustments, as HI-DPI screen handling has changed
* see // https://lists.qt-project.org/pipermail/development/2019-September/037434.html
* qss adjustemnts
* larger default sizes for core/launcher/client for 1920x1080 screens
2020-01-07 19:57:28 +00:00
Klaus Basan
2a3fd0e94c Style 2020-01-07 19:57:28 +00:00
Klaus Basan
72c3abb1e7 [xswiftbus] display FPS in simulator data window
* added driver getAverageFPS function
* display in simulator component
2020-01-07 19:57:28 +00:00
Klaus Basan
548a12a502 Style 2020-01-07 19:57:28 +00:00
Klaus Basan
7d068cf979 Fix deprecated in GUI utility class 2020-01-07 19:57:27 +00:00
Klaus Basan
f8e8318902 Log.category for FSD and minor style changes 2020-01-07 19:57:27 +00:00
Mat Sutcliffe
bb65506d22 Fix version number embedding in Windows EXE and DLL files
Remove our Windows resource files (*.rc)
and let qmake generate them instead.
2020-01-07 19:57:27 +00:00
Mat Sutcliffe
f056d4fcd6 New schema for the 4th segment of the swift version number
Based on a count of the number of commits since
any of the first 3 segments were changed.
2020-01-07 19:57:26 +00:00
Mat Sutcliffe
516c8a2fce [xswiftbus] Added FPS monitoring 2020-01-07 19:57:26 +00:00
Mat Sutcliffe
836eb107a3 Smart xswiftbus compatibility check based on git commit SHA-1
This is more tolerant that the simple check based on version numbers.
Different versions can be compatible if they have the same SHA-1 when
considering only those files that can influence xswiftbus.
2020-01-07 19:57:25 +00:00
Mat Sutcliffe
48d1521d3a Correct filename extension 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
fdce6824d2 Added missing includes 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
25946d1141 QDataStream has operators for enums since Qt 5.14 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
1f0c65135d Use qmake $$files function to match wildcards
See https://bugreports.qt.io/browse/QTBUG-81003
2020-01-07 19:57:24 +00:00
Klaus Basan
60ba3ca67f [xswiftbus] Protected destructor to avoid GCC/Clang warning 2020-01-07 19:57:24 +00:00
Klaus Basan
081e663997 FSD text message 2020-01-07 19:57:24 +00:00
Klaus Basan
30036b6b82 Dot command "help" 2020-01-07 19:57:24 +00:00
Klaus Basan
12fbd87bbc Ref T723 [xswiftbus] UI/settings for TCAS enabled and debug mode
* UI checkboxes added
* Qt free settings updated
2020-01-07 19:57:24 +00:00
Mat Sutcliffe
0f6b7d910e Ref T723 [xswiftbus] Expose configuration to enable/disable TCAS traffic 2020-01-07 19:57:24 +00:00
Mat Sutcliffe
8d204cded1 Ref T723 [xswiftbus] Expose configuration for render phase debug messages 2020-01-07 19:57:24 +00:00
Mat Sutcliffe
95d273442c Update libxplanemp 2020-01-07 19:57:24 +00:00
Klaus Basan
b3ad7ccdd9 Query real names for ATC stations again,
so we learn about changed "persons" (i.e. real name)

see https://discordapp.com/channels/539048679160676382/632279098244333581/655740912336633868
2020-01-07 19:57:24 +00:00
Klaus Basan
524a9b3793 ATC stations, style and minor fixes 2020-01-07 19:57:23 +00:00
Roland Rossgotterer
d29dec81d7 [FS9] Test connection via FSUIPC in listener
Checking whether the FS2004 host is connected is not enough since we rely
on FSUIPC. Do not activate the simulator if FSUIPC is not available (e.g.
not installed).
2020-01-07 19:57:23 +00:00