Commit Graph

6362 Commits

Author SHA1 Message Date
Klaus Basan
eed3eeb700 Ref T415, utility function to parse "ini"-file 2018-11-04 17:42:45 +01:00
Klaus Basan
ab4b4c5067 Style 2018-11-04 17:42:45 +01:00
Klaus Basan
9293989a78 Doxygen comments 2018-11-04 17:42:45 +01:00
Klaus Basan
b1942282f5 Reorder login page
* 2 sections: login/logoff status
* select server, then details (not in same tab widget which is misleading)
* call readonly on subforms
2018-11-04 17:42:44 +01:00
Klaus Basan
e727b29753 No "exit" (qFatal) for unknown VATLIB error, just error
Rational: Why shutdown the client in that very case, terminate connection is enough
2018-11-04 17:42:44 +01:00
Klaus Basan
3cbdfc1675 Ref T408, add callsign to window title when connected 2018-11-04 17:42:44 +01:00
Klaus Basan
c52101709a Ref T408, function to append extra info to title 2018-11-04 17:42:44 +01:00
Klaus Basan
d7380966de Style 2018-11-04 17:42:44 +01:00
Klaus Basan
793265722f Ref T411, set SimObject directory from file browser + UI adjustments 2018-11-04 17:42:44 +01:00
Klaus Basan
259aab3c10 Ref T397, Ref T297 split "isInterimPositionUpdateEnabledForServer" into 2 functions and ignore incoming interim positions if disabled 2018-11-04 17:42:44 +01:00
Klaus Basan
19b591dce8 Ref T397, Ref T297 VATSIM default is sending parts only 2018-11-04 17:42:44 +01:00
Klaus Basan
07f44fc520 Ref T411, confirmation before values are overridden 2018-11-04 17:42:44 +01:00
Klaus Basan
e4e39b6579 Added comments 2018-11-04 17:42:44 +01:00
Klaus Basan
dd7e38b2e0 Ref T397, Ref T297 renamed parameter to "allowTestAltitudeOffset" 2018-11-04 17:42:44 +01:00
Klaus Basan
cc4aec8f3c Ref T412, added "movedAircraft" and fixed missing relay of proxy signals 2018-11-04 17:42:44 +01:00
Klaus Basan
10f0f175c8 Minor fixes in login component 2018-11-04 17:42:44 +01:00
Klaus Basan
74ef1e039c Ref T397, Ref T297 dynamic offset times
* calculate avaerage time
* and use that to decide offset time
2018-11-04 17:42:44 +01:00
Klaus Basan
7bf3671997 Removed unused value 2018-11-04 17:42:44 +01:00
Klaus Basan
10c6c1fc0f UI adjustment 2018-11-04 17:42:43 +01:00
Klaus Basan
35b8b29d10 Ref T410, preparation and UI adjustments
Foo
2018-11-04 17:42:43 +01:00
Klaus Basan
4a82621a1d Ref T400, swift needs to start even without network connection, especially for mapping tool
* count errors and call "manageSetupAvailability" to update cache availability
* minor adjustments
2018-11-04 17:42:43 +01:00
Roland Winklmeier
3770b02ea7 Print the EOL date to the log file
ref T319
2018-11-04 17:42:43 +01:00
Klaus Basan
5193745d12 Ref T397, improved handling and check of interpolated situation 2018-11-04 17:42:43 +01:00
Klaus Basan
b054aa1d31 Ref T397, init (fill) spline values 2018-11-04 17:42:43 +01:00
Klaus Basan
6de663b635 Ref T397, allow to set adjusted time 2018-11-04 17:42:43 +01:00
Klaus Basan
48d5e0daec Ref T397, interpolation / interpolant fixes
* fixed fillSituationsArray to return correct initial situations
* VERIFY ranges and times to avoid inf/NaN and issues in general
* if invalid situations, continue with last situation
* count invalid situations
2018-11-04 17:42:43 +01:00
Klaus Basan
62c532ae1f Ref T397, fix CLANG unsigned warnings 2018-11-04 17:42:43 +01:00
Klaus Basan
842e283be0 Ref T397, count invalid situations in log 2018-11-04 17:42:43 +01:00
Klaus Basan
0b74493eeb Ref T397, sort by timestamp, then adjust offset + function which ignores overlapping situations 2018-11-04 17:42:43 +01:00
Klaus Basan
c010149686 Ref T397, add menu items for aircraft view 2018-11-04 17:42:43 +01:00
Roland Winklmeier
1a63c00a71 Change CService::getAircraftLivery() to return livery without path
CService::getAircraftLivery() is expected to return the livery name itself
without the full path.

