forked from openlp/openlp
Custom Plugin cleaup 2
This commit is contained in:
parent
3c3c1f19ce
commit
1ca02a3536
@ -53,75 +53,6 @@ class CustomMediaItem(MediaManagerItem):
|
||||
MediaManagerItem.__init__(self, parent, icon, title)
|
||||
self.parent = parent
|
||||
|
||||
# def addHeaderBar(self):
|
||||
# # Add a toolbar
|
||||
# self.addToolbar()
|
||||
# # Create buttons for the toolbar
|
||||
# ## New Custom Button ##
|
||||
# self.addToolbarButton(
|
||||
# translate(u'CustomMediaItem',u'New Custom Item'),
|
||||
# translate(u'CustomMediaItem',u'Add a new Custom Item'),
|
||||
# u':/custom/custom_new.png', self.onCustomNewClick, u'CustomNewItem')
|
||||
# ## Edit Custom Button ##
|
||||
# self.addToolbarButton(
|
||||
# translate(u'CustomMediaItem',u'Edit Custom Item'),
|
||||
# translate(u'CustomMediaItem',u'Edit the selected Custom Item'),
|
||||
# u':/custom/custom_edit.png', self.onCustomEditClick, u'CustomEditItem')
|
||||
# ## Delete Custom Button ##
|
||||
# self.addToolbarButton(
|
||||
# translate(u'CustomMediaItem',u'Delete Custom Item'),
|
||||
# translate(u'CustomMediaItem',u'Delete the selected Custom Item'),
|
||||
# u':/custom/custom_delete.png', self.onCustomDeleteClick, u'CustomDeleteItem')
|
||||
# ## Separator Line ##
|
||||
# self.addToolbarSeparator()
|
||||
# ## Preview Custom Button ##
|
||||
# self.addToolbarButton(
|
||||
# translate(u'CustomMediaItem',u'Preview Custom Item'),
|
||||
# translate(u'CustomMediaItem',u'Preview the selected Custom Item'),
|
||||
# u':/system/system_preview.png', self.onPreviewClick, u'CustomPreviewItem')
|
||||
# ## Live Custom Button ##
|
||||
# self.addToolbarButton(
|
||||
# translate(u'CustomMediaItem',u'Go Live'),
|
||||
# translate(u'CustomMediaItem', u'Send the selected Custom live'),
|
||||
# u':/system/system_live.png', self.onLiveClick, u'CustomLiveItem')
|
||||
# ## Add Custom Button ##
|
||||
# self.addToolbarButton(
|
||||
# translate(u'CustomMediaItem',u'Add Custom To Service'),
|
||||
# translate(u'CustomMediaItem',u'Add the selected Custom(s) to the service'),
|
||||
# u':/system/system_add.png', self.onAddClick, u'CustomAddItem')
|
||||
# # Add the CustomListView widget
|
||||
# self.CustomWidget = QtGui.QWidget(self)
|
||||
# sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||
# sizePolicy.setHorizontalStretch(0)
|
||||
# sizePolicy.setVerticalStretch(0)
|
||||
# sizePolicy.setHeightForWidth(self.CustomWidget.sizePolicy().hasHeightForWidth())
|
||||
# self.CustomWidget.setSizePolicy(sizePolicy)
|
||||
# self.CustomWidget.setObjectName(u'CustomWidget')
|
||||
# # Add the Custom widget to the page layout
|
||||
# self.PageLayout.addWidget(self.CustomWidget)
|
||||
# self.ListView = CustomListView()
|
||||
# self.ListView.setAlternatingRowColors(True)
|
||||
# self.ListView.setDragEnabled(True)
|
||||
# self.PageLayout.addWidget(self.ListView)
|
||||
# # Signals
|
||||
# QtCore.QObject.connect(self.ListView,
|
||||
# QtCore.SIGNAL(u'doubleClicked(QModelIndex)'), self.onPreviewClick)
|
||||
# #define and add the context menu
|
||||
# self.ListView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
|
||||
# self.ListView.addAction(contextMenuAction(self.ListView,
|
||||
# ':/custom/custom_edit.png', translate(u'CustomMediaItem', u'&Edit Custom'),
|
||||
# self.onCustomEditClick))
|
||||
# self.ListView.addAction(contextMenuSeparator(self.ListView))
|
||||
# self.ListView.addAction(contextMenuAction(
|
||||
# self.ListView, ':/system/system_preview.png',
|
||||
# translate(u'CustomMediaItem',u'&Preview Custom'), self.onPreviewClick))
|
||||
# self.ListView.addAction(contextMenuAction(
|
||||
# self.ListView, ':/system/system_live.png',
|
||||
# translate(u'CustomMediaItem',u'&Show Live'), self.onLiveClick))
|
||||
# self.ListView.addAction(contextMenuAction(
|
||||
# self.ListView, ':/system/system_add.png',
|
||||
# translate(u'CustomMediaItem',u'&Add to Service'), self.onAddClick))
|
||||
|
||||
def initialise(self):
|
||||
self.loadCustomListView(self.parent.custommanager.get_all_slides())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user