Commit Graph

4938 Commits

Author SHA1 Message Date
Klaus Basan
5d4c022dc0 Ref T140, too many warnings when wrong XPDR code is received.
Demoted to debug message.

Slack: https://swift-project.slack.com/archives/C04J6J76N/p1504365879000106
2017-09-24 19:54:01 +01:00
Klaus Basan
782639e7c9 Allow to use status message debug() with << like info(), ...
Slack discussion: https://swift-project.slack.com/archives/C04J6J76N/p1504372206000004
2017-09-24 19:54:00 +01:00
Klaus Basan
7946fd8d18 Ref T146, improved login component
* logoff countdown can be stopped
* login mode (normal, obs, ..) shown
2017-09-24 19:53:59 +01:00
Klaus Basan
adfd341cbc Ref T146, avoid double clicks for "connect button" using disableButtonBriefly 2017-09-24 19:53:57 +01:00
Klaus Basan
b6ca59eda8 Ref T146, minor adjustments in keypad area
* removed keypadIdentifier()
* private slots -> private
2017-09-24 19:53:56 +01:00
Klaus Basan
7ad666c346 Ref T146, read only mode for login mode (so it can be used as display only UI element)
Also some minor tweaks/formatting
2017-09-24 19:53:54 +01:00
Klaus Basan
946bdb964e Ref T146, added icons 2017-09-24 19:53:53 +01:00
Klaus Basan
6f1ba6945c Ref T146, removed private slots in login component, using normal private functions 2017-09-24 19:53:51 +01:00
Klaus Basan
b49b7f8c71 ASSERT when CContinuousWorker::quitAndWait is called by object thread -> deadlock 2017-09-24 19:53:50 +01:00
Klaus Basan
2a8e2331a3 Return background updater functions when shutting down 2017-09-24 19:53:48 +01:00
Klaus Basan
0dfe6f69fe Minor fixes when reporting T141
* user authenticated must be enabled/valid
* Read only: BlackMisc::CDataReadOnly<BlackCore::Data::TAuthenticatedDbUser>
* clear user fields when not authenticated
2017-09-24 19:53:47 +01:00
Klaus Basan
2dfc56dc39 Formatting 2017-09-24 19:53:45 +01:00
Klaus Basan
9ba61cacf6 Ref T138, allow multi line messages 2017-09-24 19:53:44 +01:00
Mathew Sutcliffe
9da798e470 Ref T155 Log category for CValuePage. 2017-09-24 19:53:43 +01:00
Mathew Sutcliffe
de11f7fe35 Correctly remove session cache value of expired session.
Summary:
`CDataCacheRevision` stores current working timestamps in `m_timestamps` and stores complete timestamps (including unadmitted deferred values) in `m_originalTimestamps`. A value is "in" the cache if and only if its timestamp is in `m_timestamps`. In `writeNewRevision` the `.rev` file is written based on `m_originalTimestamps` so that unadmitted deferred values don't get lost.

Session cache works by removing timestamps that were not created in the current session. But it needs to remove from both `m_timestamps` and `m_originalTimestamps` so that old session cache values can't get recreated by `writeNewRevision`.

Test Plan: Currently being evaluated by @kbasan to check that it does not introduce unintended consequences.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: #swift_pilot_client, kbasan

Subscribers: jenkins, kbasan

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D53
2017-09-24 19:53:41 +01:00
Mathew Sutcliffe
e98662d530 Allow setting VATSIM key on qmake commandline.
Summary: By qualifying the key with `isEmpty` it prevents overwriting a value specified on the commandline.

Reviewers: rwinklmeier

Reviewed By: rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D51
2017-09-24 19:53:40 +01:00
Mathew Sutcliffe
f1211d328e Delete QDBusServiceWatcher when unloading X-Plane driver.
Summary:
When unloading a sim driver, first its threads are killed, then the driver object is destroyed.

This means that when the `QDBusServiceWatcher` child object is destroyed, it deadlocks waiting for a thread that was already killed (T147).

This change causes the `QDBusServiceWatcher` to be deleted before the driver is unloaded.

Reviewers: #swift_pilot_client, kbasan, rwinklmeier

Reviewed By: #swift_pilot_client, kbasan, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D50
2017-09-24 19:53:38 +01:00
Roland Winklmeier
e2b00f1f9b Fix typo in header guard 2017-09-24 19:53:37 +01:00
Roland Winklmeier
27f97e8ac8 Implement interpolator mode for FS9
Summary:
This implementation will always return true if we were setting the mode,
since we cannot easily access the return value from
CInterpolatorMulti::setMode in a thread safe manner.

Reviewers: #swift_pilot_client, kbasan, msutcliffe

Reviewed By: #swift_pilot_client, kbasan, msutcliffe

Subscribers: kbasan, jenkins

Differential Revision: https://dev.swift-project.org/D52
2017-09-24 19:53:35 +01:00
Roland Winklmeier
09da34d8f0 Update of sound effect files
- error
- frequencymessage
- privatemessage
- voiceroomjoined
- voiceroomleft

ref T119
2017-09-24 19:53:34 +01:00
Roland Winklmeier
0b40450f7b Remove xswiftbus from installer
Summary:
xswiftbus is now a downloadable standalone X-Plane fat plugin and should
no longer be packaged into the installer.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Maniphest Tasks: T123

