Exemplo n.º 1
0
        public DetailsSource(Item item) : base(item.Title, item.Title, 195, "internet-archive-" + item.Id)
        {
            this.item             = item;
            track_model           = new MemoryTrackListModel();
            track_model.Reloaded += delegate { OnUpdated(); };

            Properties.SetString("ActiveSourceUIResource", "DetailsSourceActiveUI.xml");
            Properties.SetString("GtkActionPath", "/IaDetailsSourcePopup");
            Properties.SetString("UnmapSourceActionLabel", Catalog.GetString("Close Item"));

            SetIcon();

            gui = new DetailsView(this, item);
            Properties.Set <Gtk.Widget> ("Nereid.SourceContents", gui);

            if (item.Details == null)
            {
                SetStatus(Catalog.GetString("Getting item details from the Internet Archive"), false, true, null);
                Load();
            }
            else
            {
                gui.UpdateDetails();
            }
        }
Exemplo n.º 2
0
        public static void RunView(TrackInfo track, bool readonlyTabs)
        {
            var model = new MemoryTrackListModel();

            model.Add(track);
            model.Selection.SelectAll();
            Run(model, model.Selection, EditorMode.View, readonlyTabs);
        }
Exemplo n.º 3
0
        public static void RunEdit(TrackInfo track)
        {
            var model = new MemoryTrackListModel();

            model.Add(track);
            model.Selection.SelectAll();
            Run(model, model.Selection, EditorMode.Edit);
        }
        private void StationInitialize()
        {
            track_model = new MemoryTrackListModel();

            ServiceManager.PlayerEngine.ConnectEvent(OnPlayerEvent, PlayerEvent.StateChange);
            lastfm.Connection.StateChanged += HandleConnectionStateChanged;

            Properties.SetString("GtkActionPath", "/LastfmStationSourcePopup");
            Properties.SetString("SourcePropertiesActionLabel", Catalog.GetString("Edit Last.fm Station"));
            Properties.SetString("UnmapSourceActionLabel", Catalog.GetString("Delete Last.fm Station"));

            UpdateUI(lastfm.Connection.State);
        }
Exemplo n.º 5
0
        public DetailsSource (Item item) : base (item.Title, item.Title, 195, "internet-archive-" + item.Id)
        {
            this.item = item;
            track_model = new MemoryTrackListModel ();
            track_model.Reloaded += delegate { OnUpdated (); };

            Properties.SetString ("ActiveSourceUIResource", "DetailsSourceActiveUI.xml");
            Properties.SetString ("GtkActionPath", "/IaDetailsSourcePopup");
            Properties.SetString ("UnmapSourceActionLabel", Catalog.GetString ("Close Item"));
            Properties.SetString ("UnmapSourceActionIconName", "gtk-close");

            SetIcon ();

            gui = new LazyLoadSourceContents<DetailsView> (this, item);
            Properties.Set<ISourceContents> ("Nereid.SourceContents", gui);
        }
Exemplo n.º 6
0
        public DetailsSource(Item item) : base(item.Title, item.Title, 195, "internet-archive-" + item.Id)
        {
            this.item             = item;
            track_model           = new MemoryTrackListModel();
            track_model.Reloaded += delegate { OnUpdated(); };

            Properties.SetString("ActiveSourceUIResource", "DetailsSourceActiveUI.xml");
            Properties.SetString("GtkActionPath", "/IaDetailsSourcePopup");
            Properties.SetString("UnmapSourceActionLabel", Catalog.GetString("Close Item"));
            Properties.SetString("UnmapSourceActionIconName", "gtk-close");

            SetIcon();

            gui = new LazyLoadSourceContents <DetailsView> (this, item);
            Properties.Set <ISourceContents> ("Nereid.SourceContents", gui);
        }
Exemplo n.º 7
0
        private void StationInitialize()
        {
            track_model = new MemoryTrackListModel ();

            ServiceManager.PlayerEngine.ConnectEvent (OnPlayerEvent, PlayerEvent.StateChange);
            lastfm.Connection.StateChanged += HandleConnectionStateChanged;

            Properties.SetString ("GtkActionPath", "/LastfmStationSourcePopup");
            Properties.SetString ("SourcePropertiesActionLabel", Catalog.GetString ("Edit Last.fm Station"));
            Properties.SetString ("UnmapSourceActionLabel", Catalog.GetString ("Delete Last.fm Station"));

            UpdateUI (lastfm.Connection.State);
        }