diff --git a/openlp/plugins/biblemanager/forms/bibleimportdialog.py b/openlp/plugins/biblemanager/forms/bibleimportdialog.py
index f2ac2a502..27b71c396 100644
--- a/openlp/plugins/biblemanager/forms/bibleimportdialog.py
+++ b/openlp/plugins/biblemanager/forms/bibleimportdialog.py
@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'bibleimport.ui'
#
-# Created: Thu Nov 27 21:12:03 2008
+# Created: Sat Nov 29 13:19:21 2008
# by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!
@@ -12,64 +12,75 @@ from PyQt4 import QtCore, QtGui
class Ui_BibleImportDialog(object):
def setupUi(self, BibleImportDialog):
BibleImportDialog.setObjectName("BibleImportDialog")
- BibleImportDialog.resize(494, 746)
+ BibleImportDialog.resize(494, 734)
self.BibleImportButtonBox = QtGui.QDialogButtonBox(BibleImportDialog)
- self.BibleImportButtonBox.setGeometry(QtCore.QRect(7, 710, 481, 33))
+ self.BibleImportButtonBox.setGeometry(QtCore.QRect(10, 690, 481, 33))
self.BibleImportButtonBox.setOrientation(QtCore.Qt.Horizontal)
self.BibleImportButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel)
self.BibleImportButtonBox.setObjectName("BibleImportButtonBox")
self.ImportToolBox = QtGui.QToolBox(BibleImportDialog)
- self.ImportToolBox.setGeometry(QtCore.QRect(8, 8, 481, 401))
+ self.ImportToolBox.setGeometry(QtCore.QRect(0, 0, 481, 431))
self.ImportToolBox.setObjectName("ImportToolBox")
self.CSVImportPage = QtGui.QWidget()
- self.CSVImportPage.setGeometry(QtCore.QRect(0, 0, 481, 308))
+ self.CSVImportPage.setGeometry(QtCore.QRect(0, 0, 481, 338))
self.CSVImportPage.setObjectName("CSVImportPage")
- self.BibleNameLabel = QtGui.QLabel(self.CSVImportPage)
- self.BibleNameLabel.setGeometry(QtCore.QRect(20, 40, 71, 17))
+ self.groupBox_2 = QtGui.QGroupBox(self.CSVImportPage)
+ self.groupBox_2.setGeometry(QtCore.QRect(10, 10, 451, 161))
+ self.groupBox_2.setObjectName("groupBox_2")
+ self.BibleNameLabel = QtGui.QLabel(self.groupBox_2)
+ self.BibleNameLabel.setGeometry(QtCore.QRect(20, 30, 71, 17))
self.BibleNameLabel.setObjectName("BibleNameLabel")
- self.BooksLocationLabel = QtGui.QLabel(self.CSVImportPage)
- self.BooksLocationLabel.setGeometry(QtCore.QRect(20, 80, 101, 17))
- self.BooksLocationLabel.setObjectName("BooksLocationLabel")
- self.VerseLocationLabel = QtGui.QLabel(self.CSVImportPage)
- self.VerseLocationLabel.setGeometry(QtCore.QRect(20, 120, 91, 17))
- self.VerseLocationLabel.setObjectName("VerseLocationLabel")
- self.BibleNameEdit = QtGui.QLineEdit(self.CSVImportPage)
- self.BibleNameEdit.setGeometry(QtCore.QRect(120, 40, 271, 23))
+ self.BibleNameEdit = QtGui.QLineEdit(self.groupBox_2)
+ self.BibleNameEdit.setGeometry(QtCore.QRect(110, 30, 271, 28))
self.BibleNameEdit.setObjectName("BibleNameEdit")
- self.BooksLocationEdit = QtGui.QLineEdit(self.CSVImportPage)
- self.BooksLocationEdit.setGeometry(QtCore.QRect(120, 80, 271, 23))
+ self.BooksLocationLabel = QtGui.QLabel(self.groupBox_2)
+ self.BooksLocationLabel.setGeometry(QtCore.QRect(10, 70, 101, 17))
+ self.BooksLocationLabel.setObjectName("BooksLocationLabel")
+ self.BooksLocationEdit = QtGui.QLineEdit(self.groupBox_2)
+ self.BooksLocationEdit.setGeometry(QtCore.QRect(110, 70, 271, 28))
self.BooksLocationEdit.setObjectName("BooksLocationEdit")
- self.VerseLocationEdit = QtGui.QLineEdit(self.CSVImportPage)
- self.VerseLocationEdit.setGeometry(QtCore.QRect(120, 120, 271, 23))
- self.VerseLocationEdit.setObjectName("VerseLocationEdit")
- self.BooksFileButton = QtGui.QPushButton(self.CSVImportPage)
- self.BooksFileButton.setGeometry(QtCore.QRect(400, 80, 41, 27))
+ self.BooksFileButton = QtGui.QPushButton(self.groupBox_2)
+ self.BooksFileButton.setGeometry(QtCore.QRect(390, 70, 41, 31))
+ icon = QtGui.QIcon()
+ icon.addPixmap(QtGui.QPixmap("../images/import_load.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ self.BooksFileButton.setIcon(icon)
self.BooksFileButton.setObjectName("BooksFileButton")
- self.VersesFileButton = QtGui.QPushButton(self.CSVImportPage)
- self.VersesFileButton.setGeometry(QtCore.QRect(400, 120, 41, 27))
+ self.VerseLocationLabel = QtGui.QLabel(self.groupBox_2)
+ self.VerseLocationLabel.setGeometry(QtCore.QRect(10, 110, 91, 17))
+ self.VerseLocationLabel.setObjectName("VerseLocationLabel")
+ self.VerseLocationEdit = QtGui.QLineEdit(self.groupBox_2)
+ self.VerseLocationEdit.setGeometry(QtCore.QRect(110, 110, 271, 28))
+ self.VerseLocationEdit.setObjectName("VerseLocationEdit")
+ self.VersesFileButton = QtGui.QPushButton(self.groupBox_2)
+ self.VersesFileButton.setGeometry(QtCore.QRect(390, 110, 41, 31))
+ self.VersesFileButton.setIcon(icon)
self.VersesFileButton.setObjectName("VersesFileButton")
self.ImportToolBox.addItem(self.CSVImportPage, "")
self.OSISImportPage = QtGui.QWidget()
- self.OSISImportPage.setGeometry(QtCore.QRect(0, 0, 481, 308))
+ self.OSISImportPage.setGeometry(QtCore.QRect(0, 0, 481, 338))
self.OSISImportPage.setObjectName("OSISImportPage")
- self.OSISBibleNameEdit = QtGui.QLineEdit(self.OSISImportPage)
- self.OSISBibleNameEdit.setGeometry(QtCore.QRect(120, 50, 291, 23))
+ self.groupBox = QtGui.QGroupBox(self.OSISImportPage)
+ self.groupBox.setGeometry(QtCore.QRect(10, 10, 451, 135))
+ self.groupBox.setObjectName("groupBox")
+ self.OSISBibleNameEdit = QtGui.QLineEdit(self.groupBox)
+ self.OSISBibleNameEdit.setGeometry(QtCore.QRect(119, 39, 271, 28))
self.OSISBibleNameEdit.setObjectName("OSISBibleNameEdit")
- self.OSISNameLabel = QtGui.QLabel(self.OSISImportPage)
- self.OSISNameLabel.setGeometry(QtCore.QRect(10, 50, 101, 17))
- self.OSISNameLabel.setObjectName("OSISNameLabel")
- self.OSISLocationEdit = QtGui.QLineEdit(self.OSISImportPage)
- self.OSISLocationEdit.setGeometry(QtCore.QRect(120, 90, 291, 23))
+ self.OSISLocationEdit = QtGui.QLineEdit(self.groupBox)
+ self.OSISLocationEdit.setGeometry(QtCore.QRect(119, 69, 271, 28))
self.OSISLocationEdit.setObjectName("OSISLocationEdit")
- self.LocatioLabel = QtGui.QLabel(self.OSISImportPage)
- self.LocatioLabel.setGeometry(QtCore.QRect(10, 90, 91, 17))
- self.LocatioLabel.setObjectName("LocationLabel")
- self.OsisFileButton = QtGui.QPushButton(self.OSISImportPage)
- self.OsisFileButton.setGeometry(QtCore.QRect(420, 90, 41, 27))
+ self.OsisFileButton = QtGui.QPushButton(self.groupBox)
+ self.OsisFileButton.setGeometry(QtCore.QRect(400, 70, 41, 31))
+ self.OsisFileButton.setIcon(icon)
self.OsisFileButton.setObjectName("OsisFileButton")
+ self.LocatioLabel = QtGui.QLabel(self.groupBox)
+ self.LocatioLabel.setGeometry(QtCore.QRect(13, 69, 73, 22))
+ self.LocatioLabel.setObjectName("LocatioLabel")
+ self.OSISNameLabel = QtGui.QLabel(self.groupBox)
+ self.OSISNameLabel.setGeometry(QtCore.QRect(13, 39, 98, 22))
+ self.OSISNameLabel.setObjectName("OSISNameLabel")
self.ImportToolBox.addItem(self.OSISImportPage, "")
self.WebBiblePage = QtGui.QWidget()
- self.WebBiblePage.setGeometry(QtCore.QRect(0, 0, 481, 308))
+ self.WebBiblePage.setGeometry(QtCore.QRect(0, 0, 481, 338))
self.WebBiblePage.setObjectName("WebBiblePage")
self.WebBibleLayout = QtGui.QVBoxLayout(self.WebBiblePage)
self.WebBibleLayout.setSpacing(8)
@@ -136,52 +147,65 @@ class Ui_BibleImportDialog(object):
self.ProxySettingsLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.PasswordEdit)
self.WebBibleLayout.addWidget(self.ProxyGroupBox)
self.ImportToolBox.addItem(self.WebBiblePage, "")
- self.groupBox = QtGui.QGroupBox(BibleImportDialog)
- self.groupBox.setGeometry(QtCore.QRect(20, 430, 461, 111))
- self.groupBox.setObjectName("groupBox")
- self.label = QtGui.QLabel(self.groupBox)
- self.label.setGeometry(QtCore.QRect(10, 20, 54, 17))
- self.label.setObjectName("label")
- self.label_2 = QtGui.QLabel(self.groupBox)
- self.label_2.setGeometry(QtCore.QRect(10, 50, 54, 17))
- self.label_2.setObjectName("label_2")
- self.label_3 = QtGui.QLabel(self.groupBox)
- self.label_3.setGeometry(QtCore.QRect(10, 80, 54, 17))
- self.label_3.setObjectName("label_3")
- self.lineEdit_4 = QtGui.QLineEdit(self.groupBox)
- self.lineEdit_4.setGeometry(QtCore.QRect(80, 20, 361, 23))
- self.lineEdit_4.setObjectName("lineEdit_4")
- self.lineEdit_5 = QtGui.QLineEdit(self.groupBox)
- self.lineEdit_5.setGeometry(QtCore.QRect(80, 50, 361, 23))
- self.lineEdit_5.setObjectName("lineEdit_5")
- self.lineEdit_6 = QtGui.QLineEdit(self.groupBox)
- self.lineEdit_6.setGeometry(QtCore.QRect(80, 80, 361, 23))
- self.lineEdit_6.setObjectName("lineEdit_6")
- self.groupBox_2 = QtGui.QGroupBox(BibleImportDialog)
- self.groupBox_2.setGeometry(QtCore.QRect(20, 560, 461, 71))
- self.groupBox_2.setObjectName("groupBox_2")
- self.progressBar = QtGui.QProgressBar(self.groupBox_2)
- self.progressBar.setGeometry(QtCore.QRect(10, 30, 441, 23))
+ self.LicenceDetailsGroupBox = QtGui.QGroupBox(BibleImportDialog)
+ self.LicenceDetailsGroupBox.setGeometry(QtCore.QRect(10, 450, 481, 136))
+ self.LicenceDetailsGroupBox.setMinimumSize(QtCore.QSize(0, 123))
+ self.LicenceDetailsGroupBox.setObjectName("LicenceDetailsGroupBox")
+ self.formLayout = QtGui.QFormLayout(self.LicenceDetailsGroupBox)
+ self.formLayout.setMargin(8)
+ self.formLayout.setHorizontalSpacing(8)
+ self.formLayout.setObjectName("formLayout")
+ self.VersionNameLabel = QtGui.QLabel(self.LicenceDetailsGroupBox)
+ self.VersionNameLabel.setObjectName("VersionNameLabel")
+ self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.VersionNameLabel)
+ self.VersionNameEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox)
+ self.VersionNameEdit.setObjectName("VersionNameEdit")
+ self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.VersionNameEdit)
+ self.CopyrightLabel = QtGui.QLabel(self.LicenceDetailsGroupBox)
+ self.CopyrightLabel.setObjectName("CopyrightLabel")
+ self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.CopyrightLabel)
+ self.CopyrightEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox)
+ self.CopyrightEdit.setObjectName("CopyrightEdit")
+ self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.CopyrightEdit)
+ self.PermisionLabel = QtGui.QLabel(self.LicenceDetailsGroupBox)
+ self.PermisionLabel.setObjectName("PermisionLabel")
+ self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.PermisionLabel)
+ self.PermisionEdit = QtGui.QLineEdit(self.LicenceDetailsGroupBox)
+ self.PermisionEdit.setObjectName("PermisionEdit")
+ self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.PermisionEdit)
+ self.ProgressGroupBox = QtGui.QGroupBox(BibleImportDialog)
+ self.ProgressGroupBox.setGeometry(QtCore.QRect(10, 590, 481, 92))
+ self.ProgressGroupBox.setObjectName("ProgressGroupBox")
+ self.ProgressLayout = QtGui.QFormLayout(self.ProgressGroupBox)
+ self.ProgressLayout.setMargin(8)
+ self.ProgressLayout.setSpacing(8)
+ self.ProgressLayout.setObjectName("ProgressLayout")
+ self.ProgressStatusLabel = QtGui.QLabel(self.ProgressGroupBox)
+ self.ProgressStatusLabel.setObjectName("ProgressStatusLabel")
+ self.ProgressLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.ProgressStatusLabel)
+ self.progressBar = QtGui.QProgressBar(self.ProgressGroupBox)
self.progressBar.setProperty("value", QtCore.QVariant(24))
self.progressBar.setObjectName("progressBar")
+ self.ProgressLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.progressBar)
self.retranslateUi(BibleImportDialog)
- self.ImportToolBox.setCurrentIndex(1)
+ self.ImportToolBox.setCurrentIndex(0)
QtCore.QObject.connect(self.BibleImportButtonBox, QtCore.SIGNAL("accepted()"), BibleImportDialog.accept)
QtCore.QObject.connect(self.BibleImportButtonBox, QtCore.SIGNAL("rejected()"), BibleImportDialog.reject)
QtCore.QMetaObject.connectSlotsByName(BibleImportDialog)
def retranslateUi(self, BibleImportDialog):
BibleImportDialog.setWindowTitle(QtGui.QApplication.translate("BibleImportDialog", "Bible Registration", None, QtGui.QApplication.UnicodeUTF8))
+ self.groupBox_2.setTitle(QtGui.QApplication.translate("BibleImportDialog", "CVS Bible", None, QtGui.QApplication.UnicodeUTF8))
self.BibleNameLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Bible Name:", None, QtGui.QApplication.UnicodeUTF8))
self.BooksLocationLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Books Location:", None, QtGui.QApplication.UnicodeUTF8))
- self.VerseLocationLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Verse Location:", None, QtGui.QApplication.UnicodeUTF8))
self.BooksFileButton.setText(QtGui.QApplication.translate("BibleImportDialog", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
+ self.VerseLocationLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Verse Location:", None, QtGui.QApplication.UnicodeUTF8))
self.VersesFileButton.setText(QtGui.QApplication.translate("BibleImportDialog", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
self.ImportToolBox.setItemText(self.ImportToolBox.indexOf(self.CSVImportPage), QtGui.QApplication.translate("BibleImportDialog", "CVS File Import", None, QtGui.QApplication.UnicodeUTF8))
- self.OSISNameLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "OSIS Bible Name:", None, QtGui.QApplication.UnicodeUTF8))
+ self.groupBox.setTitle(QtGui.QApplication.translate("BibleImportDialog", "OSIS Bible", None, QtGui.QApplication.UnicodeUTF8))
self.LocatioLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "File Location:", None, QtGui.QApplication.UnicodeUTF8))
- self.OsisFileButton.setText(QtGui.QApplication.translate("BibleImportDialog", "PushButton", None, QtGui.QApplication.UnicodeUTF8))
+ self.OSISNameLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "OSIS Bible Name:", None, QtGui.QApplication.UnicodeUTF8))
self.ImportToolBox.setItemText(self.ImportToolBox.indexOf(self.OSISImportPage), QtGui.QApplication.translate("BibleImportDialog", "OSIS XML Bible Import", None, QtGui.QApplication.UnicodeUTF8))
self.OptionsGroupBox.setTitle(QtGui.QApplication.translate("BibleImportDialog", "Download Options", None, QtGui.QApplication.UnicodeUTF8))
self.LocationLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Location:", None, QtGui.QApplication.UnicodeUTF8))
@@ -198,9 +222,10 @@ class Ui_BibleImportDialog(object):
self.UsernameLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Username:", None, QtGui.QApplication.UnicodeUTF8))
self.PasswordLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Password:", None, QtGui.QApplication.UnicodeUTF8))
self.ImportToolBox.setItemText(self.ImportToolBox.indexOf(self.WebBiblePage), QtGui.QApplication.translate("BibleImportDialog", "Web Bible Download", None, QtGui.QApplication.UnicodeUTF8))
- self.groupBox.setTitle(QtGui.QApplication.translate("BibleImportDialog", "Licence Details", None, QtGui.QApplication.UnicodeUTF8))
- self.label.setText(QtGui.QApplication.translate("BibleImportDialog", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
- self.label_2.setText(QtGui.QApplication.translate("BibleImportDialog", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
- self.label_3.setText(QtGui.QApplication.translate("BibleImportDialog", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
- self.groupBox_2.setTitle(QtGui.QApplication.translate("BibleImportDialog", "Progress", None, QtGui.QApplication.UnicodeUTF8))
+ self.LicenceDetailsGroupBox.setTitle(QtGui.QApplication.translate("BibleImportDialog", "Licence Details", None, QtGui.QApplication.UnicodeUTF8))
+ self.VersionNameLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Version Name:", None, QtGui.QApplication.UnicodeUTF8))
+ self.CopyrightLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Copyright:", None, QtGui.QApplication.UnicodeUTF8))
+ self.PermisionLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "Permission:", None, QtGui.QApplication.UnicodeUTF8))
+ self.ProgressGroupBox.setTitle(QtGui.QApplication.translate("BibleImportDialog", "Progress", None, QtGui.QApplication.UnicodeUTF8))
+ self.ProgressStatusLabel.setText(QtGui.QApplication.translate("BibleImportDialog", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
diff --git a/openlp/plugins/biblemanager/forms/bibleimportform.py b/openlp/plugins/biblemanager/forms/bibleimportform.py
index 1568a0e13..e00bef527 100644
--- a/openlp/plugins/biblemanager/forms/bibleimportform.py
+++ b/openlp/plugins/biblemanager/forms/bibleimportform.py
@@ -4,12 +4,17 @@
Module implementing BibleImportDialog.
"""
import sys
+import os, os.path
+import sys
+mypath=os.path.split(os.path.abspath(__file__))[0]
+sys.path.insert(0,(os.path.join(mypath, '..', '..', '..', '..')))
from PyQt4 import QtCore, QtGui
from PyQt4.QtGui import QDialog
from PyQt4.QtCore import pyqtSignature
from bibleimportdialog import Ui_BibleImportDialog
+from openlp.plugins.biblemanager.bibleManager import BibleManager
class BibleImportForm(QDialog, Ui_BibleImportDialog):
"""
@@ -22,6 +27,8 @@ class BibleImportForm(QDialog, Ui_BibleImportDialog):
QDialog.__init__(self, parent)
self.setupUi(self)
self.biblemanager = biblemanager
+ self.ProgressGroupBox.hide() # not wanted until we do some processing
+ #self.CSVImportPage.SetEt
@pyqtSignature("")
def on_VersesFileButton_clicked(self):
@@ -43,7 +50,8 @@ class runner(QtGui.QApplication):
def run(self):
values = ["Genesis","Matthew","Revelation"]
- self.bim = BibleImportForm()
+ self.bm = BibleManager()
+ self.bim = BibleImportForm(self.bm)
self.bim.show()
self.processEvents()
sys.exit(app.exec_())
diff --git a/openlp/plugins/biblemanager/test/test_bibleManagerAPI.py b/openlp/plugins/biblemanager/test/test_bibleManagerAPI.py
index 38373b29c..ccde98a1e 100644
--- a/openlp/plugins/biblemanager/test/test_bibleManagerAPI.py
+++ b/openlp/plugins/biblemanager/test/test_bibleManagerAPI.py
@@ -24,8 +24,8 @@ import sys
mypath=os.path.split(os.path.abspath(__file__))[0]
sys.path.insert(0,(os.path.join(mypath, '..', '..','..','..')))
-from openlp.plugins.biblemanager.BibleManager import BibleManager
-from openlp.utils import ConfigHelper
+from openlp.plugins.biblemanager.bibleManager import BibleManager
+from openlp.core.utils import ConfigHelper
import logging
logging.basicConfig(level=logging.DEBUG,
@@ -67,14 +67,14 @@ class TestBibleManager:
def testGetBookChapterCount(self):
log.debug( "\n.......testGetBookChapterCount")
- assert(self.bm.getBookChapterCount("Matthew") == '28')
+ assert(self.bm.getBookChapterCount("asv","Matthew")[0] == 28)
def testGetBookVerseCount(self):
log.debug( "\n.......testGetBookVerseCount")
- assert(self.bm.getBookVerseCount("Genesis", 1) == '31')
- assert(self.bm.getBookVerseCount("Genesis", 2) == '25')
- assert(self.bm.getBookVerseCount("Matthew", 1) == '25')
- assert(self.bm.getBookVerseCount("Revelation", 1) == '20')
+ assert(self.bm.getBookVerseCount("asv","Genesis", 1)[0] == 31)
+ assert(self.bm.getBookVerseCount("TheMessage","Genesis", 2)[0] == 25)
+ assert(self.bm.getBookVerseCount("asv","Matthew", 1)[0] == 25)
+ assert(self.bm.getBookVerseCount("TheMessage","Revelation", 1)[0] == 20)
def testGetVerseText(self):
log.debug( "\n.......testGetVerseText")
@@ -84,8 +84,12 @@ class TestBibleManager:
#log.debug( c )
c = self.bm.getVerseText('asv','Genesis',10,1,20)
log.debug( c )
- c = self.bm.getVerseText('asv','Genesis',10,1,20)
+ c = self.bm.getVerseText('TheMessage','Genesis',10,1,20)
log.debug( c )
c = self.bm.getVerseText('asv','Revelation',10,1,20)
log.debug( c )
-
+ c = self.bm.getVersesFromText("asv", "Jesus wept")
+ log.debug( c )
+ c = self.bm.getVersesFromText("TheMessage", "Jesus wept")
+ log.debug( c )
+
diff --git a/resources/forms/bibleimport.ui b/resources/forms/bibleimport.ui
index cbabdd25c..94580c179 100644
--- a/resources/forms/bibleimport.ui
+++ b/resources/forms/bibleimport.ui
@@ -7,7 +7,7 @@
0
0
494
- 746
+ 734
@@ -16,8 +16,8 @@
- 7
- 710
+ 10
+ 690
481
33
@@ -32,10 +32,10 @@
- 8
- 8
+ 0
+ 0
481
- 401
+ 431
@@ -47,7 +47,7 @@
0
0
481
- 308
+ 338
@@ -56,100 +56,121 @@
CVS File Import
-
+
- 20
- 40
- 71
- 17
+ 10
+ 10
+ 451
+ 161
-
- Bible Name:
-
-
-
-
-
- 20
- 80
- 101
- 17
-
-
-
- Books Location:
-
-
-
-
-
- 20
- 120
- 91
- 17
-
-
-
- Verse Location:
-
-
-
-
-
- 120
- 40
- 271
- 23
-
-
-
-
-
-
- 120
- 80
- 271
- 23
-
-
-
-
-
-
- 120
- 120
- 271
- 23
-
-
-
-
-
-
- 400
- 80
- 41
- 27
-
-
-
- PushButton
-
-
-
-
-
- 400
- 120
- 41
- 27
-
-
-
- PushButton
+
+ CVS Bible
+
+
+
+ 20
+ 30
+ 71
+ 17
+
+
+
+ Bible Name:
+
+
+
+
+
+ 110
+ 30
+ 271
+ 28
+
+
+
+
+
+
+ 10
+ 70
+ 101
+ 17
+
+
+
+ Books Location:
+
+
+
+
+
+ 110
+ 70
+ 271
+ 28
+
+
+
+
+
+
+ 390
+ 70
+ 41
+ 31
+
+
+
+ PushButton
+
+
+
+ ../images/import_load.png../images/import_load.png
+
+
+
+
+
+ 10
+ 110
+ 91
+ 17
+
+
+
+ Verse Location:
+
+
+
+
+
+ 110
+ 110
+ 271
+ 28
+
+
+
+
+
+
+ 390
+ 110
+ 41
+ 31
+
+
+
+ PushButton
+
+
+
+ ../images/import_load.png../images/import_load.png
+
+
@@ -158,74 +179,87 @@
0
0
481
- 308
+ 338
OSIS XML Bible Import
-
-
-
- 120
- 50
- 291
- 23
-
-
-
-
+
10
- 50
- 101
- 17
+ 10
+ 451
+ 135
-
- OSIS Bible Name:
-
-
-
-
-
- 120
- 90
- 291
- 23
-
-
-
-
-
-
- 10
- 90
- 91
- 17
-
-
-
- File Location:
-
-
-
-
-
- 420
- 90
- 41
- 27
-
-
-
- PushButton
-
-
-
- ../images/import_load.png../images/import_load.png
+
+ OSIS Bible
+
+
+
+ 119
+ 39
+ 271
+ 28
+
+
+
+
+
+
+ 119
+ 69
+ 271
+ 28
+
+
+
+
+
+
+ 400
+ 70
+ 41
+ 31
+
+
+
+
+
+
+
+ ../images/import_load.png../images/import_load.png
+
+
+
+
+
+ 13
+ 69
+ 73
+ 22
+
+
+
+ File Location:
+
+
+
+
+
+ 13
+ 39
+ 98
+ 22
+
+
+
+ OSIS Bible Name:
+
+
@@ -234,7 +268,7 @@
0
0
481
- 308
+ 338
@@ -400,10 +434,10 @@
- 20
- 430
- 461
- 123
+ 10
+ 450
+ 481
+ 136
@@ -419,9 +453,6 @@
8
-
- 8
-
8
@@ -460,16 +491,16 @@
- 20
- 570
- 461
- 87
+ 10
+ 590
+ 481
+ 92
Progress
-
+
8
@@ -486,7 +517,7 @@
- -
+
-
24