Commit Graph

9081 Commits

Author SHA1 Message Date
Klaus Basan
1238357749 String utility function for balanced quotes 2020-06-12 18:42:26 +01:00
Klaus Basan
09a3447047 Style 2020-06-12 18:42:25 +01:00
Klaus Basan
1266ca53ce [experimental, audio] try to avoid taskbar MIC flickering
* sometimes the MIC icon in the windows task bar is flickering (on/off)
* this workaround tries to avoid this
2020-06-12 18:42:25 +01:00
Klaus Basan
b9c6541a55 Add default unit for "rec.gnd.positions" radius
* utility functions
* append default unit to PQ string if needed
2020-06-12 18:42:25 +01:00
Klaus Basan
6b6a6e0d8e [emulated driver] minor fixes
* dialog size
* update sim.value UI fields if emulated simulator changes
* renamed function
2020-06-12 18:42:25 +01:00
Klaus Basan
7dcfed613f [AFV] style: use "m_" prefix as it makes the functions easier to read 2020-06-12 18:42:25 +01:00
Klaus Basan
34817a83d5 [AFV] Guard against "missing" crypto channel (=> ASSERT) 2020-06-12 18:42:24 +01:00
Klaus Basan
481833b003 BLACK_AUDIT_X for killTimer, trace Qt killTimer warnings in "our" code 2020-06-12 18:42:24 +01:00
Mat Sutcliffe
4ca3a925ce [xswiftbus] FramePeriodSampler: hook into a different render phase
Was previously using cockpit phase,
which wouldn't work when the view was external.
2020-06-12 18:42:24 +01:00
Mat Sutcliffe
de037af702 [xplane] Allow disabling terrain probe for diagnosing performance issues 2020-06-12 18:42:24 +01:00
Mat Sutcliffe
0017df0bb3 Fix missing BLACK_METAMEMBER in CXSwiftBusSettings 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
e50bb6d5c7 [xplane] Add monitoring of the number of minutes behind due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
377b2f6a3e [xplane] Add monitoring of the number of track miles lost due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
3a73933cf1 [xswiftbus] Stop logging probe failures after a certain number
To avoid flooding the log with messages.
2020-06-12 18:42:22 +01:00
Mat Sutcliffe
90b307d868 [xswiftbus] log message when terrain probe fails to find ground elevation 2020-06-12 18:42:22 +01:00
Mat Sutcliffe
e1a894f81a [xswiftbus] use $$files in qmake so files show up in VS IDE solution explorer 2020-06-12 18:42:22 +01:00
Mat Sutcliffe
4bfa5d5f40 Fix assert due to NaN in CXSwiftBusTrafficProxy::getElevationAtPosition 2020-01-25 16:55:51 +00:00
Mat Sutcliffe
dc6382d1bd [qmake] Support for Clang on MinGW 2020-01-25 16:55:51 +00:00
Klaus Basan
08c004e69b [AFV] Connect the network status change signal on both sides (core+UI),
as both sides can have independent audio (AFV) clients

This solves the issue that users have to restart audio on a "remote" swift GUI
2020-01-25 16:55:19 +00:00
Klaus Basan
ecf5d45993 Use qint64 for times as all QTimer values are qint64 (avoid warnings) 2020-01-24 21:11:57 +01:00
Klaus Basan
7f75e7a061 Minor UI fix 2020-01-24 19:43:17 +01:00
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
a1ea9a2e10 Fixed unit test warnings as discussed, see https://discordapp.com/channels/539048679160676382/539925070550794240/663426372651319336 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