Commit Graph

147 Commits

Author SHA1 Message Date
Klaus Basan
2dc72163f2 Ref T681, set CG from DB based on settings 2019-09-16 22:40:36 +01:00
Klaus Basan
4237839bbd Ref T704, split matching utils for logging in aviation context 2019-09-16 22:40:32 +01:00
Klaus Basan
7b03ed5aec Ref T554, signal if auto publish data are written 2019-09-16 22:40:07 +01:00
Klaus Basan
71e09b008f Ref T681, renamed to rememberElevationAndSimulatorCG and style 2019-09-16 22:38:08 +01:00
Klaus Basan
6d490e9a49 Ref T681, preparations to use CG from DB
* renamed to "getSimulatorCG" ...
* pass simulator settings to sim.env.provider to decide what CG to use
* store DB CG and init it when aircraft is added
* style
2019-09-16 22:38:07 +01:00
Klaus Basan
ab5fc6f0ee Ref T658, adjusted matching with script
* return values changed
* pass in model and matched model
* JavaScript objects for web services, model set
* allow to pass back a model
2019-09-16 20:29:54 +01:00
Klaus Basan
a646e122af Avoid ASSERT from emulated driver
* not all plugins are installed
* use default simulator if there is no simulator info
2019-09-16 20:29:44 +01:00
Klaus Basan
c51dce8bfd Style 2019-05-13 11:20:44 +02:00
Klaus Basan
a553dfc708 Ref T632, minor improvements for no callsign 2019-05-13 11:20:40 +02:00
Klaus Basan
2d654e2fef Ref T609, tristate LED showing if synced with simulator com 2019-05-13 11:20:40 +02:00
Klaus Basan
53fb28d70c Ref T609, setting if COM is synced with simulator 2019-05-13 11:20:39 +02:00
Klaus Basan
e8ea050882 Trigger validation with sim.directory
Ref T247 follow up
2019-04-11 22:12:18 +01:00
Klaus Basan
d51b26cf8d Aligned signatures for context and dialog to use sim.directory in validator
Ref T247 follow up
2019-04-11 22:12:17 +01:00
Klaus Basan
0c335beea6 Style 2019-04-11 22:12:16 +01:00
Klaus Basan
0d2e6dd997 Ref T566, configurable matching log in matcher/simulator components
* log flag/enum in own file
* pass "what to log" as parameter
2019-04-11 22:12:13 +01:00
Klaus Basan
50d886791a Ref T566, matching log flag/enum to decide what is being logged 2019-04-11 22:12:12 +01:00
Klaus Basan
859a418691 Ref T566, added "short log" parameter 2019-04-11 22:11:39 +01:00
Klaus Basan
6ca6d12851 Added "isWeatherActivated" based on the discussion with LT 2019-04-11 22:11:34 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
bae7680e59 Ref T401, server info also when not connected 2019-02-22 20:36:31 +00:00
Mat Sutcliffe
fe7a45afcf Ref T516 Update CStatusMessage call sites to use new syntax. 2019-02-22 20:35:51 +00:00
Klaus Basan
73e566a76e ChangedModel in ownAircraft context was not really used.
However, there are cases where the "own model" is changed via own model context, mostly in the emulated driver.

* made changedModel -> ps_changedModel a "private" signal
* connected it to simulator context
* used identifier to avoid roundtrips

