Commit Graph

9053 Commits

Author SHA1 Message Date
Mat Sutcliffe
8da9561e91 [qmake] Added warning when 4th version part schema logic fails 2020-06-12 18:42:30 +01:00
Klaus Basan
4183a67e1f Dock widget minor style issues 2020-06-12 18:42:30 +01:00
Klaus Basan
62e74092ba Remove Qt::QueuedConnection from addAction
* the parameter is actually the shortcut, not the connection type
* caused odd characters in Qt 5.14.1 context menu
2020-06-12 18:42:30 +01:00
Klaus Basan
8f4c4a249c [5.14.1] UI adjustments
* OS native check of screen resolution (Qt free, experimental)
* changed rounding
* use string for scale factor so we can use fractions as 2/3
* utility functions to clean numbers, parse fractions

It looks like:

* my WIN10 scaling is 250%
* obviously swift rounds that to 3 (device ratio)
* now using FLOOR policy down-rounding to 2
* rational: scaling up (scale factor) is better as down-scaling as the factors would be clearer
* 2->3 1.5, but 3->2 means 0.66667
2020-06-12 18:42:30 +01:00
Klaus Basan
52de67a72f Guard for "CLoginComponent::onWebServiceDataRead" 2020-06-12 18:42:30 +01:00
Klaus Basan
86c8568bf2 Fixes some CLANG warnings (QtC IDE checks, nevertheless does not harm to fix them) 2020-06-12 18:42:30 +01:00
Roland Rossgotterer
15ced5a77f [FSD] Ignore client query type 'NEWATIS' from private FSD servers 2020-06-12 18:42:30 +01:00
Klaus Basan
0482b9883d [DB readers] misc fixes found during "datastore down" investigation
* added CEntityFlags::AircraftCategoryEntity in config lists
* flag to name
* missed initial reading of categories
* style
2020-06-12 18:42:30 +01:00
Mat Sutcliffe
39907bf7ea [XP driver] fixed bug that inverted engines on/off state 2020-06-12 18:42:30 +01:00
Mat Sutcliffe
5acb7c52b5 Update Qt version 2020-06-12 18:42:29 +01:00
Roland Rossgotterer
5366e2e1cf Revert 8c7475f620 after upgrade to Qt 5.14.0 2020-06-12 18:42:29 +01:00
Roland Rossgotterer
f60a44ea1e [FS9] Fix double deletion of CFs9Host
CFs9Host was guarded by a QSharedPointer plus it had a QObject parent.
2020-06-12 18:42:29 +01:00
Roland Rossgotterer
23c41a408b Separate debug info for MinGW builds 2020-06-12 18:42:29 +01:00
Roland Rossgotterer
6f55d8cb8a MinGW no longer uses the debug suffix. MSVC is the only one > Qt 5.14 2020-06-12 18:42:29 +01:00
Klaus Basan
655209333c [FS family] follow up of the log. message changes,
display a confirmation if user wants to see all the details

Based on RPs comment here: https://discordapp.com/channels/539048679160676382/594962359441948682/674013220687577109
2020-06-12 18:42:29 +01:00
Klaus Basan
00ed15f111 Ref T775, special handling for "broadcast" messages
* identify broadcast messages
* do NOT play sound
* use "own" tab for text messages (group together)
2020-06-12 18:42:29 +01:00
Klaus Basan
4de544a991 Ref T773, minor log.display improvements 2020-06-12 18:42:28 +01:00
Klaus Basan
b4a7d59b7b Ref T773, allow to "fake" elevations for testing purposes and improved elevation logging in the interpolation log. display
* history of requested elevations
* bogus elevations for testing if needed (mostly to test the display)
2020-06-12 18:42:28 +01:00
Klaus Basan
e47dea2967 Set cursor back if displaying x,y,z 2020-06-12 18:42:28 +01:00
Klaus Basan
812619470b Ref T773, style and comments 2020-06-12 18:42:28 +01:00
Klaus Basan
9924eb4551 [FS family] improved parsing of quoted model strings 2020-06-12 18:42:28 +01:00
Klaus Basan
b2d94e5f63 [FS family] model loader improvements
* better load message handling, display details
* allow to load without "air" files in dev. environment (testing)
2020-06-12 18:42:27 +01:00
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