Commit Graph

6768 Commits

Author SHA1 Message Date
Klaus Basan
6a9bde5095 DEnglish 2019-02-22 20:35:23 +00:00
Klaus Basan
f6ce579f67 Ref T506, allow to init overlay messages, passivate text messages, improved tab widget selection 2019-02-22 20:35:23 +00:00
Klaus Basan
419f8c0907 Dock widget fixmes 2019-02-22 20:35:23 +00:00
Klaus Basan
f684c44c1d XSwiftBus check 2019-02-22 20:35:23 +00:00
Klaus Basan
58cfdd1bb9 Ref T492, alias in model lists and model
Search for alias and modelstring in matching
2019-02-22 20:35:22 +00:00
Klaus Basan
80e925fe80 Ref T492, added model alias 2019-02-22 20:35:22 +00:00
Klaus Basan
49a49f48ee Minor UI adjustments 2019-02-22 20:35:22 +00:00
Roland Rossgotterer
845c7ddf59 Add swift_crashpad_handler to Linux installer
Summary:
swift_crashpad_handler for Linux was part of externals but was never copied to out/
and also never copied into the installer.

Reviewers: #gatekeepers

Differential Revision: https://dev.swift-project.org/D96
2019-02-22 20:35:22 +00:00
Roland Rossgotterer
27b857abc4 [XSwiftBus] Remove unconditional socket error handling
Summary:
Socket errors are handled in libdbus conditionally. There was no need to set an error
on any kind of error code.
This caused libdbus to drop our P2P connection, since MacOS regularly raised
EAGAIN warning on the socket which seems to be expected behavior.

Reviewers: #gatekeepers

Maniphest Tasks: T513

Differential Revision: https://dev.swift-project.org/D95
2019-02-22 20:35:21 +00:00
Mat Sutcliffe
0eed065e84 Fixed typo in filename. 2019-02-22 20:35:20 +00:00
Roland Rossgotterer
6d905f2132 Fix crash and memory leaks in MacOS' keyboard implementation 2019-02-22 20:35:18 +00:00
Roland Rossgotterer
9a7af86a5e Loop over the container itself instead of a temporary value list 2019-02-22 20:35:17 +00:00
Roland Rossgotterer
8df4024bde Regularly update X-Plane simulated aircraft
The simulated aircraft object has been set only once for each X-Plane aircraft as soon as adding to the simulator succeeded. Any updates to transponder codes, modes etc. were missed and never updated.
To make sure we always have the latest information available, we update all known X-Plane aircraft every second in the slow timer tasks.

Manifest Tasks: T502
2019-02-22 20:35:17 +00:00
Roland Rossgotterer
4c99ac4fa9 Fix typo 2019-02-22 20:35:17 +00:00
Roland Rossgotterer
94c2859e18 Replace QDBusConnection::localMachineId with QSysInfo::machineUniqueId()
QSysInfo::machineUniqueId() was added in Qt 5.11 and is using DBus independent unique machine ids everywhere except on Linux. This prevents running into an assert in case DBus is not properly installed at a very early stage of the application without any chance to give the user a warning and handle it gracefully.
2019-02-22 20:35:16 +00:00
Roland Rossgotterer
f9a215a336 Increase ATIS range to be equal with APP/DEP having 150 nm
Summary: The previous 50 nm were too short.

Maniphest Tasks: T481

Differential Revision: https://dev.swift-project.org/D83
2019-02-22 20:35:16 +00:00
Roland Rossgotterer
90bc693509 Handle a hypothetical relative humidity of 0.0 %
Summary:
The formular to calculate the dew point is not defined for relative
humidity of 0.0 %. It is every unlikely to ever happen in real world
weather, but is handled just in case by using the smallest possible
numerical double value.

Reviewers: #swift_pilot_client

Maniphest Tasks: T406

Differential Revision: https://dev.swift-project.org/D82
2019-02-22 20:35:16 +00:00
Roland Rossgotterer
3db811f11d Handle initial null position from CCoordinateDialog
Summary:
CCoordinateDialog is setup with an initial null position. The user has to manually set one in case own aircraft position is de-selected to proceed with weather fetching. Previously the null position was accepted and passed on to the weather request with undefined results.

Reviewers: #swift_pilot_client

Maniphest Tasks: T406

