Commit Graph

5247 Commits

Author SHA1 Message Date
Klaus Basan
d118ea402f Ref T232 clear remote aircraft data once network disconnects
* blackconfig in .pro
* verify function to detect dangling states
* clear remote data when disconnected from network
* there was one problem that the data where not correctly cleaned up and hence new aircraft where not added again after a disconnect/reconnect from network
* it is not yet clear why data happens (dangling data), that is what the debugVerify function is for
2018-01-30 20:31:11 +01:00
Klaus Basan
5f7842163b Ref T231, Ref T232 utility functions 2018-01-30 20:31:09 +01:00
Klaus Basan
b49816795c Ref T231, using corrected altitude with CG in spline interpolator
Ref T207
2018-01-30 20:31:06 +01:00
Klaus Basan
47d1915e17 Ref T231, using fudge factor in XP as CG (same as in FSX/P3D)
Ref T207
2018-01-30 20:31:03 +01:00
Klaus Basan
ca13c21943 Ref T231, utility functions
* corrected altitude also considering CG
* 0 if CG is NULL
2018-01-30 20:30:57 +01:00
Klaus Basan
ddaba89e2d Ref T214, demoted "route missing" to warning 2018-01-30 20:30:54 +01:00
Klaus Basan
5e53f22ad7 Fixed "beautify real name" 2018-01-30 20:30:51 +01:00
Klaus Basan
8eabd468af Use StringBuilder in network vatlib 2018-01-30 20:30:49 +01:00
Klaus Basan
a3bbb72185 Simplify (remove duplicate spaces) text messages 2018-01-30 20:30:46 +01:00
Klaus Basan
2da4b2719a Ref T231, fix for hovering aircraft
If there is no ground flag:

* only use CG/ground elevation close to ground
* and for AGL values clearly not on ground
* otherwise guess by speed ....
2018-01-30 20:30:43 +01:00
Klaus Basan
c39d4f66a3 Setting parent object for timers and formatting 2018-01-30 20:30:39 +01:00
Klaus Basan
3521bb5b0b Ref T231, Ref T232 use CStatusMessagesDetail in simulator component in order to display "failed remoted model adding" 2018-01-30 20:30:37 +01:00
Klaus Basan
cbcafe2021 Use CStatusMessagesDetail in log component 2018-01-30 20:30:33 +01:00
Klaus Basan
9bbef8cc28 Component to show status messages and details, encapsulated so it can be used elsewhere
* originally part of log component
* now independent component

