forked from openlp/openlp
Add Settings to Bible Tab
bzr-revno: 316
This commit is contained in:
parent
3421dac10e
commit
fa3a8c1dfc
@ -115,7 +115,7 @@ class BiblePlugin(Plugin, PluginUtils):
|
|||||||
self.QuickSearchButton.setObjectName('QuickSearchButton')
|
self.QuickSearchButton.setObjectName('QuickSearchButton')
|
||||||
self.QuickSearchButton.setText('Search')
|
self.QuickSearchButton.setText('Search')
|
||||||
self.QuickLayout.addWidget(self.QuickSearchButton, 3, 2, 1, 1)
|
self.QuickLayout.addWidget(self.QuickSearchButton, 3, 2, 1, 1)
|
||||||
self.SearchTabWidget.addTab(self.QuickTab, 'Quick Search')
|
self.SearchTabWidget.addTab(self.QuickTab, 'Quick')
|
||||||
self.ClearQuickSearchComboBox = QtGui.QComboBox(self.QuickTab)
|
self.ClearQuickSearchComboBox = QtGui.QComboBox(self.QuickTab)
|
||||||
self.ClearQuickSearchComboBox.setObjectName('ClearQuickSearchComboBox')
|
self.ClearQuickSearchComboBox.setObjectName('ClearQuickSearchComboBox')
|
||||||
self.QuickLayout.addWidget(self.ClearQuickSearchComboBox, 3, 0, 1, 1)
|
self.QuickLayout.addWidget(self.ClearQuickSearchComboBox, 3, 0, 1, 1)
|
||||||
@ -179,7 +179,14 @@ class BiblePlugin(Plugin, PluginUtils):
|
|||||||
self.AdvancedSearchButton.setObjectName('AdvancedSearchButton')
|
self.AdvancedSearchButton.setObjectName('AdvancedSearchButton')
|
||||||
self.AdvancedSearchButton.setText('Search')
|
self.AdvancedSearchButton.setText('Search')
|
||||||
self.AdvancedLayout.addWidget(self.AdvancedSearchButton, 5, 3, 1, 1)
|
self.AdvancedLayout.addWidget(self.AdvancedSearchButton, 5, 3, 1, 1)
|
||||||
self.SearchTabWidget.addTab(self.AdvancedTab, 'Advanced Search')
|
self.SearchTabWidget.addTab(self.AdvancedTab, 'Advanced')
|
||||||
|
|
||||||
|
# Add the Settings tab
|
||||||
|
self.SettingsTab = QtGui.QWidget()
|
||||||
|
self.SettingsTab.setObjectName('SettingsTab')
|
||||||
|
self.SettingsLayout = QtGui.QGridLayout(self.SettingsTab)
|
||||||
|
|
||||||
|
self.SearchTabWidget.addTab(self.SettingsTab, 'Settings')
|
||||||
|
|
||||||
# Add the search tab widget to the page layout
|
# Add the search tab widget to the page layout
|
||||||
self.MediaManagerItem.PageLayout.addWidget(self.SearchTabWidget)
|
self.MediaManagerItem.PageLayout.addWidget(self.SearchTabWidget)
|
||||||
|
@ -135,7 +135,7 @@ class BibleImportForm(QDialog, Ui_BibleImportDialog, PluginUtils):
|
|||||||
@pyqtSignature("")
|
@pyqtSignature("")
|
||||||
def on_ImportButton_clicked(self):
|
def on_ImportButton_clicked(self):
|
||||||
if self.biblemanager != None:
|
if self.biblemanager != None:
|
||||||
if not self.bibletype == None or len(self.BibleNameEdit.displayText()) > 0:
|
if not self.bibletype == None and len(self.BibleNameEdit.displayText()) > 0:
|
||||||
self.MessageLabel.setText("Import Started")
|
self.MessageLabel.setText("Import Started")
|
||||||
self.ProgressBar.setMinimum(0)
|
self.ProgressBar.setMinimum(0)
|
||||||
self.setMax(65)
|
self.setMax(65)
|
||||||
@ -145,7 +145,7 @@ class BibleImportForm(QDialog, Ui_BibleImportDialog, PluginUtils):
|
|||||||
self._import_bible()
|
self._import_bible()
|
||||||
self.MessageLabel.setText("Import Complete")
|
self.MessageLabel.setText("Import Complete")
|
||||||
self.ProgressBar.setValue(self.barmax)
|
self.ProgressBar.setValue(self.barmax)
|
||||||
Receiver().send_message("openlpreloadbibles")
|
Receiver().send_message("openlpreloadbibles") # tell bibleplugin to reload the bibles
|
||||||
|
|
||||||
def setMax(self, max):
|
def setMax(self, max):
|
||||||
log.debug("set Max %s", max)
|
log.debug("set Max %s", max)
|
||||||
|
Loading…
Reference in New Issue
Block a user