forked from openlp/openlp
More string updated.
This commit is contained in:
parent
935d6602e5
commit
2c7fcef2af
@ -68,9 +68,9 @@ class Ui_ServiceItemEditDialog(object):
|
|||||||
|
|
||||||
def retranslateUi(self, ServiceItemEditDialog):
|
def retranslateUi(self, ServiceItemEditDialog):
|
||||||
ServiceItemEditDialog.setWindowTitle(
|
ServiceItemEditDialog.setWindowTitle(
|
||||||
translate('ServiceItemEditForm', 'Service Item Maintenance'))
|
translate('OpenLP.ServiceItemEditForm', 'Reorder Service Item'))
|
||||||
self.upButton.setText(translate('ServiceItemEditForm', 'Up'))
|
self.upButton.setText(translate('OpenLP.ServiceItemEditForm', 'Up'))
|
||||||
self.deleteButton.setText(translate('ServiceItemEditForm', 'Delete'))
|
self.deleteButton.setText(translate('OpenLP.ServiceItemEditForm', 'Delete'))
|
||||||
self.downButton.setText(translate('ServiceItemEditForm', 'Down'))
|
self.downButton.setText(translate('OpenLP.ServiceItemEditForm', 'Down'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -117,27 +117,27 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
# Create the top toolbar
|
# Create the top toolbar
|
||||||
self.Toolbar = OpenLPToolbar(self)
|
self.Toolbar = OpenLPToolbar(self)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'New Service'),
|
translate('OpenLP.ServiceManager', 'New Service'),
|
||||||
u':/general/general_new.png',
|
u':/general/general_new.png',
|
||||||
translate('ServiceManager', 'Create a new service'),
|
translate('OpenLP.ServiceManager', 'Create a new service'),
|
||||||
self.onNewService)
|
self.onNewService)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'Open Service'),
|
translate('OpenLP.ServiceManager', 'Open Service'),
|
||||||
u':/general/general_open.png',
|
u':/general/general_open.png',
|
||||||
translate('ServiceManager', 'Load an existing service'),
|
translate('OpenLP.ServiceManager', 'Load an existing service'),
|
||||||
self.onLoadService)
|
self.onLoadService)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'Save Service'),
|
translate('OpenLP.ServiceManager', 'Save Service'),
|
||||||
u':/general/general_save.png',
|
u':/general/general_save.png',
|
||||||
translate('ServiceManager', 'Save this service'),
|
translate('OpenLP.ServiceManager', 'Save this service'),
|
||||||
self.onQuickSaveService)
|
self.onQuickSaveService)
|
||||||
self.Toolbar.addSeparator()
|
self.Toolbar.addSeparator()
|
||||||
self.ThemeLabel = QtGui.QLabel(translate('ServiceManager', 'Theme:'),
|
self.ThemeLabel = QtGui.QLabel(translate('OpenLP.ServiceManager', 'Theme:'),
|
||||||
self)
|
self)
|
||||||
self.ThemeLabel.setMargin(3)
|
self.ThemeLabel.setMargin(3)
|
||||||
self.Toolbar.addToolbarWidget(u'ThemeLabel', self.ThemeLabel)
|
self.Toolbar.addToolbarWidget(u'ThemeLabel', self.ThemeLabel)
|
||||||
self.ThemeComboBox = QtGui.QComboBox(self.Toolbar)
|
self.ThemeComboBox = QtGui.QComboBox(self.Toolbar)
|
||||||
self.ThemeComboBox.setToolTip(translate('ServiceManager',
|
self.ThemeComboBox.setToolTip(translate('OpenLP.ServiceManager',
|
||||||
'Select a theme for the service'))
|
'Select a theme for the service'))
|
||||||
self.ThemeComboBox.setSizeAdjustPolicy(
|
self.ThemeComboBox.setSizeAdjustPolicy(
|
||||||
QtGui.QComboBox.AdjustToContents)
|
QtGui.QComboBox.AdjustToContents)
|
||||||
@ -168,28 +168,35 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
# Add the bottom toolbar
|
# Add the bottom toolbar
|
||||||
self.OrderToolbar = OpenLPToolbar(self)
|
self.OrderToolbar = OpenLPToolbar(self)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'Move to &top'),
|
translate('OpenLP.ServiceManager', 'Move to &top'),
|
||||||
u':/services/service_top.png',
|
u':/services/service_top.png',
|
||||||
translate('ServiceManager', 'Move to top'), self.onServiceTop)
|
translate('OpenLP.ServiceManager',
|
||||||
|
'Move item to the top of the service.'),
|
||||||
|
self.onServiceTop)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'Move &up'),
|
translate('OpenLP.ServiceManager', 'Move &up'),
|
||||||
u':/services/service_up.png',
|
u':/services/service_up.png',
|
||||||
translate('ServiceManager', 'Move up order'), self.onServiceUp)
|
translate('OpenLP.ServiceManager',
|
||||||
|
'Move item up one position in the service.'),
|
||||||
|
self.onServiceUp)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'Move &down'),
|
translate('OpenLP.ServiceManager', 'Move &down'),
|
||||||
u':/services/service_down.png',
|
u':/services/service_down.png',
|
||||||
translate('ServiceManager', 'Move down order'),
|
translate('OpenLP.ServiceManager',
|
||||||
|
'Move item down one position in the service.'),
|
||||||
self.onServiceDown)
|
self.onServiceDown)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate('ServiceManager', 'Move to &bottom'),
|
translate('OpenLP.ServiceManager', 'Move to &bottom'),
|
||||||
u':/services/service_bottom.png',
|
u':/services/service_bottom.png',
|
||||||
translate('ServiceManager', 'Move to end'),
|
translate('OpenLP.ServiceManager',
|
||||||
|
'Move item to the end of the service.'),
|
||||||
self.onServiceEnd)
|
self.onServiceEnd)
|
||||||
self.OrderToolbar.addSeparator()
|
self.OrderToolbar.addSeparator()
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate('ServiceManager', '&Delete From Service'),
|
translate('OpenLP.ServiceManager', '&Delete From Service'),
|
||||||
u':/general/general_delete.png',
|
u':/general/general_delete.png',
|
||||||
translate('ServiceManager', 'Delete From Service'),
|
translate('OpenLP.ServiceManager',
|
||||||
|
'Delete the selected item from the service.'),
|
||||||
self.onDeleteFromService)
|
self.onDeleteFromService)
|
||||||
self.Layout.addWidget(self.OrderToolbar)
|
self.Layout.addWidget(self.OrderToolbar)
|
||||||
# Connect up our signals and slots
|
# Connect up our signals and slots
|
||||||
@ -223,37 +230,37 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
#build the drag and drop context menu
|
#build the drag and drop context menu
|
||||||
self.dndMenu = QtGui.QMenu()
|
self.dndMenu = QtGui.QMenu()
|
||||||
self.newAction = self.dndMenu.addAction(
|
self.newAction = self.dndMenu.addAction(
|
||||||
translate('ServiceManager', '&Add New Item'))
|
translate('OpenLP.ServiceManager', '&Add New Item'))
|
||||||
self.newAction.setIcon(build_icon(u':/general/general_edit.png'))
|
self.newAction.setIcon(build_icon(u':/general/general_edit.png'))
|
||||||
self.addToAction = self.dndMenu.addAction(
|
self.addToAction = self.dndMenu.addAction(
|
||||||
translate('ServiceManager', '&Add to Selected Item'))
|
translate('OpenLP.ServiceManager', '&Add to Selected Item'))
|
||||||
self.addToAction.setIcon(build_icon(u':/general/general_edit.png'))
|
self.addToAction.setIcon(build_icon(u':/general/general_edit.png'))
|
||||||
#build the context menu
|
#build the context menu
|
||||||
self.menu = QtGui.QMenu()
|
self.menu = QtGui.QMenu()
|
||||||
self.editAction = self.menu.addAction(
|
self.editAction = self.menu.addAction(
|
||||||
translate('ServiceManager', '&Edit Item'))
|
translate('OpenLP.ServiceManager', '&Edit Item'))
|
||||||
self.editAction.setIcon(build_icon(u':/general/general_edit.png'))
|
self.editAction.setIcon(build_icon(u':/general/general_edit.png'))
|
||||||
self.maintainAction = self.menu.addAction(
|
self.maintainAction = self.menu.addAction(
|
||||||
translate('ServiceManager', '&Maintain Item'))
|
translate('OpenLP.ServiceManager', '&Reorder Item'))
|
||||||
self.maintainAction.setIcon(build_icon(u':/general/general_edit.png'))
|
self.maintainAction.setIcon(build_icon(u':/general/general_edit.png'))
|
||||||
self.notesAction = self.menu.addAction(
|
self.notesAction = self.menu.addAction(
|
||||||
translate('ServiceManager', '&Notes'))
|
translate('OpenLP.ServiceManager', '&Notes'))
|
||||||
self.notesAction.setIcon(build_icon(u':/services/service_notes.png'))
|
self.notesAction.setIcon(build_icon(u':/services/service_notes.png'))
|
||||||
self.deleteAction = self.menu.addAction(
|
self.deleteAction = self.menu.addAction(
|
||||||
translate('ServiceManager', '&Delete From Service'))
|
translate('OpenLP.ServiceManager', '&Delete From Service'))
|
||||||
self.deleteAction.setIcon(build_icon(u':/general/general_delete.png'))
|
self.deleteAction.setIcon(build_icon(u':/general/general_delete.png'))
|
||||||
self.sep1 = self.menu.addAction(u'')
|
self.sep1 = self.menu.addAction(u'')
|
||||||
self.sep1.setSeparator(True)
|
self.sep1.setSeparator(True)
|
||||||
self.previewAction = self.menu.addAction(
|
self.previewAction = self.menu.addAction(
|
||||||
translate('ServiceManager', '&Preview Verse'))
|
translate('OpenLP.ServiceManager', '&Preview Verse'))
|
||||||
self.previewAction.setIcon(build_icon(u':/general/general_preview.png'))
|
self.previewAction.setIcon(build_icon(u':/general/general_preview.png'))
|
||||||
self.liveAction = self.menu.addAction(
|
self.liveAction = self.menu.addAction(
|
||||||
translate('ServiceManager', '&Live Verse'))
|
translate('OpenLP.ServiceManager', '&Live Verse'))
|
||||||
self.liveAction.setIcon(build_icon(u':/general/general_live.png'))
|
self.liveAction.setIcon(build_icon(u':/general/general_live.png'))
|
||||||
self.sep2 = self.menu.addAction(u'')
|
self.sep2 = self.menu.addAction(u'')
|
||||||
self.sep2.setSeparator(True)
|
self.sep2.setSeparator(True)
|
||||||
self.themeMenu = QtGui.QMenu(
|
self.themeMenu = QtGui.QMenu(
|
||||||
translate('ServiceManager', '&Change Item Theme'))
|
translate('OpenLP.ServiceManager', '&Change Item Theme'))
|
||||||
self.menu.addMenu(self.themeMenu)
|
self.menu.addMenu(self.themeMenu)
|
||||||
|
|
||||||
def supportedSuffixes(self, suffix):
|
def supportedSuffixes(self, suffix):
|
||||||
@ -485,8 +492,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.parent.generalSettingsSection + u'/save prompt',
|
self.parent.generalSettingsSection + u'/save prompt',
|
||||||
QtCore.QVariant(False)).toBool():
|
QtCore.QVariant(False)).toBool():
|
||||||
ret = QtGui.QMessageBox.question(self,
|
ret = QtGui.QMessageBox.question(self,
|
||||||
translate('ServiceManager', 'Save Changes to Service?'),
|
translate('OpenLP.ServiceManager', 'Save Changes to Service?'),
|
||||||
translate('ServiceManager',
|
translate('OpenLP.ServiceManager',
|
||||||
'Your service is unsaved, do you want to save '
|
'Your service is unsaved, do you want to save '
|
||||||
'those changes before creating a new one?'),
|
'those changes before creating a new one?'),
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
@ -571,9 +578,9 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
log.debug(u'onSaveService')
|
log.debug(u'onSaveService')
|
||||||
if not quick or self.isNew:
|
if not quick or self.isNew:
|
||||||
filename = QtGui.QFileDialog.getSaveFileName(self,
|
filename = QtGui.QFileDialog.getSaveFileName(self,
|
||||||
translate('ServiceManager', 'Save Service'),
|
translate('OpenLP.ServiceManager', 'Save Service'),
|
||||||
SettingsManager.get_last_dir(self.parent.serviceSettingsSection),
|
SettingsManager.get_last_dir(self.parent.serviceSettingsSection),
|
||||||
translate('ServiceManager', 'OpenLP Service Files (*.osz)'))
|
translate('OpenLP.ServiceManager', 'OpenLP Service Files (*.osz)'))
|
||||||
else:
|
else:
|
||||||
filename = os.path.join(SettingsManager.get_last_dir(
|
filename = os.path.join(SettingsManager.get_last_dir(
|
||||||
self.parent.serviceSettingsSection), self.serviceName)
|
self.parent.serviceSettingsSection), self.serviceName)
|
||||||
@ -629,7 +636,7 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
filename = self.parent.recentFiles[0]
|
filename = self.parent.recentFiles[0]
|
||||||
else:
|
else:
|
||||||
filename = QtGui.QFileDialog.getOpenFileName(
|
filename = QtGui.QFileDialog.getOpenFileName(
|
||||||
self, translate('ServiceManager', 'Open Service'),
|
self, translate('OpenLP.ServiceManager', 'Open Service'),
|
||||||
SettingsManager.get_last_dir(
|
SettingsManager.get_last_dir(
|
||||||
self.parent.serviceSettingsSection), u'Services (*.osz)')
|
self.parent.serviceSettingsSection), u'Services (*.osz)')
|
||||||
filename = QtCore.QDir.toNativeSeparators(filename)
|
filename = QtCore.QDir.toNativeSeparators(filename)
|
||||||
@ -643,8 +650,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
"""
|
"""
|
||||||
if self.parent.serviceNotSaved:
|
if self.parent.serviceNotSaved:
|
||||||
ret = QtGui.QMessageBox.question(self,
|
ret = QtGui.QMessageBox.question(self,
|
||||||
translate('ServiceManager', 'Save Changes to Service?'),
|
translate('OpenLP.ServiceManager', 'Save Changes to Service?'),
|
||||||
translate('ServiceManager',
|
translate('OpenLP.ServiceManager',
|
||||||
'Your current service is unsaved, do you want to '
|
'Your current service is unsaved, do you want to '
|
||||||
'save the changes before opening a new one?'),
|
'save the changes before opening a new one?'),
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
@ -673,8 +680,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
ucsfile = file.decode(u'utf-8')
|
ucsfile = file.decode(u'utf-8')
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(
|
||||||
self, translate('ServiceManager', 'Error'),
|
self, translate('OpenLP.ServiceManager', 'Error'),
|
||||||
translate('ServiceManager',
|
translate('OpenLP.ServiceManager',
|
||||||
'File is not a valid service.\n'
|
'File is not a valid service.\n'
|
||||||
'The content encoding is not UTF-8.'))
|
'The content encoding is not UTF-8.'))
|
||||||
log.exception(u'Filename "%s" is not valid UTF-8' %
|
log.exception(u'Filename "%s" is not valid UTF-8' %
|
||||||
@ -708,8 +715,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
log.exception(u'Failed to remove osd file')
|
log.exception(u'Failed to remove osd file')
|
||||||
else:
|
else:
|
||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(
|
||||||
self, translate('ServiceManager', 'Error'),
|
self, translate('OpenLP.ServiceManager', 'Error'),
|
||||||
translate('ServiceManager',
|
translate('OpenLP.ServiceManager',
|
||||||
'File is not a valid service.'))
|
'File is not a valid service.'))
|
||||||
log.exception(u'File contains no service data')
|
log.exception(u'File contains no service data')
|
||||||
except (IOError, NameError):
|
except (IOError, NameError):
|
||||||
@ -837,8 +844,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.serviceItems[item][u'service_item'], count)
|
self.serviceItems[item][u'service_item'], count)
|
||||||
else:
|
else:
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate('ServiceManager', 'Missing Display Handler'),
|
translate('OpenLP.ServiceManager', 'Missing Display Handler'),
|
||||||
translate('ServiceManager', 'Your item cannot be displayed '
|
translate('OpenLP.ServiceManager', 'Your item cannot be displayed '
|
||||||
'as there is no handler to display it'),
|
'as there is no handler to display it'),
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
QtGui.QMessageBox.Ok),
|
QtGui.QMessageBox.Ok),
|
||||||
@ -873,8 +880,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.serviceItems[item][u'service_item'], 0)
|
self.serviceItems[item][u'service_item'], 0)
|
||||||
else:
|
else:
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate('ServiceManager', 'Missing Display Handler'),
|
translate('OpenLP.ServiceManager', 'Missing Display Handler'),
|
||||||
translate('ServiceManager', 'Your item cannot be displayed '
|
translate('OpenLP.ServiceManager', 'Your item cannot be displayed '
|
||||||
'as there is no handler to display it'),
|
'as there is no handler to display it'),
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
QtGui.QMessageBox.Ok),
|
QtGui.QMessageBox.Ok),
|
||||||
|
@ -49,4 +49,4 @@ class Ui_ServiceNoteEdit(object):
|
|||||||
|
|
||||||
def retranslateUi(self, ServiceNoteEdit):
|
def retranslateUi(self, ServiceNoteEdit):
|
||||||
ServiceNoteEdit.setWindowTitle(
|
ServiceNoteEdit.setWindowTitle(
|
||||||
translate('ServiceNoteForm', 'Service Item Notes'))
|
translate('OpenLP.ServiceNoteForm', 'Service Item Notes'))
|
||||||
|
@ -63,5 +63,5 @@ class Ui_SettingsDialog(object):
|
|||||||
QtCore.QMetaObject.connectSlotsByName(SettingsDialog)
|
QtCore.QMetaObject.connectSlotsByName(SettingsDialog)
|
||||||
|
|
||||||
def retranslateUi(self, SettingsDialog):
|
def retranslateUi(self, SettingsDialog):
|
||||||
SettingsDialog.setWindowTitle(translate('SettingsForm',
|
SettingsDialog.setWindowTitle(translate('OpenLP.SettingsForm',
|
||||||
'Configure OpenLP'))
|
'Configure OpenLP'))
|
||||||
|
@ -128,11 +128,11 @@ class SlideController(QtGui.QWidget):
|
|||||||
# Type label for the top of the slide controller
|
# Type label for the top of the slide controller
|
||||||
self.TypeLabel = QtGui.QLabel(self.Panel)
|
self.TypeLabel = QtGui.QLabel(self.Panel)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.TypeLabel.setText(translate('SlideController', 'Live'))
|
self.TypeLabel.setText(translate('OpenLP.SlideController', 'Live'))
|
||||||
self.split = 1
|
self.split = 1
|
||||||
self.typePrefix = u'live'
|
self.typePrefix = u'live'
|
||||||
else:
|
else:
|
||||||
self.TypeLabel.setText(translate('SlideController', 'Preview'))
|
self.TypeLabel.setText(translate('OpenLP.SlideController', 'Preview'))
|
||||||
self.split = 0
|
self.split = 0
|
||||||
self.typePrefix = u'preview'
|
self.typePrefix = u'preview'
|
||||||
self.TypeLabel.setStyleSheet(u'font-weight: bold; font-size: 12pt;')
|
self.TypeLabel.setStyleSheet(u'font-weight: bold; font-size: 12pt;')
|
||||||
@ -179,29 +179,29 @@ class SlideController(QtGui.QWidget):
|
|||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'First Slide', u':/slides/slide_first.png',
|
u'First Slide', u':/slides/slide_first.png',
|
||||||
translate('SlideController', 'Move to first'),
|
translate('OpenLP.SlideController', 'Move to first'),
|
||||||
self.onSlideSelectedFirst)
|
self.onSlideSelectedFirst)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Previous Slide', u':/slides/slide_previous.png',
|
u'Previous Slide', u':/slides/slide_previous.png',
|
||||||
translate('SlideController', 'Move to previous'),
|
translate('OpenLP.SlideController', 'Move to previous'),
|
||||||
self.onSlideSelectedPrevious)
|
self.onSlideSelectedPrevious)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Next Slide', u':/slides/slide_next.png',
|
u'Next Slide', u':/slides/slide_next.png',
|
||||||
translate('SlideController', 'Move to next'),
|
translate('OpenLP.SlideController', 'Move to next'),
|
||||||
self.onSlideSelectedNext)
|
self.onSlideSelectedNext)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Last Slide', u':/slides/slide_last.png',
|
u'Last Slide', u':/slides/slide_last.png',
|
||||||
translate('SlideController', 'Move to last'),
|
translate('OpenLP.SlideController', 'Move to last'),
|
||||||
self.onSlideSelectedLast)
|
self.onSlideSelectedLast)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
||||||
self.HideMenu = QtGui.QToolButton(self.Toolbar)
|
self.HideMenu = QtGui.QToolButton(self.Toolbar)
|
||||||
self.HideMenu.setText(translate('SlideController', 'Hide'))
|
self.HideMenu.setText(translate('OpenLP.SlideController', 'Hide'))
|
||||||
self.HideMenu.setPopupMode(QtGui.QToolButton.MenuButtonPopup)
|
self.HideMenu.setPopupMode(QtGui.QToolButton.MenuButtonPopup)
|
||||||
self.Toolbar.addToolbarWidget(u'Hide Menu', self.HideMenu)
|
self.Toolbar.addToolbarWidget(u'Hide Menu', self.HideMenu)
|
||||||
self.HideMenu.setMenu(QtGui.QMenu(
|
self.HideMenu.setMenu(QtGui.QMenu(
|
||||||
translate('SlideController', 'Hide'), self.Toolbar))
|
translate('OpenLP.SlideController', 'Hide'), self.Toolbar))
|
||||||
self.BlankScreen = QtGui.QAction(QtGui.QIcon(
|
self.BlankScreen = QtGui.QAction(QtGui.QIcon(
|
||||||
u':/slides/slide_blank.png'), u'Blank Screen', self.HideMenu)
|
u':/slides/slide_blank.png'), u'Blank Screen', self.HideMenu)
|
||||||
self.BlankScreen.setCheckable(True)
|
self.BlankScreen.setCheckable(True)
|
||||||
@ -225,44 +225,44 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Go Live', u':/general/general_live.png',
|
u'Go Live', u':/general/general_live.png',
|
||||||
translate('SlideController', 'Move to live'), self.onGoLive)
|
translate('OpenLP.SlideController', 'Move to live'), self.onGoLive)
|
||||||
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Edit Song', u':/general/general_edit.png',
|
u'Edit Song', u':/general/general_edit.png',
|
||||||
translate('SlideController', 'Edit and re-preview Song'),
|
translate('OpenLP.SlideController', 'Edit and re-preview Song'),
|
||||||
self.onEditSong)
|
self.onEditSong)
|
||||||
if isLive:
|
if isLive:
|
||||||
self.Toolbar.addToolbarSeparator(u'Loop Separator')
|
self.Toolbar.addToolbarSeparator(u'Loop Separator')
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Start Loop', u':/media/media_time.png',
|
u'Start Loop', u':/media/media_time.png',
|
||||||
translate('SlideController', 'Start continuous loop'),
|
translate('OpenLP.SlideController', 'Start continuous loop'),
|
||||||
self.onStartLoop)
|
self.onStartLoop)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Stop Loop', u':/media/media_stop.png',
|
u'Stop Loop', u':/media/media_stop.png',
|
||||||
translate('SlideController', 'Stop continuous loop'),
|
translate('OpenLP.SlideController', 'Stop continuous loop'),
|
||||||
self.onStopLoop)
|
self.onStopLoop)
|
||||||
self.DelaySpinBox = QtGui.QSpinBox()
|
self.DelaySpinBox = QtGui.QSpinBox()
|
||||||
self.DelaySpinBox.setMinimum(1)
|
self.DelaySpinBox.setMinimum(1)
|
||||||
self.DelaySpinBox.setMaximum(180)
|
self.DelaySpinBox.setMaximum(180)
|
||||||
self.Toolbar.addToolbarWidget(
|
self.Toolbar.addToolbarWidget(
|
||||||
u'Image SpinBox', self.DelaySpinBox)
|
u'Image SpinBox', self.DelaySpinBox)
|
||||||
self.DelaySpinBox.setSuffix(translate('SlideController', 's'))
|
self.DelaySpinBox.setSuffix(translate('OpenLP.SlideController', 's'))
|
||||||
self.DelaySpinBox.setToolTip(translate('SlideController',
|
self.DelaySpinBox.setToolTip(translate('OpenLP.SlideController',
|
||||||
'Delay between slides in seconds'))
|
'Delay between slides in seconds'))
|
||||||
self.ControllerLayout.addWidget(self.Toolbar)
|
self.ControllerLayout.addWidget(self.Toolbar)
|
||||||
#Build a Media ToolBar
|
#Build a Media ToolBar
|
||||||
self.Mediabar = OpenLPToolbar(self)
|
self.Mediabar = OpenLPToolbar(self)
|
||||||
self.Mediabar.addToolbarButton(
|
self.Mediabar.addToolbarButton(
|
||||||
u'Media Start', u':/slides/media_playback_start.png',
|
u'Media Start', u':/slides/media_playback_start.png',
|
||||||
translate('SlideController', 'Start playing media'),
|
translate('OpenLP.SlideController', 'Start playing media'),
|
||||||
self.onMediaPlay)
|
self.onMediaPlay)
|
||||||
self.Mediabar.addToolbarButton(
|
self.Mediabar.addToolbarButton(
|
||||||
u'Media Pause', u':/slides/media_playback_pause.png',
|
u'Media Pause', u':/slides/media_playback_pause.png',
|
||||||
translate('SlideController', 'Start playing media'),
|
translate('OpenLP.SlideController', 'Start playing media'),
|
||||||
self.onMediaPause)
|
self.onMediaPause)
|
||||||
self.Mediabar.addToolbarButton(
|
self.Mediabar.addToolbarButton(
|
||||||
u'Media Stop', u':/slides/media_playback_stop.png',
|
u'Media Stop', u':/slides/media_playback_stop.png',
|
||||||
translate('SlideController', 'Start playing media'),
|
translate('OpenLP.SlideController', 'Start playing media'),
|
||||||
self.onMediaStop)
|
self.onMediaStop)
|
||||||
if not self.isLive:
|
if not self.isLive:
|
||||||
self.seekSlider = Phonon.SeekSlider()
|
self.seekSlider = Phonon.SeekSlider()
|
||||||
@ -278,11 +278,11 @@ class SlideController(QtGui.QWidget):
|
|||||||
# Build the Song Toolbar
|
# Build the Song Toolbar
|
||||||
if isLive:
|
if isLive:
|
||||||
self.SongMenu = QtGui.QToolButton(self.Toolbar)
|
self.SongMenu = QtGui.QToolButton(self.Toolbar)
|
||||||
self.SongMenu.setText(translate('SlideController', 'Go to Verse'))
|
self.SongMenu.setText(translate('OpenLP.SlideController', 'Go to Verse'))
|
||||||
self.SongMenu.setPopupMode(QtGui.QToolButton.InstantPopup)
|
self.SongMenu.setPopupMode(QtGui.QToolButton.InstantPopup)
|
||||||
self.Toolbar.addToolbarWidget(u'Song Menu', self.SongMenu)
|
self.Toolbar.addToolbarWidget(u'Song Menu', self.SongMenu)
|
||||||
self.SongMenu.setMenu(QtGui.QMenu(
|
self.SongMenu.setMenu(QtGui.QMenu(
|
||||||
translate('SlideController', 'Go to Verse'), self.Toolbar))
|
translate('OpenLP.SlideController', 'Go to Verse'), self.Toolbar))
|
||||||
self.Toolbar.makeWidgetsInvisible([u'Song Menu'])
|
self.Toolbar.makeWidgetsInvisible([u'Song Menu'])
|
||||||
# Screen preview area
|
# Screen preview area
|
||||||
self.PreviewFrame = QtGui.QFrame(self.Splitter)
|
self.PreviewFrame = QtGui.QFrame(self.Splitter)
|
||||||
|
@ -59,4 +59,4 @@ class Ui_SongUsageDeleteDialog(object):
|
|||||||
|
|
||||||
def retranslateUi(self, SongUsageDeleteDialog):
|
def retranslateUi(self, SongUsageDeleteDialog):
|
||||||
SongUsageDeleteDialog.setWindowTitle(
|
SongUsageDeleteDialog.setWindowTitle(
|
||||||
translate('SongsPlugin.AuditDeleteDialog', 'Song Usage Delete'))
|
translate('SongUsagePlugin.AuditDeleteDialog', 'Delete Song Usage Data'))
|
||||||
|
@ -43,9 +43,9 @@ class SongUsageDeleteForm(QtGui.QDialog, Ui_SongUsageDeleteDialog):
|
|||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
ret = QtGui.QMessageBox.question(self,
|
ret = QtGui.QMessageBox.question(self,
|
||||||
translate('SongsPlugin.SongUsageDeleteForm',
|
translate('SongUsagePlugin.SongUsageDeleteForm',
|
||||||
'Delete Selected Song Usage Events?'),
|
'Delete Selected Song Usage Events?'),
|
||||||
translate('SongsPlugin.SongUsageDeleteForm',
|
translate('SongUsagePlugin.SongUsageDeleteForm',
|
||||||
'Are you sure you want to delete selected Song Usage data?'),
|
'Are you sure you want to delete selected Song Usage data?'),
|
||||||
QtGui.QMessageBox.StandardButtons(
|
QtGui.QMessageBox.StandardButtons(
|
||||||
QtGui.QMessageBox.Ok |
|
QtGui.QMessageBox.Ok |
|
||||||
@ -56,3 +56,4 @@ class SongUsageDeleteForm(QtGui.QDialog, Ui_SongUsageDeleteDialog):
|
|||||||
self.songusagemanager.delete_all_objects(SongUsageItem,
|
self.songusagemanager.delete_all_objects(SongUsageItem,
|
||||||
SongUsageItem.usagedate <= deleteDate)
|
SongUsageItem.usagedate <= deleteDate)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
@ -86,11 +86,11 @@ class Ui_SongUsageDetailDialog(object):
|
|||||||
|
|
||||||
def retranslateUi(self, SongUsageDetailDialog):
|
def retranslateUi(self, SongUsageDetailDialog):
|
||||||
SongUsageDetailDialog.setWindowTitle(
|
SongUsageDetailDialog.setWindowTitle(
|
||||||
translate('SongsPlugin.AuditDetailDialog',
|
translate('SongUsagePlugin.AuditDetailDialog',
|
||||||
'Song Usage Extraction'))
|
'Song Usage Extraction'))
|
||||||
self.DateRangeGroupBox.setTitle(
|
self.DateRangeGroupBox.setTitle(
|
||||||
translate('SongsPlugin.AuditDetailDialog', 'Select Date Range'))
|
translate('SongUsagePlugin.AuditDetailDialog', 'Select Date Range'))
|
||||||
self.ToLabel.setText(
|
self.ToLabel.setText(
|
||||||
translate('SongsPlugin.AuditDetailDialog', 'to'))
|
translate('SongUsagePlugin.AuditDetailDialog', 'to'))
|
||||||
self.FileGroupBox.setTitle(
|
self.FileGroupBox.setTitle(
|
||||||
translate('SongsPlugin.AuditDetailDialog', 'Report Location'))
|
translate('SongUsagePlugin.AuditDetailDialog', 'Report Location'))
|
||||||
|
@ -62,7 +62,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
|
|||||||
|
|
||||||
def defineOutputLocation(self):
|
def defineOutputLocation(self):
|
||||||
path = QtGui.QFileDialog.getExistingDirectory(self,
|
path = QtGui.QFileDialog.getExistingDirectory(self,
|
||||||
translate('SongsPlugin.SongUsageDetailForm',
|
translate('SongUsagePlugin.SongUsageDetailForm',
|
||||||
'Output File Location'),
|
'Output File Location'),
|
||||||
SettingsManager.get_last_dir(self.parent.settingsSection, 1))
|
SettingsManager.get_last_dir(self.parent.settingsSection, 1))
|
||||||
path = unicode(path)
|
path = unicode(path)
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user