Package elisa :: Package plugins :: Package base :: Package controllers :: Module slideshow_controller :: Class SlideshowController
[hide private]
[frames] | no frames]

Class SlideshowController

source code


Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
bool
handle_input(self, input_event)
Process an input event.
source code
 
attribute_set(self, origin, key, old_value, new_value)
Called when an attribute of the model to which it is connected changes.
source code
 
_cancel_last_call_later(self) source code
 
focused_changed(self, old_focused, new_focused)
Called when focused is set to a new value.
source code
 
next_image(self) source code
 
previous_image(self) source code

Inherited from base_components.controller.Controller: backend__get, backend__set, backend_changed, focus, focused__get, focused__set, initialize, model__get, model__set, model_changed, parent__get, parent__set

Inherited from core.component.Component: clean, load_config, save_config

Inherited from core.observers.observable.Observable: __setattr__, add_observer, remove_observer

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
tuple of strings supported_models = ('base:slideshow_model')
list of models that are compatible with the controller identified by their path: 'plugin:model'
dictionary: keys: strings; values: list of strings or strings bindings = {'current_index': 'current_index', 'duration': 'dur...
associations between model's attribute and Controller's attributes; if an attribute contained in bindings' keys is changed or created in model, it is replicated in all the corresponding attributes of the controller defined in bindings values
string name = 'slideshow_controller'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.controller.Controller: backend, focused, model, parent

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: base_components.controller.Controller.__init__

handle_input(self, input_event)

source code 
Process an input event. It can decide that no further processing should be done by returning True or let its parent controller process it by returning False.
Returns: bool
Overrides: base_components.controller.Controller.handle_input
(inherited documentation)

attribute_set(self, origin, key, old_value, new_value)

source code 
Called when an attribute of the model to which it is connected changes.
Overrides: base_components.controller.Controller.attribute_set
(inherited documentation)

focused_changed(self, old_focused, new_focused)

source code 

Called when focused is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.controller.Controller.focused_changed
(inherited documentation)

Class Variable Details [hide private]

bindings

associations between model's attribute and Controller's attributes; if an attribute contained in bindings' keys is changed or created in model, it is replicated in all the corresponding attributes of the controller defined in bindings values
Type:
dictionary: keys: strings; values: list of strings or strings
Value:
{'current_index': 'current_index',
 'duration': 'duration',
 'playing': 'playing',
 'preview_mode': 'preview_mode'}