ref T378
2018-11-04 17:42:43 +01:00
Roland Winklmeier
1fecf65a40 Fix parsing of X-Plane ACF file headers
So far the 'version' literal was compared case sensitive. So we did not
parse ACF files which had a capitalized literal. Instead the comparison
should be case insensitive. To do that we convert all strings to lower
case before comparing.

ref T378
2018-11-04 17:42:43 +01:00
Roland Winklmeier
92790f1330 Refactor updateCockpit from X-Plane
X-Plane returns com frequencies in 10 kHz, so we don't have the necessary
precision for the 25 kHz spacing. By using CComSystem::setFrequencyActive
we get the rounding to the system wide spacing for free.
Without that correction we run into system wide issues in code that assumes
the correct frequency spacing is in place.

ref T399
2018-11-04 17:42:42 +01:00
Roland Winklmeier
1addcf631a Refactor the remote hotkeys to avoid round trips
The previous implementation was hard to follow and maintain. Instead of
doing intentional rounds trips, we use now a two way approach. GUI is
automatically forwarding remote actions by calling "callHotkeyActionRemotely"
through DBus. Core on the other hand, emits a signal "remoteHotkeyAction"
that is processed in a different function in GUI.
On both sides, actions from the same local machine are filtered.

ref T402
2018-11-04 17:42:42 +01:00
Roland Winklmeier
9bb75a6f2e Rotate camera in follow plane view only if space key is pressed
This commits merges the two orbit plane functions together in CTraffic.
The separation was necessary since XSwiftBus needed to be started manually
and until started, the pointer to CTraffic was invalid. Since XSwiftBus
is started automatically, it can be merged into one function again.
This commit also adds the feature to rotate the camera only if the space key
is pressed. This is equal to how FSX/P3D do it. Using the right mouse was
not possible, since X-Plane SDK does not offer that option.

ref T360
2018-11-04 17:42:42 +01:00
Mat Sutcliffe
46def05670 Ref T405 Guard against recursive locks on CWorkerBase::m_finishedMutex. 2018-11-04 17:42:42 +01:00
Klaus Basan
9dc154fe72 Adjusted wizard
* always start with 1st page (legal)
* select XSwiftBus copy page as default.
2018-11-04 17:42:42 +01:00
Klaus Basan
e9386f676a Fixed issue seen in crash report 2018-11-04 17:42:42 +01:00
Klaus Basan
f4822b69dd Allow to save "selected objects" only as JSON 2018-11-04 17:42:42 +01:00
Klaus Basan
6d696cfd91 UI fixes 2018-11-04 17:42:42 +01:00
Roland Winklmeier
5ee8bbe467 Properly initialize and cleanup DirectInput
ref T391
2018-11-04 17:42:42 +01:00
Roland Winklmeier
4b3d3bba48 Destroy DirectInput helper window during shutdown 2018-11-04 17:42:42 +01:00
Roland Winklmeier
294b854ed8 Adjust to the VATSIM policy to skip the last 5 kHz in 25 kHz spacing
When receiving a radio message, round to the closest frequency.
When sending them, remove the last 5 kHz if existing.

ref T399
2018-11-04 17:42:42 +01:00
Klaus Basan
fbfa014fff Login component style 2018-11-04 17:42:42 +01:00
Klaus Basan
4123101e34 Use Qt::QueuedConnection for UI 2018-11-04 17:42:42 +01:00
Roland Winklmeier
f6ea2a9107 Move CInputManager from singleton to CApplication member
The main reason why CInputManager was singleton is the easy access across
the code. That had the negative side effect that time of destruction was
at a very late stage of the shutdown and could not be controlled by us.
My moving it to CApplication, the access is equally easy (using sApp) and
allows to be cleaned up properly during graceful shutdown.

ref T391
2018-11-04 17:42:42 +01:00
Klaus Basan
705a56b1cb Ref T401, adjusted settings used in components 2018-11-04 17:42:42 +01:00
Klaus Basan
bcc2f557a1 Application info style 2018-11-04 17:42:41 +01:00
Klaus Basan
895bb6b58f Ref T401, info and setting object for crash dumps 2018-11-04 17:42:41 +01:00
Klaus Basan
5e070f1f8c Crash dump related, check getMappingComponent 2018-11-04 17:42:41 +01:00