forked from openlp/openlp
Add comments
Start to build the UI for bible searching bzr-revno: 162
This commit is contained in:
parent
80cd189dd6
commit
0a2f5edbb9
@ -38,7 +38,9 @@ class BibleOSISImpl():
|
||||
self.bibledb = bibledb
|
||||
self.booksOfBible = {} # books of the bible linked to bibleid {osis , name}
|
||||
self.abbrevOfBible = {} # books of the bible linked to bibleid {osis ,Abbrev }
|
||||
fbibles=open("../resources/osisbooks_en.txt", 'r')
|
||||
resourcepath=os.path.split(os.path.abspath(__file__))[0]
|
||||
resourcepath = os.path.join(resourcepath, 'resources')
|
||||
fbibles=open(resourcepath+"/osisbooks_en.txt", 'r')
|
||||
for line in fbibles:
|
||||
p = line.split(",")
|
||||
self.booksOfBible[p[0]] = p[1].replace('\n', '')
|
||||
@ -49,8 +51,10 @@ class BibleOSISImpl():
|
||||
self.bibledb.saveMeta("Version", "Bible Version")
|
||||
self.bibledb.saveMeta("Copyright", "(c) Some Bible company")
|
||||
self.bibledb.saveMeta("Permission", "You Have Some")
|
||||
dialogobject.setMax(66)
|
||||
|
||||
#TODO: need to see if new / old or both testaments
|
||||
dialogobject.setMax(66)
|
||||
|
||||
osis=open(osisfile, 'r')
|
||||
|
||||
book_ptr = ""
|
||||
|
@ -59,18 +59,61 @@ class BiblePlugin(Plugin):
|
||||
self.MediaManagerItem.addToolbarButton('Add Bible Verse(s) To Service',
|
||||
'Add the selected Bible(s) to the service', ':/system/system_add.png',
|
||||
self.onBibleAddClick, 'BibleAddItem')
|
||||
# Add the Biblelist widget
|
||||
self.BibleList = QtGui.QTableWidget(self.MediaManagerItem)
|
||||
self.BibleList.setObjectName("BibleList")
|
||||
self.BibleList.setColumnCount(0)
|
||||
self.BibleList.setRowCount(0)
|
||||
self.MediaManagerItem.PageLayout.addWidget(self.BibleList)
|
||||
# Add the Biblelist Tables
|
||||
self.groupBox = QtGui.QGroupBox(self.MediaManagerItem)
|
||||
self.groupBox.setGeometry(QtCore.QRect(5, 5, 271, 391))
|
||||
self.groupBox.setObjectName("groupBox")
|
||||
self.lineEdit = QtGui.QLineEdit(self.groupBox)
|
||||
self.lineEdit.setGeometry(QtCore.QRect(70, 50, 161, 23))
|
||||
self.lineEdit.setObjectName("lineEdit")
|
||||
self.label = QtGui.QLabel(self.groupBox)
|
||||
self.label.setGeometry(QtCore.QRect(20, 20, 54, 17))
|
||||
self.label.setObjectName("label")
|
||||
self.comboBox = QtGui.QComboBox(self.groupBox)
|
||||
self.comboBox.setGeometry(QtCore.QRect(100, 20, 74, 22))
|
||||
self.comboBox.setObjectName("comboBox")
|
||||
self.comboBox_2 = QtGui.QComboBox(self.groupBox)
|
||||
self.comboBox_2.setGeometry(QtCore.QRect(70, 80, 74, 22))
|
||||
self.comboBox_2.setObjectName("comboBox_2")
|
||||
self.comboBox_3 = QtGui.QComboBox(self.groupBox)
|
||||
self.comboBox_3.setGeometry(QtCore.QRect(160, 80, 74, 22))
|
||||
self.comboBox_3.setObjectName("comboBox_3")
|
||||
self.comboBox_4 = QtGui.QComboBox(self.groupBox)
|
||||
self.comboBox_4.setGeometry(QtCore.QRect(70, 110, 74, 22))
|
||||
self.comboBox_4.setObjectName("comboBox_4")
|
||||
self.comboBox_5 = QtGui.QComboBox(self.groupBox)
|
||||
self.comboBox_5.setGeometry(QtCore.QRect(160, 110, 74, 22))
|
||||
self.comboBox_5.setObjectName("comboBox_5")
|
||||
self.listView = QtGui.QListView(self.groupBox)
|
||||
self.listView.setGeometry(QtCore.QRect(10, 180, 256, 192))
|
||||
self.listView.setObjectName("listView")
|
||||
|
||||
# self.groupBox = QtGui.QGroupBox(self.MediaManagerItem)
|
||||
# self.groupBox.setGeometry(QtCore.QRect(10, 10, 251, 341))
|
||||
# self.groupBox.setObjectName("groupBox")
|
||||
# self.lineEdit = QtGui.QLineEdit(self.groupBox)
|
||||
# self.lineEdit.setGeometry(QtCore.QRect(120, 30, 113, 23))
|
||||
# self.lineEdit.setObjectName("lineEdit")
|
||||
# self.label = QtGui.QLabel(self.groupBox)
|
||||
# self.label.setGeometry(QtCore.QRect(30, 30, 54, 17))
|
||||
# self.label.setObjectName("label")
|
||||
# self.comboBox = QtGui.QComboBox(self.groupBox)
|
||||
# self.comboBox.setGeometry(QtCore.QRect(70, 80, 74, 22))
|
||||
# self.comboBox.setObjectName("comboBox")
|
||||
self.MediaManagerItem.PageLayout.addWidget(self.groupBox)
|
||||
#
|
||||
# # Add the Biblelist widget
|
||||
# #self.BibleList = QtGui.QTableWidget(self.MediaManagerItem)
|
||||
# self.BibleList = QtGui.QTableWidget(self.groupBox)
|
||||
# self.BibleList.setObjectName("BibleList")
|
||||
# self.BibleList.setColumnCount(0)
|
||||
# self.BibleList.setRowCount(0)
|
||||
#self.MediaManagerItem.PageLayout.addWidget(self.BibleList)
|
||||
return self.MediaManagerItem
|
||||
|
||||
def onBibleNewClick(self):
|
||||
self.bibleimportform = BibleImportForm(self.biblemanager)
|
||||
self.bibleimportform.show()
|
||||
|
||||
pass
|
||||
|
||||
def onBiblePreviewClick(self):
|
||||
|
Loading…
Reference in New Issue
Block a user