Part of elisa.plugins.poblesec.slideshow.player View In Hierarchy
PicturePlayer is the main interface to slideshow handling. It is responsible for registration, creation and switching of slideshows. It acts as a stable proxy to the currently selected slideshow forwarding user requests to it. Emit the signals: - current-picture-changed: when the current picture displayed/in focus is changed; at that point the actual picture file starts being loaded params: L{elisa.plugins.base.models.image.ImageModel} of the picture C{int} index of the picture in the playlist - current-picture-loaded: when the current picture is finally loaded params: L{pgm.timing.implicit.AnimatedObject} wrapping the image drawable containing the loaded picture - status-changed: when L{status} changes params: one of [Slideshow.STOPPED, Slideshow.PLAYING] - playlist-size-changed: when the size of the playlist changes params: size of the playlist - available-slideshows-changed: when a slideshow has been added or removed from the list of available slideshows params: the list of available slideshows - slideshow-changed: when the currently selected slideshow has changed params: the newly selected slideshow type - current-picture-rotated: when the currently displayed/in focus picture has been rotated params: final orientation of the picture; rotation constant from L{elisa.plugins.base.models.image} @ivar status: whether the current slideshow was started or not @type status: one of [Slideshow.STOPPED, Slideshow.PLAYING]
Line # | Kind | Name | Docs |
---|---|---|---|
122 | Method | __init__ | |
165 | Method | set_playlist | Set the list of pictures to display during the slideshow and display one |
180 | Method | clear_playlist | Empty the playlist and removes any displayed picture from the playground. |
189 | Method | get_playlist_size | Return the size of the playlist. |
197 | Method | set_interval | Set the time during which a picture should be displayed/in focus for the |
208 | Method | start_slideshow | Start the currently selected automated slideshow. |
221 | Method | stop_slideshow | Stop the currently selected slideshow. |
230 | Method | next | Display the next picture in the playlist. |
236 | Method | previous | Display the previous picture in the playlist. |
242 | Method | get_current_picture | Return the model of the current picture in the playlist. |
250 | Method | rotate_current_picture | Visually rotate the current picture. |
262 | Method | set_slideshow | Switch the currently selected slideshow for another one. |
305 | Method | get_slideshow | Return the type of the currently selected slideshow. |
314 | Method | get_available_slideshows | Return the list of available slideshows. |
323 | Method | register_slideshow | Register a slideshow in the list of available slideshows. |
337 | Method | _get_status | Undocumented |
342 | Method | _apply_rotation | Undocumented |
360 | Method | _on_slideshow_picture_changed | Undocumented |
367 | Method | _update_playcount_and_timestamp | Undocumented |
390 | Method | _on_slideshow_picture_loaded | Undocumented |
401 | Method | _on_slideshow_status_changed | Undocumented |
404 | Method | _on_slideshow_end_reached | Undocumented |
Parameters | playground | node of the scene where the pictures will be displayed
(type: elisa.plugins.pigment.graph.group.Group
) |
Parameters | playlist | list of pictures to display during the slideshow
(type: list of elisa.plugins.base.models.image.ImageModel
) |
picture_index | index in the playlist of the picture to display immediately
(type: int
) |
Parameters | interval | time in seconds
(type: float
) |
Parameters | index | index in the playlist of the picture to start the slideshow with
(type: int
) |
Returns | (type: elisa.plugins.base.models.image.ImageModel
) |
Parameters | orientation | final orientation of the picture
(type: rotation constant from elisa.plugins.base.models.image
) |
Parameters | slideshow_class | class of the slideshow that should become the current one
(type: a class inheriting from elisa.plugins.poblesec.slideshow.transition_slideshow.Slideshow
) |
Returns | (type: a class inheriting from elisa.plugins.poblesec.slideshow.transition_slideshow.Slideshow
) |
Returns | (type: a list of classes inheriting from elisa.plugins.poblesec.slideshow.transition_slideshow.Slideshow
) |
Parameters | slideshow_class | class of the slideshow that is to be registered
(type: a class inheriting from elisa.plugins.poblesec.slideshow.transition_slideshow.Slideshow
) |