Part of elisa.plugins.pigment.pigment_frontend View In Hierarchy
elisa.core.components.frontend.Frontend
for the Pigment toolkit.
It creates the canvas, the viewport, and the root controller (which keeps the root of the widgets hierarchy), using values specified in the configuration.
Instance Variables | viewport | the Pigment viewport
(type: pgm.Viewport
) |
canvas | the Pigment canvas
(type: pgm.Canvas
) | |
config | data from the configuration file loaded at Elisa startup, or the default
(type: elisa.core.config.Config
) | |
controller | the root controller, containing the root of widget hierarchy
(type: elisa.plugins.pigment.pigment_controller.PigmentController
) | |
gtk_window | Gtk window, optionnally embedding the Pigment viewport
(type: gtk.Window
) |
Line # | Kind | Name | Docs |
---|---|---|---|
340 | Method | initialize | Initialize the component. |
545 | Method | reduce_window | Undocumented |
549 | Method | handle_input | Undocumented |
576 | Method | set_theme | Set a new theme for the frontend. |
597 | Method | get_theme | Get the current theme. |
605 | Method | load_from_theme | Loads an icon from the theme into a Pigment image. |
663 | Method | clean | Clean the component. |
511 | Method | _components_loaded_msg | Undocumented |
524 | Method | _load_first_controller | Undocumented |
542 | Method | _viewport_delete_event | Undocumented |
553 | Method | _initialize_theme | Initialize a theme for the frontend. |
572 | Method | _reload_theme | Undocumented |
649 | Method | _file_loaded | Undocumented |
655 | Method | _clone_removed | Undocumented |
688 | Method | _configure_callback | Undocumented |
695 | Method | _update_pass_callback | Undocumented |
698 | Method | _resize_canvas | Undocumented |
705 | Method | _motion_notify_callback | Undocumented |
713 | Method | _hide_cursor | Undocumented |
716 | Method | _initialize_dbus | Undocumented |
727 | Method | _clean_dbus | Undocumented |
741 | Method | _viewport_drag_motion_event | Undocumented |
762 | Method | _viewport_drag_drop_event | Undocumented |
774 | Method | _viewport_drag_leave_event | Undocumented |
Inherited from Component (via Frontend):
Line # | Kind | Name | Docs |
---|---|---|---|
85 | Class | PathDescriptor | Undocumented |
97 | Class Method | create | Create and initialize the component. |
Inherited from Loggable (via Frontend, Component):
Line # | Kind | Name | Docs |
---|---|---|---|
81 | Method | __init__ | Undocumented |
Inherited from PigmentFrontendExtensionMixin:
Line # | Kind | Name | Docs |
---|---|---|---|
62 | Method | __init__ | Undocumented |
108 | Method | plugin_status_changed_cb | Callback meant to be invoked (by the plugin registry) when the status |
118 | Method | add_controller | Add a new controller to the frontend. The controller is the one that |
131 | Method | remove_controller | Remove a controller from the frontend. |
142 | Method | create_controller | Create a controller for the given path. |
178 | Method | retrieve_controllers | Retrieve the list of controllers for a given path. |
195 | Method | add_decorator | Add a decorator function for controllers matching path_pattern. |
212 | Method | remove_decorator | Remove a decorator function from the frontend. |
68 | Method | _load_enabled_controller_and_decorator_mappings | Load the controller and decorator mappings from all the enabled |
82 | Method | _update_controller_mappings | Undocumented |
95 | Method | _update_decorator_mappings | Undocumented |
171 | Method | _store_controller | Undocumented |
223 | Method | _set_frontend | Undocumented |
228 | Method | _set_path | Undocumented |
233 | Method | _decorator_callback | Undocumented |
238 | Method | _decorator_errback | Undocumented |
244 | Method | _iterate_decorators_callback | Undocumented |
248 | Method | _iterate_decorators | Undocumented |
274 | Method | _decorate | Undocumented |
This method is called by Component.create
to finish the
initialization of a component.
Returns | a deferred called when a component is fully initialized
(type: twisted.internet.defer.Deferred
) |
Parameters | theme | the new theme
(type: elisa.plugins.widgets.Theme
) |
Returns | the current theme
(type: elisa.plugins.widgets.Theme
) |
Parameters | path | icon path to load (type: str ) |
image | drawable into which the icon will be loaded
(type: pgm.Image
) | |
Returns | triggered whenever the image is loaded and shown
(type: twisted.internet.defer.Deferred
) |
This method is called when a component is not needed anymore to clean its state.
Returns | a deferred called when the component has finished cleaning its state
(type: twisted.internet.defer.Deferred
) |