Commit Graph

23 Commits

Author SHA1 Message Date
Mat Sutcliffe
a3ff42793f Disable X-Plane's built-in voice ATIS when XSwiftBus is active. 2019-09-16 22:40:03 +01:00
Roland Rossgotterer
821e0b10b6 Fix assert in DBus if dbus_server_listen returned NULL
ref T589
2019-04-11 22:12:11 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
4c99ac4fa9 Fix typo 2019-02-22 20:35:17 +00: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
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
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
488ff96ce6 Add DBus P2P support to XSwiftBus
ref T291
2018-08-07 20:40:43 +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
e55103ccdf Rename all variables and functions to be similar to followPlaneView 2018-06-18 03:04:24 +02:00
Roland Winklmeier
0b607f9e0b Add own aircraft to X-Plane plane view menu
ref T269
2018-06-13 13:59:17 +02:00
Roland Winklmeier
37e592759c [xswiftbus] Plane View Menu
FSX/P3D have a nice feature to follow a remote aircraft with the camera.
X-Plane was missing this feature, since for X-Plane the remote aircrafts
are not known. However, from a plugin point of view, we know them and where
they are. So we can manually control the camera and provide a similar
feature.
This is still very simple. As soon as you move the mouse, the PoV angle will
change. In future updates, it should be change only while the right mouse
button is pressed.
2018-05-08 16:06:30 +02:00
Roland Winklmeier
6a8ae67e06 [xswiftbus] Make xswiftbus completely Qt free 2018-05-08 16:06:30 +02:00
Roland Winklmeier
d77931e5ec [xswiftbus] Replace QtDBus with a libevent driven C++ wrapper on top of libdbus
QtDBus was the main component of xswiftbus' Qt dependency. This is the
first preparation step to get xswiftbus Qt free.
The new implementation is based on the low level libdbus library, which
was also in use by QtDBus itself. But instead of QtDBus, we use now a thin
C++ wrapper. To keep DBus handling async, libevent is used to monitor
timeouts and fds.
2018-05-08 16:06:29 +02:00
Klaus Basan
e1c49d6e7c Ref T131, formatting 2018-04-05 02:53:22 +02:00
Roland Winklmeier
7f6dd61bb3 X-Plane menu improvements
* Remove start items with DBus details and replace them with a single start
* Add an item to toggle the message box
2018-02-22 01:26:33 +01:00
Mathew Sutcliffe
f34c48cf6c T79 Improved log messages. 2017-05-11 16:37:54 +01:00
Mathew Sutcliffe
4a4dea8d4d Rename xbus to xswiftbus
Summary:
I wanted to rename xbus because its relation to //swift// is not immediately clear from the name.

xswiftbus seems reasonable.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: kbasan

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D14
2017-05-05 23:07:11 +01:00