Commit Graph

111 Commits

Author SHA1 Message Date
Mat Sutcliffe
307e170d5f Integrate swift version numbering into the json config system. 2019-02-22 20:23:26 +00:00
Roland Rossgotterer
901cf34bc8 Fix X-Plane follow aircraft
This commit fixes two bugs:
- The camera position was never initialized until space was pressed. The camera position was therefore random
- Instead of saving the camera position, we actually want to save the delta camera position.

ref T465
2018-12-11 17:42:49 +01:00
Roland Rossgotterer
6246315b90 Set xswiftbus' dep_target configuration to no_check_exist globally
The configuration for MacOS branch got removed in a previous commit which
caused DBus and libevent libraries not to be installed since they are not
yet existing in the expected path at the time when qmake runs.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
49bd38d722 [XSwiftBus] Add hasMultiplayerPlanesAquired() DBus API
This function will return whether X-Plane multiplayer planes have been acquired by XSwiftBus or if not, who else acquired them.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
55c2e2e559 [XSwiftBus] Add getVersionNumber to DBus API
This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons.

ref T394
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
ec8245ea53 [XSwiftBus] Give PQ variables a unit
ref T313
2018-11-29 20:54:26 +01:00
Roland Winklmeier
1c1d2b23d7 Install and package libevent_core on Mac OS 2018-11-29 20:54:25 +01:00
Mat Sutcliffe
df563d5b29 Fixes needed to compile swift with MSVC with the /permissive- switch
which enables more C++ standard conformance.
2018-11-16 02:49:55 +01:00
Roland Winklmeier
f8cc92341a Unregister DBusObject callback when the object is destroyed
Without that cleanup, DBusConnection might try to call a dangling
std::function in case the DBusObject was removed before. That is for
example happening during shutdown.
2018-11-16 02:49:51 +01:00
Klaus Basan
ab4b4c5067 Style 2018-11-04 17:42:45 +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
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
Roland Winklmeier
773a5191a3 Delay the start of XSwiftBus
Starting XSwiftBus in CPlugin constructor called methods that are not
supported during XPluginEnable. Therefore delay the start until X-Plane
is fully loaded.
2018-10-08 22:16:08 +02:00
Roland Winklmeier
910b536dee Automatically start XSwiftBus
In the past, XSwiftBus required to be started from the menu. This was a
historic behaviour since it made it possible to start it with different
DBus connection options. Since those are now moved into a config file,
it can be started right away.
2018-10-07 16:17:26 +02:00
Roland Winklmeier
bd222f3c97 Fix segfault if number is bigger than size of airports 2018-10-07 16:17:25 +02:00
Roland Winklmeier
f3f3ebc306 Cleanup aircraft in X-Plane after DBusConnection drops
ref T392
2018-10-07 16:17:25 +02:00
Roland Winklmeier
ebe23a694b Fix GCC7 fallthrough warnings 2018-10-05 17:39:58 +02:00
Roland Winklmeier
4387c3b433 Fix missing override keyword 2018-10-05 17:39:58 +02:00
Roland Winklmeier
616cc241f4 [XSwiftBus] Convert setPlanesTransponders to list setter
ref T374
2018-10-03 03:03:41 +02:00
Roland Winklmeier
65d00dca6e [XSwiftBus] Fix plural in CTraffic::setPlanesSurfaces 2018-10-03 03:03:41 +02:00
Roland Winklmeier
91179ba0ef [XSwiftBus] Fix DBus traffic introspect xml 2018-10-03 03:03:40 +02:00
Roland Winklmeier
da9c55486d [XSwiftBus] Add show/hide aircraft label menu item 2018-10-03 03:03:40 +02:00
Roland Winklmeier
ab45757c8d [XSwiftBus] Add message window menu items
- Popup window when a new message arrives
- Automatically hide window message after 5s

ref T359
2018-10-03 03:03:40 +02:00
Roland Winklmeier
cfc9c3166e Decouple flightloop processing from DBus
There are needs to not only run DBus tasks, but also different generic
tasks during the processing loop.
2018-10-03 03:03:40 +02:00
Roland Winklmeier
41ac858df8 Fix X-Plane checkable menu items
- menuItem ref was wrong
- CMenuItem::setChecked did not use the menu enum
- Remove the checked argument to CMenuItem constructor
2018-10-03 03:03:40 +02:00
Roland Winklmeier
521e2044cf Update libxplanemp including a fix when parsing invalid X-Plane CSLs
ref T333
2018-09-17 18:28:20 +02:00
Roland Winklmeier
d682df243a Fix loading of older OBJ8 CSL modelsets
- Fix support for older modelsets not using the texture for OBJ8 feature
- Small error when xsb_aircraft.txt was outside the object folder

