Esempio n. 1
0
        private void BuildInterface()
        {
            box = new VBox();

            model                   = new StationModel(plugin);
            view                    = new StationView(model);
            view.RowActivated      += OnViewRowActivated;
            view.Popup             += OnViewPopup;
            view.Selection.Changed += OnViewSelectionChanged;

            ScrolledWindow view_scroll = new ScrolledWindow();

            view_scroll.HscrollbarPolicy = PolicyType.Never;
            view_scroll.VscrollbarPolicy = PolicyType.Automatic;
            view_scroll.ShadowType       = ShadowType.In;

            view_scroll.Add(view);

            status_bar             = new HighlightMessageArea();
            status_bar.BorderWidth = 5;
            status_bar.LeftPadding = 15;

            box.PackStart(view_scroll, true, true, 0);
            box.PackStart(status_bar, false, false, 0);

            view_scroll.ShowAll();
            box.Show();
            status_bar.Hide();
        }
        private void BuildInterface()
        {
            box = new HBox();

            ScrolledWindow view_scroll = new ScrolledWindow();

            view_scroll.HscrollbarPolicy = PolicyType.Never;
            view_scroll.VscrollbarPolicy = PolicyType.Automatic;
            view_scroll.ShadowType       = ShadowType.In;

            view                = new StationView(store);
            view.Popup         += OnViewPopup;
            view.RowActivated  += OnViewRowActivated;
            view.HeadersVisible = true;
            view.AppendColumn(Catalog.GetString("Station"), new CellRendererText(), "text", 0);
            view.AppendColumn(Catalog.GetString("Description"), new CellRendererText(), "text", 1);
            view.AppendColumn(Catalog.GetString("Stream"), new CellRendererText(), "text", 2);
            view_scroll.Add(view);

            view.ExpandAll();

            box.PackStart(view_scroll, true, true, 0);
            box.ShowAll();
        }
        private void BuildInterface()
        {
            box = new HBox();

            ScrolledWindow view_scroll = new ScrolledWindow();
            view_scroll.HscrollbarPolicy = PolicyType.Never;
            view_scroll.VscrollbarPolicy = PolicyType.Automatic;
            view_scroll.ShadowType = ShadowType.In;

            view = new StationView(store);
            view.Popup += OnViewPopup;
            view.RowActivated += OnViewRowActivated;
            view.HeadersVisible = true;
            view.AppendColumn(Catalog.GetString("Station"), new CellRendererText(), "text", 0);
            view.AppendColumn(Catalog.GetString("Description"), new CellRendererText(), "text", 1);
            view.AppendColumn(Catalog.GetString("Stream"), new CellRendererText(), "text", 2);
            view_scroll.Add(view);

            view.ExpandAll();

            box.PackStart(view_scroll, true, true, 0);
            box.ShowAll();
        }
        private void BuildInterface()
        {
            box = new VBox();

            model = new StationModel(plugin);
            view = new StationView(model);
            view.RowActivated += OnViewRowActivated;
            view.Popup += OnViewPopup;
            view.Selection.Changed += OnViewSelectionChanged;

            ScrolledWindow view_scroll = new ScrolledWindow();
            view_scroll.HscrollbarPolicy = PolicyType.Never;
            view_scroll.VscrollbarPolicy = PolicyType.Automatic;
            view_scroll.ShadowType = ShadowType.In;

            view_scroll.Add(view);

            status_bar = new HighlightMessageArea();
            status_bar.BorderWidth = 5;
            status_bar.LeftPadding = 15;

            box.PackStart(view_scroll, true, true, 0);
            box.PackStart(status_bar, false, false, 0);

            view_scroll.ShowAll();
            box.Show();
            status_bar.Hide();
        }