forked from openlp/openlp
Small wizard refactor
This commit is contained in:
parent
281b24b815
commit
565289cf7e
@ -70,6 +70,12 @@ class OpenLPWizard(QtGui.QWizard):
|
|||||||
self.retranslateUi()
|
self.retranslateUi()
|
||||||
QtCore.QMetaObject.connectSlotsByName(self)
|
QtCore.QMetaObject.connectSlotsByName(self)
|
||||||
|
|
||||||
|
def registerFields(self):
|
||||||
|
"""
|
||||||
|
Hook method for wizards to register any fields they need.
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
def addProgressPage(self):
|
def addProgressPage(self):
|
||||||
"""
|
"""
|
||||||
Add the progress page for the wizard. This page informs the user how
|
Add the progress page for the wizard. This page informs the user how
|
||||||
|
@ -87,7 +87,8 @@ class SongExportForm(OpenLPWizard):
|
|||||||
Song wizard specific signals.
|
Song wizard specific signals.
|
||||||
"""
|
"""
|
||||||
QtCore.QObject.connect(self.availableListWidget,
|
QtCore.QObject.connect(self.availableListWidget,
|
||||||
QtCore.SIGNAL(u'itemActivated(QListWidgetItem*)'), self.onItemPressed)
|
QtCore.SIGNAL(u'itemActivated(QListWidgetItem*)'),
|
||||||
|
self.onItemPressed)
|
||||||
QtCore.QObject.connect(self.searchLineEdit,
|
QtCore.QObject.connect(self.searchLineEdit,
|
||||||
QtCore.SIGNAL(u'textEdited(const QString&)'),
|
QtCore.SIGNAL(u'textEdited(const QString&)'),
|
||||||
self.onSearchLineEditChanged)
|
self.onSearchLineEditChanged)
|
||||||
@ -241,12 +242,6 @@ class SongExportForm(OpenLPWizard):
|
|||||||
self.selectedListWidget.clear()
|
self.selectedListWidget.clear()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def registerFields(self):
|
|
||||||
"""
|
|
||||||
Register song export wizard fields.
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def setDefaults(self):
|
def setDefaults(self):
|
||||||
"""
|
"""
|
||||||
Set default form values for the song export wizard.
|
Set default form values for the song export wizard.
|
||||||
|
@ -671,12 +671,6 @@ class SongImportForm(OpenLPWizard):
|
|||||||
"""
|
"""
|
||||||
self.removeSelectedItems(self.songBeamerFileListWidget)
|
self.removeSelectedItems(self.songBeamerFileListWidget)
|
||||||
|
|
||||||
def registerFields(self):
|
|
||||||
"""
|
|
||||||
Register song import wizard fields.
|
|
||||||
"""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def setDefaults(self):
|
def setDefaults(self):
|
||||||
"""
|
"""
|
||||||
Set default form values for the song import wizard.
|
Set default form values for the song import wizard.
|
||||||
|
Loading…
Reference in New Issue
Block a user