Motivated by Ref T231, Ref T232
2018-01-30 20:30:30 +01:00
Klaus Basan
ecf84eebf0 Some filter dialog / status message UI size adjustments 2018-01-30 20:30:27 +01:00
Klaus Basan
5d56c295f8 Dtor in view base 2018-01-30 20:30:23 +01:00
Klaus Basan
dac1ee85f9 Ref T232, some (dispatch) timer code was duplicated
* fixed a bug, where a non existing timer was killed
* unified code in base class
2018-01-30 20:30:20 +01:00
Klaus Basan
af75c88784 Cockpit UI improvements
* private slots -> private
* Stylesheet update for readonly
2018-01-30 20:30:18 +01:00
Klaus Basan
c1ee159ff9 Ref T232, some formatting
* made "private slots" -> "slots"
* cross context slots marked with "xCtx" prefix
2018-01-30 20:30:14 +01:00
Klaus Basan
50eb93cf40 Ref T229, do not display a directory if same as default
* component: made overlay compliant
* sim.dir can be empty on a machine where no simulator is installed
* formatting
* utility functions
2018-01-30 20:30:12 +01:00
Klaus Basan
9a9abbe382 Min. sizes for copy component 2018-01-30 20:30:10 +01:00
Klaus Basan
d5c9a29618 Check the min. window sizes
* on smaller screens makes sure the min.sizes are not exceeded
* normally not changing min.sizes
2018-01-30 20:30:08 +01:00
Klaus Basan
464f64367e Minor mapping tool UI adjustments 2018-01-30 20:30:05 +01:00
Klaus Basan
bef22fcd27 Ref T229, "private slots" -> "private" 2018-01-30 20:30:03 +01:00
Klaus Basan
add47dfccd The settings / cache directory can be opened from UI [..] 2018-01-30 20:30:00 +01:00
Klaus Basan
d0141692a2 Config wizard can open help from "?" 2018-01-30 20:29:58 +01:00
Klaus Basan
fae5e6ac0a Ref T229, FS9 and XPlane adjustments for changed CInterpolationStatus
Ref T207, maybe MS should review the XP part
2018-01-30 20:29:56 +01:00
Klaus Basan
467f8cbac9 Ref T229, fixed problems in FSX driver
* use correct status (the problem was that even not interpolated situations can be valid)
* track last position (SimObject), do not resend same position
2018-01-30 20:29:53 +01:00
Klaus Basan
2fbc7acc7d Ref T229, track sent position in SimObject 2018-01-30 20:29:51 +01:00
Klaus Basan
0991f20f7d Ref T229, adjusted renamings because of CInterpolationStatus changes 2018-01-30 20:29:48 +01:00
Klaus Basan
75c2eec3d1 Ref T229, adjusted CInterpolationStatus
* The `changed`flag in interpolation was faulty.
* It was able to determine if the value was really changed by interpolation, which was the same as indicating that the value was interpolated.
* But there were cases, when the value was interpolated and not changed.
* Also there were cases when the value was changed, but not interpolated.
2018-01-30 20:29:46 +01:00
Klaus Basan
67426b755f Ref T229, FSX/P3D character encoding
* we have to use an encoding function for FSX/P3D string
* encapsulated, so we can later can/improve it
2018-01-30 20:29:43 +01:00
Klaus Basan
7322c14d64 Ref T225, utility function, messages can be directly shown as overlay 2018-01-30 20:29:41 +01:00
Klaus Basan
eaf0095454 Ref T225, force stylesheet in CForm base class and used by all forms
* Allows to use stylesheet attributes like [readonly]
* changing to "readonly" applies correct stylesheet
2018-01-30 20:29:38 +01:00
Klaus Basan
0916c90038 Ref T225, use coordinate dialog in weather component
Remark: There was a redundant, also unfinished code in weather UI component for coordinate entry. This is now encapsulated in coordinate form/dialog.
2018-01-30 20:29:36 +01:00
Klaus Basan
a764ea7534 Ref T225, coordinate dialog 2018-01-30 20:29:34 +01:00
Klaus Basan
fc84bf6579 Ref T225, some coordinate form improvements and renamings 2018-01-30 20:29:32 +01:00
Klaus Basan
8e2a1b1b6f Ref T225, utility function to force stylesheet update
* Needed when setting UI element to readonly, and stylesheet is different for readonly
* see https://stackoverflow.com/q/48141205/356726
2018-01-30 20:29:29 +01:00
Klaus Basan
1948d067e4 Ref T225, set height to NULL 2018-01-30 20:29:27 +01:00
Klaus Basan
b574ede2e2 Some minor UI improvements
* buttons right aligned
* min-height in qss
* removed "public slots" where not needed
* QMessageBox when changing widget style (because it is so slow)
2018-01-30 20:29:24 +01:00
Klaus Basan
8273a9881f Ref T228, when using dialog, the dialog class will handle all saving.
Therefor "this->saveSettingsOnShutdown(false)"
2018-01-30 20:29:22 +01:00
Klaus Basan
ee8ea8e599 Ref T228, some renamings 2018-01-30 20:29:20 +01:00
Klaus Basan
558f3c3e56 Ref T228, key needs to be added, not description 2018-01-30 20:29:18 +01:00
Klaus Basan
ceedfdcc58 Minor UI adjustments 2018-01-30 20:29:10 +01:00
Roland Winklmeier
2bb3bb3cf8 Ignore yet another FSinn P2P packet 2018-01-29 12:17:24 +01:00
Roland Winklmeier
7c903001d5 Raw FSD message component and dialog
Maniphest Tasks: T222
2018-01-29 12:17:24 +01:00
Roland Winklmeier
704068d299 Add methods to receive and write raw FSD messages
This commit adds methods to register for live FSD message reception. The
amount of traffic can be quite high, therefore no normal signal is used -
which would be available via DBus. Instead one has to connect manually
by passing a functor. This guarantees that we communicate only in-process.
If someone tries to connect on the proxy side, the connection will fail.
This needs to be handled properly in client code.
This commit also adds a method to write the FSD message to a selected file.

Maniphest Tasks: T222
2018-01-26 12:40:36 +01:00
Roland Winklmeier
7b9ad0ea07 Add CRawFsdMessage
Maniphest Tasks: T222
2018-01-22 14:23:23 +01:00
Roland Winklmeier
2b2813af20 Send correct SimType to FSD server depending which plugin is loaded 2018-01-22 14:08:32 +01:00
Roland Winklmeier
7edcc02f15 Return the plugin info of the emulated simulator rather than emulated itself 2018-01-22 14:07:02 +01:00