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.
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.
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
Add an author to the list.
Add a book to the list.
Add a topic to the list.
Called when the authors_list_widget’s current row has changed.
Delete the author if the author is not attached to any songs.
Delete the Book if the Book is not attached to any songs.
Delete the Book if the Book is not attached to any songs.
Edit an author.
Edit a book.
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.
Reloads the Authors list.