Example #1
0
        protected override Widget GetItemWidget()
        {
            TerseTrackListView track_list = new TerseTrackListView();

            track_list.SetModel(Music.DatabaseTrackModel);
            return(track_list);
        }
Example #2
0
        private void BuildNowPlaying()
        {
            var box = new MeeGoHeaderBox()
            {
                Title = Catalog.GetString("Now Playing")
            };

            var seek_slider = new ConnectedSeekSlider(SeekSliderLayout.Horizontal);

            seek_slider.StreamPositionLabel.FormatString = "<small>{0}</small>";

            track_info_display = new MeeGoTrackInfoDisplay()
            {
                HeightRequest = 64,
                NoShowAll     = true
            };

            track_view = new TerseTrackListView()
            {
                Name         = "meego-panel-tracks",
                WidthRequest = 220
            };
            track_view.ColumnController.Insert(new Column(null, "indicator",
                                                          new ColumnCellStatusIndicator(null), 0.05, true, 20, 20), 0);

            box.PackStartHighlighted(track_info_display, false, false, 0, MeeGoHeaderBox.HighlightFlags.Background);
            box.PackStartHighlighted(seek_slider, false, false, 0, MeeGoHeaderBox.HighlightFlags.Background);
            box.PackStart(SetupView(track_view), true, true, 0);
            box.PackStartHighlighted(new PlaybackBox(), false, false, 0, MeeGoHeaderBox.HighlightFlags.TopLine);

            Attach(box, 1, 2, 1, 2,
                   AttachOptions.Shrink,
                   AttachOptions.Expand | AttachOptions.Fill,
                   0, 0);
        }
Example #3
0
        public PlayQueueBox()
        {
            Spacing = 5;

            FindPlayQueue();

            PackStart(new Label()
            {
                Markup = String.Format("<b><big>{0}</big></b>",
                                       GLib.Markup.EscapeText(Catalog.GetString("Play Queue"))),
                Xalign = 0.0f
            }, false, false, 0);

            PackStart(new PlaybackBox(), false, false, 0);

            PackStart(new Hyena.Widgets.ScrolledWindow()
            {
                (playqueue_view = new TerseTrackListView()
                {
                    HasFocus = true
                })
            }, true, true, 0);

            PackStart(new MoblinTrackInfoDisplay()
            {
                HeightRequest = 64
            }, false, false, 10);

            playqueue_view.ColumnController.Insert(new Column(null, "indicator",
                                                              new ColumnCellStatusIndicator(null), 0.05, true, 20, 20), 0);
            playqueue_view.ColumnController.Add(new Column("Rating", new ColumnCellRating("Rating", false), 0.15));
        }
        private void BuildViews()
        {
            track_view          = new TerseTrackListView();
            track_view.HasFocus = true;
            track_view.ColumnController.Insert(new Column(null, "indicator", new ColumnCellStatusIndicator(null), 0.05, true, 20, 20), 0);

            Hyena.Widgets.ScrolledWindow sw = new Hyena.Widgets.ScrolledWindow();
            sw.Add(track_view);

            /*window.Add (view);
             * window.HscrollbarPolicy = PolicyType.Automatic;
             * window.VscrollbarPolicy = PolicyType.Automatic;*/

            list_label        = new Label();
            list_label.Xalign = 0f;
            content_vbox.PackStart(list_label, false, false, 0);
            content_vbox.PackStart(sw, true, true, 0);
            content_vbox.PackStart(new UserJobTileHost(), false, false, 0);
            track_view.SetSizeRequest(425, -1);
        }