PresentationMediaItem(parent, plugin, controllers)¶
This is the Presentation media manager item for Presentation Items. It can present files using Openoffice and Powerpoint
Display custom media manager items for presentations.
Build the list of file extensions to be used in the Open file dialog.
Clean up the files created such as thumbnails
- filepath – File path of the presention to clean up after
- clean_for_update – Only clean thumbnails if update is needed
Determine the default application controller to use for the selected file type. This is used if “Automatic” is set as the preferred controller. Find the first (alphabetic) enabled controller which “supports” the extension. If none found, then look for a controller which “also supports” it instead.
Parameters: filename – The file name
generate_slide_data(service_item, item=None, xml_version=False, remote=False, context=2, presentation_file=None)¶
Generate the slide data. Needs to be implemented by the plugin.
- service_item – The service item to be built on
- item – The Song item to be used
- xml_version – The xml version (not used)
- remote – Triggered from remote
- context – Why is it being generated
Populate the media manager tab
load_list(files, target_group=None, initial_load=False)¶
Add presentations into the media manager. This is called both on initial load of the plugin to populate with existing files, and when the user adds new files via the media manager.
Remove a presentation item from the list.
Load the combobox with the enabled presentation controllers, allowing user to select a specific app if settings allow.
Set which icons the media manager tab should show.
The name of the plugin media displayed in UI
Search in files
- string – name to be found
- show_error – not used
Do some additional setup.