Differential Revision: https://dev.swift-project.org/D81
2019-02-22 20:35:16 +00:00
Mat Sutcliffe
e7582f2f3c Move function-scope static QThreadStorage objects to namespace scope
to ensure destruction after all function-scope statics and avoid warning
"thread exited after QThreadStorage destroyed".
2019-02-22 20:35:15 +00:00
Mat Sutcliffe
1493106970 Style: removed outdated comments and includes. 2019-02-22 20:35:15 +00:00
Mat Sutcliffe
1f83d677f3 Changed BLACK_FALLTHROUGH to Q_FALLTHROUGH(). 2019-02-22 20:35:12 +00:00
Mat Sutcliffe
0c5442d59c Fixed unintentional fallthrough in switch statement. 2019-02-22 20:35:12 +00:00
Mat Sutcliffe
afd9541eb3 Removed workaround for MinGW 5.3. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
4d4d7a7854 Added missing override keyword. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
66a06427f9 Ref T495 Using QThreadStorage because thread_local caused a static destruction order fiasco. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
80308b85d5 Changed QOverload to qOverload. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
03e68de890 Removed workarounds for old versions of MSVC. 2019-02-22 20:35:10 +00:00
Klaus Basan
b5ffa57fe8 Ref T444, Ref T471 style/comment 2019-02-22 20:35:10 +00:00
Klaus Basan
7be54fde87 Display number of included/DB models in "1st model set wizard" 2019-02-22 20:35:10 +00:00
Klaus Basan
2de192600f Reduced hard coded stylesheet values
* disabled hardcoded wizard pages style sheet
* adjusted style sheet
* fixed QMneu issue: https://stackoverflow.com/questions/53991839/qt-5-12-menu-items-with-unwanted-extra-space
* tagged remaining ones as "\fixme hardcoded"
2019-02-22 20:35:10 +00:00
Klaus Basan
cd095dbb3f Misc. smaller UI adjustments/style 2019-02-22 20:35:09 +00:00
Klaus Basan
e85680f1b0 Improved livery filter bar and filer, accept virtual airline designators 2019-02-22 20:35:09 +00:00
Klaus Basan
8bb7eb5d2b Minor wizard UI adjustments 2019-02-22 20:35:09 +00:00
Klaus Basan
d28b09141b PTT click sound as a follow up of Ref T494 2019-02-22 20:35:08 +00:00
Klaus Basan
427c23c5e4 Ref T494, play notification for callsign mentioned
* added audio settings in text message component
* play sound for callsign mentioned in text body
2019-02-22 20:35:08 +00:00
Klaus Basan
90b893c62a Ref T494, moved audio settings Trait directly info BlackMisc settings file 2019-02-22 20:35:07 +00:00
Klaus Basan
13647329f9 Ref T494, fixed voiceroom member updates
* changedUrl was actually equal URL, no idea how this ever did work out
* unnecessary redundant updates of voice room members fixed
2019-02-22 20:35:07 +00:00
Klaus Basan
3be93ab753 Ref T494, audio settings for notification
* use new sounds
* fixed bug that changes of notifications were never set in settings
* play sound if box is checked (how hoes it sound?)
2019-02-22 20:35:07 +00:00
Klaus Basan
3137af30bb Ref T494, detect callsign in text message 2019-02-22 20:35:07 +00:00
Klaus Basan
f8c17e10e8 Ref T494, CNotificationSounds refactring
* use Q_DECLARE_FLAGS NotificationFlag/Notification for sounds, not the weird version from very early swift days
* splt into h/cpp files
* added new sounds
2019-02-22 20:35:06 +00:00
Klaus Basan
dc8ea83839 Ref T494, added new sounds 2019-02-22 20:35:06 +00:00
Klaus Basan
80ed972e53 Ref T494, style
* removed some old "foreach" loops
* fixed some CLANG warnings
2019-02-22 20:35:05 +00:00
Klaus Basan
cb084427ec Unified "simplification" to ASCII only for text messages
Based on the codepage discussion of text messages

* in text message value object still store the unicode string
* the text is only "cleaned" up and Qt "simplified" (do not confuse with conversion to ASCII)
* only place where we simplify to ASCII only is
** in VATLIB
** or the utility
2019-02-22 20:35:05 +00:00
Klaus Basan
1e35519a0d Added some resources (URLs) after the text message discussion 2019-02-22 20:35:05 +00:00
Klaus Basan
03ac54cefa Ref T491, style/minor tweaks 2019-02-22 20:35:05 +00:00
Klaus Basan
e810dfecf5 Ref T489, display read state in model component for livery, airline, aircraft
* similar to model component
* distributor/countries too few data to benefit, hence not implemented
2019-02-22 20:35:04 +00:00
Klaus Basan
ea7694248e Ref T491, prevent standard message tab from closing, search tabs from right to left 2019-02-22 20:35:04 +00:00
Klaus Basan
7a6a822432 Typo fixed, displaying station name on wrong tab 2019-02-22 20:35:04 +00:00
Klaus Basan
c14235cbf8 Mapping wizard UI adjustments 2019-02-22 20:35:04 +00:00
Klaus Basan
003ad0f0de Ref T490, "ps_read" replacement 2019-02-22 20:35:03 +00:00