forked from openlp/openlp
use '1' etc shortcuts for bible verses, images, etc
This commit is contained in:
parent
a42940b6bb
commit
ee960bb88c
@ -105,7 +105,6 @@ class UiStrings(object):
|
|||||||
self.PlaySlidesInLoop = translate('OpenLP.Ui','Play Slides in Loop')
|
self.PlaySlidesInLoop = translate('OpenLP.Ui','Play Slides in Loop')
|
||||||
self.PlaySlidesToEnd = translate('OpenLP.Ui','Play Slides to End')
|
self.PlaySlidesToEnd = translate('OpenLP.Ui','Play Slides to End')
|
||||||
self.Preview = translate('OpenLP.Ui', 'Preview')
|
self.Preview = translate('OpenLP.Ui', 'Preview')
|
||||||
self.PreviewToolbar = translate('OpenLP.Ui', 'Preview Toolbar')
|
|
||||||
self.PrintService = translate('OpenLP.Ui', 'Print Service')
|
self.PrintService = translate('OpenLP.Ui', 'Print Service')
|
||||||
self.ReplaceBG = translate('OpenLP.Ui', 'Replace Background')
|
self.ReplaceBG = translate('OpenLP.Ui', 'Replace Background')
|
||||||
self.ReplaceLiveBG = translate('OpenLP.Ui', 'Replace live background.')
|
self.ReplaceLiveBG = translate('OpenLP.Ui', 'Replace live background.')
|
||||||
|
@ -497,13 +497,15 @@ class SlideController(QtGui.QWidget):
|
|||||||
if key in self.slideList.keys():
|
if key in self.slideList.keys():
|
||||||
self.__checkUpdateSelectedSlide(self.slideList[key])
|
self.__checkUpdateSelectedSlide(self.slideList[key])
|
||||||
self.slideSelected()
|
self.slideSelected()
|
||||||
|
elif key.startswith(u'V'):
|
||||||
|
if key[1:] in self.slideList.keys():
|
||||||
|
self.__checkUpdateSelectedSlide(self.slideList[key[1:]])
|
||||||
|
self.slideSelected()
|
||||||
|
|
||||||
def setPreviewHotkeys(self, parent=None):
|
def setPreviewHotkeys(self, parent=None):
|
||||||
self.previousItem.setObjectName(u'previousItemPreview')
|
self.previousItem.setObjectName(u'previousItemPreview')
|
||||||
self.nextItem.setObjectName(u'nextItemPreview')
|
self.nextItem.setObjectName(u'nextItemPreview')
|
||||||
action_list = ActionList.get_instance()
|
action_list = ActionList.get_instance()
|
||||||
action_list.add_category(
|
|
||||||
UiStrings().PreviewToolbar, CategoryOrder.standardToolbar)
|
|
||||||
action_list.add_action(self.previousItem)
|
action_list.add_action(self.previousItem)
|
||||||
action_list.add_action(self.nextItem)
|
action_list.add_action(self.nextItem)
|
||||||
|
|
||||||
@ -783,6 +785,7 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.onSongBarHandler)
|
self.onSongBarHandler)
|
||||||
else:
|
else:
|
||||||
row += 1
|
row += 1
|
||||||
|
self.slideList[unicode(row)] = row - 1
|
||||||
item.setText(frame[u'text'])
|
item.setText(frame[u'text'])
|
||||||
else:
|
else:
|
||||||
label = QtGui.QLabel()
|
label = QtGui.QLabel()
|
||||||
@ -800,6 +803,7 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.previewListWidget.setCellWidget(framenumber, 0, label)
|
self.previewListWidget.setCellWidget(framenumber, 0, label)
|
||||||
slideHeight = width * self.parent().renderer.screen_ratio
|
slideHeight = width * self.parent().renderer.screen_ratio
|
||||||
row += 1
|
row += 1
|
||||||
|
self.slideList[unicode(row)] = row - 1
|
||||||
text.append(unicode(row))
|
text.append(unicode(row))
|
||||||
self.previewListWidget.setItem(framenumber, 0, item)
|
self.previewListWidget.setItem(framenumber, 0, item)
|
||||||
if slideHeight != 0:
|
if slideHeight != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user