Commit Graph

3662 Commits

Author SHA1 Message Date
Klaus Basan
637bae5bb6 #32 use remove/add to replace hotkey
possible workaround for "edited hotkey" not working
2020-06-12 19:07:57 +01:00
Klaus Basan
89c241b2e7 Utility functions for livery 2020-06-12 18:42:57 +01:00
Klaus Basan
8d51c42cfc Ref T784, joystick (PTT) buttons
* style
* more detailed logs
2020-06-12 18:42:56 +01:00
Klaus Basan
947e393b03 [P3D] Support for v5, wrong path used for validation
* guess version in validation
* changed some values to v5 as default
* search also for future versions of P3D (e.g. v5)
2020-06-12 18:42:56 +01:00
Roland Rossgotterer
9fa3221abc Replace deprecated endl with Qt::endl 2020-06-12 18:42:54 +01:00
Klaus Basan
fccaf1fae1 Fixing some bugs in simulator, use CCrashHandler::instance()->crashAndLogAppendInfo IF NOT shutting down 2020-06-12 18:42:54 +01:00
Klaus Basan
2c6794a009 StringBuilder for client 2020-06-12 18:42:54 +01:00
Klaus Basan
54646c8edb [LOG] Ignore some Qt warnings in released swift version
* those warnings confuse the user
* not ignored in DEV versions
* see https://discordapp.com/channels/539048679160676382/539925070550794240/704375325336928338
2020-06-12 18:42:54 +01:00
Klaus Basan
e50520c0aa Added a component for aircraft parts
* internals page and log.display both use that component
* complete parts code now encapsulated
2020-06-12 18:42:53 +01:00
Mat Sutcliffe
26af392085 Ignore null pointer warnings in rapidjson 2020-06-12 18:42:53 +01:00
Mat Sutcliffe
20c6bef800 Fixed mistakes in CStatusMessage copy assignment operator 2020-06-12 18:42:53 +01:00
Klaus Basan
c1622951b3 Util. function for class name 2020-06-12 18:42:53 +01:00
Mat Sutcliffe
26bd157551 Ref T786 Fixed dangling pointer in CSlot::singleShot 2020-06-12 18:42:52 +01:00
Klaus Basan
e63129267d Ref T786, smaller improvements
* allow to use ICoordinateGeodetic, not the CCoordinateGeodetic implementation only
* allow to init weather grid by initial ICoordinateGeodetic
2020-06-12 18:42:52 +01:00
Klaus Basan
95ca63ce6d Ref T786, fixed weather sample
* RR found that no alt value means a huge number of grid points is parsed
* see https://discordapp.com/channels/539048679160676382/539925070550794240/701762348506939693
2020-06-12 18:42:51 +01:00
Klaus Basan
0a2b25e409 [PQ] Parsing with default unit, bug fixed 2020-06-12 18:42:51 +01:00
Klaus Basan
f9bb71c8ee Ref T786, FSX/P3D METAR (weather inject)
* allow to select which layers are converted to METAR string
* allow to pass sim.flag (FSX/P3D)
* winds aloft seem to crash FSX, disabled(!)
2020-06-12 18:42:51 +01:00
Klaus Basan
1bdcd4ac9a [Parts] Experimental try with aircraft parts, see https://discordapp.com/channels/539048679160676382/539846348275449887/701438699048796280 2020-06-12 18:42:50 +01:00
Klaus Basan
8fe11c7633 Ref T786, used weather data printer code for weather description (to QString) 2020-06-12 18:42:50 +01:00
Klaus Basan
cc77183b05 Ref T786, changed provider interface, addded identifier based version
* virtual void requestWeatherGrid(const BlackMisc::Geo::ICoordinateGeodetic &position, const BlackMisc::CIdentifier &identifier)
* CWeatherGridAware function do not need to be virtual
2020-06-12 18:42:49 +01:00
Klaus Basan
d5a81a349b Style 2020-06-12 18:42:49 +01:00
Klaus Basan
cfc748420c Ref T786, stub for getting description of weather grid 2020-06-12 18:42:49 +01:00
Klaus Basan
0fa6a6e4c3 Ref T786, singleShot for CSlot 2020-06-12 18:42:49 +01:00
Klaus Basan
4d7468f913 [FSD] Check attributes of full JSON parts 2020-06-12 18:42:48 +01:00
Klaus Basan
668659248e Send distance if own aircraft has been moved 2020-06-12 18:42:48 +01:00
Klaus Basan
8278a7d5e6 [P3D] Adjustments for P3D v5
* guess version
* added new version selection
2020-06-12 18:42:48 +01:00
Klaus Basan
4e45249142 Use "fixed "gear down" if on ground.
Reason: Some sims do send incorrect gear down.

