forked from openlp/openlp
Even more comments.
This commit is contained in:
parent
f179e5ca95
commit
bbe9293392
@ -157,6 +157,9 @@ class DuplicateSongRemovalForm(OpenLPWizard):
|
|||||||
def customPageChanged(self, pageId):
|
def customPageChanged(self, pageId):
|
||||||
"""
|
"""
|
||||||
Called when changing the wizard page.
|
Called when changing the wizard page.
|
||||||
|
|
||||||
|
``pageId``
|
||||||
|
ID of the page the wizard changed to.
|
||||||
"""
|
"""
|
||||||
#hide back button
|
#hide back button
|
||||||
self.button(QtGui.QWizard.BackButton).hide()
|
self.button(QtGui.QWizard.BackButton).hide()
|
||||||
@ -193,6 +196,12 @@ class DuplicateSongRemovalForm(OpenLPWizard):
|
|||||||
Inserts a song duplicate (two simliar songs) to the duplicate song list.
|
Inserts a song duplicate (two simliar songs) to the duplicate song list.
|
||||||
If one of the two songs is already part of the duplicate song list,
|
If one of the two songs is already part of the duplicate song list,
|
||||||
don't add another duplicate group but add the other song to that group.
|
don't add another duplicate group but add the other song to that group.
|
||||||
|
|
||||||
|
``searchSong``
|
||||||
|
The song we searched the duplicate for.
|
||||||
|
|
||||||
|
``duplicateSong``
|
||||||
|
The duplicate song.
|
||||||
"""
|
"""
|
||||||
duplicateGroupFound = False
|
duplicateGroupFound = False
|
||||||
for duplicates in self.duplicateSongList:
|
for duplicates in self.duplicateSongList:
|
||||||
@ -245,6 +254,9 @@ class DuplicateSongRemovalForm(OpenLPWizard):
|
|||||||
Removes a song from the database, removes the GUI element representing the
|
Removes a song from the database, removes the GUI element representing the
|
||||||
song on the review page, and disable the remove button if only one duplicate
|
song on the review page, and disable the remove button if only one duplicate
|
||||||
is left.
|
is left.
|
||||||
|
|
||||||
|
``songReviewWidget``
|
||||||
|
The SongReviewWidget whose song we should delete.
|
||||||
"""
|
"""
|
||||||
#remove song
|
#remove song
|
||||||
item_id = songReviewWidget.song.id
|
item_id = songReviewWidget.song.id
|
||||||
@ -323,6 +335,13 @@ class SongReviewWidget(QtGui.QWidget):
|
|||||||
when the remove button is clicked.
|
when the remove button is clicked.
|
||||||
"""
|
"""
|
||||||
def __init__(self, parent, song):
|
def __init__(self, parent, song):
|
||||||
|
"""
|
||||||
|
``parent``
|
||||||
|
The QWidget-derived parent of the wizard.
|
||||||
|
|
||||||
|
``song``
|
||||||
|
The Song which this SongReviewWidget should represent.
|
||||||
|
"""
|
||||||
QtGui.QWidget.__init__(self, parent)
|
QtGui.QWidget.__init__(self, parent)
|
||||||
self.song = song
|
self.song = song
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
|
Loading…
Reference in New Issue
Block a user