Add tolltip and impress debugging

This commit is contained in:
Tim Bentley 2011-05-22 19:48:14 +01:00
parent 37679fc1db
commit b544e519b1
2 changed files with 11 additions and 1 deletions

View File

@ -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)

View File

@ -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.'))