Follow up of T778
2020-06-12 18:42:48 +01:00
Klaus Basan
148368ca0c Some fixes for interpolation setups
* added missing signal
* refresh list on reload button press
* display pitch value
* list ctor for single object
2020-06-12 18:42:48 +01:00
Klaus Basan
9b031bb582 [PQ] Allow to provide a default unit for parsing, e.g. "0" -> "0ft" 2020-06-12 18:42:47 +01:00
Klaus Basan
e839820940 Check UNC path to avoid "hanging" if other machine is not reachable 2020-06-12 18:42:47 +01:00
Klaus Basan
04562a6651 Style, as_const 2020-06-12 18:42:46 +01:00
Klaus Basan
a3f646a792 [FS9] Function for at least halfway correct engine type 2020-06-12 18:42:46 +01:00
Klaus Basan
c3aac2f581 [Weather] Ref T786, fixes some values for "thunderstorm" plus some smaller fixes 2020-06-12 18:42:46 +01:00
Klaus Basan
f14184ddc0 Style and minor UI tweaks 2020-06-12 18:42:45 +01:00
Klaus Basan
b5d100b71b Ref T778, style 2020-06-12 18:42:45 +01:00
Klaus Basan
12403700ea Distributor value object improvements 2020-06-12 18:42:45 +01:00
Klaus Basan
09d86aceb5 String utils minor improvements 2020-06-12 18:42:45 +01:00
Klaus Basan
92d53a4077 [FG] Do not send modelstring or a shorter livery string for FG
* FG does not support modelstrings for "flyable" planes
* remove unused setSimInfo functions, consolidated, cleanup
* simulator dependent "getSwiftLiveryString"
* encapsulated in getConfiguredLiveryString, getConfiguredModelString
* see https://discordapp.com/channels/539048679160676382/567091362030419981/698124094482415616
2020-06-12 18:42:45 +01:00
Klaus Basan
f68e3c2360 Minor CLANG warnings 2020-06-12 18:42:44 +01:00
Klaus Basan
8206fc6bb9 Ref T778, special terrain probe value handling for XP
* only request terrain probe up to a max. distance
* detect "isSuspiciousTerrainValue"
* See also https://discordapp.com/channels/539048679160676382/539925070550794240/696786452855390218
2020-06-12 18:42:44 +01:00
Klaus Basan
cfa96a3aeb Ref T778, utility functions 2020-06-12 18:42:44 +01:00
Klaus Basan
b71dfe482c Ref T778, further elevation verifications 2020-06-12 18:42:44 +01:00
Klaus Basan
bce78aa18e Ref T778, QReadWriteLock::Recursive 2020-06-12 18:42:44 +01:00
Klaus Basan
1821b6e6c5 Ref T778, added/improved removeElevationValues, cleanElevationValues 2020-06-12 18:42:43 +01:00
Klaus Basan
3ff8694718 Ref T778, utility functions geo objects 2020-06-12 18:42:43 +01:00
Klaus Basan
cc887ea0f8 Ref T778, also update sim.data if elevation did change
Use ISimulator::isEqualLastSent in equalPbhVectorAltitudeElevation
2020-06-12 18:42:43 +01:00
Klaus Basan
46d417c5a2 Ref T778, style and comments, debug hints 2020-06-12 18:42:43 +01:00
Klaus Basan
373e45e958 Ref T778, some smaller style fixes/improvements
for the "underground" airplanes as reported by AK

This does NOT fix the issue, but minor shortcomings
found during the investigation

* style
* checks for "developer" env.
2020-06-12 18:42:43 +01:00
Mat Sutcliffe
2f1e3f47f9 Track worker construction and destruction
Added debug log messages in case a worker still exists when the `qApp` is destroyed.
This would mean that a `quitAndWait` is missing or is being skipped somewhere.
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
e5528288b5 Lifetime management of value cache singletons
Hook in to the `destroyed` signal of the `qApp` to destroy the caches.
This ensures any associated workers are quit before application
terminates and kills all the threads.
2020-06-12 18:42:41 +01:00