ref T326
2018-09-12 17:01:45 +02:00
Roland Winklmeier
2392a27a59 Add missing include 2018-08-26 10:04:58 +02:00
Roland Winklmeier
88ce557c80 Replace left over Q_OS_MAC macro with APL in xswiftbus 2018-08-25 22:12:08 +02:00
Roland Winklmeier
a19ccabf35 Refactor shared X-Plane model parser in common header only functions
ref T290
2018-08-24 21:27:00 +02:00
Roland Winklmeier
3774f2b60f Fix cppcheck warnings and cleanup suppression config
- redundantAssignment
- knownConditionTrueFalse
2018-08-09 01:25:41 +02:00
Roland Winklmeier
000bdee457 Properly default initialze DBus dispatcher 2018-08-09 01:25:39 +02:00
Roland Winklmeier
f637b2996d Fix floating point comparison 2018-08-07 20:40:59 +02:00
Roland Winklmeier
05e0480bb4 Move XPlane gnd flag handling from parts to situation
ref T276
2018-08-07 20:40:57 +02:00
Roland Winklmeier
9f8f29f8fd Remove obsolete and commented Qt code from XSwiftBus 2018-08-07 20:40:54 +02:00
Roland Winklmeier
ce0b63f8f1 Add simple config file support to XSwiftBus
This adds a simple configuration file to XSwiftbus. So far, only the
xswiftbus DBus server is configured.

ref T291
2018-08-07 20:40:52 +02:00
Roland Winklmeier
1ead5fc356 Add WARNING_LOG macro to xswiftbus 2018-08-07 20:40:48 +02:00
Roland Winklmeier
488ff96ce6 Add DBus P2P support to XSwiftBus
ref T291
2018-08-07 20:40:43 +02:00
Roland Winklmeier
fd45de89d9 Fix CDBusConnection::isConnected
ref T291
2018-08-07 20:40:42 +02:00
Roland Winklmeier
a764fa0d03 Move DBus event processing from DBusConnection to DBusDispatcher
ref T291
2018-08-07 20:40:41 +02:00
Roland Winklmeier
59da68da5e Delay setting the DBusConnection for a DBusObject
Previously, the DBusconnection had to be set at construction time and could
not be changed over the DBusObject life time. Now a new connection can be
set anytime and as often as required.
The shared ownership is now also properly implemented by shared pointers.

ref T291
2018-08-07 20:40:40 +02:00
Roland Winklmeier
01085f24b3 Allow DBusMessage sender and destination values to be empty
ref T291
2018-08-07 20:40:39 +02:00
Roland Winklmeier
ef8c7d7d1c Fix rare crash and swift not being notified about a failed plane adding
This fixes are rare case, that no XPMP plane could be created (no model
was found) and this was not signaled to swift.
2018-08-07 20:40:36 +02:00
Roland Winklmeier
dc9b2a42f7 Fix the correct naming of altitude and elevation 2018-08-07 20:40:34 +02:00
Roland Winklmeier
d05b2982cb Align argument names in XSwiftBus traffic introspection file 2018-08-07 20:40:33 +02:00
Roland Winklmeier
cff12d78fb Style improvement 2018-08-07 20:40:31 +02:00
Klaus Basan
52513db63f Ref T290, XPlane refactoring
* typo getRemoteAircraftsData -> getRemoteAircraftData (no "s")
* typo getEelevationAtPosition (double "Ee")
* get functions "const"
* added unit for some variables such as latitudeDeg
2018-07-17 19:04:50 +02:00
Klaus Basan
78bcc31a0c Ref T290, style 2018-07-14 19:47:35 +02:00
Klaus Basan
6fd32bb00d Ref T288, XPlane model in login component 2018-07-13 01:44:43 +02:00
Roland Winklmeier
128edcd118 Update libxplanemp 2018-06-18 03:04:27 +02:00