forked from openlp/openlp
Rename EasiSlides to EasySlides.
Fixes: https://launchpad.net/bugs/904384
This commit is contained in:
parent
68ee74f72f
commit
a0ecae3f47
@ -47,7 +47,7 @@ class WizardStrings(object):
|
|||||||
CCLI = u'CCLI/SongSelect'
|
CCLI = u'CCLI/SongSelect'
|
||||||
CSV = u'CSV'
|
CSV = u'CSV'
|
||||||
EW = u'EasyWorship'
|
EW = u'EasyWorship'
|
||||||
ES = u'EasiSlides'
|
ES = u'EasySlides'
|
||||||
FP = u'Foilpresenter'
|
FP = u'Foilpresenter'
|
||||||
OL = u'OpenLyrics'
|
OL = u'OpenLyrics'
|
||||||
OS = u'OpenSong'
|
OS = u'OpenSong'
|
||||||
|
@ -141,9 +141,9 @@ class SongImportForm(OpenLPWizard):
|
|||||||
QtCore.QObject.connect(self.genericRemoveButton,
|
QtCore.QObject.connect(self.genericRemoveButton,
|
||||||
QtCore.SIGNAL(u'clicked()'),
|
QtCore.SIGNAL(u'clicked()'),
|
||||||
self.onGenericRemoveButtonClicked)
|
self.onGenericRemoveButtonClicked)
|
||||||
QtCore.QObject.connect(self.easiSlidesBrowseButton,
|
QtCore.QObject.connect(self.easySlidesBrowseButton,
|
||||||
QtCore.SIGNAL(u'clicked()'),
|
QtCore.SIGNAL(u'clicked()'),
|
||||||
self.onEasiSlidesBrowseButtonClicked)
|
self.onEasySlidesBrowseButtonClicked)
|
||||||
QtCore.QObject.connect(self.ewBrowseButton,
|
QtCore.QObject.connect(self.ewBrowseButton,
|
||||||
QtCore.SIGNAL(u'clicked()'),
|
QtCore.SIGNAL(u'clicked()'),
|
||||||
self.onEWBrowseButtonClicked)
|
self.onEWBrowseButtonClicked)
|
||||||
@ -201,8 +201,8 @@ class SongImportForm(OpenLPWizard):
|
|||||||
self.addFileSelectItem(u'generic', None, True)
|
self.addFileSelectItem(u'generic', None, True)
|
||||||
# CCLI File import
|
# CCLI File import
|
||||||
self.addFileSelectItem(u'ccli')
|
self.addFileSelectItem(u'ccli')
|
||||||
# EasiSlides
|
# EasySlides
|
||||||
self.addFileSelectItem(u'easiSlides', single_select=True)
|
self.addFileSelectItem(u'easySlides', single_select=True)
|
||||||
# EasyWorship
|
# EasyWorship
|
||||||
self.addFileSelectItem(u'ew', single_select=True)
|
self.addFileSelectItem(u'ew', single_select=True)
|
||||||
# Foilpresenter
|
# Foilpresenter
|
||||||
@ -248,7 +248,7 @@ class SongImportForm(OpenLPWizard):
|
|||||||
'Generic Document/Presentation'))
|
'Generic Document/Presentation'))
|
||||||
self.formatComboBox.setItemText(SongFormat.CCLI, WizardStrings.CCLI)
|
self.formatComboBox.setItemText(SongFormat.CCLI, WizardStrings.CCLI)
|
||||||
self.formatComboBox.setItemText(
|
self.formatComboBox.setItemText(
|
||||||
SongFormat.EasiSlides, WizardStrings.ES)
|
SongFormat.EasySlides, WizardStrings.ES)
|
||||||
self.formatComboBox.setItemText(
|
self.formatComboBox.setItemText(
|
||||||
SongFormat.EasyWorship, WizardStrings.EW)
|
SongFormat.EasyWorship, WizardStrings.EW)
|
||||||
self.formatComboBox.setItemText(
|
self.formatComboBox.setItemText(
|
||||||
@ -307,9 +307,9 @@ class SongImportForm(OpenLPWizard):
|
|||||||
translate('SongsPlugin.ImportWizardForm', 'The generic document/'
|
translate('SongsPlugin.ImportWizardForm', 'The generic document/'
|
||||||
'presentation importer has been disabled because OpenLP cannot '
|
'presentation importer has been disabled because OpenLP cannot '
|
||||||
'access OpenOffice or LibreOffice.'))
|
'access OpenOffice or LibreOffice.'))
|
||||||
self.easiSlidesFilenameLabel.setText(
|
self.easySlidesFilenameLabel.setText(
|
||||||
translate('SongsPlugin.ImportWizardForm', 'Filename:'))
|
translate('SongsPlugin.ImportWizardForm', 'Filename:'))
|
||||||
self.easiSlidesBrowseButton.setText(UiStrings().Browse)
|
self.easySlidesBrowseButton.setText(UiStrings().Browse)
|
||||||
self.ewFilenameLabel.setText(
|
self.ewFilenameLabel.setText(
|
||||||
translate('SongsPlugin.ImportWizardForm', 'Filename:'))
|
translate('SongsPlugin.ImportWizardForm', 'Filename:'))
|
||||||
self.ewBrowseButton.setText(UiStrings().Browse)
|
self.ewBrowseButton.setText(UiStrings().Browse)
|
||||||
@ -411,11 +411,11 @@ class SongImportForm(OpenLPWizard):
|
|||||||
'presentation file to import from.'))
|
'presentation file to import from.'))
|
||||||
self.genericAddButton.setFocus()
|
self.genericAddButton.setFocus()
|
||||||
return False
|
return False
|
||||||
elif source_format == SongFormat.EasiSlides:
|
elif source_format == SongFormat.EasySlides:
|
||||||
if self.easiSlidesFilenameEdit.text().isEmpty():
|
if self.easySlidesFilenameEdit.text().isEmpty():
|
||||||
critical_error_message_box(UiStrings().NFSp,
|
critical_error_message_box(UiStrings().NFSp,
|
||||||
WizardStrings.YouSpecifyFile % WizardStrings.ES)
|
WizardStrings.YouSpecifyFile % WizardStrings.ES)
|
||||||
self.easiSlidesBrowseButton.setFocus()
|
self.easySlidesBrowseButton.setFocus()
|
||||||
return False
|
return False
|
||||||
elif source_format == SongFormat.EasyWorship:
|
elif source_format == SongFormat.EasyWorship:
|
||||||
if self.ewFilenameEdit.text().isEmpty():
|
if self.ewFilenameEdit.text().isEmpty():
|
||||||
@ -594,9 +594,9 @@ class SongImportForm(OpenLPWizard):
|
|||||||
"""
|
"""
|
||||||
self.removeSelectedItems(self.genericFileListWidget)
|
self.removeSelectedItems(self.genericFileListWidget)
|
||||||
|
|
||||||
def onEasiSlidesBrowseButtonClicked(self):
|
def onEasySlidesBrowseButtonClicked(self):
|
||||||
self.getFileName(WizardStrings.OpenTypeFile % WizardStrings.ES,
|
self.getFileName(WizardStrings.OpenTypeFile % WizardStrings.ES,
|
||||||
self.easiSlidesFilenameEdit)
|
self.easySlidesFilenameEdit)
|
||||||
|
|
||||||
def onEWBrowseButtonClicked(self):
|
def onEWBrowseButtonClicked(self):
|
||||||
"""
|
"""
|
||||||
@ -673,7 +673,7 @@ class SongImportForm(OpenLPWizard):
|
|||||||
self.ccliFileListWidget.clear()
|
self.ccliFileListWidget.clear()
|
||||||
self.songsOfFellowshipFileListWidget.clear()
|
self.songsOfFellowshipFileListWidget.clear()
|
||||||
self.genericFileListWidget.clear()
|
self.genericFileListWidget.clear()
|
||||||
self.easiSlidesFilenameEdit.setText(u'')
|
self.easySlidesFilenameEdit.setText(u'')
|
||||||
self.ewFilenameEdit.setText(u'')
|
self.ewFilenameEdit.setText(u'')
|
||||||
self.songBeamerFileListWidget.clear()
|
self.songBeamerFileListWidget.clear()
|
||||||
self.songShowPlusFileListWidget.clear()
|
self.songShowPlusFileListWidget.clear()
|
||||||
@ -743,10 +743,10 @@ class SongImportForm(OpenLPWizard):
|
|||||||
importer = self.plugin.importSongs(SongFormat.Generic,
|
importer = self.plugin.importSongs(SongFormat.Generic,
|
||||||
filenames=self.getListOfFiles(self.genericFileListWidget)
|
filenames=self.getListOfFiles(self.genericFileListWidget)
|
||||||
)
|
)
|
||||||
elif source_format == SongFormat.EasiSlides:
|
elif source_format == SongFormat.EasySlides:
|
||||||
# Import an EasiSlides export file
|
# Import an EasySlides export file
|
||||||
importer = self.plugin.importSongs(SongFormat.EasiSlides,
|
importer = self.plugin.importSongs(SongFormat.EasySlides,
|
||||||
filename=unicode(self.easiSlidesFilenameEdit.text())
|
filename=unicode(self.easySlidesFilenameEdit.text())
|
||||||
)
|
)
|
||||||
elif source_format == SongFormat.EasyWorship:
|
elif source_format == SongFormat.EasyWorship:
|
||||||
# Import an EasyWorship database
|
# Import an EasyWorship database
|
||||||
|
@ -35,9 +35,9 @@ from openlp.plugins.songs.lib.songimport import SongImport
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class EasiSlidesImport(SongImport):
|
class EasySlidesImport(SongImport):
|
||||||
"""
|
"""
|
||||||
Import songs exported from EasiSlides
|
Import songs exported from EasySlides
|
||||||
|
|
||||||
The format example is here:
|
The format example is here:
|
||||||
http://wiki.openlp.org/Development:EasiSlides_-_Song_Data_Format
|
http://wiki.openlp.org/Development:EasiSlides_-_Song_Data_Format
|
||||||
@ -56,7 +56,7 @@ class EasiSlidesImport(SongImport):
|
|||||||
multiple opensong files. If `self.commit` is set False, the
|
multiple opensong files. If `self.commit` is set False, the
|
||||||
import will not be committed to the database (useful for test scripts).
|
import will not be committed to the database (useful for test scripts).
|
||||||
"""
|
"""
|
||||||
log.info(u'Importing EasiSlides XML file %s', self.importSource)
|
log.info(u'Importing EasySlides XML file %s', self.importSource)
|
||||||
parser = etree.XMLParser(remove_blank_text=True)
|
parser = etree.XMLParser(remove_blank_text=True)
|
||||||
parsed_file = etree.parse(self.importSource, parser)
|
parsed_file = etree.parse(self.importSource, parser)
|
||||||
xml = unicode(etree.tostring(parsed_file))
|
xml = unicode(etree.tostring(parsed_file))
|
||||||
@ -177,7 +177,7 @@ class EasiSlidesImport(SongImport):
|
|||||||
separators = (separatorlines > 0)
|
separators = (separatorlines > 0)
|
||||||
# the number of different regions in song - 1
|
# the number of different regions in song - 1
|
||||||
if len(regionlines) > 1:
|
if len(regionlines) > 1:
|
||||||
log.info(u'EasiSlidesImport: the file contained a song named "%s"'
|
log.info(u'EasySlidesImport: the file contained a song named "%s"'
|
||||||
u'with more than two regions, but only two regions are',
|
u'with more than two regions, but only two regions are',
|
||||||
u'tested, encountered regions were: %s',
|
u'tested, encountered regions were: %s',
|
||||||
self.title, u','.join(regionlines.keys()))
|
self.title, u','.join(regionlines.keys()))
|
@ -30,7 +30,7 @@ The :mod:`importer` modules provides the general song import functionality.
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from opensongimport import OpenSongImport
|
from opensongimport import OpenSongImport
|
||||||
from easislidesimport import EasiSlidesImport
|
from easyslidesimport import EasySlidesImport
|
||||||
from olpimport import OpenLPSongImport
|
from olpimport import OpenLPSongImport
|
||||||
from openlyricsimport import OpenLyricsImport
|
from openlyricsimport import OpenLyricsImport
|
||||||
from wowimport import WowImport
|
from wowimport import WowImport
|
||||||
@ -73,7 +73,7 @@ class SongFormat(object):
|
|||||||
OpenLP1 = 2
|
OpenLP1 = 2
|
||||||
Generic = 3
|
Generic = 3
|
||||||
CCLI = 4
|
CCLI = 4
|
||||||
EasiSlides = 5
|
EasySlides = 5
|
||||||
EasyWorship = 6
|
EasyWorship = 6
|
||||||
FoilPresenter = 7
|
FoilPresenter = 7
|
||||||
OpenSong = 8
|
OpenSong = 8
|
||||||
@ -107,8 +107,8 @@ class SongFormat(object):
|
|||||||
return OooImport
|
return OooImport
|
||||||
elif format == SongFormat.CCLI:
|
elif format == SongFormat.CCLI:
|
||||||
return CCLIFileImport
|
return CCLIFileImport
|
||||||
elif format == SongFormat.EasiSlides:
|
elif format == SongFormat.EasySlides:
|
||||||
return EasiSlidesImport
|
return EasySlidesImport
|
||||||
elif format == SongFormat.EasyWorship:
|
elif format == SongFormat.EasyWorship:
|
||||||
return EasyWorshipSongImport
|
return EasyWorshipSongImport
|
||||||
elif format == SongFormat.SongBeamer:
|
elif format == SongFormat.SongBeamer:
|
||||||
@ -130,7 +130,7 @@ class SongFormat(object):
|
|||||||
SongFormat.OpenLP1,
|
SongFormat.OpenLP1,
|
||||||
SongFormat.Generic,
|
SongFormat.Generic,
|
||||||
SongFormat.CCLI,
|
SongFormat.CCLI,
|
||||||
SongFormat.EasiSlides,
|
SongFormat.EasySlides,
|
||||||
SongFormat.EasyWorship,
|
SongFormat.EasyWorship,
|
||||||
SongFormat.FoilPresenter,
|
SongFormat.FoilPresenter,
|
||||||
SongFormat.OpenSong,
|
SongFormat.OpenSong,
|
||||||
|
Loading…
Reference in New Issue
Block a user