def __init__(self): self.lyricServer = None pluginsystem.plugin_infos.append( BuiltinPlugin('lyricwiki', "LyricWiki", "Fetch lyrics from LyricWiki.", {'lyrics_fetching': 'get_lyrics_start'}, self))
def __init__(self, config, window, client, UIManager, update_menu_visibility, iterate_now, on_add_item, on_playlists_button_press, get_current_songs, connected, add_selected_to_playlist, TAB_PLAYLISTS): self.config = config self.window = window self.client = client self.UIManager = UIManager self.update_menu_visibility = update_menu_visibility self.iterate_now = iterate_now # XXX Do we really need this? self.on_add_item = on_add_item self.on_playlists_button_press = on_playlists_button_press self.get_current_songs = get_current_songs self.add_selected_to_playlist = add_selected_to_playlist self.connected = connected self.mergepl_id = None self.actionGroupPlaylists = None # Playlists tab self.playlists = ui.treeview() self.playlists_selection = self.playlists.get_selection() self.playlistswindow = ui.scrollwindow(add=self.playlists) self.tab = (self.playlistswindow, gtk.STOCK_JUSTIFY_CENTER, TAB_PLAYLISTS, self.playlists) self.playlists.connect('button_press_event', self.on_playlists_button_press) self.playlists.connect('row_activated', self.playlists_activated) self.playlists.connect('key-press-event', self.playlists_key_press) # Initialize playlist data and widget self.playlistsdata = gtk.ListStore(str, str) self.playlists.set_model(self.playlistsdata) self.playlists.set_search_column(1) self.playlistsimg = gtk.CellRendererPixbuf() self.playlistscell = gtk.CellRendererText() self.playlistscell.set_property("ellipsize", pango.ELLIPSIZE_END) self.playlistscolumn = gtk.TreeViewColumn() self.playlistscolumn.pack_start(self.playlistsimg, False) self.playlistscolumn.pack_start(self.playlistscell, True) self.playlistscolumn.set_attributes(self.playlistsimg, stock_id=0) self.playlistscolumn.set_attributes(self.playlistscell, markup=1) self.playlists.append_column(self.playlistscolumn) self.playlists_selection.set_mode(gtk.SELECTION_MULTIPLE) pluginsystem.plugin_infos.append( BuiltinPlugin('playlists', "Playlists", "A tab for playlists.", {'tabs': 'construct_tab'}, self))
def __init__(self, config, window, on_streams_button_press, on_add_item, settings_save, TAB_STREAMS): self.config = config self.window = window self.on_streams_button_press = on_streams_button_press self.on_add_item = on_add_item self.settings_save = settings_save # Streams tab self.streams = ui.treeview() self.streams_selection = self.streams.get_selection() self.streamswindow = ui.scrollwindow(add=self.streams) self.tab = (self.streamswindow, gtk.STOCK_NETWORK, TAB_STREAMS, self.streams) self.streams.connect('button_press_event', self.on_streams_button_press) self.streams.connect('row_activated', self.on_streams_activated) self.streams.connect('key-press-event', self.on_streams_key_press) # Initialize streams data and widget self.streamsdata = gtk.ListStore(str, str, str) self.streams.set_model(self.streamsdata) self.streams.set_search_column(1) self.streamsimg = gtk.CellRendererPixbuf() self.streamscell = gtk.CellRendererText() self.streamscell.set_property("ellipsize", pango.ELLIPSIZE_END) self.streamscolumn = gtk.TreeViewColumn() self.streamscolumn.pack_start(self.streamsimg, False) self.streamscolumn.pack_start(self.streamscell, True) self.streamscolumn.set_attributes(self.streamsimg, stock_id=0) self.streamscolumn.set_attributes(self.streamscell, markup=1) self.streams.append_column(self.streamscolumn) self.streams_selection.set_mode(gtk.SELECTION_MULTIPLE) pluginsystem.plugin_infos.append( BuiltinPlugin('streams', "Streams", "A tab for streams.", {'tabs': 'construct_tab'}, self))
def __init__(self): pluginsystem.plugin_infos.append( BuiltinPlugin('rhapsodycovers', "Rhapsody Covers", "Fetch album covers from Rhapsody.com.", {'cover_fetching': 'get_cover'}, self))
def __init__(self): pluginsystem.plugin_infos.append( BuiltinPlugin('amazoncovers', "Amazon Covers", "Fetch album covers from Amazon.com.", {'cover_fetching': 'get_cover'}, self))