So the "ownAircraftModelChanged" signal of the simulator context is to be used
2019-02-22 20:35:45 +00:00
Klaus Basan
2f450ec9c5 Ref T515, implemented added failover strategy and try again <n> times 2019-02-22 20:35:42 +00:00
Klaus Basan
0ac6739377 Ref T515, context function "isValidationInProgress" 2019-02-22 20:35:40 +00:00
Klaus Basan
2dd396c0df Ref T515, renaming to "isKnownModelInSet" 2019-02-22 20:35:40 +00:00
Klaus Basan
faddf40ba7 Ref T515, functions for matcher setting/getting disabled models 2019-02-22 20:35:38 +00:00
Klaus Basan
85cf339e04 Ref T515, some minor adjustments
* use validation status messages for prerequisites
* SwiftGuiStd::onRequestedConsoleMessage
* displayInOverlayWindow for HTML messages
2019-02-22 20:35:37 +00:00
Klaus Basan
cea6611656 Ref T515, added background validation in simulator context
* added signals
* added validator
2019-02-22 20:35:37 +00:00
Klaus Basan
a0c8f3778b Ref T515, context menus for re-matching
* added re-matching for single aircraft
* re-ordered
2019-02-22 20:35:33 +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
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
bd9948bbff Ref T486 Using QMetaObject::invokeMethod with pointer-to-member-function (or functor). 2019-02-22 20:34:53 +00:00
Klaus Basan
0970dbdcfc Ref T451, disable model (in model set) functions for context 2019-02-22 20:24:05 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ca813a1814 Fixed clazy warning: missing emit keyword. 2019-02-22 20:23:42 +00:00
Mat Sutcliffe
8979b5257e Fixed clazy warnings: returning void expression. 2019-02-22 20:23:34 +00:00
Klaus Basan
c591728e88 Aircraft ICAO code of own model is wrong
Although the reverse lookup of a model is correct, it's aircraft ICAO code is wrong

Issues found

* in the driver the ICAO code is permanently overridden -> commented out
* there are two contexts, own aircraft and simulator, but only one uses reverse lookup -> now both
* using Qt::QueuedConnection for context -> GUI
2018-12-11 00:51:31 +01:00
Roland Rossgotterer
060c3ee492 Remove the warning about conflicting X-Plane plugins
This warning got superseded by the return value from CTraffic::acquireMultiplayerPlanes. All plugins can live side by side as long as nobody else has multiplayer planes acquired. If so, we warn the user directly and tell him the plugin name.
2018-11-29 20:54:26 +01:00
Klaus Basan
a6b7b10651 Ref T420, signal when simulator no longer is vital 2018-11-16 02:49:56 +01:00
Klaus Basan
8cf7f676fa Ref T423, function to recalculate all aircraft (used when aircraft is moved or such) 2018-11-16 02:49:52 +01:00
Klaus Basan
dfd33e40c1 Detect emulated driver before casting to avoid crashs 2018-11-16 02:49:51 +01:00
Klaus Basan
03691b4700 Ref T421, function to get interpolation messages from the simulator context 2018-11-04 17:42:47 +01:00
Klaus Basan
756ee18410 Ref T379, to improve reset models added "setAircraftEnabledFlag" to just set the flag, not sending signals causing removed aircraft 2018-10-05 17:39:57 +02:00
Klaus Basan
5c165c4fe7 Ref T373, style 2018-09-25 03:47:46 +02:00
Klaus Basan
84970760c1 Ref T373, removed unused function 2018-09-25 03:19:28 +02:00
Klaus Basan
a871579479 Ref T370, added public removeAllRemoteAircraft
* protected clearAllRemoteAircraftData
* ISimulator::clearAllRemoteAircraftData no longer calls clearAllRemoteAircraftData (circular)
2018-09-25 02:14:00 +02:00
Klaus Basan
527f666d1f Ref T370, remove models from FSX/P3D
* clearAllRemoteAircraftData also removes aircraft (from simulator)
* debugVerifyStateAfterAllAircraftRemoved only makes sense if removing aircraft and then emit the messages
2018-09-23 20:12:32 +02:00
Klaus Basan
51973cd2b9 Ref T348, remove from matcher if model failed 2018-09-20 00:47:22 +02:00
Klaus Basan
ae60cf560d Ref T361, better guards for plugin and sGui
No need to create an assert if plugin is not avilable, though the plugin info should be "Unspecified" in that case
2018-09-18 19:23:13 +02:00
Klaus Basan
57178c75f9 Ref T357, function to copy FSX terrain probe, also in context for remote UI 2018-09-17 18:28:40 +02:00