camelCase changes

This commit is contained in:
Andreas Preikschat 2010-12-08 18:18:12 +01:00
parent 6fd338c492
commit 12e7c96463
2 changed files with 385 additions and 385 deletions

View File

@ -31,7 +31,7 @@ import os.path
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui
from bibleimportwizard import Ui_BibleImportWizard from bibleimportwizard import Ui_bibleImportWizard
from openlp.core.lib import Receiver, SettingsManager, translate from openlp.core.lib import Receiver, SettingsManager, translate
from openlp.core.lib.db import delete_database from openlp.core.lib.db import delete_database
from openlp.core.utils import AppLocation from openlp.core.utils import AppLocation
@ -54,7 +54,7 @@ class WebDownload(object):
return cls.Names[name] return cls.Names[name]
class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard): class BibleImportForm(QtGui.QWizard, Ui_bibleImportWizard):
""" """
This is the Bible Import Wizard, which allows easy importing of Bibles This is the Bible Import Wizard, which allows easy importing of Bibles
into OpenLP from other formats like OSIS, CSV and OpenSong. into OpenLP from other formats like OSIS, CSV and OpenSong.
@ -84,22 +84,22 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
self.manager.set_process_dialog(self) self.manager.set_process_dialog(self)
self.web_bible_list = {} self.web_bible_list = {}
self.loadWebBibles() self.loadWebBibles()
QtCore.QObject.connect(self.LocationComboBox, QtCore.QObject.connect(self.locationComboBox,
QtCore.SIGNAL(u'currentIndexChanged(int)'), QtCore.SIGNAL(u'currentIndexChanged(int)'),
self.onLocationComboBoxChanged) self.onLocationComboBoxChanged)
QtCore.QObject.connect(self.OsisFileButton, QtCore.QObject.connect(self.osisFileButton,
QtCore.SIGNAL(u'clicked()'), QtCore.SIGNAL(u'clicked()'),
self.onOsisFileButtonClicked) self.onOsisFileButtonClicked)
QtCore.QObject.connect(self.BooksFileButton, QtCore.QObject.connect(self.booksFileButton,
QtCore.SIGNAL(u'clicked()'), QtCore.SIGNAL(u'clicked()'),
self.onBooksFileButtonClicked) self.onBooksFileButtonClicked)
QtCore.QObject.connect(self.CsvVersesFileButton, QtCore.QObject.connect(self.csvVersesFileButton,
QtCore.SIGNAL(u'clicked()'), QtCore.SIGNAL(u'clicked()'),
self.onCsvVersesFileButtonClicked) self.onCsvVersesFileButtonClicked)
QtCore.QObject.connect(self.OpenSongBrowseButton, QtCore.QObject.connect(self.openSongBrowseButton,
QtCore.SIGNAL(u'clicked()'), QtCore.SIGNAL(u'clicked()'),
self.onOpenSongBrowseButtonClicked) self.onOpenSongBrowseButtonClicked)
QtCore.QObject.connect(self.OLP1FileButton, QtCore.QObject.connect(self.openlp1FileButton,
QtCore.SIGNAL(u'clicked()'), QtCore.SIGNAL(u'clicked()'),
self.onOLP1FileButtonClicked) self.onOLP1FileButtonClicked)
QtCore.QObject.connect(self.cancelButton, QtCore.QObject.connect(self.cancelButton,
@ -143,7 +143,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'You need to specify a file with books of ' 'You need to specify a file with books of '
'the Bible to use in the import.')) 'the Bible to use in the import.'))
self.BooksLocationEdit.setFocus() self.booksLocationEdit.setFocus()
return False return False
elif not self.field(u'csv_versefile').toString(): elif not self.field(u'csv_versefile').toString():
QtGui.QMessageBox.critical(self, QtGui.QMessageBox.critical(self,
@ -152,7 +152,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'You need to specify a file of Bible ' 'You need to specify a file of Bible '
'verses to import.')) 'verses to import.'))
self.CsvVerseLocationEdit.setFocus() self.csvVerseLocationEdit.setFocus()
return False return False
elif self.field(u'source_format').toInt()[0] == \ elif self.field(u'source_format').toInt()[0] == \
BibleFormat.OpenSong: BibleFormat.OpenSong:
@ -163,7 +163,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'You need to specify an OpenSong Bible ' 'You need to specify an OpenSong Bible '
'file to import.')) 'file to import.'))
self.OpenSongFileEdit.setFocus() self.openSongFileEdit.setFocus()
return False return False
elif self.field(u'source_format').toInt()[0] == BibleFormat.OLP1: elif self.field(u'source_format').toInt()[0] == BibleFormat.OLP1:
if not self.field(u'OLP1_location').toString(): if not self.field(u'OLP1_location').toString():
@ -173,7 +173,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'You need to specify a file to import your ' 'You need to specify a file to import your '
'Bible from.')) 'Bible from.'))
self.OLP1LocationEdit.setFocus() self.openlp1LocationEdit.setFocus()
return False return False
return True return True
elif self.currentId() == 2: elif self.currentId() == 2:
@ -187,7 +187,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
'Empty Version Name'), 'Empty Version Name'),
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'You need to specify a version name for your Bible.')) 'You need to specify a version name for your Bible.'))
self.VersionNameEdit.setFocus() self.versionNameEdit.setFocus()
return False return False
elif not license_copyright: elif not license_copyright:
QtGui.QMessageBox.critical(self, QtGui.QMessageBox.critical(self,
@ -196,7 +196,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'You need to set a copyright for your Bible. ' 'You need to set a copyright for your Bible. '
'Bibles in the Public Domain need to be marked as such.')) 'Bibles in the Public Domain need to be marked as such.'))
self.CopyrightEdit.setFocus() self.copyrightEdit.setFocus()
return False return False
elif self.manager.exists(license_version): elif self.manager.exists(license_version):
QtGui.QMessageBox.critical(self, QtGui.QMessageBox.critical(self,
@ -204,7 +204,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'This Bible already exists. Please import ' 'This Bible already exists. Please import '
'a different Bible or first delete the existing one.')) 'a different Bible or first delete the existing one.'))
self.VersionNameEdit.setFocus() self.versionNameEdit.setFocus()
return False return False
return True return True
if self.currentId() == 3: if self.currentId() == 3:
@ -219,12 +219,12 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
``index`` ``index``
The index of the combo box. The index of the combo box.
""" """
self.BibleComboBox.clear() self.bibleComboBox.clear()
bibles = [unicode(translate('BiblesPlugin.ImportWizardForm', bible)) for bibles = [unicode(translate('BiblesPlugin.ImportWizardForm', bible)) for
bible in self.web_bible_list[index].keys()] bible in self.web_bible_list[index].keys()]
bibles.sort() bibles.sort()
for bible in bibles: for bible in bibles:
self.BibleComboBox.addItem(bible) self.bibleComboBox.addItem(bible)
def onOsisFileButtonClicked(self): def onOsisFileButtonClicked(self):
""" """
@ -240,14 +240,14 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
""" """
self.getFileName( self.getFileName(
translate('BiblesPlugin.ImportWizardForm', 'Open Books CSV File'), translate('BiblesPlugin.ImportWizardForm', 'Open Books CSV File'),
self.BooksLocationEdit) self.booksLocationEdit)
def onCsvVersesFileButtonClicked(self): def onCsvVersesFileButtonClicked(self):
""" """
Show the file open dialog for the verses CSV file. Show the file open dialog for the verses CSV file.
""" """
self.getFileName(translate('BiblesPlugin.ImportWizardForm', self.getFileName(translate('BiblesPlugin.ImportWizardForm',
'Open Verses CSV File'), self.CsvVerseLocationEdit) 'Open Verses CSV File'), self.csvVerseLocationEdit)
def onOpenSongBrowseButtonClicked(self): def onOpenSongBrowseButtonClicked(self):
""" """
@ -255,7 +255,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
""" """
self.getFileName( self.getFileName(
translate('BiblesPlugin.ImportWizardForm', 'Open OpenSong Bible'), translate('BiblesPlugin.ImportWizardForm', 'Open OpenSong Bible'),
self.OpenSongFileEdit) self.openSongFileEdit)
def onOLP1FileButtonClicked(self): def onOLP1FileButtonClicked(self):
""" """
@ -263,7 +263,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
""" """
self.getFileName( self.getFileName(
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'Open openlp.org 1.x Bible'), self.OLP1LocationEdit) 'Open openlp.org 1.x Bible'), self.openlp1LocationEdit)
def onCancelButtonClicked(self, checked): def onCancelButtonClicked(self, checked):
""" """
@ -280,34 +280,34 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
self.postImport() self.postImport()
def registerFields(self): def registerFields(self):
self.SelectPage.registerField( self.selectPage.registerField(
u'source_format', self.FormatComboBox) u'source_format', self.formatComboBox)
self.SelectPage.registerField( self.selectPage.registerField(
u'osis_location', self.OSISLocationEdit) u'osis_location', self.OSISLocationEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'csv_booksfile', self.BooksLocationEdit) u'csv_booksfile', self.booksLocationEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'csv_versefile', self.CsvVerseLocationEdit) u'csv_versefile', self.csvVerseLocationEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'opensong_file', self.OpenSongFileEdit) u'opensong_file', self.openSongFileEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'web_location', self.LocationComboBox) u'web_location', self.locationComboBox)
self.SelectPage.registerField( self.selectPage.registerField(
u'web_biblename', self.BibleComboBox) u'web_biblename', self.bibleComboBox)
self.SelectPage.registerField( self.selectPage.registerField(
u'proxy_server', self.AddressEdit) u'proxy_server', self.addressEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'proxy_username', self.UsernameEdit) u'proxy_username', self.usernameEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'proxy_password', self.PasswordEdit) u'proxy_password', self.passwordEdit)
self.SelectPage.registerField( self.selectPage.registerField(
u'OLP1_location', self.OLP1LocationEdit) u'OLP1_location', self.openlp1LocationEdit)
self.LicenseDetailsPage.registerField( self.licenseDetailsPage.registerField(
u'license_version', self.VersionNameEdit) u'license_version', self.versionNameEdit)
self.LicenseDetailsPage.registerField( self.licenseDetailsPage.registerField(
u'license_copyright', self.CopyrightEdit) u'license_copyright', self.copyrightEdit)
self.LicenseDetailsPage.registerField( self.licenseDetailsPage.registerField(
u'license_permissions', self.PermissionsEdit) u'license_permissions', self.permissionsEdit)
def setDefaults(self): def setDefaults(self):
settings = QtCore.QSettings() settings = QtCore.QSettings()
@ -322,7 +322,7 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
self.setField(u'opensong_file', QtCore.QVariant('')) self.setField(u'opensong_file', QtCore.QVariant(''))
self.setField(u'web_location', QtCore.QVariant(WebDownload.Crosswalk)) self.setField(u'web_location', QtCore.QVariant(WebDownload.Crosswalk))
self.setField(u'web_biblename', self.setField(u'web_biblename',
QtCore.QVariant(self.BibleComboBox.currentIndex())) QtCore.QVariant(self.bibleComboBox.currentIndex()))
self.setField(u'proxy_server', self.setField(u'proxy_server',
settings.value(u'proxy address', QtCore.QVariant(u''))) settings.value(u'proxy address', QtCore.QVariant(u'')))
self.setField(u'proxy_username', self.setField(u'proxy_username',
@ -331,11 +331,11 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
settings.value(u'proxy password', QtCore.QVariant(u''))) settings.value(u'proxy password', QtCore.QVariant(u'')))
self.setField(u'OLP1_location', QtCore.QVariant('')) self.setField(u'OLP1_location', QtCore.QVariant(''))
self.setField(u'license_version', self.setField(u'license_version',
QtCore.QVariant(self.VersionNameEdit.text())) QtCore.QVariant(self.versionNameEdit.text()))
self.setField(u'license_copyright', self.setField(u'license_copyright',
QtCore.QVariant(self.CopyrightEdit.text())) QtCore.QVariant(self.copyrightEdit.text()))
self.setField(u'license_permissions', self.setField(u'license_permissions',
QtCore.QVariant(self.PermissionsEdit.text())) QtCore.QVariant(self.permissionsEdit.text()))
self.onLocationComboBoxChanged(WebDownload.Crosswalk) self.onLocationComboBoxChanged(WebDownload.Crosswalk)
settings.endGroup() settings.endGroup()
@ -400,8 +400,8 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
def incrementProgressBar(self, status_text): def incrementProgressBar(self, status_text):
log.debug(u'IncrementBar %s', status_text) log.debug(u'IncrementBar %s', status_text)
self.ImportProgressLabel.setText(status_text) self.importProgressLabel.setText(status_text)
self.ImportProgressBar.setValue(self.ImportProgressBar.value() + 1) self.importProgressBar.setValue(self.importProgressBar.value() + 1)
Receiver.send_message(u'openlp_process_events') Receiver.send_message(u'openlp_process_events')
def preImport(self): def preImport(self):
@ -410,15 +410,15 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
""" """
bible_type = self.field(u'source_format').toInt()[0] bible_type = self.field(u'source_format').toInt()[0]
self.finishButton.setVisible(False) self.finishButton.setVisible(False)
self.ImportProgressBar.setMinimum(0) self.importProgressBar.setMinimum(0)
self.ImportProgressBar.setMaximum(1188) self.importProgressBar.setMaximum(1188)
self.ImportProgressBar.setValue(0) self.importProgressBar.setValue(0)
if bible_type == BibleFormat.WebDownload: if bible_type == BibleFormat.WebDownload:
self.ImportProgressLabel.setText(translate( self.importProgressLabel.setText(translate(
'BiblesPlugin.ImportWizardForm', 'BiblesPlugin.ImportWizardForm',
'Starting Registering bible...')) 'Starting Registering bible...'))
else: else:
self.ImportProgressLabel.setText(translate( self.importProgressLabel.setText(translate(
'BiblesPlugin.ImportWizardForm', 'Starting import...')) 'BiblesPlugin.ImportWizardForm', 'Starting import...'))
Receiver.send_message(u'openlp_process_events') Receiver.send_message(u'openlp_process_events')
@ -453,9 +453,9 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
) )
elif bible_type == BibleFormat.WebDownload: elif bible_type == BibleFormat.WebDownload:
# Import a bible from the web. # Import a bible from the web.
self.ImportProgressBar.setMaximum(1) self.importProgressBar.setMaximum(1)
download_location = self.field(u'web_location').toInt()[0] download_location = self.field(u'web_location').toInt()[0]
bible_version = unicode(self.BibleComboBox.currentText()) bible_version = unicode(self.bibleComboBox.currentText())
if download_location == WebDownload.Crosswalk: if download_location == WebDownload.Crosswalk:
bible = \ bible = \
self.web_bible_list[WebDownload.Crosswalk][bible_version] self.web_bible_list[WebDownload.Crosswalk][bible_version]
@ -483,20 +483,20 @@ class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard):
license_copyright, license_permissions) license_copyright, license_permissions)
self.manager.reload_bibles() self.manager.reload_bibles()
if bible_type == BibleFormat.WebDownload: if bible_type == BibleFormat.WebDownload:
self.ImportProgressLabel.setText( self.importProgressLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Registered ' translate('BiblesPlugin.ImportWizardForm', 'Registered '
'bible. Please note, that verses will be downloaded on\n' 'bible. Please note, that verses will be downloaded on\n'
'demand and thus an internet connection is required.')) 'demand and thus an internet connection is required.'))
else: else:
self.ImportProgressLabel.setText(translate( self.importProgressLabel.setText(translate(
'BiblesPlugin.ImportWizardForm', 'Finished import.')) 'BiblesPlugin.ImportWizardForm', 'Finished import.'))
else: else:
self.ImportProgressLabel.setText(translate( self.importProgressLabel.setText(translate(
'BiblesPlugin.ImportWizardForm', 'Your Bible import failed.')) 'BiblesPlugin.ImportWizardForm', 'Your Bible import failed.'))
delete_database(self.bibleplugin.settingsSection, importer.file) delete_database(self.bibleplugin.settingsSection, importer.file)
def postImport(self): def postImport(self):
self.ImportProgressBar.setValue(self.ImportProgressBar.maximum()) self.importProgressBar.setValue(self.importProgressBar.maximum())
self.finishButton.setVisible(True) self.finishButton.setVisible(True)
self.cancelButton.setVisible(False) self.cancelButton.setVisible(False)
Receiver.send_message(u'openlp_process_events') Receiver.send_message(u'openlp_process_events')

