forked from openlp/openlp
Moved the Import Bible item to the Bible plugin.
bzr-revno: 239
This commit is contained in:
parent
90c45ac148
commit
531ca08bba
@ -286,8 +286,6 @@ class MainWindow(object):
|
||||
icon34.addPixmap(QtGui.QPixmap(":/system/system_exit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.FileExitItem.setIcon(icon34)
|
||||
self.FileExitItem.setObjectName("FileExitItem")
|
||||
self.ImportBibleItem = QtGui.QAction(self.main_window)
|
||||
self.ImportBibleItem.setObjectName("ImportBibleItem")
|
||||
self.ImportThemeItem = QtGui.QAction(self.main_window)
|
||||
self.ImportThemeItem.setObjectName("ImportThemeItem")
|
||||
self.ImportLanguageItem = QtGui.QAction(self.main_window)
|
||||
@ -348,7 +346,6 @@ class MainWindow(object):
|
||||
self.action_Preview_Pane.setObjectName("action_Preview_Pane")
|
||||
self.ModeLiveItem = QtGui.QAction(self.main_window)
|
||||
self.ModeLiveItem.setObjectName("ModeLiveItem")
|
||||
self.FileImportMenu.addAction(self.ImportBibleItem)
|
||||
self.FileImportMenu.addAction(self.ImportThemeItem)
|
||||
self.FileImportMenu.addAction(self.ImportLanguageItem)
|
||||
self.FileExportMenu.addAction(self.ExportBibleItem)
|
||||
@ -454,7 +451,6 @@ class MainWindow(object):
|
||||
self.FileExitItem.setText(QtGui.QApplication.translate("main_window", "E&xit", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.FileExitItem.setStatusTip(QtGui.QApplication.translate("main_window", "Quit OpenLP 2.0", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.FileExitItem.setShortcut(QtGui.QApplication.translate("main_window", "Alt+F4", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.ImportBibleItem.setText(QtGui.QApplication.translate("main_window", "&Bible", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.ImportThemeItem.setText(QtGui.QApplication.translate("main_window", "&Theme", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.ImportLanguageItem.setText(QtGui.QApplication.translate("main_window", "&Language", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.ExportBibleItem.setText(QtGui.QApplication.translate("main_window", "&Bible", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
@ -189,6 +189,12 @@ class BiblePlugin(Plugin):
|
||||
|
||||
return self.MediaManagerItem
|
||||
|
||||
def add_import_menu_item(self, import_menu):
|
||||
self.ImportBibleItem = QtGui.QAction(import_menu)
|
||||
self.ImportBibleItem.setObjectName("ImportBibleItem")
|
||||
import_menu.addAction(self.ImportBibleItem)
|
||||
self.ImportBibleItem.setText(QtGui.QApplication.translate("main_window", "&Bible", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
def initialise(self):
|
||||
self._initialise_form()
|
||||
|
||||
@ -311,7 +317,7 @@ class BiblePlugin(Plugin):
|
||||
self._verse_search()
|
||||
|
||||
def _search_text(self, bible, text):
|
||||
self.log.debug("_search Text %s,%s", bible, text)
|
||||
self.log.debug("_search Text %s,%s", bible, text)
|
||||
self.searchresults = self.biblemanager.get_verse_from_text(bible,text)
|
||||
self._display_results()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user