openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #09968
[Merge] lp:~j-corwin/openlp/general into lp:openlp
Jonathan Corwin has proposed merging lp:~j-corwin/openlp/general into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
Bug #634771 in OpenLP: "OpenLP 1.9.2+bzr1016-0ubuntu1~lucid1 does not start"
https://bugs.launchpad.net/openlp/+bug/634771
Bug #646718 in OpenLP: "Songbook, Number will not loaded, Title will not be saved"
https://bugs.launchpad.net/openlp/+bug/646718
Bug #696013 in OpenLP: "song import from powerpoint crashes every second time"
https://bugs.launchpad.net/openlp/+bug/696013
Bug #696021 in OpenLP: "presentation loader does not work fine in Windows using Powerpoint Viewer 2007"
https://bugs.launchpad.net/openlp/+bug/696021
Bug #696637 in OpenLP: "Alert not positioned correctly in single screen"
https://bugs.launchpad.net/openlp/+bug/696637
Bug #727732 in OpenLP: "Openlp 1.9.?? crashes on start"
https://bugs.launchpad.net/openlp/+bug/727732
Bug #735039 in OpenLP: "Cannot import PowerPoint Presentations with PowerPoint 2010"
https://bugs.launchpad.net/openlp/+bug/735039
For more details, see:
https://code.launchpad.net/~j-corwin/openlp/general/+merge/64092
Outstanding String fixes
--
https://code.launchpad.net/~j-corwin/openlp/general/+merge/64092
Your team OpenLP Core is requested to review the proposed merge of lp:~j-corwin/openlp/general into lp:openlp.
=== modified file 'openlp/core/lib/ui.py'
--- openlp/core/lib/ui.py 2011-05-26 17:11:22 +0000
+++ openlp/core/lib/ui.py 2011-06-09 22:23:28 +0000
@@ -85,7 +85,6 @@
self.LengthTime = unicode(translate('OpenLP.Ui', 'Length %s'))
self.Live = translate('OpenLP.Ui', 'Live')
self.LiveBGError = translate('OpenLP.Ui', 'Live Background Error')
- self.LivePanel = translate('OpenLP.Ui', 'Live Panel')
self.LiveToolbar = translate('OpenLP.Ui', 'Live Toolbar')
self.Load = translate('OpenLP.Ui', 'Load')
self.Minutes = translate('OpenLP.Ui', 'm',
@@ -102,14 +101,13 @@
self.OLPV2 = translate('OpenLP.Ui', 'OpenLP 2.0')
self.OpenLPStart = translate('OpenLP.Ui', 'OpenLP is already running. '
'Do you wish to continue?')
- self.OpenService = translate('OpenLP.Ui', 'Open Service')
+ self.OpenService = translate('OpenLP.Ui', 'Open service.')
self.Preview = translate('OpenLP.Ui', 'Preview')
- self.PreviewPanel = translate('OpenLP.Ui', 'Preview Panel')
- self.PrintServiceOrder = translate('OpenLP.Ui', 'Print Service Order')
+ self.PrintService = translate('OpenLP.Ui', 'Print Service')
self.ReplaceBG = translate('OpenLP.Ui', 'Replace Background')
- self.ReplaceLiveBG = translate('OpenLP.Ui', 'Replace Live Background')
+ self.ReplaceLiveBG = translate('OpenLP.Ui', 'Replace live background.')
self.ResetBG = translate('OpenLP.Ui', 'Reset Background')
- self.ResetLiveBG = translate('OpenLP.Ui', 'Reset Live Background')
+ self.ResetLiveBG = translate('OpenLP.Ui', 'Reset live background.')
self.Seconds = translate('OpenLP.Ui', 's',
'The abbreviated unit for seconds')
self.SaveAndPreview = translate('OpenLP.Ui', 'Save && Preview')
=== modified file 'openlp/core/ui/firsttimeform.py'
--- openlp/core/ui/firsttimeform.py 2011-05-26 17:11:22 +0000
+++ openlp/core/ui/firsttimeform.py 2011-06-09 22:23:28 +0000
@@ -200,15 +200,14 @@
"""
Prepare the UI for the process.
"""
- # We start on 2 for plugins status setting plus a "finished" point.
- max_progress = 2
+ self.max_progress = 0
# Loop through the songs list and increase for each selected item
for i in xrange(self.songsListWidget.count()):
item = self.songsListWidget.item(i)
if item.checkState() == QtCore.Qt.Checked:
filename = item.data(QtCore.Qt.UserRole).toString()
size = self._getFileSize(u'%s%s' % (self.web, filename))
- max_progress += size
+ self.max_progress += size
# Loop through the Bibles list and increase for each selected item
iterator = QtGui.QTreeWidgetItemIterator(self.biblesTreeWidget)
while iterator.value():
@@ -216,7 +215,7 @@
if item.parent() and item.checkState(0) == QtCore.Qt.Checked:
filename = item.data(0, QtCore.Qt.UserRole).toString()
size = self._getFileSize(u'%s%s' % (self.web, filename))
- max_progress += size
+ self.max_progress += size
iterator += 1
# Loop through the themes list and increase for each selected item
for i in xrange(self.themesListWidget.count()):
@@ -224,23 +223,40 @@
if item.checkState() == QtCore.Qt.Checked:
filename = item.data(QtCore.Qt.UserRole).toString()
size = self._getFileSize(u'%s%s' % (self.web, filename))
- max_progress += size
+ self.max_progress += size
self.finishButton.setVisible(False)
- self.progressBar.setValue(0)
- self.progressBar.setMinimum(0)
- self.progressBar.setMaximum(max_progress)
+ if self.max_progress:
+ # Add on 2 for plugins status setting plus a "finished" point.
+ self.max_progress = self.max_progress + 2
+ self.progressBar.setValue(0)
+ self.progressBar.setMinimum(0)
+ self.progressBar.setMaximum(self.max_progress)
+ self.progressPage.setTitle(translate('OpenLP.FirstTimeWizard',
+ 'Setting Up And Downloading'))
+ self.progressPage.setSubTitle(translate('OpenLP.FirstTimeWizard',
+ 'Please wait while OpenLP is set up '
+ 'and your data is downloaded.'))
+ else:
+ self.progressBar.setVisible(False)
+ self.progressPage.setTitle(translate('OpenLP.FirstTimeWizard',
+ 'Setting Up'))
+ self.progressPage.setSubTitle(u'Setup complete.')
def _postWizard(self):
"""
Clean up the UI after the process has finished.
"""
- self.progressBar.setValue(self.progressBar.maximum())
+ if self.max_progress:
+ self.progressBar.setValue(self.progressBar.maximum())
+ self.progressLabel.setText(translate('OpenLP.FirstTimeWizard',
+ 'Download complete. Click the finish button to start OpenLP.'))
+ else:
+ self.progressLabel.setText(translate('OpenLP.FirstTimeWizard',
+ 'Click the finish button to start OpenLP.'))
self.finishButton.setVisible(True)
self.finishButton.setEnabled(True)
self.cancelButton.setVisible(False)
self.nextButton.setVisible(False)
- self.progressLabel.setText(translate('OpenLP.FirstTimeWizard',
- 'Download complete. Click the finish button to start OpenLP.'))
Receiver.send_message(u'openlp_process_events')
def _performWizard(self):
=== modified file 'openlp/core/ui/firsttimewizard.py'
--- openlp/core/ui/firsttimewizard.py 2011-05-26 17:11:22 +0000
+++ openlp/core/ui/firsttimewizard.py 2011-06-09 22:23:28 +0000
@@ -254,10 +254,6 @@
'Default Settings'))
self.defaultsPage.setSubTitle(translate('OpenLP.FirstTimeWizard',
'Set up default settings to be used by OpenLP.'))
- self.progressPage.setTitle(translate('OpenLP.FirstTimeWizard',
- 'Setting Up And Importing'))
- self.progressPage.setSubTitle(translate('OpenLP.FirstTimeWizard',
- 'Please wait while OpenLP is set up and your data is imported.'))
self.displayLabel.setText(translate('OpenLP.FirstTimeWizard',
'Default output display:'))
self.themeLabel.setText(translate('OpenLP.FirstTimeWizard',
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2011-06-05 18:46:00 +0000
+++ openlp/core/ui/mainwindow.py 2011-06-09 22:23:28 +0000
@@ -356,9 +356,9 @@
translate('OpenLP.MainWindow', 'Save Service As'))
self.fileSaveAsItem.setStatusTip(translate('OpenLP.MainWindow',
'Save the current service under a new name.'))
- self.printServiceOrderItem.setText(UiStrings().PrintServiceOrder)
+ self.printServiceOrderItem.setText(UiStrings().PrintService)
self.printServiceOrderItem.setStatusTip(translate('OpenLP.MainWindow',
- 'Print the current Service Order.'))
+ 'Print the current service.'))
self.fileExitItem.setText(
translate('OpenLP.MainWindow', 'E&xit'))
self.fileExitItem.setStatusTip(
=== modified file 'openlp/core/ui/printservicedialog.py'
--- openlp/core/ui/printservicedialog.py 2011-05-26 17:11:22 +0000
+++ openlp/core/ui/printservicedialog.py 2011-06-09 22:23:28 +0000
@@ -149,7 +149,7 @@
QtCore.SIGNAL(u'toggled(bool)'), self.toggleOptions)
def retranslateUi(self, printServiceDialog):
- printServiceDialog.setWindowTitle(UiStrings().PrintServiceOrder)
+ printServiceDialog.setWindowTitle(UiStrings().PrintService)
self.slideTextCheckBox.setText(translate('OpenLP.PrintServiceForm',
'Include slide text if available'))
self.pageBreakAfterText.setText(translate('OpenLP.PrintServiceForm',
@@ -159,7 +159,7 @@
self.metaDataCheckBox.setText(translate('OpenLP.PrintServiceForm',
'Include play length of media items'))
self.titleLineEdit.setText(translate('OpenLP.PrintServiceForm',
- 'Service Order Sheet'))
+ 'Service Sheet'))
self.zoomComboBox.addItem(ZoomSize.Sizes[ZoomSize.Page])
self.zoomComboBox.addItem(ZoomSize.Sizes[ZoomSize.Width])
self.zoomComboBox.addItem(ZoomSize.Sizes[ZoomSize.OneHundred])
Follow ups