public void add(Audio.Playlist play) { var view = new PlaylistViewWindow(play, player); var tab = new PlaylistViewTab(play.Name, view, this); AppendPage(view, tab); ShowAll(); }
public PlaylistView(Audio.Playlist play, Audio.Walkman walk, Scrollable parent) : base(parent) { //Create target list var combined = this.targets.Concat(t).ToArray(); Gtk.Drag.DestSet(this, DestDefaults.All, combined, DragAction.Move | DragAction.Copy); internalPlaylist = play; player = walk; fileName.Title = "File Name"; AppendColumn(fileName); artist.Title = "Artist"; AppendColumn(artist); updateView(); fileName.PackStart(fileNameCell, false); artist.PackStart(artistCell, false); fileName.AddAttribute(fileNameCell, "text", 0); fileName.Resizable = true; artist.AddAttribute(artistCell, "text", 1); artist.Resizable = true; this.ResizeMode = ResizeMode.Immediate; this.HeadersClickable = true; Model = musicList; Selection.Mode = SelectionMode.Multiple; RubberBanding = true; ConnectSignals(); }
public PlaylistViewWindow(Audio.Playlist play, Audio.Walkman walk) { tree = new PlaylistView(play, walk, this); Add(tree); playlist = tree.internalPlaylist; }