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
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
-
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_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
-