Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
qt_gui.plugin_handler.PluginHandler Class Reference
Inheritance diagram for qt_gui.plugin_handler.PluginHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def argv
def emit_restore_settings_completed
def emit_save_settings_completed
def emit_shutdown_plugin_completed
def instance_id
def load
def remove_toolbar
def remove_widget
def restore_settings
def save_settings
def set_minimized_dock_widgets_toolbar
def set_plugin_descriptor
def shutdown_plugin
def unload

Static Public Attributes

tuple close_signal = Signal(str)
tuple help_signal = Signal(str)
tuple reload_signal = Signal(str)

Private Member Functions

def _add_dock_widget
def _add_dock_widget_to_main_window
def _add_toolbar
def _call_method_on_all_dock_widgets
def _check_close
def _create_dock_widget
def _delete_toolbar
def _delete_widget
def _emit_close_plugin
def _emit_help_signal
def _emit_load_completed
def _emit_reload_signal
def _emit_unload_completed
def _garbage_widgets_and_toolbars
def _load
def _on_dock_widget_hide
def _on_dock_widget_show
def _on_widget_icon_changed
def _on_widget_title_changed
def _remove_widget_by_dock_widget
def _restore_settings
def _save_settings
def _set_window_icon
def _shutdown_plugin
def _trigger_configuration
def _unload
def _update_dock_widget_features
def _update_title_bar
def _update_title_bars

Private Attributes

 __callback
 __instance_settings
 _application_context
 _argv
 _container_manager
 _instance_id
 _main_window
 _minimized_dock_widgets_toolbar
 _plugin_descriptor
 _plugin_has_configuration
 _plugin_provider
 _toolbars
 _widgets

Static Private Attributes

tuple _defered_check_close = Signal()

Detailed Description

Base class for the bidirectional exchange between the framework and one `Plugin` instance.
It utilizes a `PluginProvider` to load/unload the plugin and provides callbacks for the `PluginContext`.

Definition at line 42 of file plugin_handler.py.


Constructor & Destructor Documentation

def qt_gui.plugin_handler.PluginHandler.__init__ (   self,
  parent,
  main_window,
  instance_id,
  application_context,
  container_manager,
  argv = None 
)

Definition at line 54 of file plugin_handler.py.


Member Function Documentation

def qt_gui.plugin_handler.PluginHandler._add_dock_widget (   self,
  dock_widget,
  widget 
) [private]

Definition at line 296 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._add_dock_widget_to_main_window (   self,
  dock_widget 
) [private]

Definition at line 313 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._add_toolbar (   self,
  toolbar 
) [private]

Definition at line 359 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._call_method_on_all_dock_widgets (   self,
  method_name,
  instance_settings 
) [private]

Definition at line 198 of file plugin_handler.py.

Definition at line 389 of file plugin_handler.py.

Definition at line 235 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._delete_toolbar (   self,
  toolbar 
) [private]

Definition at line 148 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._delete_widget (   self,
  widget 
) [private]

Definition at line 145 of file plugin_handler.py.

Definition at line 394 of file plugin_handler.py.

Definition at line 287 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._emit_load_completed (   self,
  exception = None 
) [private]

Definition at line 105 of file plugin_handler.py.

Definition at line 290 of file plugin_handler.py.

Definition at line 166 of file plugin_handler.py.

Definition at line 115 of file plugin_handler.py.

Definition at line 102 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._on_dock_widget_hide (   self,
  dock_widget 
) [private]

Definition at line 329 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._on_dock_widget_show (   self,
  dock_widget 
) [private]

Definition at line 333 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._on_widget_icon_changed (   self,
  widget 
) [private]

Definition at line 321 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._on_widget_title_changed (   self,
  widget 
) [private]

Definition at line 325 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._remove_widget_by_dock_widget (   self,
  dock_widget 
) [private]

Definition at line 283 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._restore_settings (   self,
  plugin_settings,
  instance_settings 
) [private]

Definition at line 222 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._save_settings (   self,
  plugin_settings,
  instance_settings 
) [private]

Definition at line 186 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._set_window_icon (   self,
  widget 
) [private]

Definition at line 269 of file plugin_handler.py.

Definition at line 135 of file plugin_handler.py.

Definition at line 293 of file plugin_handler.py.

Definition at line 163 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._update_dock_widget_features (   self,
  dock_widget 
) [private]

Definition at line 242 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler._update_title_bar (   self,
  dock_widget,
  hide_help = False,
  hide_reload = False 
) [private]

Definition at line 252 of file plugin_handler.py.

Definition at line 277 of file plugin_handler.py.

Definition at line 81 of file plugin_handler.py.

Definition at line 225 of file plugin_handler.py.

Definition at line 189 of file plugin_handler.py.

Definition at line 138 of file plugin_handler.py.

Definition at line 78 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler.load (   self,
  plugin_provider,
  callback = None 
)
Load plugin.
Completion is signaled asynchronously if a callback is passed.

Definition at line 90 of file plugin_handler.py.

Definition at line 381 of file plugin_handler.py.

Definition at line 339 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler.restore_settings (   self,
  plugin_settings,
  instance_settings,
  callback = None 
)
Restore settings of the plugin (`Plugin.restore_settings()`) and all dock widget title bars.
Completion is signaled asynchronously if a callback is passed.

Definition at line 208 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler.save_settings (   self,
  plugin_settings,
  instance_settings,
  callback = None 
)
Save settings of the plugin (`Plugin.save_settings()`) and all dock widget title bars.
Completion is signaled asynchronously if a callback is passed.

Definition at line 172 of file plugin_handler.py.

Definition at line 84 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler.set_plugin_descriptor (   self,
  plugin_descriptor 
)

Definition at line 87 of file plugin_handler.py.

Shutdown plugin (`Plugin.shutdown_plugin()`) and remove all added widgets.
Completion is signaled asynchronously if a callback is passed.

Definition at line 123 of file plugin_handler.py.

def qt_gui.plugin_handler.PluginHandler.unload (   self,
  callback = None 
)
Unload plugin.
Completion is signaled asynchronously if a callback is passed.

Definition at line 151 of file plugin_handler.py.


Member Data Documentation

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 52 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 54 of file plugin_handler.py.

Definition at line 49 of file plugin_handler.py.

Definition at line 51 of file plugin_handler.py.

Definition at line 50 of file plugin_handler.py.


The documentation for this class was generated from the following file:


qt_gui
Author(s): Dirk Thomas
autogenerated on Mon Oct 6 2014 03:57:52