editcustomform¶
-
class
openlp.plugins.custom.forms.editcustomform.
EditCustomForm
(media_item, parent, manager)[source]¶ Bases:
PyQt5.QtWidgets.QDialog
,openlp.plugins.custom.forms.editcustomdialog.Ui_CustomEditDialog
Class documentation goes here.
-
accept
()[source]¶ Override the QDialog method to check if the custom slide has been saved before closing the dialog.
-
load_custom
(id, preview=False)[source]¶ Called when editing or creating a new custom.
Parameters: - id – The custom’s id. If zero, then a new custom is created.
- preview – States whether the custom is edited while being previewed in the preview panel.
-
load_themes
(theme_list)[source]¶ Load a list of themes into the themes combo box.
Parameters: theme_list – The list of themes to load.
Add a new blank slide.
-
on_current_row_changed
(row)[source]¶ Called when the slide_list_view’s current row has been changed. This enables or disables buttons which require an slide to act on.
Parameters: row – The row (int). If there is no current row, the value is -1.
Removes the current row from the list.
Move a slide down in the list when the “Down” button is clicked.
Edits all slides.
Edit the currently selected slide.
Save the custom item and preview it.
Move a slide up in the list when the “Up” button is clicked.
-