SongPro import

This commit is contained in:
Jonathan Corwin 2012-06-23 23:47:26 +01:00
parent 6b56b2ac04
commit 64d0494ff1

View File

@ -44,6 +44,7 @@ from powersongimport import PowerSongImport
from ewimport import EasyWorshipSongImport from ewimport import EasyWorshipSongImport
from songbeamerimport import SongBeamerImport from songbeamerimport import SongBeamerImport
from songshowplusimport import SongShowPlusImport from songshowplusimport import SongShowPlusImport
from songproimport import SongProImport
from foilpresenterimport import FoilPresenterImport from foilpresenterimport import FoilPresenterImport
from zionworximport import ZionWorxImport from zionworximport import ZionWorxImport
# Imports that might fail # Imports that might fail
@ -143,11 +144,11 @@ class SongFormat(object):
OpenSong = 9 OpenSong = 9
PowerSong = 10 PowerSong = 10
SongBeamer = 11 SongBeamer = 11
SongShowPlus = 12 SongPro = 12
SongsOfFellowship = 13 SongShowPlus = 13
WordsOfWorship = 14 SongsOfFellowship = 14
ZionWorx = 15 WordsOfWorship = 15
#CSV = 16 ZionWorx = 16
# Set optional attribute defaults # Set optional attribute defaults
__defaults__ = { __defaults__ = {
@ -258,6 +259,18 @@ class SongFormat(object):
u'filter': u'%s (*.sng)' % translate('SongsPlugin.ImportWizardForm', u'filter': u'%s (*.sng)' % translate('SongsPlugin.ImportWizardForm',
'SongBeamer Files') 'SongBeamer Files')
}, },
SongPro: {
u'class': SongProImport,
u'name': u'SongPro',
u'prefix': u'songPro',
u'selectMode': SongFormatSelect.SingleFile,
u'filter': u'%s (*.txt)' % translate('SongsPlugin.ImportWizardForm',
'SongPro Text Files'),
u'comboBoxText': translate('SongsPlugin.ImportWizardForm',
'SongPro (Export File)'),
u'descriptionText': translate('SongsPlugin.ImportWizardForm',
'In SongPro, export your songs using the File -> Export menu')
},
SongShowPlus: { SongShowPlus: {
u'class': SongShowPlusImport, u'class': SongShowPlusImport,
u'name': u'SongShow Plus', u'name': u'SongShow Plus',
@ -293,12 +306,6 @@ class SongFormat(object):
'First convert your ZionWorx database to a CSV text file, as ' 'First convert your ZionWorx database to a CSV text file, as '
'explained in the <a href="http://manual.openlp.org/songs.html' 'explained in the <a href="http://manual.openlp.org/songs.html'
'#importing-from-zionworx">User Manual</a>.') '#importing-from-zionworx">User Manual</a>.')
# },
# CSV: {
# u'class': CSVImport,
# u'name': WizardStrings.CSV,
# u'prefix': u'csv',
# u'selectMode': SongFormatSelect.SingleFile
} }
} }
@ -320,6 +327,7 @@ class SongFormat(object):
SongFormat.OpenSong, SongFormat.OpenSong,
SongFormat.PowerSong, SongFormat.PowerSong,
SongFormat.SongBeamer, SongFormat.SongBeamer,
SongFormat.SongPro,
SongFormat.SongShowPlus, SongFormat.SongShowPlus,
SongFormat.SongsOfFellowship, SongFormat.SongsOfFellowship,
SongFormat.WordsOfWorship, SongFormat.WordsOfWorship,