From b544e519b1197caabf059303fb60b13f4f6962ce Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 22 May 2011 19:48:14 +0100 Subject: [PATCH] Add tolltip and impress debugging --- openlp/plugins/presentations/lib/impresscontroller.py | 6 +++++- openlp/plugins/songs/forms/editversedialog.py | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/presentations/lib/impresscontroller.py b/openlp/plugins/presentations/lib/impresscontroller.py index b691c47ce..45a4049f8 100644 --- a/openlp/plugins/presentations/lib/impresscontroller.py +++ b/openlp/plugins/presentations/lib/impresscontroller.py @@ -45,6 +45,7 @@ else: try: import uno from com.sun.star.beans import PropertyValue + from com.sun.star.task import ErrorCodeIOException uno_available = True except ImportError: uno_available = False @@ -270,7 +271,7 @@ class ImpressDocument(PresentationDocument): else: thumbdirurl = uno.systemPathToFileUrl(self.get_temp_folder()) props = [] - props.append(self.create_property(u'FilterName', u'impress_png_Export')) + props.append(self.create_property(u'FilterName', u'impress_jpg_Export')) props = tuple(props) doc = self.document pages = doc.getDrawPages() @@ -286,6 +287,9 @@ class ImpressDocument(PresentationDocument): doc.storeToURL(urlpath, props) self.convert_thumbnail(path, idx + 1) delete_file(path) + except ErrorCodeIOException, exception: + log.exception(u'ERROR! ErrorCodeIOException %d' % + exception.ErrCode) except: log.exception(u'%s - Unable to store openoffice preview' % path) diff --git a/openlp/plugins/songs/forms/editversedialog.py b/openlp/plugins/songs/forms/editversedialog.py index 7f1985c7f..f6b900d8c 100644 --- a/openlp/plugins/songs/forms/editversedialog.py +++ b/openlp/plugins/songs/forms/editversedialog.py @@ -90,5 +90,11 @@ class Ui_EditVerseDialog(object): VerseType.TranslatedNames[VerseType.Other]) self.splitButton.setText( translate('SongsPlugin.EditVerseForm', '&Split')) + self.splitButton.setToolTip( + translate('SongsPlugin.EditVerseForm', 'Split a slide into two ' + 'only if it does not fit on the screen as one slide.')) self.insertButton.setText( translate('SongsPlugin.EditVerseForm', '&Insert')) + self.insertButton.setToolTip( + translate('SongsPlugin.EditVerseForm', 'Split a slide into two ' + 'by inserting a verse splitter.'))