openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #06253
[Merge] lp:~crichter/openlp/bugfixing into lp:openlp
rimach has proposed merging lp:~crichter/openlp/bugfixing into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~crichter/openlp/bugfixing/+merge/49717
- change call for openoffice to soffice
-> so hopefully it will work for all versions of OpenOffice and also LibreOffice
- add alternate shortcut display
- little correction for shortcut addition
--
https://code.launchpad.net/~crichter/openlp/bugfixing/+merge/49717
Your team OpenLP Core is requested to review the proposed merge of lp:~crichter/openlp/bugfixing into lp:openlp.
=== modified file 'openlp/core/ui/shortcutlistdialog.py'
--- openlp/core/ui/shortcutlistdialog.py 2011-01-16 20:54:31 +0000
+++ openlp/core/ui/shortcutlistdialog.py 2011-02-14 21:53:42 +0000
@@ -36,7 +36,7 @@
self.treeWidget = QtGui.QTreeWidget(shortcutListDialog)
self.treeWidget.setAlternatingRowColors(True)
self.treeWidget.setObjectName(u'treeWidget')
- self.treeWidget.setColumnCount(2)
+ self.treeWidget.setColumnCount(3)
self.dialogLayout.addWidget(self.treeWidget)
self.defaultButton = QtGui.QRadioButton(shortcutListDialog)
self.defaultButton.setChecked(True)
@@ -78,7 +78,8 @@
translate('OpenLP.ShortcutListDialog', 'Customize Shortcuts'))
self.treeWidget.setHeaderLabels([
translate('OpenLP.ShortcutListDialog', 'Action'),
- translate('OpenLP.ShortcutListDialog', 'Shortcut')])
+ translate('OpenLP.ShortcutListDialog', 'Shortcut'),
+ translate('OpenLP.ShortcutListDialog', 'Alternate')])
self.defaultButton.setText(
translate('OpenLP.ShortcutListDialog', 'Default: %s'))
self.customButton.setText(
=== modified file 'openlp/core/ui/shortcutlistform.py'
--- openlp/core/ui/shortcutlistform.py 2011-01-15 22:50:25 +0000
+++ openlp/core/ui/shortcutlistform.py 2011-02-14 21:53:42 +0000
@@ -95,8 +95,13 @@
item = QtGui.QTreeWidgetItem([category.name])
for action in category.actions:
actionText = REMOVE_AMPERSAND.sub('', unicode(action.text()))
- shortcutText = action.shortcut().toString()
- actionItem = QtGui.QTreeWidgetItem([actionText, shortcutText])
+ if (len(action.shortcuts()) == 2):
+ shortcutText = action.shortcuts()[0].toString()
+ alternateText = action.shortcuts()[1].toString()
+ else:
+ shortcutText = action.shortcut().toString()
+ alternateText = u''
+ actionItem = QtGui.QTreeWidgetItem([actionText, shortcutText, alternateText])
actionItem.setIcon(0, action.icon())
item.addChild(actionItem)
item.setExpanded(True)
=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py 2011-02-12 16:07:11 +0000
+++ openlp/core/ui/slidecontroller.py 2011-02-14 21:53:42 +0000
@@ -380,7 +380,7 @@
self.previousItem.setShortcuts([QtCore.Qt.Key_Up, QtCore.Qt.Key_PageUp])
self.previousItem.setShortcutContext(
QtCore.Qt.WidgetWithChildrenShortcut)
- actionList.add_action(self.nextItem, u'Live')
+ actionList.add_action(self.previousItem, u'Live')
self.nextItem.setShortcuts([QtCore.Qt.Key_Down, QtCore.Qt.Key_PageDown])
self.nextItem.setShortcutContext(QtCore.Qt.WidgetWithChildrenShortcut)
actionList.add_action(self.nextItem, u'Live')
=== modified file 'openlp/core/utils/__init__.py'
--- openlp/core/utils/__init__.py 2011-02-13 20:03:55 +0000
+++ openlp/core/utils/__init__.py 2011-02-14 21:53:42 +0000
@@ -375,13 +375,13 @@
"""
Returns the UNO command to launch an openoffice.org instance.
"""
+ COMMAND = u'soffice'
+ OPTIONS = u'-nologo -norestore -minimized -invisible -nofirststartwizard'
if UNO_CONNECTION_TYPE == u'pipe':
- return u'openoffice.org -nologo -norestore -minimized -invisible ' \
- + u'-nofirststartwizard -accept=pipe,name=openlp_pipe;urp;'
+ CONNECTION = u'"-accept=pipe,name=openlp_pipe;urp;"'
else:
- return u'openoffice.org -nologo -norestore -minimized ' \
- + u'-invisible -nofirststartwizard ' \
- + u'-accept=socket,host=localhost,port=2002;urp;'
+ CONNECTION = u'"-accept=socket,host=localhost,port=2002;urp;"'
+ return u'%s %s %s' % (COMMAND, OPTIONS, CONNECTION)
def get_uno_instance(resolver):
"""
Follow ups