songmaintenanceform

class openlp.plugins.songs.forms.songmaintenanceform.SongMaintenanceForm(manager, parent=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.songs.forms.songmaintenancedialog.Ui_SongMaintenanceDialog, openlp.core.common.registryproperties.RegistryProperties

Class documentation goes here.

check_author_exists(new_author, edit=False)[source]

Returns False if the given Author already exists, otherwise True.

Parameters:
  • new_author – The new Author.
  • edit – Are we editing the song?
check_song_book_exists(new_book, edit=False)[source]

Returns False if the given Topic already exists, otherwise True.

Parameters:
  • new_book – The new Book.
  • edit – Are we editing the song?
check_topic_exists(new_topic, edit=False)[source]

Returns False if the given Topic already exists, otherwise True.

Parameters:
  • new_topic – The new Topic.
  • edit – Are we editing the song?
exec(from_song_edit=False)[source]

Show the dialog.

Parameters:from_song_edit – Indicates if the maintenance dialog has been opened from song edit or from the media manager. Defaults to False.
merge_authors(old_author)[source]

Merges two authors into one author.

Parameters:old_author – The object, which was edited, that will be deleted
merge_song_books(old_song_book)[source]

Merges two books into one book.

old_song_book
The object, which was edited, that will be deleted
merge_topics(old_topic)[source]

Merges two topics into one topic.

Parameters:old_topic – The object, which was edited, that will be deleted
on_add_author_button_clicked()[source]

Add an author to the list.

on_add_book_button_clicked()[source]

Add a book to the list.

on_add_topic_button_clicked()[source]

Add a topic to the list.

on_authors_list_row_changed(row)[source]

Called when the authors_list_widget’s current row has changed.

on_delete_author_button_clicked()[source]

Delete the author if the author is not attached to any songs.

on_delete_book_button_clicked()[source]

Delete the Book if the Book is not attached to any songs.

on_delete_topic_button_clicked()[source]

Delete the Book if the Book is not attached to any songs.

on_edit_author_button_clicked()[source]

Edit an author.

on_edit_book_button_clicked()[source]

Edit a book.

on_edit_topic_button_clicked()[source]

Edit a topic.

on_song_books_list_row_changed(row)[source]

Called when the song_books_list_widget’s current row has changed.

on_topics_list_row_changed(row)[source]

Called when the topics_list_widget’s current row has changed.

reset_authors()[source]

Reloads the Authors list.

reset_song_books()[source]

Reloads the Books list.

reset_topics()[source]

Reloads the Topics list.