32 from dbus.service
import Object
34 from python_qt_binding.QtCore
import QObject, Qt, Signal
38 """DBus service for an indirect plugin handler, i.e. `PluginHandlerXEmbedContainer`.""" 46 self._signal.connect(callback, Qt.QueuedConnection)
51 def __init__(self, plugin_handler, object_path):
52 super(PluginHandlerDBusService, self).
__init__(object_path)
55 self._plugin_handler.emit_save_settings_completed)
57 self._plugin_handler.emit_restore_settings_completed)
59 self._plugin_handler.emit_shutdown_plugin_completed)
62 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'bb', out_signature=
'')
64 self._plugin_handler.load_completed(loaded, has_configuration)
67 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'is', out_signature=
'i')
69 return self._plugin_handler.embed_widget(pid, widget_object_name)
72 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'ss', out_signature=
'')
74 self._plugin_handler.update_embedded_widget_icon(widget_object_name, icon)
77 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'ss', out_signature=
'')
79 self._plugin_handler.update_embedded_widget_title(widget_object_name, title)
82 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
's', out_signature=
'')
84 self._plugin_handler.unembed_widget(widget_object_name)
87 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'is', out_signature=
'i')
89 return self._plugin_handler.embed_toolbar(pid, toolbar_object_name)
91 @dbus.service.signal(
'org.ros.qt_gui.PluginHandlerContainer', signature=
'ib')
97 'org.ros.qt_gui.PluginHandlerContainer', in_signature=
's', out_signature=
'')
99 self._plugin_handler.unembed_toolbar(toolbar_object_name)
101 @dbus.service.method(
'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'',
104 self._plugin_handler._emit_close_plugin()
106 @dbus.service.method(
'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'',
109 self._plugin_handler._emit_reload_signal()
111 @dbus.service.signal(
'org.ros.qt_gui.PluginHandlerContainer', signature=
'')
116 @dbus.service.method(
'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'',
121 self._shutdown_plugin_completed.emit()
123 @dbus.service.signal(
'org.ros.qt_gui.PluginHandlerContainer', signature=
'')
128 @dbus.service.method(
'org.ros.qt_gui.PluginHandlerContainer', signature=
'')
132 self._save_settings_completed.emit()
134 @dbus.service.signal(
'org.ros.qt_gui.PluginHandlerContainer', signature=
'')
139 @dbus.service.method(
'org.ros.qt_gui.PluginHandlerContainer', in_signature=
'',
144 self._restore_settings_completed.emit()
146 @dbus.service.signal(
'org.ros.qt_gui.PluginHandlerContainer', signature=
'')
def embed_toolbar(self, pid, toolbar_object_name)
def toolbar_orientation_changed(self, win_id, is_horizontal)
def __init__(self, callback)
_shutdown_plugin_completed
def shutdown_plugin(self)
def save_settings_completed(self)
def unembed_widget(self, widget_object_name)
def update_embedded_widget_title(self, widget_object_name, title)
_restore_settings_completed
def shutdown_plugin_completed(self)
def trigger_configuration(self)
def unembed_toolbar(self, toolbar_object_name)
def __init__(self, plugin_handler, object_path)
def load_completed(self, loaded, has_configuration)
def restore_settings(self)
def restore_settings_completed(self)
def update_embedded_widget_icon(self, widget_object_name, icon)
def embed_widget(self, pid, widget_object_name)