manager

mod:openlp.core.ui.projector.manager` module

Provides the functions for the display/control of Projectors.

class openlp.core.ui.projector.manager.ProjectorItem(link=None)[source]

Bases: PyQt5.QtCore.QObject

Class for the projector list widget item. NOTE: Actual PJLink class instance should be saved as self.link

class openlp.core.ui.projector.manager.ProjectorManager(parent=None, projectordb=None)[source]

Bases: openlp.core.common.openlpmixin.OpenLPMixin, openlp.core.common.registrymixin.RegistryMixin, PyQt5.QtWidgets.QWidget, openlp.core.ui.projector.manager.UiProjectorManager, openlp.core.common.registryproperties.RegistryProperties

Manage the projectors.

add_projector(projector, start=False)[source]

Builds manager list item, projector thread, and timer for projector instance.

Parameters:
  • projector – Projector instance to add
  • start – Start projector if True
add_projector_from_wizard(ip, opts=None)[source]

Add a projector from the edit dialog

Parameters:
  • ip – IP address of new record item to find
  • opts – Needed by PyQt5
authentication_error(name)[source]

Display warning dialog when attempting to connect with invalid pin

Parameters:name – Name from QListWidgetItem
bootstrap_initialise()[source]

Pre-initialize setups.

bootstrap_post_set_up()[source]

Post-initialize setups.

context_menu(point)[source]

Build the Right Click Context menu and set state.

Parameters:point – The position of the mouse so the correct item can be found.
edit_projector_from_wizard(projector)[source]

Update projector from the wizard edit page

Parameters:projector – Projector() instance of projector with updated information
get_projector_list()[source]

Return the list of active projectors

Returns:list
get_settings()[source]

Retrieve the saved settings

get_toolbar_item(name, enabled=False, hidden=False)[source]
no_authentication_error(name)[source]

Display warning dialog when pin saved for item but projector does not require pin.

Parameters:name – Name from QListWidgetItem
on_add_projector(opt=None)[source]

Calls edit dialog to add a new projector to the database

Parameters:opt – Needed by PyQt5
on_blank_projector(opt=None)[source]

Calls projector thread to send blank screen command

Parameters:opt – Needed by PyQt5
on_connect_projector(opt=None)[source]

Calls projector thread to connect to projector

Parameters:opt – Needed by PyQt5
on_delete_projector(opt=None)[source]

Deletes a projector from the list and the database

Parameters:opt – Needed by PyQt5
on_disconnect_projector(opt=None)[source]

Calls projector thread to disconnect from projector

Parameters:opt – Needed by PyQt5
on_doubleclick_item(item, opt=None)[source]

When item is doubleclicked, will connect to projector.

Parameters:
  • item – List widget item for connection.
  • opt – Needed by PyQt5
on_edit_input(opt=None)[source]
on_edit_projector(opt=None)[source]

Calls edit dialog with selected projector to edit information

Parameters:opt – Needed by PyQt5
on_poweroff_projector(opt=None)[source]

Calls projector link to send Power Off command

Parameters:opt – Needed by PyQt5
on_poweron_projector(opt=None)[source]

Calls projector link to send Power On command

Parameters:opt – Needed by PyQt5
on_select_input(opt=None, edit=False)[source]

Builds menu for ‘Select Input’ option, then calls the selected projector item to change input source.

Parameters:opt – Needed by PyQt5
on_show_projector(opt=None)[source]

Calls projector thread to send open shutter command

Parameters:opt – Needed by PyQt5
on_status_projector(opt=None)[source]

Builds message box with projector status information

Parameters:opt – Needed by PyQt5
update_icons()[source]

Update the icons when the selected projectors change

update_status(ip, status=None, msg=None)[source]

Update the status information/icon for selected list item

Parameters:
  • ip – IP address of projector
  • status – Optional status code
  • msg – Optional status message
class openlp.core.ui.projector.manager.UiProjectorManager[source]

Bases: object

UI part of the Projector Manager

setup_ui(widget)[source]

Define the UI

Parameters:widget – The screen object the dialog is to be attached to.
openlp.core.ui.projector.manager.not_implemented(function)[source]

Temporary function to build an information message box indicating function not implemented yet

Parameters:func – Function name