forked from openlp/openlp
Look a songs Focus issues
Fix Bibles footers
This commit is contained in:
parent
ff158440e6
commit
f576e9d83d
@ -363,8 +363,11 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
old_chapter = chapter
|
old_chapter = chapter
|
||||||
bible_text = bible_text + u' '+ loc + u' '+ text
|
bible_text = bible_text + u' '+ loc + u' '+ text
|
||||||
service_item.title = book + u' ' + loc
|
service_item.title = book + u' ' + loc
|
||||||
if len(raw_footer) <= 1:
|
footer = book + u' (' + self.version + u' ' + self.copyright +u')'
|
||||||
raw_footer.append(book)
|
try:
|
||||||
|
raw_footer.index(footer)
|
||||||
|
except:
|
||||||
|
raw_footer.append(footer)
|
||||||
if len(self.parent.bibles_tab.bible_theme) == 0:
|
if len(self.parent.bibles_tab.bible_theme) == 0:
|
||||||
service_item.theme = None
|
service_item.theme = None
|
||||||
else:
|
else:
|
||||||
@ -503,6 +506,9 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
self.search_results = self.parent.biblemanager.get_verse_text(bible, book,
|
self.search_results = self.parent.biblemanager.get_verse_text(bible, book,
|
||||||
int(start_chapter), int(end_chapter), int(start_verse),
|
int(start_chapter), int(end_chapter), int(start_verse),
|
||||||
int(end_verse))
|
int(end_verse))
|
||||||
|
self.copyright = unicode(self.parent.biblemanager.get_meta_data(bible, u'Copyright').value)
|
||||||
|
self.permissions = unicode(self.parent.biblemanager.get_meta_data(bible, u'Permissions').value)
|
||||||
|
self.version = unicode(self.parent.biblemanager.get_meta_data(bible, u'Version').value)
|
||||||
else:
|
else:
|
||||||
reply = QtGui.QMessageBox.information(self,
|
reply = QtGui.QMessageBox.information(self,
|
||||||
translate(u'BibleMediaItem', u'Information'),
|
translate(u'BibleMediaItem', u'Information'),
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
||||||
|
"""
|
||||||
|
OpenLP - Open Source Lyrics Projection
|
||||||
|
Copyright (c) 2008 Raoul Snyman
|
||||||
|
Portions copyright (c) 2008-2009 Martin Thompson, Tim Bentley,
|
||||||
|
|
||||||
# Form implementation generated from reading ui file '/home/raoul/Projects/openlp-2/resources/forms/editversedialog.ui'
|
This program is free software; you can redistribute it and/or modify it under
|
||||||
#
|
the terms of the GNU General Public License as published by the Free Software
|
||||||
# Created: Sat Mar 7 11:11:49 2009
|
Foundation; version 2 of the License.
|
||||||
# by: PyQt4 UI code generator 4.4.4
|
|
||||||
#
|
|
||||||
# WARNING! All changes made in this file will be lost!
|
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with
|
||||||
|
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
"""
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
from openlp.core.lib import translate
|
from openlp.core.lib import translate
|
||||||
|
|
||||||
@ -28,11 +38,11 @@ class Ui_EditVerseDialog(object):
|
|||||||
self.ButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
|
self.ButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
|
||||||
self.ButtonBox.setObjectName(u'ButtonBox')
|
self.ButtonBox.setObjectName(u'ButtonBox')
|
||||||
self.DialogLayout.addWidget(self.ButtonBox)
|
self.DialogLayout.addWidget(self.ButtonBox)
|
||||||
|
|
||||||
self.retranslateUi(EditVerseDialog)
|
self.retranslateUi(EditVerseDialog)
|
||||||
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL(u'accepted()'), EditVerseDialog.accept)
|
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL(u'accepted()'), EditVerseDialog.accept)
|
||||||
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL(u'rejected()'), EditVerseDialog.reject)
|
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL(u'rejected()'), EditVerseDialog.reject)
|
||||||
QtCore.QMetaObject.connectSlotsByName(EditVerseDialog)
|
QtCore.QMetaObject.connectSlotsByName(EditVerseDialog)
|
||||||
|
self.VerseTextEdit.setFocus(QtCore.Qt.OtherFocusReason)
|
||||||
|
|
||||||
def retranslateUi(self, EditVerseDialog):
|
def retranslateUi(self, EditVerseDialog):
|
||||||
EditVerseDialog.setWindowTitle(translate(u'EditVerseDialog', u'Dialog'))
|
EditVerseDialog.setWindowTitle(translate(u'EditVerseDialog', u'Song Verse Edit Dialog'))
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
OpenLP - Open Source Lyrics Projection
|
OpenLP - Open Source Lyrics Projection
|
||||||
Copyright (c) 2008 Raoul Snyman
|
Copyright (c) 2008 Raoul Snyman
|
||||||
Portions copyright (c) 2008 Martin Thompson, Tim Bentley,
|
Portions copyright (c) 2008-2009 Martin Thompson, Tim Bentley,
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under
|
This program is free software; you can redistribute it and/or modify it under
|
||||||
the terms of the GNU General Public License as published by the Free Software
|
the terms of the GNU General Public License as published by the Free Software
|
||||||
@ -35,6 +35,7 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
|
|||||||
|
|
||||||
def setVerse(self, verse):
|
def setVerse(self, verse):
|
||||||
self.VerseTextEdit.setPlainText(verse)
|
self.VerseTextEdit.setPlainText(verse)
|
||||||
|
self.VerseTextEdit.setFocus(QtCore.Qt.OtherFocusReason)
|
||||||
|
|
||||||
def getVerse(self):
|
def getVerse(self):
|
||||||
return self.VerseTextEdit.toPlainText()
|
return self.VerseTextEdit.toPlainText()
|
||||||
|
Loading…
Reference in New Issue
Block a user