View File

@ -28,392 +28,392 @@ from PyQt4 import QtCore, QtGui
from openlp.core.lib import build_icon, translate from openlp.core.lib import build_icon, translate
class Ui_BibleImportWizard(object): class Ui_bibleImportWizard(object):
def setupUi(self, BibleImportWizard): def setupUi(self, bibleImportWizard):
BibleImportWizard.setObjectName(u'BibleImportWizard') bibleImportWizard.setObjectName(u'bibleImportWizard')
BibleImportWizard.resize(550, 386) bibleImportWizard.resize(550, 386)
BibleImportWizard.setModal(True) bibleImportWizard.setModal(True)
BibleImportWizard.setWizardStyle(QtGui.QWizard.ModernStyle) bibleImportWizard.setWizardStyle(QtGui.QWizard.ModernStyle)
BibleImportWizard.setOptions( bibleImportWizard.setOptions(
QtGui.QWizard.IndependentPages | QtGui.QWizard.IndependentPages |
QtGui.QWizard.NoBackButtonOnStartPage | QtGui.QWizard.NoBackButtonOnStartPage |
QtGui.QWizard.NoBackButtonOnLastPage) QtGui.QWizard.NoBackButtonOnLastPage)
# Welcome page # Welcome page
self.WelcomePage = QtGui.QWizardPage() self.welcomePage = QtGui.QWizardPage()
self.WelcomePage.setPixmap(QtGui.QWizard.WatermarkPixmap, self.welcomePage.setPixmap(QtGui.QWizard.WatermarkPixmap,
QtGui.QPixmap(u':/wizards/wizard_importbible.bmp')) QtGui.QPixmap(u':/wizards/wizard_importbible.bmp'))
self.WelcomePage.setObjectName(u'WelcomePage') self.welcomePage.setObjectName(u'WelcomePage')
self.WelcomeLayout = QtGui.QVBoxLayout(self.WelcomePage) self.welcomeLayout = QtGui.QVBoxLayout(self.welcomePage)
self.WelcomeLayout.setSpacing(8) self.welcomeLayout.setSpacing(8)
self.WelcomeLayout.setMargin(0) self.welcomeLayout.setMargin(0)
self.WelcomeLayout.setObjectName(u'WelcomeLayout') self.welcomeLayout.setObjectName(u'WelcomeLayout')
self.TitleLabel = QtGui.QLabel(self.WelcomePage) self.titleLabel = QtGui.QLabel(self.welcomePage)
self.TitleLabel.setObjectName(u'TitleLabel') self.titleLabel.setObjectName(u'TitleLabel')
self.WelcomeLayout.addWidget(self.TitleLabel) self.welcomeLayout.addWidget(self.titleLabel)
spacerItem = QtGui.QSpacerItem(20, 40, spacerItem = QtGui.QSpacerItem(20, 40,
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
self.WelcomeLayout.addItem(spacerItem) self.welcomeLayout.addItem(spacerItem)
self.InformationLabel = QtGui.QLabel(self.WelcomePage) self.informationLabel = QtGui.QLabel(self.welcomePage)
self.InformationLabel.setWordWrap(True) self.informationLabel.setWordWrap(True)
self.InformationLabel.setMargin(10) self.informationLabel.setMargin(10)
self.InformationLabel.setObjectName(u'InformationLabel') self.informationLabel.setObjectName(u'InformationLabel')
self.WelcomeLayout.addWidget(self.InformationLabel) self.welcomeLayout.addWidget(self.informationLabel)
spacerItem1 = QtGui.QSpacerItem(20, 40, spacerItem1 = QtGui.QSpacerItem(20, 40,
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.WelcomeLayout.addItem(spacerItem1) self.welcomeLayout.addItem(spacerItem1)
BibleImportWizard.addPage(self.WelcomePage) bibleImportWizard.addPage(self.welcomePage)
# Select page # Select page
self.SelectPage = QtGui.QWizardPage() self.selectPage = QtGui.QWizardPage()
self.SelectPage.setObjectName(u'SelectPage') self.selectPage.setObjectName(u'SelectPage')
self.selectPageLayout = QtGui.QVBoxLayout(self.SelectPage) self.selectPageLayout = QtGui.QVBoxLayout(self.selectPage)
self.selectPageLayout.setSpacing(8) self.selectPageLayout.setSpacing(8)
self.selectPageLayout.setMargin(20) self.selectPageLayout.setMargin(20)
self.selectPageLayout.setObjectName(u'selectPageLayout') self.selectPageLayout.setObjectName(u'selectPageLayout')
self.FormatSelectLayout = QtGui.QHBoxLayout() self.formatSelectLayout = QtGui.QHBoxLayout()
self.FormatSelectLayout.setSpacing(8) self.formatSelectLayout.setSpacing(8)
self.FormatSelectLayout.setObjectName(u'FormatSelectLayout') self.formatSelectLayout.setObjectName(u'FormatSelectLayout')
self.FormatLabel = QtGui.QLabel(self.SelectPage) self.formatLabel = QtGui.QLabel(self.selectPage)
self.FormatLabel.setObjectName(u'FormatLabel') self.formatLabel.setObjectName(u'FormatLabel')
self.FormatSelectLayout.addWidget(self.FormatLabel) self.formatSelectLayout.addWidget(self.formatLabel)
self.FormatComboBox = QtGui.QComboBox(self.SelectPage) self.formatComboBox = QtGui.QComboBox(self.selectPage)
self.FormatComboBox.setObjectName(u'FormatComboBox') self.formatComboBox.setObjectName(u'FormatComboBox')
self.FormatComboBox.addItem(u'') self.formatComboBox.addItem(u'')
self.FormatComboBox.addItem(u'') self.formatComboBox.addItem(u'')
self.FormatComboBox.addItem(u'') self.formatComboBox.addItem(u'')
self.FormatComboBox.addItem(u'') self.formatComboBox.addItem(u'')
self.FormatComboBox.addItem(u'') self.formatComboBox.addItem(u'')
self.FormatSelectLayout.addWidget(self.FormatComboBox) self.formatSelectLayout.addWidget(self.formatComboBox)
spacerItem2 = QtGui.QSpacerItem(40, 20, spacerItem2 = QtGui.QSpacerItem(40, 20,
QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.FormatSelectLayout.addItem(spacerItem2) self.formatSelectLayout.addItem(spacerItem2)
self.selectPageLayout.addLayout(self.FormatSelectLayout) self.selectPageLayout.addLayout(self.formatSelectLayout)
self.FormatWidget = QtGui.QStackedWidget(self.SelectPage) self.formatWidget = QtGui.QStackedWidget(self.selectPage)
self.FormatWidget.setObjectName(u'FormatWidget') self.formatWidget.setObjectName(u'FormatWidget')
generalIcon = build_icon(u':/general/general_open.png') generalIcon = build_icon(u':/general/general_open.png')
self.OsisPage = QtGui.QWidget() self.osisPage = QtGui.QWidget()
self.OsisPage.setObjectName(u'OsisPage') self.osisPage.setObjectName(u'OsisPage')
self.OsisLayout = QtGui.QFormLayout(self.OsisPage) self.osisLayout = QtGui.QFormLayout(self.osisPage)
self.OsisLayout.setFieldGrowthPolicy( self.osisLayout.setFieldGrowthPolicy(
QtGui.QFormLayout.ExpandingFieldsGrow) QtGui.QFormLayout.ExpandingFieldsGrow)
self.OsisLayout.setMargin(0) self.osisLayout.setMargin(0)
self.OsisLayout.setSpacing(8) self.osisLayout.setSpacing(8)
self.OsisLayout.setObjectName(u'OsisLayout') self.osisLayout.setObjectName(u'OsisLayout')
self.OsisLocationLabel = QtGui.QLabel(self.OsisPage) self.osisLocationLabel = QtGui.QLabel(self.osisPage)
self.OsisLocationLabel.setObjectName(u'OsisLocationLabel') self.osisLocationLabel.setObjectName(u'OsisLocationLabel')
self.OsisLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.osisLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
self.OsisLocationLabel) self.osisLocationLabel)
self.OsisLocationLayout = QtGui.QHBoxLayout() self.osisLocationLayout = QtGui.QHBoxLayout()
self.OsisLocationLayout.setSpacing(8) self.osisLocationLayout.setSpacing(8)
self.OsisLocationLayout.setObjectName(u'OsisLocationLayout') self.osisLocationLayout.setObjectName(u'OsisLocationLayout')
self.OSISLocationEdit = QtGui.QLineEdit(self.OsisPage) self.OSISLocationEdit = QtGui.QLineEdit(self.osisPage)
self.OSISLocationEdit.setObjectName(u'OSISLocationEdit') self.OSISLocationEdit.setObjectName(u'OSISLocationEdit')
self.OsisLocationLayout.addWidget(self.OSISLocationEdit) self.osisLocationLayout.addWidget(self.OSISLocationEdit)
self.OsisFileButton = QtGui.QToolButton(self.OsisPage) self.osisFileButton = QtGui.QToolButton(self.osisPage)
self.OsisFileButton.setMaximumSize(QtCore.QSize(32, 16777215)) self.osisFileButton.setMaximumSize(QtCore.QSize(32, 16777215))
self.OsisFileButton.setIcon(generalIcon) self.osisFileButton.setIcon(generalIcon)
self.OsisFileButton.setObjectName(u'OsisFileButton') self.osisFileButton.setObjectName(u'OsisFileButton')
self.OsisLocationLayout.addWidget(self.OsisFileButton) self.osisLocationLayout.addWidget(self.osisFileButton)
self.OsisLayout.setLayout(1, QtGui.QFormLayout.FieldRole, self.osisLayout.setLayout(1, QtGui.QFormLayout.FieldRole,
self.OsisLocationLayout) self.osisLocationLayout)
self.FormatWidget.addWidget(self.OsisPage) self.formatWidget.addWidget(self.osisPage)
self.CsvPage = QtGui.QWidget() self.csvPage = QtGui.QWidget()
self.CsvPage.setObjectName(u'CsvPage') self.csvPage.setObjectName(u'CsvPage')
self.CsvSourceLayout = QtGui.QFormLayout(self.CsvPage) self.csvSourceLayout = QtGui.QFormLayout(self.csvPage)
self.CsvSourceLayout.setFieldGrowthPolicy( self.csvSourceLayout.setFieldGrowthPolicy(
QtGui.QFormLayout.ExpandingFieldsGrow) QtGui.QFormLayout.ExpandingFieldsGrow)
self.CsvSourceLayout.setLabelAlignment(QtCore.Qt.AlignBottom | self.csvSourceLayout.setLabelAlignment(QtCore.Qt.AlignBottom |
QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing) QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing)
self.CsvSourceLayout.setFormAlignment(QtCore.Qt.AlignLeading | self.csvSourceLayout.setFormAlignment(QtCore.Qt.AlignLeading |
QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop)
self.CsvSourceLayout.setMargin(0) self.csvSourceLayout.setMargin(0)
self.CsvSourceLayout.setSpacing(8) self.csvSourceLayout.setSpacing(8)
self.CsvSourceLayout.setObjectName(u'CsvSourceLayout') self.csvSourceLayout.setObjectName(u'CsvSourceLayout')
self.BooksLocationLabel = QtGui.QLabel(self.CsvPage) self.booksLocationLabel = QtGui.QLabel(self.csvPage)
self.BooksLocationLabel.setObjectName(u'BooksLocationLabel') self.booksLocationLabel.setObjectName(u'BooksLocationLabel')
self.CsvSourceLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.csvSourceLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
self.BooksLocationLabel) self.booksLocationLabel)
self.CsvBooksLayout = QtGui.QHBoxLayout() self.csvBooksLayout = QtGui.QHBoxLayout()
self.CsvBooksLayout.setSpacing(8) self.csvBooksLayout.setSpacing(8)
self.CsvBooksLayout.setObjectName(u'CsvBooksLayout') self.csvBooksLayout.setObjectName(u'CsvBooksLayout')
self.BooksLocationEdit = QtGui.QLineEdit(self.CsvPage) self.booksLocationEdit = QtGui.QLineEdit(self.csvPage)
self.BooksLocationEdit.setObjectName(u'BooksLocationEdit') self.booksLocationEdit.setObjectName(u'BooksLocationEdit')
self.CsvBooksLayout.addWidget(self.BooksLocationEdit) self.csvBooksLayout.addWidget(self.booksLocationEdit)
self.BooksFileButton = QtGui.QToolButton(self.CsvPage) self.booksFileButton = QtGui.QToolButton(self.csvPage)
self.BooksFileButton.setMaximumSize(QtCore.QSize(32, 16777215)) self.booksFileButton.setMaximumSize(QtCore.QSize(32, 16777215))
self.BooksFileButton.setIcon(generalIcon) self.booksFileButton.setIcon(generalIcon)
self.BooksFileButton.setObjectName(u'BooksFileButton') self.booksFileButton.setObjectName(u'BooksFileButton')
self.CsvBooksLayout.addWidget(self.BooksFileButton) self.csvBooksLayout.addWidget(self.booksFileButton)
self.CsvSourceLayout.setLayout(0, QtGui.QFormLayout.FieldRole, self.csvSourceLayout.setLayout(0, QtGui.QFormLayout.FieldRole,
self.CsvBooksLayout) self.csvBooksLayout)
self.VerseLocationLabel = QtGui.QLabel(self.CsvPage) self.verseLocationLabel = QtGui.QLabel(self.csvPage)
self.VerseLocationLabel.setObjectName(u'VerseLocationLabel') self.verseLocationLabel.setObjectName(u'VerseLocationLabel')
self.CsvSourceLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.csvSourceLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
self.VerseLocationLabel) self.verseLocationLabel)
self.CsvVerseLayout = QtGui.QHBoxLayout() self.csvVerseLayout = QtGui.QHBoxLayout()
self.CsvVerseLayout.setSpacing(8) self.csvVerseLayout.setSpacing(8)
self.CsvVerseLayout.setObjectName(u'CsvVerseLayout') self.csvVerseLayout.setObjectName(u'CsvVerseLayout')
self.CsvVerseLocationEdit = QtGui.QLineEdit(self.CsvPage) self.csvVerseLocationEdit = QtGui.QLineEdit(self.csvPage)
self.CsvVerseLocationEdit.setObjectName(u'CsvVerseLocationEdit') self.csvVerseLocationEdit.setObjectName(u'CsvVerseLocationEdit')
self.CsvVerseLayout.addWidget(self.CsvVerseLocationEdit) self.csvVerseLayout.addWidget(self.csvVerseLocationEdit)
self.CsvVersesFileButton = QtGui.QToolButton(self.CsvPage) self.csvVersesFileButton = QtGui.QToolButton(self.csvPage)
self.CsvVersesFileButton.setMaximumSize(QtCore.QSize(32, 16777215)) self.csvVersesFileButton.setMaximumSize(QtCore.QSize(32, 16777215))
self.CsvVersesFileButton.setIcon(generalIcon) self.csvVersesFileButton.setIcon(generalIcon)
self.CsvVersesFileButton.setObjectName(u'CsvVersesFileButton') self.csvVersesFileButton.setObjectName(u'CsvVersesFileButton')
self.CsvVerseLayout.addWidget(self.CsvVersesFileButton) self.csvVerseLayout.addWidget(self.csvVersesFileButton)
self.CsvSourceLayout.setLayout(1, QtGui.QFormLayout.FieldRole, self.csvSourceLayout.setLayout(1, QtGui.QFormLayout.FieldRole,
self.CsvVerseLayout) self.csvVerseLayout)
self.FormatWidget.addWidget(self.CsvPage) self.formatWidget.addWidget(self.csvPage)
self.OpenSongPage = QtGui.QWidget() self.openSongPage = QtGui.QWidget()
self.OpenSongPage.setObjectName(u'OpenSongPage') self.openSongPage.setObjectName(u'OpenSongPage')
self.OpenSongLayout = QtGui.QFormLayout(self.OpenSongPage) self.openSongLayout = QtGui.QFormLayout(self.openSongPage)
self.OpenSongLayout.setMargin(0) self.openSongLayout.setMargin(0)
self.OpenSongLayout.setSpacing(8) self.openSongLayout.setSpacing(8)
self.OpenSongLayout.setObjectName(u'OpenSongLayout') self.openSongLayout.setObjectName(u'OpenSongLayout')
self.OpenSongFileLabel = QtGui.QLabel(self.OpenSongPage) self.openSongFileLabel = QtGui.QLabel(self.openSongPage)
self.OpenSongFileLabel.setObjectName(u'OpenSongFileLabel') self.openSongFileLabel.setObjectName(u'OpenSongFileLabel')
self.OpenSongLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.openSongLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
self.OpenSongFileLabel) self.openSongFileLabel)
self.OpenSongFileLayout = QtGui.QHBoxLayout() self.openSongFileLayout = QtGui.QHBoxLayout()
self.OpenSongFileLayout.setSpacing(8) self.openSongFileLayout.setSpacing(8)
self.OpenSongFileLayout.setObjectName(u'OpenSongFileLayout') self.openSongFileLayout.setObjectName(u'OpenSongFileLayout')
self.OpenSongFileEdit = QtGui.QLineEdit(self.OpenSongPage) self.openSongFileEdit = QtGui.QLineEdit(self.openSongPage)
self.OpenSongFileEdit.setObjectName(u'OpenSongFileEdit') self.openSongFileEdit.setObjectName(u'OpenSongFileEdit')
self.OpenSongFileLayout.addWidget(self.OpenSongFileEdit) self.openSongFileLayout.addWidget(self.openSongFileEdit)
self.OpenSongBrowseButton = QtGui.QToolButton(self.OpenSongPage) self.openSongBrowseButton = QtGui.QToolButton(self.openSongPage)
self.OpenSongBrowseButton.setIcon(generalIcon) self.openSongBrowseButton.setIcon(generalIcon)
self.OpenSongBrowseButton.setObjectName(u'OpenSongBrowseButton') self.openSongBrowseButton.setObjectName(u'OpenSongBrowseButton')
self.OpenSongFileLayout.addWidget(self.OpenSongBrowseButton) self.openSongFileLayout.addWidget(self.openSongBrowseButton)
self.OpenSongLayout.setLayout(0, QtGui.QFormLayout.FieldRole, self.openSongLayout.setLayout(0, QtGui.QFormLayout.FieldRole,
self.OpenSongFileLayout) self.openSongFileLayout)
self.FormatWidget.addWidget(self.OpenSongPage) self.formatWidget.addWidget(self.openSongPage)
self.WebDownloadPage = QtGui.QWidget() self.webDownloadPage = QtGui.QWidget()
self.WebDownloadPage.setObjectName(u'WebDownloadPage') self.webDownloadPage.setObjectName(u'WebDownloadPage')
self.WebDownloadLayout = QtGui.QVBoxLayout(self.WebDownloadPage) self.webDownloadLayout = QtGui.QVBoxLayout(self.webDownloadPage)
self.WebDownloadLayout.setSpacing(8) self.webDownloadLayout.setSpacing(8)
self.WebDownloadLayout.setMargin(0) self.webDownloadLayout.setMargin(0)
self.WebDownloadLayout.setObjectName(u'WebDownloadLayout') self.webDownloadLayout.setObjectName(u'WebDownloadLayout')
self.WebDownloadTabWidget = QtGui.QTabWidget(self.WebDownloadPage) self.webDownloadTabWidget = QtGui.QTabWidget(self.webDownloadPage)
self.WebDownloadTabWidget.setObjectName(u'WebDownloadTabWidget') self.webDownloadTabWidget.setObjectName(u'WebDownloadTabWidget')
self.DownloadOptionsTab = QtGui.QWidget() self.downloadOptionsTab = QtGui.QWidget()
self.DownloadOptionsTab.setObjectName(u'DownloadOptionsTab') self.downloadOptionsTab.setObjectName(u'DownloadOptionsTab')
self.DownloadOptionsLayout = QtGui.QFormLayout(self.DownloadOptionsTab) self.downloadOptionsLayout = QtGui.QFormLayout(self.downloadOptionsTab)
self.DownloadOptionsLayout.setMargin(8) self.downloadOptionsLayout.setMargin(8)
self.DownloadOptionsLayout.setSpacing(8) self.downloadOptionsLayout.setSpacing(8)
self.DownloadOptionsLayout.setObjectName(u'DownloadOptionsLayout') self.downloadOptionsLayout.setObjectName(u'DownloadOptionsLayout')
self.LocationLabel = QtGui.QLabel(self.DownloadOptionsTab) self.locationLabel = QtGui.QLabel(self.downloadOptionsTab)
self.LocationLabel.setObjectName(u'LocationLabel') self.locationLabel.setObjectName(u'LocationLabel')
self.DownloadOptionsLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.downloadOptionsLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
self.LocationLabel) self.locationLabel)
self.LocationComboBox = QtGui.QComboBox(self.DownloadOptionsTab) self.locationComboBox = QtGui.QComboBox(self.downloadOptionsTab)
self.LocationComboBox.setObjectName(u'LocationComboBox') self.locationComboBox.setObjectName(u'LocationComboBox')
self.LocationComboBox.addItem(u'') self.locationComboBox.addItem(u'')
self.LocationComboBox.addItem(u'') self.locationComboBox.addItem(u'')
self.DownloadOptionsLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.downloadOptionsLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
self.LocationComboBox) self.locationComboBox)
self.BibleLabel = QtGui.QLabel(self.DownloadOptionsTab) self.bibleLabel = QtGui.QLabel(self.downloadOptionsTab)
self.BibleLabel.setObjectName(u'BibleLabel') self.bibleLabel.setObjectName(u'BibleLabel')
self.DownloadOptionsLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.downloadOptionsLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
self.BibleLabel) self.bibleLabel)
self.BibleComboBox = QtGui.QComboBox(self.DownloadOptionsTab) self.bibleComboBox = QtGui.QComboBox(self.downloadOptionsTab)
self.BibleComboBox.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToContents) self.bibleComboBox.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToContents)
self.BibleComboBox.setObjectName(u'BibleComboBox') self.bibleComboBox.setObjectName(u'BibleComboBox')
self.BibleComboBox.addItem(u'') self.bibleComboBox.addItem(u'')
self.BibleComboBox.addItem(u'') self.bibleComboBox.addItem(u'')
self.BibleComboBox.addItem(u'') self.bibleComboBox.addItem(u'')
self.DownloadOptionsLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.downloadOptionsLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
self.BibleComboBox) self.bibleComboBox)
self.WebDownloadTabWidget.addTab(self.DownloadOptionsTab, u'') self.webDownloadTabWidget.addTab(self.downloadOptionsTab, u'')
self.ProxyServerTab = QtGui.QWidget() self.proxyServerTab = QtGui.QWidget()
self.ProxyServerTab.setObjectName(u'ProxyServerTab') self.proxyServerTab.setObjectName(u'ProxyServerTab')
self.ProxyServerLayout = QtGui.QFormLayout(self.ProxyServerTab) self.proxyServerLayout = QtGui.QFormLayout(self.proxyServerTab)
self.ProxyServerLayout.setObjectName(u'ProxyServerLayout') self.proxyServerLayout.setObjectName(u'ProxyServerLayout')
self.AddressLabel = QtGui.QLabel(self.ProxyServerTab) self.addressLabel = QtGui.QLabel(self.proxyServerTab)
self.AddressLabel.setObjectName(u'AddressLabel') self.addressLabel.setObjectName(u'AddressLabel')
self.ProxyServerLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.proxyServerLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
self.AddressLabel) self.addressLabel)
self.AddressEdit = QtGui.QLineEdit(self.ProxyServerTab) self.addressEdit = QtGui.QLineEdit(self.proxyServerTab)
self.AddressEdit.setObjectName(u'AddressEdit') self.addressEdit.setObjectName(u'AddressEdit')
self.ProxyServerLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.proxyServerLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
self.AddressEdit) self.addressEdit)
self.UsernameLabel = QtGui.QLabel(self.ProxyServerTab) self.usernameLabel = QtGui.QLabel(self.proxyServerTab)
self.UsernameLabel.setObjectName(u'UsernameLabel') self.usernameLabel.setObjectName(u'UsernameLabel')
self.ProxyServerLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.proxyServerLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
self.UsernameLabel) self.usernameLabel)
self.UsernameEdit = QtGui.QLineEdit(self.ProxyServerTab) self.usernameEdit = QtGui.QLineEdit(self.proxyServerTab)
self.UsernameEdit.setObjectName(u'UsernameEdit') self.usernameEdit.setObjectName(u'UsernameEdit')
self.ProxyServerLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.proxyServerLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
self.UsernameEdit) self.usernameEdit)
self.PasswordLabel = QtGui.QLabel(self.ProxyServerTab) self.passwordLabel = QtGui.QLabel(self.proxyServerTab)
self.PasswordLabel.setObjectName(u'PasswordLabel') self.passwordLabel.setObjectName(u'PasswordLabel')
self.ProxyServerLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.proxyServerLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
self.PasswordLabel) self.passwordLabel)
self.PasswordEdit = QtGui.QLineEdit(self.ProxyServerTab) self.passwordEdit = QtGui.QLineEdit(self.proxyServerTab)
self.PasswordEdit.setObjectName(u'PasswordEdit') self.passwordEdit.setObjectName(u'PasswordEdit')
self.ProxyServerLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.proxyServerLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
self.PasswordEdit) self.passwordEdit)
self.WebDownloadTabWidget.addTab(self.ProxyServerTab, u'') self.webDownloadTabWidget.addTab(self.proxyServerTab, u'')
self.WebDownloadLayout.addWidget(self.WebDownloadTabWidget) self.webDownloadLayout.addWidget(self.webDownloadTabWidget)
self.FormatWidget.addWidget(self.WebDownloadPage) self.formatWidget.addWidget(self.webDownloadPage)
self.OLP1Page = QtGui.QWidget() self.openlp1Page = QtGui.QWidget()
self.OLP1Page.setObjectName(u'OLP1Page') self.openlp1Page.setObjectName(u'OLP1Page')
self.OLP1Layout = QtGui.QFormLayout(self.OLP1Page) self.openlp1Layout = QtGui.QFormLayout(self.openlp1Page)
self.OLP1Layout.setFieldGrowthPolicy( self.openlp1Layout.setFieldGrowthPolicy(
QtGui.QFormLayout.ExpandingFieldsGrow) QtGui.QFormLayout.ExpandingFieldsGrow)
self.OLP1Layout.setMargin(0) self.openlp1Layout.setMargin(0)
self.OLP1Layout.setSpacing(8) self.openlp1Layout.setSpacing(8)
self.OLP1Layout.setObjectName(u'OLP1Layout') self.openlp1Layout.setObjectName(u'OLP1Layout')
self.OLP1LocationLabel = QtGui.QLabel(self.OLP1Page) self.openlp1LocationLabel = QtGui.QLabel(self.openlp1Page)
self.OLP1LocationLabel.setObjectName(u'OLP1LocationLabel') self.openlp1LocationLabel.setObjectName(u'OLP1LocationLabel')
self.OLP1Layout.setWidget(1, QtGui.QFormLayout.LabelRole, self.openlp1Layout.setWidget(1, QtGui.QFormLayout.LabelRole,
self.OLP1LocationLabel) self.openlp1LocationLabel)
self.OLP1LocationLayout = QtGui.QHBoxLayout() self.openlp1LocationLayout = QtGui.QHBoxLayout()
self.OLP1LocationLayout.setSpacing(8) self.openlp1LocationLayout.setSpacing(8)
self.OLP1LocationLayout.setObjectName(u'OLP1LocationLayout') self.openlp1LocationLayout.setObjectName(u'OLP1LocationLayout')
self.OLP1LocationEdit = QtGui.QLineEdit(self.OLP1Page) self.openlp1LocationEdit = QtGui.QLineEdit(self.openlp1Page)
self.OLP1LocationEdit.setObjectName(u'OLP1LocationEdit') self.openlp1LocationEdit.setObjectName(u'OLP1LocationEdit')
self.OLP1LocationLayout.addWidget(self.OLP1LocationEdit) self.openlp1LocationLayout.addWidget(self.openlp1LocationEdit)
self.OLP1FileButton = QtGui.QToolButton(self.OLP1Page) self.openlp1FileButton = QtGui.QToolButton(self.openlp1Page)
self.OLP1FileButton.setMaximumSize(QtCore.QSize(32, 16777215)) self.openlp1FileButton.setMaximumSize(QtCore.QSize(32, 16777215))
self.OLP1FileButton.setIcon(generalIcon) self.openlp1FileButton.setIcon(generalIcon)
self.OLP1FileButton.setObjectName(u'OLP1FileButton') self.openlp1FileButton.setObjectName(u'OLP1FileButton')
self.OLP1LocationLayout.addWidget(self.OLP1FileButton) self.openlp1LocationLayout.addWidget(self.openlp1FileButton)
self.OLP1Layout.setLayout(1, QtGui.QFormLayout.FieldRole, self.openlp1Layout.setLayout(1, QtGui.QFormLayout.FieldRole,
self.OLP1LocationLayout) self.openlp1LocationLayout)
self.FormatWidget.addWidget(self.OLP1Page) self.formatWidget.addWidget(self.openlp1Page)
self.selectPageLayout.addWidget(self.FormatWidget) self.selectPageLayout.addWidget(self.formatWidget)
BibleImportWizard.addPage(self.SelectPage) bibleImportWizard.addPage(self.selectPage)
# License page # License page
self.LicenseDetailsPage = QtGui.QWizardPage() self.licenseDetailsPage = QtGui.QWizardPage()
self.LicenseDetailsPage.setObjectName(u'LicenseDetailsPage') self.licenseDetailsPage.setObjectName(u'LicenseDetailsPage')
self.LicenseDetailsLayout = QtGui.QFormLayout(self.LicenseDetailsPage) self.licenseDetailsLayout = QtGui.QFormLayout(self.licenseDetailsPage)
self.LicenseDetailsLayout.setMargin(20) self.licenseDetailsLayout.setMargin(20)
self.LicenseDetailsLayout.setSpacing(8) self.licenseDetailsLayout.setSpacing(8)
self.LicenseDetailsLayout.setObjectName(u'LicenseDetailsLayout') self.licenseDetailsLayout.setObjectName(u'LicenseDetailsLayout')
self.VersionNameLabel = QtGui.QLabel(self.LicenseDetailsPage) self.versionNameLabel = QtGui.QLabel(self.licenseDetailsPage)
self.VersionNameLabel.setObjectName(u'VersionNameLabel') self.versionNameLabel.setObjectName(u'VersionNameLabel')
self.LicenseDetailsLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.licenseDetailsLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
self.VersionNameLabel) self.versionNameLabel)
self.VersionNameEdit = QtGui.QLineEdit(self.LicenseDetailsPage) self.versionNameEdit = QtGui.QLineEdit(self.licenseDetailsPage)
self.VersionNameEdit.setObjectName(u'VersionNameEdit') self.versionNameEdit.setObjectName(u'VersionNameEdit')
self.LicenseDetailsLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.licenseDetailsLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
self.VersionNameEdit) self.versionNameEdit)
self.CopyrightLabel = QtGui.QLabel(self.LicenseDetailsPage) self.copyrightLabel = QtGui.QLabel(self.licenseDetailsPage)
self.CopyrightLabel.setObjectName(u'CopyrightLabel') self.copyrightLabel.setObjectName(u'CopyrightLabel')
self.LicenseDetailsLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.licenseDetailsLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
self.CopyrightLabel) self.copyrightLabel)
self.CopyrightEdit = QtGui.QLineEdit(self.LicenseDetailsPage) self.copyrightEdit = QtGui.QLineEdit(self.licenseDetailsPage)
self.CopyrightEdit.setObjectName(u'CopyrightEdit') self.copyrightEdit.setObjectName(u'CopyrightEdit')
self.LicenseDetailsLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.licenseDetailsLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
self.CopyrightEdit) self.copyrightEdit)
self.PermissionsLabel = QtGui.QLabel(self.LicenseDetailsPage) self.permissionsLabel = QtGui.QLabel(self.licenseDetailsPage)
self.PermissionsLabel.setObjectName(u'PermissionsLabel') self.permissionsLabel.setObjectName(u'PermissionsLabel')
self.LicenseDetailsLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.licenseDetailsLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
self.PermissionsLabel) self.permissionsLabel)
self.PermissionsEdit = QtGui.QLineEdit(self.LicenseDetailsPage) self.permissionsEdit = QtGui.QLineEdit(self.licenseDetailsPage)
self.PermissionsEdit.setObjectName(u'PermissionsEdit') self.permissionsEdit.setObjectName(u'PermissionsEdit')
self.LicenseDetailsLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.licenseDetailsLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
self.PermissionsEdit) self.permissionsEdit)
BibleImportWizard.addPage(self.LicenseDetailsPage) bibleImportWizard.addPage(self.licenseDetailsPage)
# Progress page # Progress page
self.ImportPage = QtGui.QWizardPage() self.importPage = QtGui.QWizardPage()
self.ImportPage.setObjectName(u'ImportPage') self.importPage.setObjectName(u'ImportPage')
self.ImportLayout = QtGui.QVBoxLayout(self.ImportPage) self.importLayout = QtGui.QVBoxLayout(self.importPage)
self.ImportLayout.setSpacing(8) self.importLayout.setSpacing(8)
self.ImportLayout.setMargin(50) self.importLayout.setMargin(50)
self.ImportLayout.setObjectName(u'ImportLayout') self.importLayout.setObjectName(u'ImportLayout')
self.ImportProgressLabel = QtGui.QLabel(self.ImportPage) self.importProgressLabel = QtGui.QLabel(self.importPage)
self.ImportProgressLabel.setObjectName(u'ImportProgressLabel') self.importProgressLabel.setObjectName(u'ImportProgressLabel')
self.ImportLayout.addWidget(self.ImportProgressLabel) self.importLayout.addWidget(self.importProgressLabel)
self.ImportProgressBar = QtGui.QProgressBar(self.ImportPage) self.importProgressBar = QtGui.QProgressBar(self.importPage)
self.ImportProgressBar.setValue(0) self.importProgressBar.setValue(0)
self.ImportProgressBar.setObjectName(u'ImportProgressBar') self.importProgressBar.setObjectName(u'ImportProgressBar')
self.ImportLayout.addWidget(self.ImportProgressBar) self.importLayout.addWidget(self.importProgressBar)
BibleImportWizard.addPage(self.ImportPage) bibleImportWizard.addPage(self.importPage)
self.retranslateUi(BibleImportWizard) self.retranslateUi(bibleImportWizard)
self.FormatWidget.setCurrentIndex(0) self.formatWidget.setCurrentIndex(0)
self.WebDownloadTabWidget.setCurrentIndex(0) self.webDownloadTabWidget.setCurrentIndex(0)
QtCore.QObject.connect(self.FormatComboBox, QtCore.QObject.connect(self.formatComboBox,
QtCore.SIGNAL(u'currentIndexChanged(int)'), QtCore.SIGNAL(u'currentIndexChanged(int)'),
self.FormatWidget.setCurrentIndex) self.formatWidget.setCurrentIndex)
QtCore.QMetaObject.connectSlotsByName(BibleImportWizard) QtCore.QMetaObject.connectSlotsByName(bibleImportWizard)
def retranslateUi(self, BibleImportWizard): def retranslateUi(self, bibleImportWizard):
BibleImportWizard.setWindowTitle( bibleImportWizard.setWindowTitle(
translate('BiblesPlugin.ImportWizardForm', 'Bible Import Wizard')) translate('BiblesPlugin.ImportWizardForm', 'Bible Import Wizard'))
self.TitleLabel.setText( self.titleLabel.setText(
u'<span style="font-size:14pt; font-weight:600;">%s</span>' % \ u'<span style="font-size:14pt; font-weight:600;">%s</span>' % \
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'Welcome to the Bible Import Wizard')) 'Welcome to the Bible Import Wizard'))
self.InformationLabel.setText( self.informationLabel.setText(
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'This wizard will help you to import Bibles from a ' 'This wizard will help you to import Bibles from a '
'variety of formats. Click the next button below to start the ' 'variety of formats. Click the next button below to start the '
'process by selecting a format to import from.')) 'process by selecting a format to import from.'))
self.SelectPage.setTitle(translate('BiblesPlugin.ImportWizardForm', self.selectPage.setTitle(translate('BiblesPlugin.ImportWizardForm',
'Select Import Source')) 'Select Import Source'))
self.SelectPage.setSubTitle( self.selectPage.setSubTitle(
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'Select the import format, and where to import from.')) 'Select the import format, and where to import from.'))
self.FormatLabel.setText( self.formatLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Format:')) translate('BiblesPlugin.ImportWizardForm', 'Format:'))
self.FormatComboBox.setItemText(0, self.formatComboBox.setItemText(0,
translate('BiblesPlugin.ImportWizardForm', 'OSIS')) translate('BiblesPlugin.ImportWizardForm', 'OSIS'))
self.FormatComboBox.setItemText(1, self.formatComboBox.setItemText(1,
translate('BiblesPlugin.ImportWizardForm', 'CSV')) translate('BiblesPlugin.ImportWizardForm', 'CSV'))
self.FormatComboBox.setItemText(2, self.formatComboBox.setItemText(2,
translate('BiblesPlugin.ImportWizardForm', 'OpenSong')) translate('BiblesPlugin.ImportWizardForm', 'OpenSong'))
self.FormatComboBox.setItemText(3, self.formatComboBox.setItemText(3,
translate('BiblesPlugin.ImportWizardForm', 'Web Download')) translate('BiblesPlugin.ImportWizardForm', 'Web Download'))
self.FormatComboBox.setItemText(4, self.formatComboBox.setItemText(4,
translate('BiblesPlugin.ImportWizardForm', 'openlp.org 1.x')) translate('BiblesPlugin.ImportWizardForm', 'openlp.org 1.x'))
self.OLP1LocationLabel.setText( self.openlp1LocationLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'File location:')) translate('BiblesPlugin.ImportWizardForm', 'File location:'))
self.OsisLocationLabel.setText( self.osisLocationLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'File location:')) translate('BiblesPlugin.ImportWizardForm', 'File location:'))
self.BooksLocationLabel.setText( self.booksLocationLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Books location:')) translate('BiblesPlugin.ImportWizardForm', 'Books location:'))
self.VerseLocationLabel.setText( self.verseLocationLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Verse location:')) translate('BiblesPlugin.ImportWizardForm', 'Verse location:'))
self.OpenSongFileLabel.setText( self.openSongFileLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Bible filename:')) translate('BiblesPlugin.ImportWizardForm', 'Bible filename:'))
self.LocationLabel.setText( self.locationLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Location:')) translate('BiblesPlugin.ImportWizardForm', 'Location:'))
self.LocationComboBox.setItemText(0, self.locationComboBox.setItemText(0,
translate('BiblesPlugin.ImportWizardForm', 'Crosswalk')) translate('BiblesPlugin.ImportWizardForm', 'Crosswalk'))
self.LocationComboBox.setItemText(1, self.locationComboBox.setItemText(1,
translate('BiblesPlugin.ImportWizardForm', 'BibleGateway')) translate('BiblesPlugin.ImportWizardForm', 'BibleGateway'))
self.BibleLabel.setText( self.bibleLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Bible:')) translate('BiblesPlugin.ImportWizardForm', 'Bible:'))
self.WebDownloadTabWidget.setTabText( self.webDownloadTabWidget.setTabText(
self.WebDownloadTabWidget.indexOf(self.DownloadOptionsTab), self.webDownloadTabWidget.indexOf(self.downloadOptionsTab),
translate('BiblesPlugin.ImportWizardForm', 'Download Options')) translate('BiblesPlugin.ImportWizardForm', 'Download Options'))
self.AddressLabel.setText( self.addressLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Server:')) translate('BiblesPlugin.ImportWizardForm', 'Server:'))
self.UsernameLabel.setText( self.usernameLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Username:')) translate('BiblesPlugin.ImportWizardForm', 'Username:'))
self.PasswordLabel.setText( self.passwordLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Password:')) translate('BiblesPlugin.ImportWizardForm', 'Password:'))
self.WebDownloadTabWidget.setTabText( self.webDownloadTabWidget.setTabText(
self.WebDownloadTabWidget.indexOf(self.ProxyServerTab), self.webDownloadTabWidget.indexOf(self.proxyServerTab),
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'Proxy Server (Optional)')) 'Proxy Server (Optional)'))
self.LicenseDetailsPage.setTitle( self.licenseDetailsPage.setTitle(
translate('BiblesPlugin.ImportWizardForm', 'License Details')) translate('BiblesPlugin.ImportWizardForm', 'License Details'))
self.LicenseDetailsPage.setSubTitle( self.licenseDetailsPage.setSubTitle(
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'Set up the Bible\'s license details.')) 'Set up the Bible\'s license details.'))
self.VersionNameLabel.setText( self.versionNameLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Version name:')) translate('BiblesPlugin.ImportWizardForm', 'Version name:'))
self.CopyrightLabel.setText( self.copyrightLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Copyright:')) translate('BiblesPlugin.ImportWizardForm', 'Copyright:'))
self.PermissionsLabel.setText( self.permissionsLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Permissions:')) translate('BiblesPlugin.ImportWizardForm', 'Permissions:'))
self.ImportPage.setTitle( self.importPage.setTitle(
translate('BiblesPlugin.ImportWizardForm', 'Importing')) translate('BiblesPlugin.ImportWizardForm', 'Importing'))
self.ImportPage.setSubTitle( self.importPage.setSubTitle(
translate('BiblesPlugin.ImportWizardForm', translate('BiblesPlugin.ImportWizardForm',
'Please wait while your Bible is imported.')) 'Please wait while your Bible is imported.'))
self.ImportProgressLabel.setText( self.importProgressLabel.setText(
translate('BiblesPlugin.ImportWizardForm', 'Ready.')) translate('BiblesPlugin.ImportWizardForm', 'Ready.'))
self.ImportProgressBar.setFormat(u'%p%') self.importProgressBar.setFormat(u'%p%')