This commit is contained in:
Tim Bentley 2009-10-12 07:21:17 +01:00
parent d0b501bd2f
commit 4a1b826e66
2 changed files with 33 additions and 21 deletions

View File

@ -206,63 +206,72 @@ class MediaManagerItem(QtGui.QWidget):
if self.hasFileIcon: if self.hasFileIcon:
self.addToolbarButton( self.addToolbarButton(
translate( translate(
self.TranslationContext, u'Load ' + self.PluginTextShort), self.TranslationContext, u'Load %s' % self.PluginTextShort),
translate( translate(
self.TranslationContext, self.TranslationContext,
u'Load a new ' + self.PluginTextShort), u'Load a new %s' % self.PluginTextShort),
u':' + self.IconPath + u'_load.png', self.onFileClick, u':%s_load.png' % self.IconPath,
self.PluginTextShort + u'FileItem') self.onFileClick,
u'%sFileItem' %self.PluginTextShort)
## New Button ## ## New Button ##
if self.hasNewIcon: if self.hasNewIcon:
self.addToolbarButton( self.addToolbarButton(
translate( translate(
self.TranslationContext, u'New ' + self.PluginTextShort), self.TranslationContext, u'New %s' % self.PluginTextShort),
translate( translate(
self.TranslationContext, self.TranslationContext,
u'Add a new ' + self.PluginTextShort), u'Add a new %s' % self.PluginTextShort),
u':' + self.IconPath + u'_new.png', self.onNewClick, u':%s_new.png' % self.IconPath,
self.PluginTextShort + u'NewItem') self.onNewClick,
u'%sNewItem' % self.PluginTextShort)
## Edit Button ## ## Edit Button ##
if self.hasEditIcon: if self.hasEditIcon:
self.addToolbarButton( self.addToolbarButton(
translate( translate(
self.TranslationContext, u'Edit ' + self.PluginTextShort), self.TranslationContext, u'Edit %s' % self.PluginTextShort),
translate( translate(
self.TranslationContext, self.TranslationContext,
u'Edit the selected ' + self.PluginTextShort), u'Edit the selected %s' % self.PluginTextShort),
u':' + self.IconPath + u'_edit.png', self.onEditClick, u':%s_edit.png' % self.IconPath,
self.PluginTextShort + u'EditItem') self.onEditClick,
u'%sEditItem' % self.PluginTextShort)
## Delete Button ## ## Delete Button ##
if self.hasDeleteIcon: if self.hasDeleteIcon:
self.addToolbarButton( self.addToolbarButton(
translate( translate(
self.TranslationContext, u'Delete ' + self.PluginTextShort), self.TranslationContext, u'Delete %s ' % self.PluginTextShort),
translate(self.TranslationContext, u'Delete the selected item'), translate(self.TranslationContext, u'Delete the selected item'),
u':' + self.IconPath + u'_delete.png', self.onDeleteClick, u':%s_delete.png' % self.IconPath,
self.PluginTextShort + u'DeleteItem') self.onDeleteClick,
u'%sDeleteItem' % self.PluginTextShort)
## Separator Line ## ## Separator Line ##
self.addToolbarSeparator() self.addToolbarSeparator()
## Preview ## ## Preview ##
self.addToolbarButton( self.addToolbarButton(
translate( translate(
self.TranslationContext, u'Preview ' + self.PluginTextShort), self.TranslationContext, u'Preview %s' % self.PluginTextShort),
translate(self.TranslationContext, u'Preview the selected item'), translate(self.TranslationContext, u'Preview the selected item'),
u':/system/system_preview.png', self.onPreviewClick, u'PreviewItem') u':/system/system_preview.png',
self.onPreviewClick,
u'PreviewItem')
## Live Button ## ## Live Button ##
self.addToolbarButton( self.addToolbarButton(
translate(self.TranslationContext, u'Go Live'), translate(self.TranslationContext, u'Go Live'),
translate(self.TranslationContext, u'Send the selected item live'), translate(self.TranslationContext, u'Send the selected item live'),
u':/system/system_live.png', self.onLiveClick, u'LiveItem') u':/system/system_live.png',
self.onLiveClick,
u'LiveItem')
## Add to service Button ## ## Add to service Button ##
self.addToolbarButton( self.addToolbarButton(
translate( translate(
self.TranslationContext, self.TranslationContext,
u'Add ' + self.PluginTextShort + u' To Service'), u'Add %s to Service' % self.PluginTextShort),
translate( translate(
self.TranslationContext, self.TranslationContext,
u'Add the selected item(s) to the service'), u'Add the selected item(s) to the service'),
u':/system/system_add.png', self.onAddClick, u':/system/system_add.png',
self.PluginTextShort + u'AddItem') self.onAddClick,
u'%sAddServiceItem' % self.PluginTextShort)
def addListViewToToolBar(self): def addListViewToToolBar(self):
#Add the List widget #Add the List widget

View File

@ -180,6 +180,9 @@ class BibleMediaItem(MediaManagerItem):
self.AdvancedSecondBibleComboBox = QtGui.QComboBox(self.AdvancedTab) self.AdvancedSecondBibleComboBox = QtGui.QComboBox(self.AdvancedTab)
self.AdvancedSecondBibleComboBox.setObjectName(u'SecondBible') self.AdvancedSecondBibleComboBox.setObjectName(u'SecondBible')
self.AdvancedVerticalLayout.addWidget(self.AdvancedSecondBibleComboBox) self.AdvancedVerticalLayout.addWidget(self.AdvancedSecondBibleComboBox)
self.AdvancedMessage = QtGui.QLabel(self.QuickTab)
self.AdvancedMessage.setObjectName(u'AdvancedMessage')
self.AdvancedVerticalLayout.addWidget(self.AdvancedMessage)
self.SearchTabWidget.addTab(self.AdvancedTab, u'Advanced') self.SearchTabWidget.addTab(self.AdvancedTab, u'Advanced')
# Add the search tab widget to the page layout # Add the search tab widget to the page layout
self.PageLayout.addWidget(self.SearchTabWidget) self.PageLayout.addWidget(self.SearchTabWidget)