More fixes and cleanups

This commit is contained in:
Tim Bentley 2009-06-26 19:54:05 +01:00
parent b76790bc2f
commit c981cb21d2
3 changed files with 7 additions and 1 deletions

View File

@ -53,6 +53,9 @@ class CustomMediaItem(MediaManagerItem):
log.info(u'Custom Media Item loaded')
def __init__(self, parent, icon, title):
self.TranslationContext = u'CustomPlugin'
self.PluginTextShort = u'Custom'
self.ConfigSection = u'custom'
MediaManagerItem.__init__(self, parent, icon, title)
self.parent = parent

View File

@ -54,6 +54,9 @@ class SongMediaItem(MediaManagerItem):
log.info(u'Song Media Item loaded')
def __init__(self, parent, icon, title):
self.TranslationContext = u'SongPlugin'
self.PluginTextShort = u'Song'
self.ConfigSection = u'song'
MediaManagerItem.__init__(self, parent, icon, title)
self.edit_song_form = EditSongForm(self.parent.songmanager, self.parent.event_manager)

View File

@ -46,7 +46,7 @@ class SongsPlugin(Plugin):
self.icon.addPixmap(QtGui.QPixmap(u':/media/media_song.png'),
QtGui.QIcon.Normal, QtGui.QIcon.Off)
# passed with drag and drop messages
self.dnd_id=u'Songs'
self.dnd_id=u'Song'
def get_media_manager_item(self):
# Create the MediaManagerItem object