Differential Revision: https://dev.swift-project.org/D49
2017-09-24 19:53:32 +01:00
Klaus Basan
2b3b173b76 Default calculation of distance/bearing for airports. Follow up of the discussion in slack/during T125
Summary: Default calculation of distance/bearing for airports.

Reviewers: msutcliffe, rwinklmeier

Reviewed By: msutcliffe, rwinklmeier

Subscribers: jenkins

Maniphest Tasks: T125

Differential Revision: https://dev.swift-project.org/D48
2017-09-24 19:53:31 +01:00
Klaus Basan
73556492fd Ref T125, use XSwiftBus download component
* as dialog in distribution component
* in wizard
2017-09-24 19:53:29 +01:00
Klaus Basan
76c1b0307c Ref T125, UI component to download and install XSwiftBus
* currently working only for alpha directory
* 1st version, maybe currently too much logic (download etc.) in an UI component
2017-09-24 19:53:28 +01:00
Klaus Basan
dec5eff0c6 Ref T125, service to download and save file in directory 2017-09-24 19:53:26 +01:00
Klaus Basan
50442e6f13 Ref T125, value class for remote files (i.e. files downloaded). Corresponds with backend service T132 2017-09-24 19:53:24 +01:00
Klaus Basan
8d72fe5285 Ref T125, allow to use std::function with CSlot 2017-09-24 19:53:23 +01:00
Klaus Basan
d4b027b6bd Ref T125, X-Plane config now only XSwiftBus settings, no longer installation 2017-09-24 19:53:21 +01:00
Klaus Basan
329b0512eb Ref T125, utility functions 2017-09-24 19:53:20 +01:00
Klaus Basan
c6f3a7033d Ref T125, own component for XSwiftBus settings. This component can be used in the installation and plugin UI. 2017-09-24 19:53:18 +01:00
Klaus Basan
12db652ccf Ref T125, renaming areAllDataRead => areAllInfoObjectsRead 2017-09-24 19:53:17 +01:00
Klaus Basan
53189eafd5 Ref T125, human readable file size 2017-09-24 19:53:15 +01:00
Klaus Basan
8c032fb4d7 Ref T125, allow to get distribution list by JSON string. Also setup value object directly using JSON string now. 2017-09-24 19:53:13 +01:00
Klaus Basan
15f5a7f489 Ref T125, URL for XSwiftBus file info webservice 2017-09-24 19:53:12 +01:00
Klaus Basan
0bbad2ff83 Minor tweaks (found during T125)
* formatting/typos
* authentication: private slots => private
2017-09-24 19:53:10 +01:00
Klaus Basan
ca651877cd Load overview component fixes and formatting
* this->m_XX => m_XX
* private slots => private
* GUI updates only via digest signal, and slower (was called too often)
* flag to avoid gui updates when another gui update is still in progress (possible because of canConnect/processEvent situation)
2017-09-24 19:53:09 +01:00
Klaus Basan
a993ccd1c1 Fix CApplication::processEventsFor so it can be used in samples/unit tests 2017-09-24 19:53:07 +01:00
Klaus Basan
769e3a0e29 Based on slack discussion MS/KB: Show airports in range also when simulator is connected, but network is not. Remark: distance and bearing columns are not calculated in that case. See T125 comment for details. 2017-09-24 19:53:06 +01:00
Klaus Basan
65bd2d20ad Ref T125, X-Plan utility functions and moved XSwiftBus settings in own file 2017-09-24 19:53:03 +01:00
Klaus Basan
104d869c19 Ref T125, fixed to static const 2017-09-24 19:53:01 +01:00
Klaus Basan
16c2881e6a New FSD testserver (on swift machines) 2017-09-24 19:53:00 +01:00
Klaus Basan
d995bcf59c Ref T126, fixed too early timeout
* use timeout timestamp
* used approch with trials was wrong, as number of trials also depends on number of reader
2017-09-24 19:52:58 +01:00
Klaus Basan
f694ded5f2 Preparation of T126: Minor tweaks, renaming and formatting of InfoDataReader
* unified member access (this->m_xy => m_xy)
* set object name of readers
* waitForSharedInfoObjectsThenRead (not just waiting, also reading afterwards)
2017-09-24 19:52:56 +01:00
Mathew Sutcliffe
2387edb5a0 Removed C++14 digit separator as it confuses doxygen.
See https://bugzilla.gnome.org/show_bug.cgi?id=786382
2017-09-24 19:52:54 +01:00
Mathew Sutcliffe
1888367e95 T37 T134 Removed asserts that reflect broken assumptions. 2017-09-24 19:52:53 +01:00
Mathew Sutcliffe
1cd471873f T37 T133 removeOutdatedParts shall always preserve one outdated parts
to make sure there is enough information to reliably interpolate.
2017-09-24 19:52:51 +01:00
Mathew Sutcliffe
de13fc51cb T37 T130 Workaround to consolidate time offset to all places it is needed. 2017-09-24 19:52:50 +01:00
Mathew Sutcliffe
f9ae3efaa3 T37 Avoid division by zero in case time offset is zero. 2017-09-24 19:52:49 +01:00
Mathew Sutcliffe
98e0f8c875 T37 T127 Send timestamps to XSwiftBus as separate timestamp and offset
as the offset is needed for reliable interpolation.
2017-09-24 19:52:46 +01:00
Mathew Sutcliffe
aaeb2e8ceb T37 Fixed wrong parameter names. 2017-09-24 19:52:44 +01:00