forked from openlp/openlp
More fixes and cleanups
This commit is contained in:
parent
b76790bc2f
commit
c981cb21d2
@ -53,6 +53,9 @@ class CustomMediaItem(MediaManagerItem):
|
|||||||
log.info(u'Custom Media Item loaded')
|
log.info(u'Custom Media Item loaded')
|
||||||
|
|
||||||
def __init__(self, parent, icon, title):
|
def __init__(self, parent, icon, title):
|
||||||
|
self.TranslationContext = u'CustomPlugin'
|
||||||
|
self.PluginTextShort = u'Custom'
|
||||||
|
self.ConfigSection = u'custom'
|
||||||
MediaManagerItem.__init__(self, parent, icon, title)
|
MediaManagerItem.__init__(self, parent, icon, title)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
|
@ -54,6 +54,9 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
log.info(u'Song Media Item loaded')
|
log.info(u'Song Media Item loaded')
|
||||||
|
|
||||||
def __init__(self, parent, icon, title):
|
def __init__(self, parent, icon, title):
|
||||||
|
self.TranslationContext = u'SongPlugin'
|
||||||
|
self.PluginTextShort = u'Song'
|
||||||
|
self.ConfigSection = u'song'
|
||||||
MediaManagerItem.__init__(self, parent, icon, title)
|
MediaManagerItem.__init__(self, parent, icon, title)
|
||||||
self.edit_song_form = EditSongForm(self.parent.songmanager, self.parent.event_manager)
|
self.edit_song_form = EditSongForm(self.parent.songmanager, self.parent.event_manager)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class SongsPlugin(Plugin):
|
|||||||
self.icon.addPixmap(QtGui.QPixmap(u':/media/media_song.png'),
|
self.icon.addPixmap(QtGui.QPixmap(u':/media/media_song.png'),
|
||||||
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
# passed with drag and drop messages
|
# passed with drag and drop messages
|
||||||
self.dnd_id=u'Songs'
|
self.dnd_id=u'Song'
|
||||||
|
|
||||||
def get_media_manager_item(self):
|
def get_media_manager_item(self):
|
||||||
# Create the MediaManagerItem object
|
# Create the MediaManagerItem object
|
||||||
|
Loading…
Reference in New Issue
Block a user