public OpenRemoteServer() : base(Catalog.GetString("Open remote DAAP server"), null) { VBox.Spacing = 6; VBox.PackStart(new Label() { Xalign = 0.0f, Text = Catalog.GetString("Enter server IP address and port:") }, true, true, 0); HBox box = new HBox(); box.Spacing = 12; VBox.PackStart(box, false, false, 0); address_entry = ComboBoxEntry.NewText(); address_entry.Entry.Activated += OnEntryActivated; address_entry.Entry.WidthChars = 30; address_entry.Show(); port_entry = new SpinButton(1d, 65535d, 1d); port_entry.Value = 3689; port_entry.Show(); box.PackStart(address_entry, true, true, 0); box.PackEnd(port_entry, false, false, 0); address_entry.HasFocus = true; VBox.ShowAll(); AddStockButton(Stock.Cancel, ResponseType.Cancel); AddStockButton(Stock.Add, ResponseType.Ok, true); LoadHistory(); }
public OpenRemoteServer () : base (Catalog.GetString ("Open remote DAAP server"), null) { VBox.Spacing = 6; VBox.PackStart (new Label () { Xalign = 0.0f, Text = Catalog.GetString ("Enter server IP address and port:") }, true, true, 0); HBox box = new HBox (); box.Spacing = 12; VBox.PackStart (box, false, false, 0); address_entry = ComboBoxEntry.NewText (); address_entry.Entry.Activated += OnEntryActivated; address_entry.Entry.WidthChars = 30; address_entry.Show (); port_entry = new SpinButton (1d, 65535d, 1d); port_entry.Value = 3689; port_entry.Show (); box.PackStart (address_entry, true, true, 0); box.PackEnd (port_entry, false, false, 0); address_entry.HasFocus = true; VBox.ShowAll (); AddStockButton (Stock.Cancel, ResponseType.Cancel); AddStockButton (Stock.Add, ResponseType.Ok, true); LoadHistory(); }
void ShowDirectoryPathUI() { if (labelPath != null) { return; } // We want to add the Path combo box right below the Scope uint row = TableGetRowForItem(tableFindAndReplace, labelScope) + 1; // DirectoryScope labelPath = new Label { LabelProp = GettextCatalog.GetString("_Path:"), UseUnderline = true, Xalign = 0f }; labelPath.Show(); hboxPath = new HBox(); comboboxentryPath = new ComboBoxEntry(); comboboxentryPath.Destroyed += ComboboxentryPathDestroyed; LoadHistory("MonoDevelop.FindReplaceDialogs.PathHistory", comboboxentryPath); comboboxentryPath.Show(); hboxPath.PackStart(comboboxentryPath); labelPath.MnemonicWidget = comboboxentryPath; buttonBrowsePaths = new Button { Label = "…" }; buttonBrowsePaths.Clicked += ButtonBrowsePathsClicked; buttonBrowsePaths.Show(); hboxPath.PackStart(buttonBrowsePaths, false, false, 0); hboxPath.Show(); // Add the Directory Path row to the table TableAddRow(tableFindAndReplace, row++, labelPath, hboxPath); // Add a checkbox for searching the directory recursively... checkbuttonRecursively = new CheckButton { Label = GettextCatalog.GetString("Re_cursively"), Active = properties.Get("SearchPathRecursively", true), UseUnderline = true }; checkbuttonRecursively.Destroyed += CheckbuttonRecursivelyDestroyed; checkbuttonRecursively.Show(); TableAddRow(tableFindAndReplace, row, null, checkbuttonRecursively); SetupAccessibilityForPath(); }
public StationDialog(Stations stations, Station station) { glade = new Glade.XML(null, "radio.glade", "StationDialog", "banshee"); glade.Autoconnect(this); dialog = (Dialog)glade.GetWidget("StationDialog"); Banshee.Base.IconThemeUtils.SetWindowIcon(dialog); if (station == null) { is_new = true; station = new Station(); } this.stations = stations; this.station = station; link_store = new LinkStore(station); view = new NodeView(link_store); view.HeadersVisible = true; CellRendererToggle active_renderer = new CellRendererToggle(); active_renderer.Activatable = true; active_renderer.Radio = true; active_renderer.Toggled += OnLinkToggled; view.AppendColumn(Catalog.GetString("Active"), active_renderer, ActiveDataFunc); view.AppendColumn(Catalog.GetString("Type"), new CellRendererText(), TypeDataFunc); view.AppendColumn(Catalog.GetString("Title"), EditTextRenderer(), "text", 1); view.AppendColumn(Catalog.GetString("URI"), EditTextRenderer(), "text", 2); view.Show(); (glade["link_view_container"] as ScrolledWindow).Add(view); group_combo = ComboBoxEntry.NewText(); group_combo.Show(); (glade["group_combo_container"] as Box).PackStart(group_combo, true, true, 0); title_entry.Text = station.Title == null ? String.Empty : station.Title; description_entry.Text = station.Description == null ? String.Empty : station.Description; group_combo.Entry.Text = station.Group == null ? String.Empty : station.Group; foreach (string group in stations.Groups) { group_combo.AppendText(group); } }
public OpenLocationDialog() : base("OpenLocationDialog") { address_entry = ComboBoxEntry.NewText(); address_entry.Show(); address_entry.Entry.Activated += OnEntryActivated; browse_button = new Button(Catalog.GetString("Browse...")); browse_button.Clicked += OnBrowseClicked; browse_button.Show(); location_box.PackStart(address_entry, true, true, 0); location_box.PackStart(browse_button, false, false, 0); Dialog.Response += OnResponse; LoadHistory(); address_entry.Entry.HasFocus = true; }
void ShowReplaceUI() { if (replaceMode) { return; } labelReplace = new Label { Text = GettextCatalog.GetString("_Replace:"), Xalign = 0f, UseUnderline = true }; comboboxentryReplace = new ComboBoxEntry(); LoadHistory("MonoDevelop.FindReplaceDialogs.ReplaceHistory", comboboxentryReplace); comboboxentryReplace.Show(); labelReplace.Show(); SetupAccessibilityForReplace(); TableAddRow(tableFindAndReplace, 1, labelReplace, comboboxentryReplace); buttonReplace = new Button() { Label = "gtk-find-and-replace", UseUnderline = true, CanDefault = true, UseStock = true, }; // Note: We override the stock label text instead of using SetButtonIcon() because the // theme may override whether or not the icons are shown. Using SetButtonIcon() would // break the theme by forcing icons even if the theme says "no". OverrideStockLabel(buttonReplace, GettextCatalog.GetString("R_eplace")); buttonReplace.Clicked += HandleReplaceClicked; buttonReplace.Show(); AddActionWidget(buttonReplace, 0); buttonReplace.GrabDefault(); replaceMode = true; Requisition req = SizeRequest(); Resize(req.Width, req.Height); }
void ShowDirectoryPathUI () { if (labelPath != null) return; // We want to add the Path combo box right below the Scope uint row = TableGetRowForItem (tableFindAndReplace, labelScope) + 1; // DirectoryScope labelPath = new Label { LabelProp = GettextCatalog.GetString ("_Path:"), UseUnderline = true, Xalign = 0f }; labelPath.Show (); hboxPath = new HBox (); comboboxentryPath = new ComboBoxEntry (); comboboxentryPath.Destroyed += ComboboxentryPathDestroyed; LoadHistory ("MonoDevelop.FindReplaceDialogs.PathHistory", comboboxentryPath); comboboxentryPath.Show (); hboxPath.PackStart (comboboxentryPath); labelPath.MnemonicWidget = comboboxentryPath; buttonBrowsePaths = new Button { Label = "..." }; buttonBrowsePaths.Clicked += ButtonBrowsePathsClicked; buttonBrowsePaths.Show (); hboxPath.PackStart (buttonBrowsePaths, false, false, 0); hboxPath.Show (); // Add the Directory Path row to the table TableAddRow (tableFindAndReplace, row++, labelPath, hboxPath); // Add a checkbox for searching the directory recursively... checkbuttonRecursively = new CheckButton { Label = GettextCatalog.GetString ("Re_cursively"), Active = properties.Get ("SearchPathRecursively", true), UseUnderline = true }; checkbuttonRecursively.Destroyed += CheckbuttonRecursivelyDestroyed; checkbuttonRecursively.Show (); TableAddRow (tableFindAndReplace, row, null, checkbuttonRecursively); }
void ShowReplaceUI () { if (replaceMode) return; labelReplace = new Label { Text = GettextCatalog.GetString ("_Replace:"), Xalign = 0f, UseUnderline = true }; comboboxentryReplace = new ComboBoxEntry (); LoadHistory ("MonoDevelop.FindReplaceDialogs.ReplaceHistory", comboboxentryReplace); comboboxentryReplace.Show (); labelReplace.Show (); TableAddRow (tableFindAndReplace, 1, labelReplace, comboboxentryReplace); buttonReplace = new Button () { Label = "gtk-find-and-replace", UseUnderline = true, CanDefault = true, UseStock = true, }; // Note: We override the stock label text instead of using SetButtonIcon() because the // theme may override whether or not the icons are shown. Using SetButtonIcon() would // break the theme by forcing icons even if the theme says "no". OverrideStockLabel (buttonReplace, GettextCatalog.GetString ("R_eplace")); buttonReplace.Clicked += HandleReplaceClicked; buttonReplace.Show (); AddActionWidget (buttonReplace, 0); buttonReplace.GrabDefault (); replaceMode = true; Requisition req = SizeRequest (); Resize (req.Width, req.Height); }
public StationDialog(Stations stations, Station station) { glade = new Glade.XML(null, "radio.glade", "StationDialog", "banshee"); glade.Autoconnect(this); dialog = (Dialog)glade.GetWidget("StationDialog"); Banshee.Base.IconThemeUtils.SetWindowIcon(dialog); if(station == null) { is_new = true; station = new Station(); } this.stations = stations; this.station = station; link_store = new LinkStore(station); view = new NodeView(link_store); view.HeadersVisible = true; CellRendererToggle active_renderer = new CellRendererToggle(); active_renderer.Activatable = true; active_renderer.Radio = true; active_renderer.Toggled += OnLinkToggled; view.AppendColumn(Catalog.GetString("Active"), active_renderer, ActiveDataFunc); view.AppendColumn(Catalog.GetString("Type"), new CellRendererText(), TypeDataFunc); view.AppendColumn(Catalog.GetString("Title"), EditTextRenderer(), "text", 1); view.AppendColumn(Catalog.GetString("URI"), EditTextRenderer(), "text", 2); view.Show(); (glade["link_view_container"] as ScrolledWindow).Add(view); group_combo = ComboBoxEntry.NewText(); group_combo.Show(); (glade["group_combo_container"] as Box).PackStart(group_combo, true, true, 0); title_entry.Text = station.Title == null ? String.Empty : station.Title; description_entry.Text = station.Description == null ? String.Empty : station.Description; group_combo.Entry.Text = station.Group == null ? String.Empty : station.Group; foreach(string group in stations.Groups) { group_combo.AppendText(group); } }