37 """Handler for creating a container.""" 39 def __init__(self, parent, main_window, instance_id, application_context, container_manager):
40 super(PluginHandlerContainer, self).
__init__(
41 parent, main_window, instance_id, application_context, container_manager)
42 self.setObjectName(
'PluginHandlerContainer')
48 self._container.setObjectName(self._instance_id.tidy_str())
49 title = self.tr(
'Container')
50 if self._instance_id.serial_number > 1:
51 title +=
' (%d)' % self._instance_id.serial_number
52 self._container.setWindowTitle(title)
63 self._container_manager.add_container(self.
_container)
67 self._container_manager.move_container_children_to_parent(self.
_container)
68 self._container_manager.remove_container(self.
_container)
def _close_dock_widget(self, dock_widget)
def _shutdown_plugin(self)
def _emit_close_plugin(self)
def _restore_settings(self, plugin_settings, instance_settings)
def _on_dock_widget_show(self, dock_widget)
def emit_shutdown_plugin_completed(self)
def _on_dock_widget_hide(self, dock_widget)
def _update_dock_widget_features(self, dock_widget)
def _emit_load_completed(self, exception=None)
def emit_restore_settings_completed(self)
def _emit_unload_completed(self)
def _add_dock_widget_to_main_window(self, dock_widget)
def remove_widget(self, widget)
def emit_save_settings_completed(self)
def _update_title_bar(self, dock_widget, hide_help=False, hide_reload=False)
def _on_dock_widget_title_changed(self, dock_widget)
def __init__(self, parent, main_window, instance_id, application_context, container_manager)
def _save_settings(self, plugin_settings, instance_settings)