Ejemplo n.º 1
0
        public void add(Audio.Playlist play)
        {
            var view = new PlaylistViewWindow(play, player);
            var tab  = new PlaylistViewTab(play.Name, view, this);

            AppendPage(view, tab);
            ShowAll();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public PlaylistViewWindow(Audio.Playlist play, Audio.Walkman walk)
 {
     tree = new PlaylistView(play, walk, this);
     Add(tree);
     playlist = tree.internalPlaylist;
 }