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.
on_add_button_clicked()[source]

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.
on_delete_button_clicked()[source]

Removes the current row from the list.

on_down_button_clicked()[source]

Move a slide down in the list when the “Down” button is clicked.

on_edit_all_button_clicked()[source]

Edits all slides.

on_edit_button_clicked()[source]

Edit the currently selected slide.

on_preview_button_clicked()[source]

Save the custom item and preview it.

on_up_button_clicked()[source]

Move a slide up in the list when the “Up” button is clicked.

save_custom()[source]

Saves the custom.

update_slide_list(slides, edit_all=False)[source]

Updates the slide list after editing slides.

Parameters:
  • slides – A list of all slides which have been edited.
  • edit_all – Indicates if all slides or only one slide has been edited.