Commit Graph

184 Commits

Author SHA1 Message Date
Lars Toenning
c0efc9ea81 Clean up includes 2022-05-25 19:47:34 +01:00
Mat Sutcliffe
a592bb2bbe Include style 2021-09-18 15:07:49 +01:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
81d2dbbac9 Issue #37 Disconnect when FPS drops below threshold 2021-08-21 18:38:56 +01:00
Mat Sutcliffe
f311906d04 Issue #37 Emit signal when FPS drops below threshold 2021-08-21 18:38:56 +01:00
Mat Sutcliffe
2c66e2215e Issue #77 Move all methods of CLogUtilities to other classes 2020-12-19 18:50:40 +00:00
Mat Sutcliffe
371c1f4f7c Issue #77 Break cyclic dependency between CLogCategory and numerous classes 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
63e8de8f00 Issue #77 getLogCategories returns a simple QStringList instead of our own class 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
b80114213d Issue #77 Move mixin classes to separate files
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
24bc57ac32 [Weather] Allow to trigger reload of weather from UI 2020-06-12 18:42:57 +01:00
Klaus Basan
3099464668 Message texts 2020-06-12 18:42:56 +01:00
Klaus Basan
1fb97755ce [Weather] Only send weather if activated 2020-06-12 18:42:54 +01:00
Klaus Basan
5678052b5d Ref T786, enable weather in sim. if plugin changed 2020-06-12 18:42:52 +01:00
Klaus Basan
9235f3232e Improvements during shutdown
* stop listeners
* check if airspace monitor and FSD still exist
* stop listeners on "aboutToShutdown()"
* check for processEventsFor(500)
2020-06-12 18:42:52 +01:00
Klaus Basan
58583d3ffa Ref T786, simulator context
* use identifier based "requestWeatherGrid"
* injectWeatherGrid now public
* clean m_lastWeatherPosition if weather is de-activated
* inject weather CContextSimulator::onWeatherGridReceived

1) this automatically injects the weather, the callback is not needed
2) the callback was the part which crashed
2020-06-12 18:42:50 +01:00
Klaus Basan
3be498a347 Ref T786, make sure callbacks are called in correct thread
* callback.singleShot
* shutdown guards, "myself"
* BLACK_VERIFY
* Qt::QueuedConnection
2020-06-12 18:42:49 +01:00
Klaus Basan
21e109e5e2 [AFV] Simulator settings changed signal
* in the cockpit "sync." can now be enabled/disabled
* settings signal allows to update UI in settings UI
2020-06-12 18:42:47 +01:00
Klaus Basan
f14184ddc0 Style and minor UI tweaks 2020-06-12 18:42:45 +01:00
Klaus Basan
2cb10c1835 Minor fix to avoid issues 2020-06-12 18:42:42 +01:00
Klaus Basan
f8d59e7b04 [Worker] Use "m_validator->quitAndWait()" as validator now can "stop" long lasting functions 2020-06-12 18:42:40 +01:00
Klaus Basan
2999aebf37 Ref T773, allow to update CG per model string
* needed if CG is overridden by "dot command"
* update all existing aircraft (in range) if changing CG per modelstring
* made "overriddenCGorDefault" public so it can be checked if overridden
* use overridden value in CContextSimulator::xCtxAddedRemoteAircraftReadyForModelMatching
* allow to clear overridden values
2020-06-12 18:42:36 +01:00
Klaus Basan
33b3cd5461 Ref T773, elevation handling style and minor improvements 2020-06-12 18:42:32 +01:00
Klaus Basan
59c6a7ad93 [FSD] Avoid that all matchings are triggered "at the same time"
* the signal from CAirspaceMonitor is connected internally
* this signal is closely related to receive the FSD ICAO data
* and then it is emitted from the context again but staggered
2020-01-07 19:57:19 +00:00
Klaus Basan
441ca41ee3 [FS9] Log. messages 2020-01-07 19:46:18 +00:00
Klaus Basan
09e65a2525 Ref T739, renamed CContext -> IContext
This reflects the purpose better, it is a base class for all context interfaces
2019-10-11 19:00:35 +01:00
Roland Rossgotterer
b5a2f2ad13 AFV initial commit 2019-10-11 18:58:47 +01:00
Roland Rossgotterer
4772aadc1a Replace INetwork::CConnectionStatus with proper value object 2019-09-17 17:29:25 +02:00
Klaus Basan
6521b89fdd Ref T717, simulator ground elevation 2019-09-16 22:41:39 +01:00
Klaus Basan
f80e093a0a Ref T717, function to send parts/situation for testing and in the model browser 2019-09-16 22:41:37 +01:00
Klaus Basan
903cf07eac Ref T717, "testRemoteAircraft" simulator context functions 2019-09-16 22:41:35 +01:00
Klaus Basan
4c9654d81d Use simulator from plugin if plugin is connected 2019-09-16 22:41:34 +01:00
Klaus Basan
2e96caef5c Functions to remove models from model set 2019-09-16 22:41:32 +01:00
Klaus Basan
902d18339a Improved manual changing of aircraft and reset
* deferred adding and reset
* HTML overlay messages
* debug code for DBus messages
2019-09-16 22:41:32 +01:00
Klaus Basan
083293c016 Style 2019-09-16 22:41:28 +01:00
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