Esempio n. 1
0
        private void BuildViews()
        {
            VBox source_box = new VBox();

            views_pane = new HPaned();
            PersistentPaneController.Control(views_pane, SourceViewWidth);
            view_container = new ViewContainer();

            source_view    = new SourceView();
            composite_view = new CompositeTrackSourceContents();

            Hyena.Widgets.ScrolledWindow source_scroll = new Hyena.Widgets.ScrolledWindow();
            source_scroll.AddWithFrame(source_view);

            composite_view.TrackView.HeaderVisible = false;
            view_container.Content = composite_view;

            source_box.PackStart(source_scroll, true, true, 0);
            source_box.PackStart(new UserJobTileHost(), false, false, 0);

            source_view.SetSizeRequest(125, -1);
            view_container.SetSizeRequest(425, -1);

            views_pane.Pack1(source_box, false, false);
            views_pane.Pack2(view_container, true, false);

            source_box.ShowAll();
            view_container.Show();
            views_pane.Show();

            primary_vbox.PackStart(views_pane, true, true, 0);
        }
Esempio n. 2
0
        private void BuildViews()
        {
            source_box = new VBox();

            views_pane = new HPaned();
            PersistentPaneController.Control(views_pane, SourceViewWidth);
            view_container = new ViewContainer();

            source_view    = new SourceView();
            composite_view = new CompositeTrackSourceContents();

            Container source_scroll;

            Hyena.Widgets.ScrolledWindow window;
            if (ApplicationContext.CommandLine.Contains("smooth-scroll"))
            {
                window = new Hyena.Widgets.SmoothScrolledWindow();
            }
            else
            {
                window = new Hyena.Widgets.ScrolledWindow();
            }

            window.Add(source_view);
            source_scroll = window;

            composite_view.TrackView.HeaderVisible = false;
            view_container.Content = composite_view;

            source_box.PackStart(source_scroll, true, true, 0);
            source_box.PackStart(new UserJobTileHost(), false, false, 0);

            UpdateCoverArtDisplay();

            source_view.SetSizeRequest(125, -1);
            view_container.SetSizeRequest(425, -1);

            views_pane.Pack1(source_box, false, false);
            views_pane.Pack2(view_container, true, false);

            source_box.ShowAll();
            view_container.Show();
            views_pane.Show();

            primary_vbox.PackStart(views_pane, true, true, 0);
        }
        public BaseDialog(PlaylistSource queue, string title, string addType) : base(title)
        {
            this.queue   = queue;
            VBox.Spacing = 6;

            HBox filter_box = new HBox();

            filter_box.Spacing = 6;

            Label search_label = new Label("_Search:");

            filter_box.PackStart(search_label, false, false, 0);

            search_entry = new MuinsheeSearchEntry();
            search_entry.Show();
            search_entry.Changed += OnFilterChanged;
            search_entry.Ready    = true;
            OnFilterChanged(null, null);
            filter_box.PackStart(search_entry, true, true, 0);

            VBox.PackStart(filter_box, false, false, 0);

            Hyena.Widgets.ScrolledWindow sw = new Hyena.Widgets.ScrolledWindow();
            sw.Add(GetItemWidget());
            VBox.PackStart(sw, true, true, 0);

            AddDefaultCloseButton();

            Button queue_button = new ImageButton(Catalog.GetString("En_queue"), "gtk-add");

            AddActionWidget(queue_button, Gtk.ResponseType.Apply);

            Button play_button = new ImageButton(Catalog.GetString("_Play"), "media-playback-start");

            AddButton(play_button, Gtk.ResponseType.Ok, true);

            window_controller = new PersistentWindowController(this, String.Format("muinshee.{0}", addType), 500, 475, WindowPersistOptions.Size);
            window_controller.Restore();
            ShowAll();

            Response += OnResponse;
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        private void BuildViews ()
        {
            source_box = new VBox ();

            views_pane = new HPaned ();
            PersistentPaneController.Control (views_pane, SourceViewWidth);
            view_container = new ViewContainer ();

            source_view = new SourceView ();
            composite_view = new CompositeTrackSourceContents ();

            Container source_scroll;
            if (PlatformDetection.IsMeeGo) {
                source_scroll = new Gtk.ScrolledWindow () {
                    HscrollbarPolicy = PolicyType.Never,
                    VscrollbarPolicy = PolicyType.Automatic,
                    ShadowType = ShadowType.None
                };
                source_scroll.Add (source_view);

                var color = new Gdk.Color ((byte)0xe6, (byte)0xe6, (byte)0xe6);
                Gdk.Colormap.System.AllocColor (ref color, true, true);
                source_view.ModifyBase (StateType.Normal, color);
            } else {
                Hyena.Widgets.ScrolledWindow window;
                if (ApplicationContext.CommandLine.Contains ("smooth-scroll")) {
                    window = new Hyena.Widgets.SmoothScrolledWindow ();
                } else {
                    window = new Hyena.Widgets.ScrolledWindow ();
                }

                window.AddWithFrame (source_view);
                source_scroll = window;
            }

            composite_view.TrackView.HeaderVisible = false;
            view_container.Content = composite_view;

            source_box.PackStart (source_scroll, true, true, 0);
            source_box.PackStart (new UserJobTileHost (), false, false, 0);

            UpdateCoverArtDisplay ();

            source_view.SetSizeRequest (125, -1);
            view_container.SetSizeRequest (425, -1);

            views_pane.Pack1 (source_box, false, false);
            views_pane.Pack2 (view_container, true, false);

            source_box.ShowAll ();
            view_container.Show ();
            views_pane.Show ();

            primary_vbox.PackStart (views_pane, true, true, 0);
        }
Esempio n. 6
0
        private void BuildViews()
        {
            source_box = new VBox();

            views_pane = new HPaned();
            PersistentPaneController.Control(views_pane, SourceViewWidth);
            view_container = new ViewContainer();

            source_view    = new SourceView();
            composite_view = new CompositeTrackSourceContents();

            Container source_scroll;

            if (PlatformDetection.IsMeeGo)
            {
                source_scroll = new Gtk.ScrolledWindow()
                {
                    HscrollbarPolicy = PolicyType.Never,
                    VscrollbarPolicy = PolicyType.Automatic,
                    ShadowType       = ShadowType.None
                };
                source_scroll.Add(source_view);

                var color = new Gdk.Color((byte)0xe6, (byte)0xe6, (byte)0xe6);
                Gdk.Colormap.System.AllocColor(ref color, true, true);
                source_view.ModifyBase(StateType.Normal, color);
            }
            else
            {
                Hyena.Widgets.ScrolledWindow window;
                if (ApplicationContext.CommandLine.Contains("smooth-scroll"))
                {
                    window = new Hyena.Widgets.SmoothScrolledWindow();
                }
                else
                {
                    window = new Hyena.Widgets.ScrolledWindow();
                }

                window.AddWithFrame(source_view);
                source_scroll = window;
            }

            composite_view.TrackView.HeaderVisible = false;
            view_container.Content = composite_view;

            source_box.PackStart(source_scroll, true, true, 0);
            source_box.PackStart(new UserJobTileHost(), false, false, 0);

            UpdateCoverArtDisplay();

            source_view.SetSizeRequest(125, -1);
            view_container.SetSizeRequest(425, -1);

            views_pane.Pack1(source_box, false, false);
            views_pane.Pack2(view_container, true, false);

            source_box.ShowAll();
            view_container.Show();
            views_pane.Show();

            primary_vbox.PackStart(views_pane, true, true, 0);
        }
Esempio n. 7
0
        public BaseDialog (PlaylistSource queue, string title, string addType) : base (title)
        {
            this.queue = queue;
            VBox.Spacing = 6;

            HBox filter_box = new HBox ();
            filter_box.Spacing = 6;

            Label search_label = new Label ("_Search:");
            filter_box.PackStart (search_label, false, false, 0);

            search_entry = new MuinsheeSearchEntry ();
            search_entry.Show ();
            search_entry.Changed += OnFilterChanged;
            search_entry.Ready = true;
            OnFilterChanged (null, null);
            filter_box.PackStart (search_entry, true, true, 0);

            VBox.PackStart (filter_box, false, false, 0);

            Hyena.Widgets.ScrolledWindow sw = new Hyena.Widgets.ScrolledWindow ();
            sw.Add (GetItemWidget ());
            VBox.PackStart (sw, true, true, 0);

            AddDefaultCloseButton ();

            Button queue_button = new ImageButton (Catalog.GetString ("En_queue"), "gtk-add");
            AddActionWidget (queue_button, Gtk.ResponseType.Apply);

            Button play_button = new ImageButton (Catalog.GetString ("_Play"), "media-playback-start");
            AddButton (play_button, Gtk.ResponseType.Ok, true);

            window_controller = new PersistentWindowController (this, String.Format ("muinshee.{0}", addType), 500, 475, WindowPersistOptions.Size);
            window_controller.Restore ();
            ShowAll ();

            Response += OnResponse;
        }
Esempio n. 8
0
        public FolderSyncView()
        {
            vbox_main.PackStart(main_hpane, true, true, 1);
            vbox_main.PackStart(Progress, false, false, 1);
            var frame = new Hyena.Widgets.ScrolledWindow();

            frame.AddWithFrame(playlist_tree);
            main_hpane.Pack1(frame, true, true);
            // right hand side is folder select and options
            //hbox_main.PackStart (vbox_folder_and_option, true, true, 0);
            main_hpane.Pack2(vbox_folder_and_option, true, true);
            hbox_chooser.PackStart(
                new Gtk.Label(AddinManager.CurrentLocalizer.GetString("Sync to folder:")),
                false, false, 1);
            hbox_chooser.PackStart(target_chooser, true, true, 1);
            vbox_folder_and_option.PackStart(hbox_chooser, false, false, 1);
            vbox_folder_and_option.PackStart(options_frame, false, false, 1);

            options_frame.Add(frame_alignment);

            frame_alignment.Add(vbox_checkbox);
            vbox_checkbox.PackStart(create_m3u, true, true, 1);
            vbox_checkbox.PackStart(overwrite_existing, true, true, 1);
            vbox_checkbox.PackStart(create_symlinks, true, true, 1);
            vbox_checkbox.PackStart(hbox_subfolder, true, true, 1);
            hbox_subfolder.PackStart(create_subfolders, true, true, 1);
            hbox_subfolder.PackStart(
                new Gtk.Label(AddinManager.CurrentLocalizer.GetString("Subfolder depth") + ":"), true, true, 1);
            hbox_subfolder.PackStart(subfolder_depth, true, true, 1);

            subfolder_depth.Value      = 1;
            create_subfolders.Clicked += delegate(object sender, EventArgs e) {
                subfolder_depth.Sensitive = create_subfolders.Active;
            };

            startbutton_alignment.Add(StartSyncButton);
            vbox_folder_and_option.PackStart(startbutton_alignment, false, false, 0);

            Add(vbox_main);

            // PLAYLIST TREEVIEW stuff
            // connect data model to the TreeView
            playlist_tree.Model          = PlaylistStore;
            playlist_tree.Selection.Mode = Gtk.SelectionMode.Multiple;

            // new column & renderer for the playlists
            var playlist_column        = new TreeViewColumn();
            var playlist_cell_renderer = new Gtk.CellRendererText();

            playlist_column.Title = "Playlists";
            // the the cell renderer, set to type text, and choose 1st position
            // from the model (counting starts on 0)
            playlist_column.PackStart(playlist_cell_renderer, true);
            playlist_column.AddAttribute(playlist_cell_renderer, "text", 1);
            var select_column        = new TreeViewColumn();
            var select_cell_renderer = new Gtk.CellRendererToggle();

            select_column.Title = "Sync";
            select_column.PackStart(select_cell_renderer, false);
            select_column.AddAttribute(select_cell_renderer, "active", 0);

            //TODO enable checkbox in the selection window
            //playlist_tree.AppendColumn (select_column);
            // order of Append matters, so first add select, then the playlist
            playlist_tree.AppendColumn(playlist_column);

            // show all the widgets in this window
            ShowAll();
        }
        public FolderSyncView()
        {
            vbox_main.PackStart (main_hpane, true, true, 1);
            vbox_main.PackStart (Progress, false, false, 1);
            var frame = new Hyena.Widgets.ScrolledWindow ();
            frame.AddWithFrame (playlist_tree);
            main_hpane.Pack1 (frame, true, true);
            // right hand side is folder select and options
            //hbox_main.PackStart (vbox_folder_and_option, true, true, 0);
            main_hpane.Pack2 (vbox_folder_and_option, true, true);
            hbox_chooser.PackStart (
                new Gtk.Label (AddinManager.CurrentLocalizer.GetString ("Sync to folder:")),
                false, false, 1);
            hbox_chooser.PackStart (target_chooser, true, true, 1);
            vbox_folder_and_option.PackStart (hbox_chooser, false, false, 1);
            vbox_folder_and_option.PackStart (options_frame, false, false, 1);

            options_frame.Add (frame_alignment);

            frame_alignment.Add (vbox_checkbox);
            vbox_checkbox.PackStart (create_m3u, true, true, 1);
            vbox_checkbox.PackStart (overwrite_existing, true, true, 1);
            vbox_checkbox.PackStart (create_symlinks, true, true, 1);
            vbox_checkbox.PackStart (hbox_subfolder, true, true, 1);
            hbox_subfolder.PackStart (create_subfolders, true, true, 1);
            hbox_subfolder.PackStart (
                new Gtk.Label (AddinManager.CurrentLocalizer.GetString ("Subfolder depth") + ":"), true, true, 1);
            hbox_subfolder.PackStart (subfolder_depth, true, true, 1);

            subfolder_depth.Value = 1;
            create_subfolders.Clicked += delegate(object sender, EventArgs e) {
                subfolder_depth.Sensitive = create_subfolders.Active;
            };

            startbutton_alignment.Add (StartSyncButton);
            vbox_folder_and_option.PackStart (startbutton_alignment, false, false, 0);

            Add (vbox_main);

            // PLAYLIST TREEVIEW stuff
            // connect data model to the TreeView
            playlist_tree.Model = PlaylistStore;
            playlist_tree.Selection.Mode = Gtk.SelectionMode.Multiple;

            // new column & renderer for the playlists
            var playlist_column = new TreeViewColumn ();
            var playlist_cell_renderer = new Gtk.CellRendererText ();
            playlist_column.Title = "Playlists";
            // the the cell renderer, set to type text, and choose 1st position
            // from the model (counting starts on 0)
            playlist_column.PackStart (playlist_cell_renderer, true);
            playlist_column.AddAttribute (playlist_cell_renderer, "text", 1);
            var select_column = new TreeViewColumn ();
            var select_cell_renderer = new Gtk.CellRendererToggle ();
            select_column.Title = "Sync";
            select_column.PackStart (select_cell_renderer, false);
            select_column.AddAttribute (select_cell_renderer, "active", 0);

            //TODO enable checkbox in the selection window
            //playlist_tree.AppendColumn (select_column);
            // order of Append matters, so first add select, then the playlist
            playlist_tree.AppendColumn (playlist_column);

            // show all the widgets in this window
            ShowAll ();
        }
Esempio n. 10
0
        private void BuildViews()
        {
            source_box = new VBox ();

            views_pane = new HPaned ();
            PersistentPaneController.Control (views_pane, SourceViewWidth);
            view_container = new ViewContainer ();

            source_view = new SourceView ();
            composite_view = new CompositeTrackSourceContents ();

            Container source_scroll;
            Hyena.Widgets.ScrolledWindow window;
            if (ApplicationContext.CommandLine.Contains ("smooth-scroll")) {
                window = new Hyena.Widgets.SmoothScrolledWindow ();
            } else {
                window = new Hyena.Widgets.ScrolledWindow ();
            }

            window.AddWithFrame (source_view);
            source_scroll = window;

            composite_view.TrackView.HeaderVisible = false;
            view_container.Content = composite_view;

            source_box.PackStart (source_scroll, true, true, 0);
            source_box.PackStart (new UserJobTileHost (), false, false, 0);

            UpdateCoverArtDisplay ();

            source_view.SetSizeRequest (125, -1);
            view_container.SetSizeRequest (425, -1);

            views_pane.Pack1 (source_box, false, false);
            views_pane.Pack2 (view_container, true, false);

            source_box.ShowAll ();
            view_container.Show ();
            views_pane.Show ();

            primary_vbox.PackStart (views_pane, true, true, 0);
        }
Esempio n. 11
0
        private void BuildViews()
        {
            track_view = new TerseTrackListView ();
            track_view.HasFocus = true;
            track_view.IsReorderable = 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);
        }