This is the display screen as a specialized class from the Display class
Display an alert.
- text – The text to be displayed.
- location – Where on the screen is the text to be displayed
Store the service_item and build the new HTML from it. Add the HTML to the display
- service_item – The Service item to be used
- image_path – Where the image resides.
Changes the display window level on Mac OS X so that the main window can be brought into focus but still allow the main display to be above the menu bar and dock when it in focus.
Parameters: window – Window from our application that focus changed to or None if outside our application
Catch the close event, and check that the close event is triggered by OpenLP closing the display. On Windows this event can be triggered by pressing ALT+F4, which we want to ignore.
Parameters: event – The triggered event
API for replacement backgrounds so Images are added directly to cache.
- path – Path to Image
- background – The background color
Hide the display by making all layers transparent Store the images so they can be replaced when required
Parameters: mode – How the screen is to be hidden
Add an image as the background. The image has already been added to the cache.
Parameters: path – The path to the image to be displayed. Note, the path is only passed to identify the image. If the image has changed it has to be re-added to the image manager.
Reset the background image to the service item image. Used after the image plugin has changed the background.
Set the transparency of the window
Parameters: enabled – Is transparency enabled
Resizes the web_view a bit to force an update. Workaround for bug #1531319, should not be needed with PyQt 5.6.
Show the stored layers so the screen reappears as it was originally. Make the stored images None to release memory.