Commit Graph

28 Commits

Author SHA1 Message Date
Mat Sutcliffe
446743b9b5 Issue #82 [xswiftbus] Menu item to toggle default XP ATIS 2020-09-12 17:54:49 +01:00
Mat Sutcliffe
7c4fe83799 Ref T778 XSwiftBus service emits a signal when scenery is loaded 2020-06-12 18:42:44 +01:00
Klaus Basan
fd3ad207bd [XSwiftBus] Allow to write an updated xswiftbus.conf file
In a distributed core/UI swift we need to write on XPlane side
2020-06-12 18:42:39 +01:00
Klaus Basan
60ba3ca67f [xswiftbus] Protected destructor to avoid GCC/Clang warning 2020-01-07 19:57:24 +00:00
Mat Sutcliffe
8d204cded1 Ref T723 [xswiftbus] Expose configuration for render phase debug messages 2020-01-07 19:57:24 +00:00
Klaus Basan
713972ad7c Checks to avoid issues during the XPlane startup.
Those here are precautionary.
2019-09-16 22:41:25 +01:00
Klaus Basan
55690b423f Ref T709, review points
* overload "normalize"
* renamed to CSettingsProvider
2019-09-16 22:41:15 +01:00
Klaus Basan
f9c87326fb Ref T709, changed to settings provider
* CPlugin is the provider
* it is "kept" in DBus object for traffic, service, weather
2019-09-16 22:41:01 +01:00
Klaus Basan
97926eee26 Ref T709, removed unused includes and style 2019-09-16 22:41:01 +01:00
Klaus Basan
1440c4d2e9 Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences" 2019-09-16 22:40:57 +01:00
Klaus Basan
f6690136f2 Ref T709, added DBus signatures and use CSettings class in service class
* CSettings objects will be shared among all services (traffic, weather, service)
* It is "global" for plugin
2019-09-16 22:40:54 +01:00
Mat Sutcliffe
a3ff42793f Disable X-Plane's built-in voice ATIS when XSwiftBus is active. 2019-09-16 22:40:03 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +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
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
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
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
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