protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.fixed1 = new Gtk.Fixed(); this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = Mono.Unix.Catalog.GetString("GtkButton"); this.fixed1.Add(this.button1); Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.button1])); w1.X = 160; w1.Y = 113; this.Add(this.fixed1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget OpenVP.GtkGui.BrowsableEditor Stetic.BinContainer.Attach(this); this.Name = "OpenVP.GtkGui.BrowsableEditor"; // Container child OpenVP.GtkGui.BrowsableEditor.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.SheetPane = new Gtk.ScrolledWindow(); this.SheetPane.CanFocus = true; this.SheetPane.Name = "SheetPane"; this.vbox2.Add(this.SheetPane); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.SheetPane])); w1.Position = 0; // Container child vbox2.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.hbuttonbox2.Homogeneous = true; this.hbuttonbox2.Spacing = 6; this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.RevertButton = new Gtk.Button(); this.RevertButton.Sensitive = false; this.RevertButton.CanFocus = true; this.RevertButton.Name = "RevertButton"; this.RevertButton.UseStock = true; this.RevertButton.UseUnderline = true; this.RevertButton.Label = "gtk-revert-to-saved"; this.hbuttonbox2.Add(this.RevertButton); Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RevertButton])); w2.Expand = false; w2.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.ApplyButton = new Gtk.Button(); this.ApplyButton.Sensitive = false; this.ApplyButton.CanFocus = true; this.ApplyButton.Name = "ApplyButton"; this.ApplyButton.UseStock = true; this.ApplyButton.UseUnderline = true; this.ApplyButton.Label = "gtk-apply"; this.hbuttonbox2.Add(this.ApplyButton); Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.ApplyButton])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.vbox2.Add(this.hbuttonbox2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox2])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.RevertButton.Clicked += new System.EventHandler(this.OnRevertButtonClicked); this.ApplyButton.Clicked += new System.EventHandler(this.OnApplyButtonClicked); }
public QueryWidget (PhotoQuery query, Db db, TagSelectionWidget selector) { tips.Enable (); this.query = query; query.Changed += HandleChanged; Gtk.HSeparator sep = new Gtk.HSeparator (); sep.Show (); this.PackStart (sep, false, false, 0); Gtk.HBox hbox = new Gtk.HBox (); hbox.Show (); this.PackStart (hbox, false, false, 0); label = new Gtk.Label (Catalog.GetString ("Find: ")); label.Show (); label.Ypad = 9; hbox.PackStart (label, false, false, 0); untagged = new Gtk.Label (Catalog.GetString ("Untagged photos")); untagged.Visible = false; hbox.PackStart (untagged, false, false, 0); comma_label = new Gtk.Label (", "); comma_label.Visible = false; hbox.PackStart (comma_label, false, false, 0); rollfilter = new Gtk.Label (Catalog.GetString ("Import roll")); rollfilter.Visible = false; hbox.PackStart (rollfilter, false, false, 0); logic_widget = new LogicWidget (query, db.Tags, selector); logic_widget.Show (); hbox.PackStart (logic_widget, true, true, 0); warning_box = new Gtk.HBox (); warning_box.PackStart (new Gtk.Label (System.String.Empty)); Gtk.Image warning_image = new Gtk.Image ("gtk-info", Gtk.IconSize.Button); warning_image.Show (); warning_box.PackStart (warning_image, false, false, 0); clear_button = new Gtk.Button (); clear_button.Add (new Gtk.Image ("gtk-close", Gtk.IconSize.Button)); clear_button.Clicked += HandleClearButtonClicked; clear_button.Relief = Gtk.ReliefStyle.None; hbox.PackEnd (clear_button, false, false, 0); tips.SetTip (clear_button, Catalog.GetString("Clear search"), null); Gtk.Label warning = new Gtk.Label (Catalog.GetString ("No matching photos found")); warning_box.PackStart (warning, false, false, 0); warning_box.ShowAll (); warning_box.Spacing = 6; warning_box.Visible = false; hbox.PackEnd (warning_box, false, false, 0); warning_box.Visible = false; }
public MenuButtonEntry (Gtk.Entry entry, Gtk.Button button) { if (entry == null) entry = new Gtk.Entry (); if (button == null) button = new Gtk.Button (new Gtk.Arrow (Gtk.ArrowType.Right, Gtk.ShadowType.Out)); this.entry = entry; this.button = button; manager = new CommandManager (); manager.RegisterGlobalHandler (this); if (entry.Parent == null) PackStart (entry, true, true, 0); if (button.Parent == null) PackStart (button, false, false, 2); ActionCommand cmd = new ActionCommand ("InsertOption", "InsertOption", null); cmd.CommandArray = true; manager.RegisterCommand (cmd); entrySet = new CommandEntrySet (); entrySet.AddItem ("InsertOption"); button.Clicked += ShowQuickInsertMenu; button.StateChanged += ButtonStateChanged; }
public WebSyncPreferencesWidget (Api.OAuth oauth, string server, EventHandler requiredPrefChanged) : base (false, 5) { this.oauth = oauth; Gtk.Table prefsTable = new Gtk.Table (1, 2, false); prefsTable.RowSpacing = 5; prefsTable.ColumnSpacing = 10; serverEntry = new Gtk.Entry (); serverEntry.Text = server; AddRow (prefsTable, serverEntry, Catalog.GetString ("Se_rver:"), 0); Add (prefsTable); authButton = new Gtk.Button (); // TODO: If Auth is valid, this text should change if (!Auth.IsAccessToken) authButton.Label = Catalog.GetString ("Connect to Server"); else { authButton.Label = Catalog.GetString ("Connected"); authButton.Sensitive = false; } authButton.Clicked += OnAuthButtonClicked; serverEntry.Changed += delegate { Auth = null; }; serverEntry.Changed += requiredPrefChanged; Add (authButton); // TODO: Add a section that shows the user something to verify they put // in the right URL...something that constructs their user URL, maybe? ShowAll (); }
public override void Initialize () { NeedsEventBox = false; Widget = new Gtk.Button (); base.Widget.Show (); }
public ThreadProgressDialog (Thread thread, int total) { /* if (parent_window) this.TransientFor = parent_window; */ this.Title = thread.Name; this.thread = thread; HasSeparator = false; BorderWidth = 6; SetDefaultSize (300, -1); message_label = new Gtk.Label (String.Empty); VBox.PackStart (message_label, true, true, 12); progress_bar = new Gtk.ProgressBar (); VBox.PackStart (progress_bar, true, true, 6); retry_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Retry")); retry_button.Clicked += new EventHandler (HandleRetryClicked); skip_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Skip")); skip_button.Clicked += new EventHandler (HandleSkipClicked); ActionArea.Add (retry_button); ActionArea.Add (skip_button); button_label = Gtk.Stock.Cancel; button = (Gtk.Button) AddButton (button_label, (int)Gtk.ResponseType.Cancel); delay = new Delay (new GLib.IdleHandler (HandleUpdate)); Response += HandleResponse; Destroyed += HandleDestroy; }
public ScreenshotViewerController(Glade.XML gxml, ScreenshotViewerModel ssViewerModel) { this.ssViewerModel = ssViewerModel; nextNoteButton = (Gtk.Button)gxml.GetWidget ("nextNoteButton"); previousNoteButton = (Gtk.Button)gxml.GetWidget ("previousNoteButton"); forwardHourButton = (Gtk.Button)gxml.GetWidget ("forwardHourButton"); backHourButton = (Gtk.Button)gxml.GetWidget ("backHourButton"); forward10MinButton = (Gtk.Button)gxml.GetWidget ("foward10MinButton"); back10MinButton = (Gtk.Button)gxml.GetWidget ("back10MinButton"); noteViewBox = (Gtk.VBox)gxml.GetWidget ("noteViewBox"); screenshotImage = (Gtk.Image)gxml.GetWidget ("noteImage"); nextNoteButton.Clicked += this.NextNoteButtonPressed; previousNoteButton.Clicked += this.PrevNoteButtonPressed; forwardHourButton.Clicked += this.ForwardHourButtonPressed; backHourButton.Clicked += this.BackHourButtonPressed; forward10MinButton.Clicked += this.Forward10MinButtonPressed; back10MinButton.Clicked += this.Back10MinButtonPressed; noteViewBox.ScrollEvent += this.NoteViewScroll; screenshotImage.ScrollEvent += this.NoteViewScroll; doUpdateTimeCheckFilters (); }
public DiffWidget (VersionControlDocumentInfo info, bool viewOnly = false) { this.info = info; this.Build (); comparisonWidget = new ComparisonWidget (viewOnly); buttonNext = new DocumentToolButton (Gtk.Stock.GoUp, GettextCatalog.GetString ("Previous Change")); buttonPrev = new DocumentToolButton (Gtk.Stock.GoDown, GettextCatalog.GetString ("Next Change")); labelOverview = new Gtk.Label () { Xalign = 0 }; buttonDiff = new Gtk.Button (GettextCatalog.GetString ("Unified Diff")); this.buttonNext.Clicked += (sender, args) => ComparisonWidget.GotoNext (); this.buttonPrev.Clicked += (sender, args) => ComparisonWidget.GotoPrev (); notebook1.Page = 0; vboxComparisonView.PackStart (comparisonWidget, true, true, 0); comparisonWidget.Show (); comparisonWidget.DiffChanged += delegate { labelOverview.Markup = LabelText; SetButtonSensitivity (); }; comparisonWidget.SetVersionControlInfo (info); this.buttonDiff.Clicked += HandleButtonDiffhandleClicked; diffTextEditor = new global::Mono.TextEditor.MonoTextEditor (new Mono.TextEditor.TextDocument (), CommonTextEditorOptions.Instance); diffTextEditor.Document.MimeType = "text/x-diff"; diffTextEditor.Options.ShowFoldMargin = false; diffTextEditor.Options.ShowIconMargin = false; diffTextEditor.Options.DrawIndentationMarkers = PropertyService.Get ("DrawIndentationMarkers", false); diffTextEditor.Document.ReadOnly = true; scrolledwindow1.Child = diffTextEditor; diffTextEditor.Show (); SetButtonSensitivity (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HollyLibrary.HColorPickerDialog this.Name = "HollyLibrary.HColorPickerDialog"; this.Title = "Pick a color"; this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; this.HasSeparator = false; // Internal child HollyLibrary.HColorPickerDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.Picker = new HollyLibrary.HColorPickerWidget(); this.Picker.Events = ((Gdk.EventMask)(256)); this.Picker.Name = "Picker"; w1.Add(this.Picker); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.Picker])); w2.Position = 0; // Internal child HollyLibrary.HColorPickerDialog.ActionArea Gtk.HButtonBox w3 = this.ActionArea; w3.Name = "dialog1_ActionArea"; w3.Spacing = 6; w3.BorderWidth = ((uint)(5)); w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel])); w4.Expand = false; w4.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk])); w5.Position = 1; w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 591; this.DefaultHeight = 394; this.Show(); }
public override void Initialize (IPadWindow window) { base.Initialize(window); // Call ctors inputEditor = new TextEditor() { Name = "input", Events = Gdk.EventMask.AllEventsMask, HeightRequest = 80 }; editor = new TextEditor() { Name = "output", Events = Gdk.EventMask.AllEventsMask }; vpaned = new Gtk.VPaned(); var scr1 = new Gtk.ScrolledWindow(); var scr2 = new Gtk.ScrolledWindow(); // Init layout scr1.ShadowType = Gtk.ShadowType.In; scr1.Child = inputEditor; vpaned.Add1(scr1); scr1.ShowAll(); inputEditor.ShowAll(); scr2.ShadowType = Gtk.ShadowType.In; scr2.Child = editor; vpaned.Add2(scr2); scr2.ShowAll(); editor.ShowAll(); vpaned.ShowAll(); // Init editors var o = editor.Options; inputEditor.Options = o; o.ShowLineNumberMargin = false; o.ShowFoldMargin = false; o.ShowIconMargin = false; editor.Document.ReadOnly = true; inputEditor.Text = PropertyService.Get(lastInputStringPropId, string.Empty); editor.Text = string.Empty; editor.Document.SyntaxMode = new Highlighting.DSyntaxMode(); inputEditor.Document.SyntaxMode = new Highlighting.DSyntaxMode(); editor.Document.MimeType = Formatting.DCodeFormatter.MimeType; inputEditor.Document.MimeType = Formatting.DCodeFormatter.MimeType; // Init toolbar var tb = window.GetToolbar(Gtk.PositionType.Top); executeButton = new Gtk.Button(); executeButton.Image = new Gtk.Image(Gtk.Stock.Execute, Gtk.IconSize.Menu); executeButton.TooltipText = "Evaluates the expression typed in the upper input editor."; executeButton.Clicked += Execute; tb.Add(executeButton); abortButton = new Gtk.Button(); abortButton.Sensitive = false; abortButton.Image = new Gtk.Image(Gtk.Stock.Stop, Gtk.IconSize.Menu); abortButton.TooltipText = "Stops the evaluation."; abortButton.Clicked += (object sender, EventArgs e) => AbortExecution(); tb.Add(abortButton); tb.ShowAll(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget DirectoryHistory.UI.HistoryDialog this.Name = "DirectoryHistory.UI.HistoryDialog"; this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 640; this.DefaultHeight = 480; // Internal child DirectoryHistory.UI.HistoryDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.entriesVbox = new Gtk.VBox(); this.entriesVbox.Name = "entriesVbox"; this.entriesVbox.Spacing = 6; // Container child entriesVbox.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.entriesVbox.Add(this.label); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.entriesVbox[this.label])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child entriesVbox.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); this.entriesVbox.Add(this.scrolledwindow1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.entriesVbox[this.scrolledwindow1])); w3.Position = 1; w1.Add(this.entriesVbox); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.entriesVbox])); w4.Position = 0; // Internal child DirectoryHistory.UI.HistoryDialog.ActionArea Gtk.HButtonBox w5 = this.ActionArea; w5.Name = "dialog1_ActionArea"; w5.Spacing = 10; w5.BorderWidth = ((uint)(5)); w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk])); w6.Expand = false; w6.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Bot.DialogError this.Name = "Bot.DialogError"; this.Title = Mono.Unix.Catalog.GetString("Error"); this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Menu, 16); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.AllowShrink = true; this.HasSeparator = false; // Internal child Bot.DialogError.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Error al Connectarse"); this.hbox4.Add(this.label9); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox4[this.label9])); w2.Position = 1; w2.Expand = false; w2.Fill = false; w1.Add(this.hbox4); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.hbox4])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Internal child Bot.DialogError.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 6; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk])); w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 264; this.DefaultHeight = 141; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget CBinding.AddPathDialog this.Name = "CBinding.AddPathDialog"; this.Title = Mono.Unix.Catalog.GetString("Add Path"); this.Modal = true; // Internal child CBinding.AddPathDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.Spacing = 6; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.file_chooser_widget = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0))); this.file_chooser_widget.Name = "file_chooser_widget"; this.file_chooser_widget.ShowHidden = true; w1.Add(this.file_chooser_widget); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.file_chooser_widget])); w2.Position = 0; // Internal child CBinding.AddPathDialog.ActionArea Gtk.HButtonBox w3 = this.ActionArea; w3.Name = "dialog1_ActionArea"; w3.Spacing = 6; w3.BorderWidth = ((uint)(5)); w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel])); w4.Expand = false; w4.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk])); w5.Position = 1; w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 649; this.DefaultHeight = 436; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelButtonClick); this.buttonOk.Clicked += new System.EventHandler(this.OnOkButtonClick); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget Monodoc.Editor.SaveDocDialog this.Name = "Monodoc.Editor.SaveDocDialog"; this.Title = Mono.Unix.Catalog.GetString("Save as..."); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child Monodoc.Editor.SaveDocDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.saveFileDialog = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(1))); this.saveFileDialog.Name = "saveFileDialog"; w1.Add(this.saveFileDialog); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.saveFileDialog])); w2.Position = 0; // Internal child Monodoc.Editor.SaveDocDialog.ActionArea Gtk.HButtonBox w3 = this.ActionArea; w3.Name = "dialog1_ActionArea"; w3.Spacing = 6; w3.BorderWidth = ((uint)(5)); w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel])); w4.Expand = false; w4.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-save"; w3.Add(this.buttonOk); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk])); w5.Position = 1; w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 703; this.DefaultHeight = 178; this.Show(); this.saveFileDialog.FileActivated += new System.EventHandler(this.OnSaveFileDialogFileActivated); this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
public NoteDialog(Gtk.Window parentWindow, ITask task) : base() { this.ParentWindow = parentWindow.GdkWindow; this.task = task; this.Title = String.Format(Catalog.GetString("Notes for: {0:s}"), task.Text); this.HasSeparator = false; this.SetSizeRequest(500,320); this.Icon = Utilities.GetIcon ("tasque", 16); //this.Flags = Gtk.DialogFlags.DestroyWithParent; sw.VscrollbarPolicy = Gtk.PolicyType.Automatic; sw.HscrollbarPolicy = Gtk.PolicyType.Never; sw.BorderWidth = 0; sw.CanFocus = true; sw.Show (); Gtk.EventBox innerEb = new Gtk.EventBox(); innerEb.BorderWidth = 0; targetVBox = new Gtk.VBox(); targetVBox.BorderWidth = 5; targetVBox.Show (); innerEb.Add(targetVBox); innerEb.Show (); if(task.Notes != null) { foreach (var note in task.Notes) { NoteWidget noteWidget = new NoteWidget (note); noteWidget.TextChanged += OnNoteTextChanged; noteWidget.DeleteButtonClicked += OnDeleteButtonClicked; noteWidget.EditCanceled += OnEditCanceled; noteWidget.Show (); targetVBox.PackStart (noteWidget, false, false, 0); } } sw.AddWithViewport(innerEb); sw.Show (); VBox.PackStart (sw, true, true, 0); if(task.NoteSupport == NoteSupport.Multiple) { addButton = new Gtk.Button(Gtk.Stock.Add); addButton.Show(); this.ActionArea.PackStart(addButton); addButton.Clicked += OnAddButtonClicked; } AddButton (Gtk.Stock.Close, Gtk.ResponseType.Close); Response += delegate (object sender, Gtk.ResponseArgs args) { // Hide the window. The TaskWindow watches for when the // dialog is hidden and will take care of the rest. Hide (); }; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = "MainWindow"; this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = "button1"; this.vbox1.Add(this.button1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.button1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.gtkcontrol1 = new HollyLibrary.GtkControl(); this.gtkcontrol1.Name = "gtkcontrol1"; this.vbox1.Add(this.gtkcontrol1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.gtkcontrol1])); w2.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.button2 = new Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; this.button2.Label = "button2"; this.vbox1.Add(this.button2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.button2])); w3.Position = 2; w3.Expand = false; w3.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 577; this.DefaultHeight = 400; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.gtkcontrol1.KeyUp += new HollyLibrary.GcKeyUp(this.OnGtkcontrol1KeyUp); this.gtkcontrol1.KeyDown += new HollyLibrary.GcKeyDown(this.OnGtkcontrol1KeyDown); this.gtkcontrol1.KeyPressed += new HollyLibrary.GcKeyPressed(this.OnGtkcontrol1KeyPressed); this.gtkcontrol1.MouseMove += new HollyLibrary.GcMouseMove(this.OnGtkcontrol1MouseMove); this.gtkcontrol1.MouseUp += new HollyLibrary.GcMouseUp(this.OnGtkcontrol1MouseUp); this.gtkcontrol1.MouseDown += new HollyLibrary.GcMouseDown(this.OnGtkcontrol1MouseDown); this.gtkcontrol1.MouseClick += new HollyLibrary.GcMouseClick(this.OnGtkcontrol1MouseClick); this.gtkcontrol1.MouseDoubleClick += new HollyLibrary.GcMouseDoubleClick(this.OnGtkcontrol1MouseDoubleClick); this.gtkcontrol1.MouseWheel += new HollyLibrary.GcMouseWheel(this.OnGtkcontrol1MouseWheel); }
public void CustomBuild() { this.vboxWindow = new Gtk.VBox (); this.vboxWindow.Name = "vboxWindow"; this.evntboxTitleBar = new Gtk.EventBox (); this.evntboxTitleBar.Name = "evntboxTitleBar"; this.evntboxTitleBar.Visible = false; this.evntboxTitleBar.ChildVisible = false; this.evntboxTitleBar.Sensitive = false; this.vboxWindow.PackStart(this.evntboxTitleBar, false, false, 0); this.vboxClient = new Gtk.VBox (); this.vboxClient.Name = "vboxClient"; this.vboxWindow.PackStart(this.vboxClient, true, true, 0); this.hboxTitleBar = new Gtk.HBox (); this.hboxTitleBar.Name = "hboxTitleBar"; this.evntboxTitleBar.Add (this.hboxTitleBar); this.labelCaption = new Gtk.Label (); this.labelCaption.Name = "labelCaption"; this.labelCaption.Xalign = 0f; this.labelCaption.LabelProp = Mono.Unix.Catalog.GetString ("Title"); this.labelCaption.SingleLineMode = true; this.hboxTitleBar.PackStart (this.labelCaption, true, true, 0); this.btnMinimize = new Gtk.Button (); this.btnMinimize.Name = "btnMinimize"; this.btnMinimize.WidthRequest = 22; this.btnMinimize.HeightRequest = 22; this.btnMinimize.CanFocus = false; this.hboxTitleBar.PackStart (this.btnMinimize, false, false, 0); this.btnMaximize = new Gtk.Button (); this.btnMaximize.Name = "btnMaximize"; this.btnMaximize.WidthRequest = 22; this.btnMaximize.HeightRequest = 22; this.btnMaximize.CanFocus = false; this.hboxTitleBar.PackStart (this.btnMaximize, false, false, 0); this.btnClose = new Gtk.Button (); this.btnClose.Name = "btnClose"; this.btnClose.WidthRequest = 22; this.btnClose.HeightRequest = 22; this.btnClose.CanFocus = false; this.hboxTitleBar.PackStart (this.btnClose, false, false, 0); this.btnMinimize.Image = new Gtk.Image(Assembly.GetExecutingAssembly(), ThemeHelper.minimizeBtnId); this.btnMinimize.SetAlignment(0.5f, 0.5f); this.btnMaximize.Image = new Gtk.Image(Assembly.GetExecutingAssembly(), ThemeHelper.maximizeBtnId); this.btnMaximize.SetAlignment(0.5f, 0.5f); this.btnClose.Image = new Gtk.Image(Assembly.GetExecutingAssembly(), ThemeHelper.closeBtnId); this.btnClose.SetAlignment(0.5f, 0.5f); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Gedcom.UI.GTK.FileSelectorDialog this.Events = ((Gdk.EventMask)(256)); this.Name = "Gedcom.UI.GTK.FileSelectorDialog"; this.Title = Mono.Unix.Catalog.GetString("FileSelectorDialog"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.DestroyWithParent = true; this.HasSeparator = false; // Internal child Gedcom.UI.GTK.FileSelectorDialog.VBox Gtk.VBox w1 = this.VBox; w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; w1.Spacing = 6; w1.BorderWidth = ((uint)(2)); // Internal child Gedcom.UI.GTK.FileSelectorDialog.ActionArea Gtk.HButtonBox w2 = this.ActionArea; w2.Events = ((Gdk.EventMask)(256)); w2.Name = "Gedcom.UI.GTK.FileSelectorDialog_ActionArea"; w2.Spacing = 6; w2.BorderWidth = ((uint)(5)); w2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child Gedcom.UI.GTK.FileSelectorDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button49 = new Gtk.Button(); this.button49.CanDefault = true; this.button49.CanFocus = true; this.button49.Name = "button49"; this.button49.UseStock = true; this.button49.UseUnderline = true; this.button49.Label = "gtk-cancel"; this.AddActionWidget(this.button49, -6); Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[this.button49])); w3.Expand = false; w3.Fill = false; // Container child Gedcom.UI.GTK.FileSelectorDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.ActionButton = new Gtk.Button(); this.ActionButton.CanDefault = true; this.ActionButton.CanFocus = true; this.ActionButton.Name = "ActionButton"; this.ActionButton.UseStock = true; this.ActionButton.UseUnderline = true; this.ActionButton.Label = "gtk-open"; this.AddActionWidget(this.ActionButton, 0); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[this.ActionButton])); w4.Position = 1; w4.Expand = false; w4.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 612; this.DefaultHeight = 159; this.Show(); this.Response += new Gtk.ResponseHandler(this.OnResponse); }
public void createGui() { basedir_section=new Section("cuesheets-basedir","CueSheet Music Directory:",20); source_page.Add (basedir_section); string dir=_source.getCueSheetDir(); Gtk.Label lbl=new Gtk.Label("CueSheet Music Directory:"); Gtk.FileChooserButton btn=new Gtk.FileChooserButton("CueSheet Music Directory:",Gtk.FileChooserAction.SelectFolder); if (dir!=null) { btn.SelectFilename (dir); } Gtk.HBox box=new Gtk.HBox(); box.Add (lbl); box.Add (btn); box.ShowAll (); btn.CurrentFolderChanged+=delegate(object sender,EventArgs args) { string dir1=btn.Filename; Hyena.Log.Information ("Folder changed to = "+dir1); }; btn.FileSet+=delegate(object sender,EventArgs args) { string dir1=btn.Filename; Hyena.Log.Information ("Base directory changed to = "+dir1); _source.setCueSheetDir(dir1); }; Console.WriteLine (_source); Gtk.VBox vb=new Gtk.VBox(); vb.PackStart (box,false,false,0); Gtk.Image icn_about=new Gtk.Image(Gtk.Stock.About,Gtk.IconSize.Button); Gtk.Button about=new Gtk.Button(icn_about); about.Clicked+=new EventHandler(handleAbout); Gtk.HBox hb=new Gtk.HBox(); Gtk.Label _about=new Gtk.Label("About the CueSheet extension"); hb.PackEnd (about,false,false,0); hb.PackEnd (_about,false,false,5); vb.PackStart (hb,false,false,0); Gtk.HBox hb1=new Gtk.HBox(); Gtk.Label _info=new Gtk.Label("How to use the Cuesheet extension (opens browser)"); Gtk.Image icn_info=new Gtk.Image(Gtk.Stock.Info,Gtk.IconSize.Button); Gtk.Button btn_info=new Gtk.Button(icn_info); btn_info.Clicked+=new EventHandler(handleInfo); hb1.PackEnd(btn_info,false,false,0); hb1.PackEnd(_info,false,false,5); vb.PackStart (hb1,false,false,0); Gtk.HBox hbX=new Gtk.HBox(); vb.PackEnd (hbX,true,true,0); vb.ShowAll (); source_page.DisplayWidget = vb; }
private void BuildFileNameGroup(Gtk.HBox hbFileName) { this.btOpen = new Gtk.Button( Gtk.Stock.Open ); this.edFileName = new Gtk.Entry(); this.edFileName.IsEditable = false; this.btOpen.Clicked += (sender, e) => this.OnOpen(); hbFileName.PackStart( this.edFileName, true, true, 5 ); hbFileName.PackStart( this.btOpen, false, false, 5 ); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ImageDialog this.Name = "ocmgtk.ImageDialog"; this.Title = Mono.Unix.Catalog.GetString("Image"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child ocmgtk.ImageDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w2 = new Gtk.Viewport(); w2.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.image = new Gtk.Image(); this.image.Name = "image"; w2.Add(this.image); this.scrolledwindow1.Add(w2); w1.Add(this.scrolledwindow1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1])); w5.Position = 0; // Internal child ocmgtk.ImageDialog.ActionArea Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-close"; this.AddActionWidget(this.buttonOk, -7); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); w7.Expand = false; w7.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.buttonOk.Clicked += new System.EventHandler(this.OnCloseClick); }
protected override Gtk.Widget CreateWidget(WindowContext context) { Gtk.Button btn; if(Child != null) { btn = new Gtk.Button(Child.Build(context)); btn.ImagePosition = Gtk.PositionType.Left; } else btn = new Gtk.Button(); return btn; }
public DockletTile (string addinID, AbstractDockItemProvider provider) { Addin = PluginManager.AddinFromID (addinID); Provider = provider; SubDescriptionTitle = Catalog.GetString ("Author"); Enabled = Addin.Enabled; Name = Addin.Name; Description = Addin.Description.Description; SubDescriptionText = Addin.Description.Author; Icon = PluginManager.DefaultPluginIcon; if (PluginManager.AddinMetadata [Addin].ContainsKey ("icon")) { if (PluginManager.AddinMetadata [Addin] ["icon"].Contains ("@")) ForcePixbuf = DockServices.Drawing.LoadIcon (PluginManager.AddinMetadata [Addin] ["icon"], 128, -1); else Icon = string.Format ("{0};;{1}", PluginManager.AddinMetadata [Addin] ["icon"], Icon); } HelpButton = new Gtk.Button (); HelpButton.Image = new Gtk.Image (Gtk.Stock.Help, Gtk.IconSize.SmallToolbar); HelpButton.Clicked += HandleHelpButtonClicked; ConfigButton = new Gtk.Button (); ConfigButton.Image = new Gtk.Image (Gtk.Stock.Preferences, Gtk.IconSize.SmallToolbar); ConfigButton.Clicked += HandleConfigButtonClicked; UpButton = new Gtk.Button (); UpButton.Clicked += HandleUpButtonClicked; DownButton = new Gtk.Button (); DownButton.Clicked += HandleDownButtonClicked; UpdateInfo (); if (ConfigurationWindow.Instance.ActiveDock.Preferences.IsVertical) { UpButton.Image = new Gtk.Image (Gtk.Stock.GoUp, Gtk.IconSize.SmallToolbar); DownButton.Image = new Gtk.Image (Gtk.Stock.GoDown, Gtk.IconSize.SmallToolbar); UpButton.TooltipMarkup = Catalog.GetString ("Move this docklet up on the selected dock"); DownButton.TooltipMarkup = Catalog.GetString ("Move this docklet down on the selected dock"); } else { UpButton.Image = new Gtk.Image (Gtk.Stock.GoBack, Gtk.IconSize.SmallToolbar); DownButton.Image = new Gtk.Image (Gtk.Stock.GoForward, Gtk.IconSize.SmallToolbar); UpButton.TooltipMarkup = Catalog.GetString ("Move this docklet left on the selected dock"); DownButton.TooltipMarkup = Catalog.GetString ("Move this docklet right on the selected dock"); } ConfigButton.TooltipMarkup = Catalog.GetString ("Configure this docklet"); HelpButton.TooltipMarkup = Catalog.GetString ("About this docklet"); AddButtonTooltip = Catalog.GetString ("Add this docklet to the selected dock"); RemoveButtonTooltip = Catalog.GetString ("Remove this docklet from the selected dock"); }
protected MultipleObjectViewer(IBroadcaster hub, string caption) : base(false, 0) { _hub = hub; // --- first line: caption and buttons Gtk.HBox hbxFirstLine = new Gtk.HBox(false, 2); // Caption label Gtk.Alignment labelAlign = new Gtk.Alignment(0F, 0F, 1F, 1F); labelAlign.Add(new Gtk.Label(caption)); hbxFirstLine.PackStart(labelAlign, false, false, 0); hbxFirstLine.PackStart(new Gtk.Label(String.Empty), true, true, 0); // "Add" button Gtk.Image image = new Gtk.Image(); image.Stock = Gtk.Stock.Add; _btnAdd = new Gtk.Button(); _btnAdd.Add(image); _btnAdd.Relief = Gtk.ReliefStyle.None; _btnAdd.Clicked += new EventHandler(OnAddButtonClicked); _btnAdd.Sensitive = false; hbxFirstLine.PackStart(_btnAdd, false, false, 0); // "Edit" button image = new Gtk.Image(); image.Stock = Gtk.Stock.JumpTo; _btnEdit = new Gtk.Button(); _btnEdit.Add(image); _btnEdit.Relief = Gtk.ReliefStyle.None; _btnEdit.Clicked += new EventHandler(OnEditButtonClicked); _btnEdit.Sensitive = false; hbxFirstLine.PackStart(_btnEdit, false, false, 0); // "Delete" button image = new Gtk.Image(); image.Stock = Gtk.Stock.Remove; _btnDelete = new Gtk.Button(); _btnDelete.Add(image); _btnDelete.Relief = Gtk.ReliefStyle.None; _btnDelete.Clicked += new EventHandler(OnDeleteButtonClicked); _btnDelete.Sensitive = false; hbxFirstLine.PackStart(_btnDelete, false, false, 0); base.PackStart(hbxFirstLine, false, false, 0); // --- second line: element list _store = new Gtk.TreeStore(typeof(string)); _tvList = new Gtk.TreeView(); _tvList.HeadersVisible = false; _tvList.AppendColumn("", new Gtk.CellRendererText(), "text", 0); _tvList.Model = _store; _tvList.FocusInEvent += new Gtk.FocusInEventHandler(EnableButtons); _tvList.ButtonPressEvent += new Gtk.ButtonPressEventHandler(ListClickedHandler); Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow(); sw.ShadowType = Gtk.ShadowType.In; sw.Add(_tvList); base.PackStart(sw, true, true, 0); sw.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.ProgressDialog this.Name = "Pinta.ProgressDialog"; this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child Pinta.ProgressDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = Mono.Unix.Catalog.GetString("label2"); w1.Add(this.label); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.label])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.progress_bar = new Gtk.ProgressBar(); this.progress_bar.Name = "progress_bar"; w1.Add(this.progress_bar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.progress_bar])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Internal child Pinta.ProgressDialog.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 10; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 114; this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ChangeHistory this.Name = "ocmgtk.ChangeHistory"; this.Title = Mono.Unix.Catalog.GetString("Change History..."); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 500; this.DefaultHeight = 400; // Internal child ocmgtk.ChangeHistory.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.textView = new Gtk.TextView(); this.textView.CanFocus = true; this.textView.Name = "textView"; this.textView.Editable = false; this.scrolledwindow1.Add(this.textView); w1.Add(this.scrolledwindow1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1])); w3.Position = 0; // Internal child ocmgtk.ChangeHistory.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 10; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk])); w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.buttonOk.HasDefault = true; this.Show(); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Banshee.Lirc.ConfigDialog this.Name = "Banshee.Lirc.ConfigDialog"; this.Title = Mono.Unix.Catalog.GetString("dialog1"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child Banshee.Lirc.ConfigDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Internal child Banshee.Lirc.ConfigDialog.ActionArea Gtk.HButtonBox w2 = this.ActionArea; w2.Name = "dialog1_ActionArea"; w2.Spacing = 6; w2.BorderWidth = ((uint)(5)); w2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[this.buttonCancel])); w3.Expand = false; w3.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[this.buttonOk])); w4.Position = 1; w4.Expand = false; w4.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancel); this.buttonOk.Clicked += new System.EventHandler(this.OnOk); }
public DatePicker(DateTime datetime, bool nodatebutton) : this(datetime) { NoDateButton = nodatebutton; if (NoDateButton) { Gtk.Button btn = new Gtk.Button("None"); btn.Clicked += HandleNoneClicked; btn.Visible = true; VBox.PackEnd(btn,true,true,0); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.TaskForce.LocalProvider.Gui.NewCategory this.Name = "MonoDevelop.TaskForce.LocalProvider.Gui.NewCategory"; this.Title = Mono.Unix.Catalog.GetString("NewCategory"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MonoDevelop.TaskForce.LocalProvider.Gui.NewCategory.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.vbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.categoryName = new Gtk.Entry(); this.categoryName.CanFocus = true; this.categoryName.Name = "categoryName"; this.categoryName.IsEditable = true; this.categoryName.InvisibleChar = '●'; this.vbox1.Add(this.categoryName); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.categoryName])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = Mono.Unix.Catalog.GetString("button1"); this.vbox1.Add(this.button1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.button1])); w3.Position = 2; w3.Expand = false; w3.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget Stetic.BinContainer.Attach(this); this.Name = "MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget"; // Container child MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.Gtk.Container+ContainerChild this.hpaned = new Gtk.HPaned(); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 293; // Container child hpaned.Gtk.Paned+PanedChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.windowPK = new Gtk.ScrolledWindow(); this.windowPK.CanFocus = true; this.windowPK.Name = "windowPK"; this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.windowPK.ShadowType = ((Gtk.ShadowType)(1)); // Container child windowPK.Gtk.Container+ContainerChild this.listPK = new Gtk.TreeView(); this.listPK.CanFocus = true; this.listPK.Name = "listPK"; this.listPK.HeadersClickable = true; this.windowPK.Add(this.listPK); this.vbox3.Add(this.windowPK); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK])); w2.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbuttonbox = new Gtk.HButtonBox(); this.hbuttonbox.Name = "hbuttonbox"; this.hbuttonbox.Spacing = 6; this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3)); // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new Gtk.Button(); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.hbuttonbox.Add(this.buttonAdd); Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new Gtk.Button(); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.hbuttonbox.Add(this.buttonRemove); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox3.Add(this.hbuttonbox); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.hpaned.Add(this.vbox3); Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3])); w6.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.columnSelecter = new MonoDevelop.Database.Components.SelectColumnWidget(); this.columnSelecter.Sensitive = false; this.columnSelecter.CanFocus = true; this.columnSelecter.Name = "columnSelecter"; this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.columnSelecter.ShadowType = ((Gtk.ShadowType)(1)); this.columnSelecter.SingleCheck = false; this.hpaned.Add(this.columnSelecter); this.Add(this.hpaned); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.buttonAdd.Clicked += new System.EventHandler(this.AddClicked); this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Confluence.ConfluenceConfigWidget Stetic.BinContainer.Attach(this); this.Name = "Confluence.ConfluenceConfigWidget"; // Container child Confluence.ConfluenceConfigWidget.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this._entryBaseUrl = new Gtk.Entry(); this._entryBaseUrl.TooltipMarkup = "The base url location to your Confluence install. ie. http://opensource.atlassian.com/confluence/spring"; this._entryBaseUrl.CanFocus = true; this._entryBaseUrl.Name = "_entryBaseUrl"; this._entryBaseUrl.Text = Mono.Addins.AddinManager.CurrentLocalizer.GetString("http://opensource.atlassian.com/confluence/spring"); this._entryBaseUrl.IsEditable = true; this._entryBaseUrl.WidthChars = 40; this._entryBaseUrl.InvisibleChar = '●'; this.table1.Add(this._entryBaseUrl); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this._entryBaseUrl])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._entryMaxSearchResults = new Gtk.Entry(); this._entryMaxSearchResults.CanFocus = true; this._entryMaxSearchResults.Name = "_entryMaxSearchResults"; this._entryMaxSearchResults.IsEditable = true; this._entryMaxSearchResults.InvisibleChar = '●'; this.table1.Add(this._entryMaxSearchResults); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this._entryMaxSearchResults])); w2.TopAttach = ((uint)(3)); w2.BottomAttach = ((uint)(4)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._entryPassword = new Gtk.Entry(); this._entryPassword.CanFocus = true; this._entryPassword.Name = "_entryPassword"; this._entryPassword.IsEditable = true; this._entryPassword.Visibility = false; this._entryPassword.InvisibleChar = '●'; this.table1.Add(this._entryPassword); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this._entryPassword])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._entryUsername = new Gtk.Entry(); this._entryUsername.CanFocus = true; this._entryUsername.Name = "_entryUsername"; this._entryUsername.Text = Mono.Addins.AddinManager.CurrentLocalizer.GetString("username1"); this._entryUsername.IsEditable = true; this._entryUsername.InvisibleChar = '●'; this.table1.Add(this._entryUsername); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this._entryUsername])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._labelBaseUrl = new Gtk.Label(); this._labelBaseUrl.Name = "_labelBaseUrl"; this._labelBaseUrl.LabelProp = "* denotes a required field"; this.table1.Add(this._labelBaseUrl); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this._labelBaseUrl])); w5.TopAttach = ((uint)(5)); w5.BottomAttach = ((uint)(6)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._labelBaseUrl1 = new Gtk.Label(); this._labelBaseUrl1.Name = "_labelBaseUrl1"; this._labelBaseUrl1.LabelProp = "Base Url*"; this.table1.Add(this._labelBaseUrl1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this._labelBaseUrl1])); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._labelMaxSearchResults = new Gtk.Label(); this._labelMaxSearchResults.Name = "_labelMaxSearchResults"; this._labelMaxSearchResults.LabelProp = "Max Search Results"; this.table1.Add(this._labelMaxSearchResults); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this._labelMaxSearchResults])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._labelPassword = new Gtk.Label(); this._labelPassword.Name = "_labelPassword"; this._labelPassword.LabelProp = "Password"; this.table1.Add(this._labelPassword); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this._labelPassword])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._labelUsername = new Gtk.Label(); this._labelUsername.Name = "_labelUsername"; this._labelUsername.LabelProp = "Username"; this.table1.Add(this._labelUsername); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this._labelUsername])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this._saveButton = new Gtk.Button(); this._saveButton.CanFocus = true; this._saveButton.Name = "_saveButton"; this._saveButton.UseUnderline = true; this._saveButton.Xalign = 0F; this._saveButton.Label = "Save"; this.table1.Add(this._saveButton); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this._saveButton])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(0)); w10.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this._saveButton.Released += new System.EventHandler(this.OnSaveButtonReleased); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget tryServer.frmUsers this.Name = "tryServer.frmUsers"; this.Title = Mono.Unix.Catalog.GetString("Users"); this.Modal = true; this.DestroyWithParent = true; // Container child tryServer.frmUsers.Gtk.Container+ContainerChild this.fixed1 = new Gtk.Fixed(); this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Instance"); this.fixed1.Add(this.label1); Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label1])); w1.X = 210; w1.Y = 30; // Container child fixed1.Gtk.Fixed+FixedChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("File"); this.fixed1.Add(this.label2); Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label2])); w2.X = 210; w2.Y = 70; // Container child fixed1.Gtk.Fixed+FixedChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("User"); this.fixed1.Add(this.label3); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label3])); w3.X = 210; w3.Y = 130; // Container child fixed1.Gtk.Fixed+FixedChild this.lblFile = new Gtk.Entry(); this.lblFile.CanFocus = true; this.lblFile.Name = "lblFile"; this.lblFile.IsEditable = false; this.lblFile.InvisibleChar = '●'; this.fixed1.Add(this.lblFile); Gtk.Fixed.FixedChild w4 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.lblFile])); w4.X = 300; w4.Y = 65; // Container child fixed1.Gtk.Fixed+FixedChild this.txtUser = new Gtk.Entry(); this.txtUser.CanFocus = true; this.txtUser.Name = "txtUser"; this.txtUser.IsEditable = true; this.txtUser.InvisibleChar = '●'; this.fixed1.Add(this.txtUser); Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtUser])); w5.X = 300; w5.Y = 125; // Container child fixed1.Gtk.Fixed+FixedChild this.image107 = new Gtk.Image(); this.image107.Name = "image107"; this.image107.Pixbuf = Gdk.Pixbuf.LoadFromResource("User.png"); this.fixed1.Add(this.image107); Gtk.Fixed.FixedChild w6 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.image107])); w6.X = 4; w6.Y = 32; // Container child fixed1.Gtk.Fixed+FixedChild this.lblServer = new Gtk.Entry(); this.lblServer.CanFocus = true; this.lblServer.Name = "lblServer"; this.lblServer.IsEditable = false; this.lblServer.InvisibleChar = '●'; this.fixed1.Add(this.lblServer); Gtk.Fixed.FixedChild w7 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.lblServer])); w7.X = 300; w7.Y = 25; // Container child fixed1.Gtk.Fixed+FixedChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.fixed1.Add(this.label4); Gtk.Fixed.FixedChild w8 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label4])); w8.X = 210; w8.Y = 170; // Container child fixed1.Gtk.Fixed+FixedChild this.txtPassword = new Gtk.Entry(); this.txtPassword.CanFocus = true; this.txtPassword.Name = "txtPassword"; this.txtPassword.IsEditable = true; this.txtPassword.Visibility = false; this.txtPassword.InvisibleChar = '●'; this.fixed1.Add(this.txtPassword); Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtPassword])); w9.X = 300; w9.Y = 165; // Container child fixed1.Gtk.Fixed+FixedChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.WidthRequest = 300; this.hseparator1.Name = "hseparator1"; this.fixed1.Add(this.hseparator1); Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hseparator1])); w10.X = 184; w10.Y = 102; // Container child fixed1.Gtk.Fixed+FixedChild this.btnCancel = new Gtk.Button(); this.btnCancel.WidthRequest = 80; this.btnCancel.CanFocus = true; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseUnderline = true; this.btnCancel.Label = Mono.Unix.Catalog.GetString("Cancel"); this.fixed1.Add(this.btnCancel); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.btnCancel])); w11.X = 378; w11.Y = 244; // Container child fixed1.Gtk.Fixed+FixedChild this.btnOk = new Gtk.Button(); this.btnOk.WidthRequest = 80; this.btnOk.CanFocus = true; this.btnOk.Name = "btnOk"; this.btnOk.UseUnderline = true; this.btnOk.Label = Mono.Unix.Catalog.GetString("Ok"); this.fixed1.Add(this.btnOk); Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.btnOk])); w12.X = 270; w12.Y = 245; this.Add(this.fixed1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 506; this.DefaultHeight = 344; this.Show(); this.btnCancel.Clicked += new System.EventHandler(this.OnBtnCancelClicked); this.btnOk.Clicked += new System.EventHandler(this.OnBtnOkClicked); }
public FeedbackDialog(int x, int y) : base(Gtk.WindowType.Toplevel) { SetDefaultSize(350, 200); Move(x - 350, y - 200); mainFrame = new Gtk.Frame(); mainBox = new Gtk.VBox(); mainBox.BorderWidth = 12; mainBox.Spacing = 6; headerBox = new Gtk.HBox(); mailEntry = new EntryWithEmptyMessage(); mailEntry.EmptyMessage = GettextCatalog.GetString("email address"); Decorated = false; mainFrame.ShadowType = Gtk.ShadowType.Out; // Header headerBox.Spacing = 6; mailLabel = new Gtk.Label(); headerBox.PackStart(mailLabel, false, false, 0); Gtk.Button changeButton = new Gtk.Button("(Change)"); changeButton.Relief = Gtk.ReliefStyle.None; headerBox.PackStart(changeButton, false, false, 0); changeButton.Clicked += HandleChangeButtonClicked; mainBox.PackStart(headerBox, false, false, 0); mainBox.PackStart(mailEntry, false, false, 0); mailWarningLabel = new Gtk.Label(GettextCatalog.GetString("Please enter a valid e-mail address")); mailWarningLabel.Xalign = 0; mainBox.PackStart(mailWarningLabel, false, false, 0); // Body textEntry = new TextViewWithEmptyMessage(); textEntry.EmptyMessage = GettextCatalog.GetString("Tell us how we can make MonoDevelop better."); textEntry.AcceptsTab = false; textEntry.WrapMode = Gtk.WrapMode.Word; textEntry.WidthRequest = 300; var sw = new Gtk.ScrolledWindow(); sw.ShadowType = Gtk.ShadowType.In; sw.VscrollbarPolicy = Gtk.PolicyType.Automatic; sw.HscrollbarPolicy = Gtk.PolicyType.Never; sw.Add(textEntry); mainBox.PackStart(sw, true, true, 0); bodyWarningLabel = new Gtk.Label(GettextCatalog.GetString("Please enter some feedback")); bodyWarningLabel.Xalign = 0; mainBox.PackStart(bodyWarningLabel, false, false, 0); // Bottom Gtk.HBox bottomBox = new Gtk.HBox(false, 6); Gtk.Label countLabel = new Gtk.Label(); countLabel.Xalign = 0; bottomBox.PackStart(countLabel, false, false, 0); Gtk.Button sendButton = new Gtk.Button(GettextCatalog.GetString("Send Feedback")); sendButton.Clicked += HandleSendButtonClicked; bottomBox.PackEnd(sendButton, false, false, 0); mainBox.PackStart(bottomBox, false, false, 0); // Init mainBox.ShowAll(); mailWarningLabel.Hide(); bodyWarningLabel.Hide(); string mail = FeedbackService.ReporterEMail; if (string.IsNullOrEmpty(mail)) { mail = AuthorInformation.Default.Email; } if (string.IsNullOrEmpty(mail)) { headerBox.Hide(); mailEntry.GrabFocus(); } else { mailEntry.Text = mail; mailEntry.Hide(); mailLabel.Text = GettextCatalog.GetString("From: {0}", mail); textEntry.GrabFocus(); } if (FeedbackService.FeedbacksSent > 0) { countLabel.Text = GettextCatalog.GetString("Your feedbacks: {0}", FeedbackService.FeedbacksSent); } else { countLabel.Hide(); } mainFrame.Show(); mainFrame.Add(mainBox); Add(mainFrame); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.DeleteItem this.WidthRequest = 300; this.Name = "ocmgtk.DeleteItem"; this.Title = Mono.Unix.Catalog.GetString("Delete Bookmark List..."); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child ocmgtk.DeleteItem.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Bookmark List:"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.bmrkCombo = Gtk.ComboBox.NewText(); this.bmrkCombo.Name = "bmrkCombo"; this.hbox1.Add(this.bmrkCombo); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.bmrkCombo])); w3.Position = 1; w1.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Internal child ocmgtk.DeleteItem.ActionArea Gtk.HButtonBox w5 = this.ActionArea; w5.Name = "dialog1_ActionArea"; w5.Spacing = 10; w5.BorderWidth = ((uint)(5)); w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel])); w6.Expand = false; w6.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk])); w7.Position = 1; w7.Expand = false; w7.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 354; this.DefaultHeight = 123; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnOKClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Addins.Gui.ManageSitesDialog this.Name = "Mono.Addins.Gui.ManageSitesDialog"; this.Title = Mono.Unix.Catalog.GetString("Extension Repository Management"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.BorderWidth = ((uint)(6)); this.DefaultWidth = 600; this.DefaultHeight = 300; // Internal child Mono.Addins.Gui.ManageSitesDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog-vbox10"; w1.Spacing = 6; // Container child dialog-vbox10.Gtk.Box+BoxChild this.hbox67 = new Gtk.HBox(); this.hbox67.Name = "hbox67"; this.hbox67.Spacing = 12; this.hbox67.BorderWidth = ((uint)(6)); // Container child hbox67.Gtk.Box+BoxChild this.scrolledwindow17 = new Gtk.ScrolledWindow(); this.scrolledwindow17.CanFocus = true; this.scrolledwindow17.Name = "scrolledwindow17"; this.scrolledwindow17.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow17.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow17.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow17.Gtk.Container+ContainerChild this.repoTree = new Gtk.TreeView(); this.repoTree.CanFocus = true; this.repoTree.Name = "repoTree"; this.repoTree.HeadersVisible = false; this.repoTree.HeadersClickable = true; this.scrolledwindow17.Add(this.repoTree); this.hbox67.Add(this.scrolledwindow17); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox67[this.scrolledwindow17])); w3.Position = 0; // Container child hbox67.Gtk.Box+BoxChild this.vbox88 = new Gtk.VBox(); this.vbox88.Name = "vbox88"; this.vbox88.Spacing = 6; // Container child vbox88.Gtk.Box+BoxChild this.btnAdd = new Gtk.Button(); this.btnAdd.CanFocus = true; this.btnAdd.Name = "btnAdd"; this.btnAdd.UseStock = true; this.btnAdd.UseUnderline = true; this.btnAdd.Label = "gtk-add"; this.vbox88.Add(this.btnAdd); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox88[this.btnAdd])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox88.Gtk.Box+BoxChild this.btnRemove = new Gtk.Button(); this.btnRemove.CanFocus = true; this.btnRemove.Name = "btnRemove"; this.btnRemove.UseStock = true; this.btnRemove.UseUnderline = true; this.btnRemove.Label = "gtk-delete"; this.vbox88.Add(this.btnRemove); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox88[this.btnRemove])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.hbox67.Add(this.vbox88); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox67[this.vbox88])); w6.Position = 1; w6.Expand = false; w6.Fill = false; w1.Add(this.hbox67); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.hbox67])); w7.Position = 0; // Internal child Mono.Addins.Gui.ManageSitesDialog.ActionArea Gtk.HButtonBox w8 = this.ActionArea; w8.Name = "dialog-action_area10"; w8.Spacing = 10; w8.BorderWidth = ((uint)(6)); w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog-action_area10.Gtk.ButtonBox+ButtonBoxChild this.closebutton2 = new Gtk.Button(); this.closebutton2.CanDefault = true; this.closebutton2.CanFocus = true; this.closebutton2.Name = "closebutton2"; this.closebutton2.UseStock = true; this.closebutton2.UseUnderline = true; this.closebutton2.Label = "gtk-close"; this.AddActionWidget(this.closebutton2, -7); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.btnAdd.Clicked += new System.EventHandler(this.OnAdd); this.btnRemove.Clicked += new System.EventHandler(this.OnRemove); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget mperfmon.Preferences this.Name = "mperfmon.Preferences"; this.Title = Mono.Unix.Catalog.GetString("Mono Perf Monitor preferences"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child mperfmon.Preferences.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Update interval (seconds):"); this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.update_interval = new Gtk.SpinButton(0.2, 60, 0.2); this.update_interval.CanFocus = true; this.update_interval.Name = "update_interval"; this.update_interval.Adjustment.PageIncrement = 1; this.update_interval.Adjustment.PageSize = 1; this.update_interval.ClimbRate = 1; this.update_interval.Digits = ((uint)(1)); this.update_interval.Numeric = true; this.update_interval.SnapToTicks = true; this.update_interval.Value = 1; this.table1.Add(this.update_interval); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.update_interval])); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.table1])); w4.Position = 0; // Internal child mperfmon.Preferences.ActionArea Gtk.HButtonBox w5 = this.ActionArea; w5.Name = "dialog1_ActionArea"; w5.Spacing = 6; w5.BorderWidth = ((uint)(5)); w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel])); w6.Expand = false; w6.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk])); w7.Position = 1; w7.Expand = false; w7.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 290; this.DefaultHeight = 248; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Jeton.NumericInputDialog this.Name = "Jeton.NumericInputDialog"; this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(8)); this.HasSeparator = false; // Internal child Jeton.NumericInputDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild this.infoLabel = new Gtk.Label(); this.infoLabel.Name = "infoLabel"; this.infoLabel.LabelProp = Mono.Unix.Catalog.GetString("Zahleneingabe"); this.infoLabel.UseMarkup = true; this.vbox2.Add(this.infoLabel); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.infoLabel])); w2.Position = 0; w2.Expand = false; w2.Fill = false; w2.Padding = ((uint)(4)); // Container child vbox2.Gtk.Box+BoxChild this.valueLabel = new Gtk.Label(); this.valueLabel.Name = "valueLabel"; this.valueLabel.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"xx-large\"><b>0.00€</b></span>"); this.valueLabel.UseMarkup = true; this.vbox2.Add(this.valueLabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.valueLabel])); w3.Position = 1; w3.Expand = false; w3.Fill = false; w3.Padding = ((uint)(8)); // Container child vbox2.Gtk.Box+BoxChild this.ButtonTable = new Gtk.Table(((uint)(4)), ((uint)(3)), true); this.ButtonTable.Name = "ButtonTable"; this.ButtonTable.RowSpacing = ((uint)(6)); this.ButtonTable.ColumnSpacing = ((uint)(6)); this.ButtonTable.BorderWidth = ((uint)(6)); this.vbox2.Add(this.ButtonTable); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.ButtonTable])); w4.Position = 2; // Container child vbox2.Gtk.Box+BoxChild this.hseparator4 = new Gtk.HSeparator(); this.hseparator4.HeightRequest = 14; this.hseparator4.Name = "hseparator4"; this.vbox2.Add(this.hseparator4); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hseparator4])); w5.Position = 3; w5.Expand = false; w5.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w6.Position = 0; // Internal child Jeton.NumericInputDialog.ActionArea Gtk.HButtonBox w7 = this.ActionArea; w7.Name = "dialog1_ActionArea"; w7.Spacing = 6; w7.BorderWidth = ((uint)(5)); w7.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button354 = new Gtk.Button(); this.button354.CanFocus = true; this.button354.Name = "button354"; this.button354.UseStock = true; this.button354.UseUnderline = true; this.button354.Label = "gtk-cancel"; this.AddActionWidget(this.button354, -6); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.button354])); w8.Expand = false; w8.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button353 = new Gtk.Button(); this.button353.WidthRequest = 120; this.button353.HeightRequest = 80; this.button353.CanFocus = true; this.button353.Name = "button353"; this.button353.UseStock = true; this.button353.UseUnderline = true; this.button353.Label = "gtk-ok"; this.AddActionWidget(this.button353, -5); Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.button353])); w9.Position = 1; w9.Expand = false; w9.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 424; this.DefaultHeight = 300; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.FieldNotesProgress this.WidthRequest = 450; this.Name = "ocmgtk.FieldNotesProgress"; this.Title = Mono.Unix.Catalog.GetString("Receiving Field Notes"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child ocmgtk.FieldNotesProgress.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Receiving Field Notes</b></big>"); this.label2.UseMarkup = true; this.vbox2.Add(this.label2); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.loadProgress = new Gtk.ProgressBar(); this.loadProgress.Name = "loadProgress"; this.vbox2.Add(this.loadProgress); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.loadProgress])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.statusLabel = new Gtk.Label(); this.statusLabel.Name = "statusLabel"; this.statusLabel.Xalign = 0F; this.statusLabel.LabelProp = Mono.Unix.Catalog.GetString("<i>Initializing</i>"); this.statusLabel.UseMarkup = true; this.vbox2.Add(this.statusLabel); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusLabel])); w4.Position = 2; w4.Expand = false; w4.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Internal child ocmgtk.FieldNotesProgress.ActionArea Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonView = new Gtk.Button(); this.buttonView.CanFocus = true; this.buttonView.Name = "buttonView"; this.buttonView.UseUnderline = true; this.buttonView.Label = Mono.Unix.Catalog.GetString("View Field Notes..."); this.AddActionWidget(this.buttonView, 0); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonView])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonClose = new Gtk.Button(); this.buttonClose.CanDefault = true; this.buttonClose.CanFocus = true; this.buttonClose.Name = "buttonClose"; this.buttonClose.UseStock = true; this.buttonClose.UseUnderline = true; this.buttonClose.Label = "gtk-close"; this.AddActionWidget(this.buttonClose, -7); Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonClose])); w9.Position = 2; w9.Expand = false; w9.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 462; this.DefaultHeight = 150; this.buttonView.Hide(); this.buttonClose.Hide(); this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick); this.buttonView.Clicked += new System.EventHandler(this.OnViewClick); this.buttonClose.Clicked += new System.EventHandler(this.OnCloseClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Dropbox.DropboxConfig Stetic.BinContainer.Attach(this); this.Name = "Dropbox.DropboxConfig"; // Container child Dropbox.DropboxConfig.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(2)); this.GtkAlignment.TopPadding = ((uint)(8)); this.GtkAlignment.RightPadding = ((uint)(8)); this.GtkAlignment.BottomPadding = ((uint)(8)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.base_path_entry = new Gtk.Entry(); this.base_path_entry.Sensitive = false; this.base_path_entry.CanFocus = true; this.base_path_entry.Name = "base_path_entry"; this.base_path_entry.IsEditable = false; this.base_path_entry.InvisibleChar = '●'; this.hbox2.Add(this.base_path_entry); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.base_path_entry])); w1.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.base_path_button = new Gtk.Button(); this.base_path_button.CanFocus = true; this.base_path_button.Name = "base_path_button"; this.base_path_button.UseStock = true; this.base_path_button.UseUnderline = true; this.base_path_button.Label = "gtk-open"; this.hbox2.Add(this.base_path_button); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.base_path_button])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.GtkAlignment.Add(this.hbox2); this.frame2.Add(this.GtkAlignment); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Dropbox Location"); this.GtkLabel1.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel1; this.vbox2.Add(this.frame2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; w5.Padding = ((uint)(5)); this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.base_path_button.Clicked += new System.EventHandler(this.OnBasePathBtnClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ReduceLogsDialog this.Name = "ocmgtk.ReduceLogsDialog"; this.Title = Mono.Unix.Catalog.GetString("Reduce Number of Logs..."); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.BorderWidth = ((uint)(6)); // Internal child ocmgtk.ReduceLogsDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Limit cache to:"); this.hbox2.Add(this.label12); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.label12])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.limitEntry = new Gtk.Entry(); this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = Mono.Unix.Catalog.GetString("10"); this.limitEntry.IsEditable = true; this.limitEntry.WidthChars = 4; this.limitEntry.InvisibleChar = '●'; this.hbox2.Add(this.limitEntry); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox2[this.limitEntry])); w3.Position = 1; w3.Expand = false; // Container child hbox2.Gtk.Box+BoxChild this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("logs"); this.hbox2.Add(this.label13); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.label13])); w4.Position = 2; w4.Expand = false; w4.Fill = false; w1.Add(this.hbox2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.hbox2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; w5.Padding = ((uint)(6)); // Internal child ocmgtk.ReduceLogsDialog.ActionArea Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); w8.Position = 1; w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 349; this.DefaultHeight = 123; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OnOKClicked); }
public RepairRow(int Id, string VehicleType, string VehicleOwner, string Registration, string WorkDescription, string ReceivedDate, Gtk.Button UpdateButton) { this.Id = Id; this.VehicleType = VehicleType; this.VehicleOwner = VehicleOwner; this.Registration = Registration; this.ReceivedDate = ReceivedDate; this.WorkDescription = WorkDescription; this.UpdateButton = UpdateButton; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction, null); this.ExitAction = new Gtk.Action("ExitAction", Mono.Unix.Catalog.GetString("Exit"), null, null); this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w1.Add(this.ExitAction, null); this.SaveResultsAction = new Gtk.Action("SaveResultsAction", Mono.Unix.Catalog.GetString("Save results"), null, null); this.SaveResultsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save results"); w1.Add(this.SaveResultsAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Events = ((Gdk.EventMask)(268)); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Cognitive dynamics test"); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Resizable = false; this.AllowGrow = false; // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='SaveResultsAction' action='SaveResultsAction'/><menuitem name='ExitAction' action='ExitAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.lblProposition = new Gtk.Label(); this.lblProposition.Name = "lblProposition"; this.lblProposition.LabelProp = Mono.Unix.Catalog.GetString(" "); this.lblProposition.Wrap = true; this.lblProposition.Justify = ((Gtk.Justification)(2)); this.vbox1.Add(this.lblProposition); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.lblProposition])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.imgTest = new Gtk.Image(); this.imgTest.CanFocus = true; this.imgTest.Events = ((Gdk.EventMask)(260)); this.imgTest.Name = "imgTest"; this.vbox1.Add(this.imgTest); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.imgTest])); w4.Position = 2; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.cmdStart = new Gtk.Button(); this.cmdStart.CanFocus = true; this.cmdStart.Name = "cmdStart"; this.cmdStart.UseUnderline = true; this.cmdStart.Label = Mono.Unix.Catalog.GetString("Start"); this.hbox1.Add(this.cmdStart); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.cmdStart])); w5.Position = 1; w5.Expand = false; w5.Fill = false; w5.Padding = ((uint)(200)); this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w6.Position = 3; w6.Expand = false; w6.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 475; this.DefaultHeight = 337; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.MotionNotifyEvent += new Gtk.MotionNotifyEventHandler(this.OnMotionNotifyEvent); this.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent); this.ExitAction.Activated += new System.EventHandler(this.OnExitActionActivated); this.SaveResultsAction.Activated += new System.EventHandler(this.OnSaveResultsActionActivated); this.imgTest.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnImgTestButtonPressEvent); this.cmdStart.Clicked += new System.EventHandler(this.OnCmdStartClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.SetupAssistantPage2 Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.SetupAssistantPage2"; // Container child ocmgtk.SetupAssistantPage2.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = ((uint)(6)); // Container child vbox2.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("You should choose an default directory for OCM to store data:"); this.vbox2.Add(this.label4); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label4])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.dataEntry = new Gtk.Entry(); this.dataEntry.CanFocus = true; this.dataEntry.Name = "dataEntry"; this.dataEntry.IsEditable = true; this.dataEntry.InvisibleChar = '•'; this.hbox3.Add(this.dataEntry); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.dataEntry])); w2.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.button10 = new Gtk.Button(); this.button10.CanFocus = true; this.button10.Name = "button10"; // Container child button10.Gtk.Container+ContainerChild this.image3 = new Gtk.Image(); this.image3.Name = "image3"; this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-directory", Gtk.IconSize.Button, 20); this.button10.Add(this.image3); this.button10.Label = null; this.hbox3.Add(this.button10); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.button10])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox2.Add(this.hbox3); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("You will need to create a database to use OCM, or open an existing OCM database if you already have one from somewhere else. "); this.label1.Wrap = true; this.label1.WidthChars = 80; this.vbox2.Add(this.label1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w6.Position = 2; w6.Expand = false; w6.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.dbEntry = new Gtk.Entry(); this.dbEntry.CanFocus = true; this.dbEntry.Name = "dbEntry"; this.dbEntry.IsEditable = true; this.dbEntry.InvisibleChar = '•'; this.hbox1.Add(this.dbEntry); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.dbEntry])); w7.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.openButton = new Gtk.Button(); this.openButton.CanFocus = true; this.openButton.Name = "openButton"; // Container child openButton.Gtk.Container+ContainerChild this.image4 = new Gtk.Image(); this.image4.Name = "image4"; this.image4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.openButton.Add(this.image4); this.openButton.Label = null; this.hbox1.Add(this.openButton); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox1[this.openButton])); w9.Position = 1; w9.Expand = false; w9.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w10.Position = 3; w10.Expand = false; w10.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("OCM should report distances in "); this.table2.Add(this.label2); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table2[this.label2])); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Default map that OCM should use"); this.table2.Add(this.label3); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2[this.label3])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.mapsCombo = Gtk.ComboBox.NewText(); this.mapsCombo.AppendText(Mono.Unix.Catalog.GetString("Open Street Maps")); this.mapsCombo.AppendText(Mono.Unix.Catalog.GetString("Google Hybrid")); this.mapsCombo.AppendText(Mono.Unix.Catalog.GetString("Google Street Maps")); this.mapsCombo.AppendText(Mono.Unix.Catalog.GetString("Google Terrain")); this.mapsCombo.Name = "mapsCombo"; this.mapsCombo.Active = 0; this.table2.Add(this.mapsCombo); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table2[this.mapsCombo])); w13.TopAttach = ((uint)(1)); w13.BottomAttach = ((uint)(2)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.unitsCombo = Gtk.ComboBox.NewText(); this.unitsCombo.AppendText(Mono.Unix.Catalog.GetString("Metric")); this.unitsCombo.AppendText(Mono.Unix.Catalog.GetString("U.S./Imperial")); this.unitsCombo.Name = "unitsCombo"; this.unitsCombo.Active = 0; this.table2.Add(this.unitsCombo); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table2[this.unitsCombo])); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox2[this.table2])); w15.Position = 4; w15.Expand = false; w15.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.dataEntry.Changed += new System.EventHandler(this.OnDefaultDirChanged); this.button10.Clicked += new System.EventHandler(this.OnDirectoryClick); this.openButton.Clicked += new System.EventHandler(this.OnOpenClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget PingFM.Configuration Stetic.BinContainer.Attach(this); this.Name = "PingFM.Configuration"; // Container child PingFM.Configuration.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(1)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(7)); // Container child table1.Gtk.Table+TableChild this.appkey_entry = new Gtk.Entry(); this.appkey_entry.CanFocus = true; this.appkey_entry.Name = "appkey_entry"; this.appkey_entry.IsEditable = true; this.appkey_entry.InvisibleChar = '●'; this.table1.Add(this.appkey_entry); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.appkey_entry])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.appkey_lbl = new Gtk.Label(); this.appkey_lbl.Name = "appkey_lbl"; this.appkey_lbl.Ypad = 5; this.appkey_lbl.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Application Key"); this.table1.Add(this.appkey_lbl); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.appkey_lbl])); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.validate_lbl = new Gtk.Label(); this.validate_lbl.Name = "validate_lbl"; this.validate_lbl.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<i>Verify and save your account information</i>"); this.validate_lbl.UseMarkup = true; this.vbox2.Add(this.validate_lbl); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.validate_lbl])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(1)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.fixed1 = new Gtk.Fixed(); this.fixed1.WidthRequest = 119; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; this.table2.Add(this.fixed1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.fixed1])); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.validate_btn = new Gtk.Button(); this.validate_btn.WidthRequest = 40; this.validate_btn.CanFocus = true; this.validate_btn.Name = "validate_btn"; this.validate_btn.UseStock = true; this.validate_btn.UseUnderline = true; this.validate_btn.BorderWidth = ((uint)(7)); this.validate_btn.Label = "gtk-apply"; this.table2.Add(this.validate_btn); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.validate_btn])); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.table2])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.vbox1.Add(this.vbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox2])); w8.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.info_hbox = new Gtk.HBox(); this.info_hbox.Name = "info_hbox"; this.info_hbox.Spacing = 6; // Container child info_hbox.Gtk.Box+BoxChild this.fixed3 = new Gtk.Fixed(); this.fixed3.Name = "fixed3"; this.fixed3.HasWindow = false; this.info_hbox.Add(this.fixed3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.info_hbox[this.fixed3])); w9.Position = 0; // Container child info_hbox.Gtk.Box+BoxChild this.fixed4 = new Gtk.Fixed(); this.fixed4.Name = "fixed4"; this.fixed4.HasWindow = false; this.info_hbox.Add(this.fixed4); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.info_hbox[this.fixed4])); w10.Position = 2; this.vbox1.Add(this.info_hbox); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.info_hbox])); w11.Position = 2; w11.Expand = false; w11.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.validate_btn.Clicked += new System.EventHandler(this.OnApplyBtnClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SqueezeCenter.Configuration Stetic.BinContainer.Attach(this); this.Name = "SqueezeCenter.Configuration"; // Container child SqueezeCenter.Configuration.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseStock = true; this.button1.UseUnderline = true; this.button1.Label = "gtk-save"; this.table1.Add(this.button1); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.button1])); w1.TopAttach = ((uint)(5)); w1.BottomAttach = ((uint)(6)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkLoadInBackground = new Gtk.CheckButton(); this.chkLoadInBackground.CanFocus = true; this.chkLoadInBackground.Name = "chkLoadInBackground"; this.chkLoadInBackground.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Load items in background"); this.chkLoadInBackground.DrawIndicator = true; this.chkLoadInBackground.UseUnderline = true; this.table1.Add(this.chkLoadInBackground); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.chkLoadInBackground])); w2.TopAttach = ((uint)(3)); w2.BottomAttach = ((uint)(4)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(0)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Comma-seperated list of radios to load"); this.table1.Add(this.label2); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w3.TopAttach = ((uint)(4)); w3.BottomAttach = ((uint)(5)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Host-name of SqueezeCenter server"); this.table1.Add(this.label5); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label5])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Port of the SqueezeCenter server cli interface"); this.table1.Add(this.label6); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Port of the SqueezeCenter server web interface"); this.table1.Add(this.label7); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label7])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Load artist, albums and radio in the background when loading DO. \nIf set to unchecked, these items are loaded when DO is loading causing a delay until all items are loaded."); this.label8.Wrap = true; this.table1.Add(this.label8); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label8])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtHost = new Gtk.Entry(); this.txtHost.CanFocus = true; this.txtHost.Name = "txtHost"; this.txtHost.IsEditable = true; this.txtHost.InvisibleChar = '●'; this.table1.Add(this.txtHost); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.txtHost])); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtPortCli = new Gtk.Entry(); this.txtPortCli.CanFocus = true; this.txtPortCli.Name = "txtPortCli"; this.txtPortCli.IsEditable = true; this.txtPortCli.InvisibleChar = '●'; this.table1.Add(this.txtPortCli); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.txtPortCli])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtPortWeb = new Gtk.Entry(); this.txtPortWeb.CanFocus = true; this.txtPortWeb.Name = "txtPortWeb"; this.txtPortWeb.IsEditable = true; this.txtPortWeb.InvisibleChar = '●'; this.table1.Add(this.txtPortWeb); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.txtPortWeb])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtRadios = new Gtk.Entry(); this.txtRadios.CanFocus = true; this.txtRadios.Name = "txtRadios"; this.txtRadios.IsEditable = true; this.txtRadios.InvisibleChar = '●'; this.table1.Add(this.txtRadios); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.txtRadios])); w11.TopAttach = ((uint)(4)); w11.BottomAttach = ((uint)(5)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.button1.Clicked += new System.EventHandler(this.OntbnSaveClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null); this.File.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.File, null); this.Edit = new Gtk.Action("Edit", Mono.Unix.Catalog.GetString("Edit"), null, null); this.Edit.ShortLabel = Mono.Unix.Catalog.GetString("Edit"); w2.Add(this.Edit, null); this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null); this.View.ShortLabel = Mono.Unix.Catalog.GetString("View"); w2.Add(this.View, null); this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("Help"), null, null); this.Help.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w2.Add(this.Help, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w2.Add(this.About, null); this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w2.Add(this.Quit, null); this.Preferences = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("_Preferences"), null, "gtk-preferences"); this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w2.Add(this.Preferences, null); this.@new = new Gtk.Action("new", null, null, "gtk-new"); w2.Add(this.@new, null); this.open = new Gtk.Action("open", null, null, "gtk-open"); w2.Add(this.open, null); this.startTorrentButton = new Gtk.Action("startTorrentButton", null, null, "gtk-media-play"); this.startTorrentButton.Sensitive = false; w2.Add(this.startTorrentButton, null); this.stopTorrentButton = new Gtk.Action("stopTorrentButton", null, null, "gtk-media-stop"); this.stopTorrentButton.Sensitive = false; w2.Add(this.stopTorrentButton, null); this.removeTorrentButton = new Gtk.Action("removeTorrentButton", null, null, "gtk-remove"); this.removeTorrentButton.Sensitive = false; w2.Add(this.removeTorrentButton, null); this.preferences = new Gtk.Action("preferences", null, null, "gtk-preferences"); w2.Add(this.preferences, null); this.deleteTorrentButton = new Gtk.Action("deleteTorrentButton", null, null, "gtk-delete"); this.deleteTorrentButton.Sensitive = false; w2.Add(this.deleteTorrentButton, null); this.Columns = new Gtk.Action("Columns", Mono.Unix.Catalog.GetString("Columns"), null, null); this.Columns.ShortLabel = Mono.Unix.Catalog.GetString("Columns"); w2.Add(this.Columns, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MonoTorrent"); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Quit'/></menu><menu action='Edit'><menuitem action='Preferences'/></menu><menu action='View'><menuitem action='Columns'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='new'/><toolitem action='open'/><separator/><toolitem action='startTorrentButton'/><toolitem action='stopTorrentButton'/><toolitem action='removeTorrentButton'/><toolitem action='deleteTorrentButton'/><separator/><toolitem action='preferences'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hPaned = new Gtk.HPaned(); this.hPaned.CanFocus = true; this.hPaned.Name = "hPaned"; this.hPaned.Position = 145; // Container child hPaned.Gtk.Paned+PanedChild this.labelViewScrolledWindow = new Gtk.ScrolledWindow(); this.labelViewScrolledWindow.CanFocus = true; this.labelViewScrolledWindow.Name = "labelViewScrolledWindow"; this.labelViewScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.labelViewScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.hPaned.Add(this.labelViewScrolledWindow); Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hPaned[this.labelViewScrolledWindow])); w5.Resize = false; // Container child hPaned.Gtk.Paned+PanedChild this.vPaned = new Gtk.VPaned(); this.vPaned.CanFocus = true; this.vPaned.Name = "vPaned"; this.vPaned.Position = 160; // Container child vPaned.Gtk.Paned+PanedChild this.torrentViewScrolledWindow = new Gtk.ScrolledWindow(); this.torrentViewScrolledWindow.CanFocus = true; this.torrentViewScrolledWindow.Name = "torrentViewScrolledWindow"; this.torrentViewScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.torrentViewScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.vPaned.Add(this.torrentViewScrolledWindow); Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vPaned[this.torrentViewScrolledWindow])); w6.Resize = false; // Container child vPaned.Gtk.Paned+PanedChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 3; // Container child notebook1.Gtk.Notebook+NotebookChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w7 = new Gtk.Viewport(); w7.Name = "GtkViewport2"; w7.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; this.vbox4.BorderWidth = ((uint)(5)); // Container child vbox4.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.downloadProgressBarLabel = new Gtk.Label(); this.downloadProgressBarLabel.Name = "downloadProgressBarLabel"; this.downloadProgressBarLabel.LabelProp = Mono.Unix.Catalog.GetString("Downloaded: "); this.hbox3.Add(this.downloadProgressBarLabel); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadProgressBarLabel])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.downloadedProgressBar = new Gtk.ProgressBar(); this.downloadedProgressBar.Name = "downloadedProgressBar"; this.hbox3.Add(this.downloadedProgressBar); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadedProgressBar])); w9.Position = 1; this.vbox4.Add(this.hbox3); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); this.frame1.LabelXalign = 0F; // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbox12 = new Gtk.HBox(); this.hbox12.Name = "hbox12"; this.hbox12.Spacing = 6; // Container child hbox12.Gtk.Box+BoxChild this.elapsedTimeLabel = new Gtk.Label(); this.elapsedTimeLabel.Name = "elapsedTimeLabel"; this.elapsedTimeLabel.LabelProp = Mono.Unix.Catalog.GetString("Elapsed Time:"); this.hbox12.Add(this.elapsedTimeLabel); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox12[this.elapsedTimeLabel])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child hbox12.Gtk.Box+BoxChild this.elapsedTimeValueLabel = new Gtk.Label(); this.elapsedTimeValueLabel.Name = "elapsedTimeValueLabel"; this.elapsedTimeValueLabel.LabelProp = ""; this.hbox12.Add(this.elapsedTimeValueLabel); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox12[this.elapsedTimeValueLabel])); w12.Position = 1; w12.Expand = false; w12.Fill = false; this.vbox2.Add(this.hbox12); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox12])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Downloaded:"); this.hbox2.Add(this.label3); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.label3])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.downloadedValueLabel = new Gtk.Label(); this.downloadedValueLabel.Name = "downloadedValueLabel"; this.downloadedValueLabel.LabelProp = ""; this.hbox2.Add(this.downloadedValueLabel); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.downloadedValueLabel])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w16.Position = 1; w16.Expand = false; w16.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Uploaded:"); this.hbox5.Add(this.label5); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.label5])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.uploadedValueLabel = new Gtk.Label(); this.uploadedValueLabel.Name = "uploadedValueLabel"; this.uploadedValueLabel.LabelProp = ""; this.hbox5.Add(this.uploadedValueLabel); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox5[this.uploadedValueLabel])); w18.Position = 1; w18.Expand = false; w18.Fill = false; this.vbox2.Add(this.hbox5); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5])); w19.Position = 2; w19.Expand = false; w19.Fill = false; this.GtkAlignment.Add(this.vbox2); this.frame1.Add(this.GtkAlignment); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Transfer</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w22.Position = 0; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); this.frame2.LabelXalign = 0F; // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("URL:"); this.hbox6.Add(this.label8); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox6[this.label8])); w23.Position = 0; w23.Expand = false; w23.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.trackerUrlValueLabel = new Gtk.Label(); this.trackerUrlValueLabel.Name = "trackerUrlValueLabel"; this.trackerUrlValueLabel.LabelProp = ""; this.hbox6.Add(this.trackerUrlValueLabel); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox6[this.trackerUrlValueLabel])); w24.Position = 1; w24.Expand = false; w24.Fill = false; this.vbox3.Add(this.hbox6); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox6])); w25.Position = 0; w25.Expand = false; w25.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Status:"); this.hbox7.Add(this.label2); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox7[this.label2])); w26.Position = 0; w26.Expand = false; w26.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.trackerStatusValueLabel = new Gtk.Label(); this.trackerStatusValueLabel.Name = "trackerStatusValueLabel"; this.trackerStatusValueLabel.LabelProp = ""; this.hbox7.Add(this.trackerStatusValueLabel); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox7[this.trackerStatusValueLabel])); w27.Position = 1; w27.Expand = false; w27.Fill = false; this.vbox3.Add(this.hbox7); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox7])); w28.Position = 1; w28.Expand = false; w28.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox8 = new Gtk.HBox(); this.hbox8.Name = "hbox8"; this.hbox8.Spacing = 6; // Container child hbox8.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Last updated:"); this.hbox8.Add(this.label4); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox8[this.label4])); w29.Position = 0; w29.Expand = false; w29.Fill = false; // Container child hbox8.Gtk.Box+BoxChild this.updateInValueLabel = new Gtk.Label(); this.updateInValueLabel.Name = "updateInValueLabel"; this.updateInValueLabel.LabelProp = ""; this.hbox8.Add(this.updateInValueLabel); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox8[this.updateInValueLabel])); w30.Position = 1; w30.Expand = false; w30.Fill = false; this.vbox3.Add(this.hbox8); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox8])); w31.Position = 2; w31.Expand = false; w31.Fill = false; this.GtkAlignment1.Add(this.vbox3); this.frame2.Add(this.GtkAlignment1); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Tracker</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.hbox1.Add(this.frame2); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame2])); w34.Position = 1; w34.Expand = false; w34.Fill = false; this.vbox4.Add(this.hbox1); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1])); w35.Position = 1; w35.Expand = false; w35.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); this.frame3.LabelXalign = 0F; // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Save path:"); this.hbox4.Add(this.label7); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox4[this.label7])); w36.Position = 0; w36.Expand = false; w36.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.savePathValueLabel = new Gtk.Label(); this.savePathValueLabel.Name = "savePathValueLabel"; this.savePathValueLabel.LabelProp = ""; this.hbox4.Add(this.savePathValueLabel); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox4[this.savePathValueLabel])); w37.Position = 1; w37.Expand = false; w37.Fill = false; this.vbox5.Add(this.hbox4); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox4])); w38.Position = 0; w38.Expand = false; w38.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox9 = new Gtk.HBox(); this.hbox9.Name = "hbox9"; this.hbox9.Spacing = 6; // Container child hbox9.Gtk.Box+BoxChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.hbox9.Add(this.label10); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox9[this.label10])); w39.Position = 0; w39.Expand = false; w39.Fill = false; // Container child hbox9.Gtk.Box+BoxChild this.sizeValueLabel = new Gtk.Label(); this.sizeValueLabel.Name = "sizeValueLabel"; this.sizeValueLabel.LabelProp = ""; this.hbox9.Add(this.sizeValueLabel); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox9[this.sizeValueLabel])); w40.Position = 1; w40.Expand = false; w40.Fill = false; this.vbox5.Add(this.hbox9); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox9])); w41.Position = 1; w41.Expand = false; w41.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox11 = new Gtk.HBox(); this.hbox11.Name = "hbox11"; this.hbox11.Spacing = 6; // Container child hbox11.Gtk.Box+BoxChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Created on:"); this.hbox11.Add(this.label11); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox11[this.label11])); w42.Position = 0; w42.Expand = false; w42.Fill = false; // Container child hbox11.Gtk.Box+BoxChild this.createdOnValueLabel = new Gtk.Label(); this.createdOnValueLabel.Name = "createdOnValueLabel"; this.createdOnValueLabel.LabelProp = ""; this.hbox11.Add(this.createdOnValueLabel); Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox11[this.createdOnValueLabel])); w43.Position = 1; w43.Expand = false; w43.Fill = false; this.vbox5.Add(this.hbox11); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox11])); w44.Position = 2; w44.Expand = false; w44.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox10 = new Gtk.HBox(); this.hbox10.Name = "hbox10"; this.hbox10.Spacing = 6; // Container child hbox10.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Comment:"); this.hbox10.Add(this.label12); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox10[this.label12])); w45.Position = 0; w45.Expand = false; w45.Fill = false; // Container child hbox10.Gtk.Box+BoxChild this.commentValueLabel = new Gtk.Label(); this.commentValueLabel.Name = "commentValueLabel"; this.commentValueLabel.LabelProp = ""; this.hbox10.Add(this.commentValueLabel); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox10[this.commentValueLabel])); w46.Position = 2; w46.Expand = false; w46.Fill = false; this.vbox5.Add(this.hbox10); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox10])); w47.Position = 3; w47.Expand = false; w47.Fill = false; this.GtkAlignment2.Add(this.vbox5); this.frame3.Add(this.GtkAlignment2); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>General</b>"); this.GtkLabel8.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel8; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w50.Position = 2; w50.Expand = false; w50.Fill = false; w7.Add(this.vbox4); this.scrolledwindow1.Add(w7); this.notebook1.Add(this.scrolledwindow1); Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow1])); w53.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("General"); this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1); // Container child notebook1.Gtk.Notebook+NotebookChild this.filesScrolledWindow = new Gtk.ScrolledWindow(); this.filesScrolledWindow.CanFocus = true; this.filesScrolledWindow.Name = "filesScrolledWindow"; this.filesScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.filesScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.filesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.notebook1.Add(this.filesScrolledWindow); Gtk.Notebook.NotebookChild w54 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.filesScrolledWindow])); w54.Position = 1; w54.TabExpand = false; // Notebook tab this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Files"); this.notebook1.SetTabLabel(this.filesScrolledWindow, this.label9); // Container child notebook1.Gtk.Notebook+NotebookChild this.peersScrolledWindow = new Gtk.ScrolledWindow(); this.peersScrolledWindow.CanFocus = true; this.peersScrolledWindow.Name = "peersScrolledWindow"; this.peersScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.peersScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.peersScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.notebook1.Add(this.peersScrolledWindow); Gtk.Notebook.NotebookChild w55 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.peersScrolledWindow])); w55.Position = 2; w55.TabExpand = false; // Notebook tab this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Peers"); this.notebook1.SetTabLabel(this.peersScrolledWindow, this.label6); // Container child notebook1.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w56 = new Gtk.Viewport(); w56.Name = "GtkViewport5"; w56.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport5.Gtk.Container+ContainerChild this.hbox13 = new Gtk.HBox(); this.hbox13.Name = "hbox13"; this.hbox13.Spacing = 6; // Container child hbox13.Gtk.Box+BoxChild this.frame4 = new Gtk.Frame(); this.frame4.Name = "frame4"; this.frame4.ShadowType = ((Gtk.ShadowType)(0)); this.frame4.LabelXalign = 0F; // Container child frame4.Gtk.Container+ContainerChild this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment3.WidthRequest = 250; this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild this.selectLabelScrolledWindow = new Gtk.ScrolledWindow(); this.selectLabelScrolledWindow.CanFocus = true; this.selectLabelScrolledWindow.Name = "selectLabelScrolledWindow"; this.selectLabelScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.selectLabelScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.selectLabelScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.GtkAlignment3.Add(this.selectLabelScrolledWindow); this.frame4.Add(this.GtkAlignment3); this.GtkLabel9 = new Gtk.Label(); this.GtkLabel9.Name = "GtkLabel9"; this.GtkLabel9.LabelProp = Mono.Unix.Catalog.GetString("<b>Set labels</b>"); this.GtkLabel9.UseMarkup = true; this.frame4.LabelWidget = this.GtkLabel9; this.hbox13.Add(this.frame4); Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox13[this.frame4])); w59.Position = 0; w59.Expand = false; w59.Fill = false; // Container child hbox13.Gtk.Box+BoxChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(0)); this.frame5.LabelXalign = 0F; // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.vbox7 = new Gtk.VBox(); this.vbox7.Name = "vbox7"; this.vbox7.Spacing = 6; // Container child vbox7.Gtk.Box+BoxChild this.hbox14 = new Gtk.HBox(); this.hbox14.Name = "hbox14"; this.hbox14.Spacing = 6; // Container child hbox14.Gtk.Box+BoxChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.LabelProp = Mono.Unix.Catalog.GetString("Maximum upload rate:"); this.hbox14.Add(this.label14); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox14[this.label14])); w60.Position = 0; w60.Expand = false; w60.Fill = false; // Container child hbox14.Gtk.Box+BoxChild this.torrentUploadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadRateSpinButton.CanFocus = true; this.torrentUploadRateSpinButton.Name = "torrentUploadRateSpinButton"; this.torrentUploadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadRateSpinButton.ClimbRate = 1; this.torrentUploadRateSpinButton.Numeric = true; this.hbox14.Add(this.torrentUploadRateSpinButton); Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.hbox14[this.torrentUploadRateSpinButton])); w61.Position = 1; w61.Expand = false; w61.Fill = false; this.vbox7.Add(this.hbox14); Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox14])); w62.Position = 0; w62.Expand = false; w62.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox15 = new Gtk.HBox(); this.hbox15.Name = "hbox15"; this.hbox15.Spacing = 6; // Container child hbox15.Gtk.Box+BoxChild this.label15 = new Gtk.Label(); this.label15.Name = "label15"; this.label15.LabelProp = Mono.Unix.Catalog.GetString("Maximum download rate:"); this.hbox15.Add(this.label15); Gtk.Box.BoxChild w63 = ((Gtk.Box.BoxChild)(this.hbox15[this.label15])); w63.Position = 0; w63.Expand = false; w63.Fill = false; // Container child hbox15.Gtk.Box+BoxChild this.torrentDownloadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentDownloadRateSpinButton.CanFocus = true; this.torrentDownloadRateSpinButton.Name = "torrentDownloadRateSpinButton"; this.torrentDownloadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentDownloadRateSpinButton.ClimbRate = 1; this.torrentDownloadRateSpinButton.Numeric = true; this.hbox15.Add(this.torrentDownloadRateSpinButton); Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(this.hbox15[this.torrentDownloadRateSpinButton])); w64.Position = 1; w64.Expand = false; w64.Fill = false; this.vbox7.Add(this.hbox15); Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox15])); w65.Position = 1; w65.Expand = false; w65.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox16 = new Gtk.HBox(); this.hbox16.Name = "hbox16"; this.hbox16.Spacing = 6; // Container child hbox16.Gtk.Box+BoxChild this.label16 = new Gtk.Label(); this.label16.Name = "label16"; this.label16.LabelProp = Mono.Unix.Catalog.GetString("Maximum connections:"); this.hbox16.Add(this.label16); Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox16[this.label16])); w66.Position = 0; w66.Expand = false; w66.Fill = false; // Container child hbox16.Gtk.Box+BoxChild this.torrentMaxConnectionsSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentMaxConnectionsSpinButton.CanFocus = true; this.torrentMaxConnectionsSpinButton.Name = "torrentMaxConnectionsSpinButton"; this.torrentMaxConnectionsSpinButton.Adjustment.PageIncrement = 10; this.torrentMaxConnectionsSpinButton.ClimbRate = 1; this.torrentMaxConnectionsSpinButton.Numeric = true; this.hbox16.Add(this.torrentMaxConnectionsSpinButton); Gtk.Box.BoxChild w67 = ((Gtk.Box.BoxChild)(this.hbox16[this.torrentMaxConnectionsSpinButton])); w67.Position = 1; w67.Expand = false; w67.Fill = false; this.vbox7.Add(this.hbox16); Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox16])); w68.Position = 2; w68.Expand = false; w68.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox17 = new Gtk.HBox(); this.hbox17.Name = "hbox17"; this.hbox17.Spacing = 6; // Container child hbox17.Gtk.Box+BoxChild this.label17 = new Gtk.Label(); this.label17.Name = "label17"; this.label17.LabelProp = Mono.Unix.Catalog.GetString("Upload slots:"); this.hbox17.Add(this.label17); Gtk.Box.BoxChild w69 = ((Gtk.Box.BoxChild)(this.hbox17[this.label17])); w69.Position = 0; w69.Expand = false; w69.Fill = false; // Container child hbox17.Gtk.Box+BoxChild this.torrentUploadSlotSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadSlotSpinButton.CanFocus = true; this.torrentUploadSlotSpinButton.Name = "torrentUploadSlotSpinButton"; this.torrentUploadSlotSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadSlotSpinButton.ClimbRate = 1; this.torrentUploadSlotSpinButton.Numeric = true; this.hbox17.Add(this.torrentUploadSlotSpinButton); Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(this.hbox17[this.torrentUploadSlotSpinButton])); w70.Position = 1; w70.Expand = false; w70.Fill = false; this.vbox7.Add(this.hbox17); Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox17])); w71.Position = 3; w71.Expand = false; w71.Fill = false; this.GtkAlignment4.Add(this.vbox7); this.frame5.Add(this.GtkAlignment4); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Bandwidth</b>"); this.GtkLabel10.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel10; this.vbox6.Add(this.frame5); Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5])); w74.Position = 0; w74.Expand = false; w74.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbox18 = new Gtk.HBox(); this.hbox18.Name = "hbox18"; this.hbox18.Spacing = 6; // Container child hbox18.Gtk.Box+BoxChild this.saveTorrentSettingsButton = new Gtk.Button(); this.saveTorrentSettingsButton.CanFocus = true; this.saveTorrentSettingsButton.Name = "saveTorrentSettingsButton"; this.saveTorrentSettingsButton.UseUnderline = true; this.saveTorrentSettingsButton.Label = Mono.Unix.Catalog.GetString("Save"); this.hbox18.Add(this.saveTorrentSettingsButton); Gtk.Box.BoxChild w75 = ((Gtk.Box.BoxChild)(this.hbox18[this.saveTorrentSettingsButton])); w75.Position = 2; w75.Expand = false; w75.Fill = false; this.vbox6.Add(this.hbox18); Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox18])); w76.Position = 1; w76.Expand = false; w76.Fill = false; this.hbox13.Add(this.vbox6); Gtk.Box.BoxChild w77 = ((Gtk.Box.BoxChild)(this.hbox13[this.vbox6])); w77.Position = 1; w77.Expand = false; w77.Fill = false; w56.Add(this.hbox13); this.scrolledwindow2.Add(w56); this.notebook1.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w80 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow2])); w80.Position = 3; w80.TabExpand = false; // Notebook tab this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("Options"); this.notebook1.SetTabLabel(this.scrolledwindow2, this.label13); this.vPaned.Add(this.notebook1); this.hPaned.Add(this.vPaned); this.vbox1.Add(this.hPaned); Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.vbox1[this.hPaned])); w83.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.statusbar2 = new Gtk.Statusbar(); this.statusbar2.Name = "statusbar2"; this.statusbar2.Spacing = 6; // Container child statusbar2.Gtk.Box+BoxChild this.statusDownloadLabel = new Gtk.Label(); this.statusDownloadLabel.Name = "statusDownloadLabel"; this.statusDownloadLabel.LabelProp = Mono.Unix.Catalog.GetString("<small>D: 0.00 kB</small>"); this.statusDownloadLabel.UseMarkup = true; this.statusbar2.Add(this.statusDownloadLabel); Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.statusbar2[this.statusDownloadLabel])); w84.Position = 1; w84.Expand = false; w84.Fill = false; // Container child statusbar2.Gtk.Box+BoxChild this.statusUploadLabel = new Gtk.Label(); this.statusUploadLabel.Name = "statusUploadLabel"; this.statusUploadLabel.LabelProp = Mono.Unix.Catalog.GetString("<small>U: 0.00 kB</small>"); this.statusUploadLabel.UseMarkup = true; this.statusbar2.Add(this.statusUploadLabel); Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.statusbar2[this.statusUploadLabel])); w85.Position = 2; w85.Expand = false; w85.Fill = false; this.vbox1.Add(this.statusbar2); Gtk.Box.BoxChild w86 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar2])); w86.Position = 3; w86.Expand = false; w86.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 762; this.DefaultHeight = 559; this.Hide(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.About.Activated += new System.EventHandler(this.OnAboutActivated); this.Quit.Activated += new System.EventHandler(this.OnQuitActivated); this.Preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); [email protected] += new System.EventHandler(this.OnNewActivated); this.open.Activated += new System.EventHandler(this.OnOpenActivated); this.startTorrentButton.Activated += new System.EventHandler(this.OnStartTorrentActivated); this.stopTorrentButton.Activated += new System.EventHandler(this.OnStopTorrentActivated); this.removeTorrentButton.Activated += new System.EventHandler(this.OnRemoveTorrentButtonActivated); this.preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.deleteTorrentButton.Activated += new System.EventHandler(this.OnDeleteTorrentButtonActivated); this.Columns.Activated += new System.EventHandler(this.OnColumnsActivated); this.saveTorrentSettingsButton.Clicked += new System.EventHandler(this.OnSaveTorrentSettingsButtonClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ProgressDialog this.WidthRequest = 400; this.Name = "ocmgtk.ProgressDialog"; this.Title = Mono.Unix.Catalog.GetString("Import Data..."); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.DestroyWithParent = true; // Internal child ocmgtk.ProgressDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Importing GPX data</b></big>"); this.label1.UseMarkup = true; w1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.label1])); w2.Position = 0; // Container child dialog1_VBox.Gtk.Box+BoxChild this.multiFileLabel = new Gtk.Label(); this.multiFileLabel.Name = "multiFileLabel"; this.multiFileLabel.Xalign = 0F; this.multiFileLabel.LabelProp = "File blah of blah"; w1.Add(this.multiFileLabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.multiFileLabel])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.fileLabel = new Gtk.Label(); this.fileLabel.Name = "fileLabel"; this.fileLabel.Xalign = 0F; this.fileLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>File:</b>"); this.fileLabel.UseMarkup = true; w1.Add(this.fileLabel); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.fileLabel])); w4.Position = 2; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.progressAlign = new Gtk.Alignment(0.5F, 1F, 1F, 1F); this.progressAlign.Name = "progressAlign"; this.progressAlign.LeftPadding = ((uint)(5)); this.progressAlign.TopPadding = ((uint)(5)); this.progressAlign.RightPadding = ((uint)(4)); this.progressAlign.BottomPadding = ((uint)(5)); // Container child progressAlign.Gtk.Container+ContainerChild this.progressbar6 = new Gtk.ProgressBar(); this.progressbar6.Name = "progressbar6"; this.progressbar6.Text = "0%"; this.progressAlign.Add(this.progressbar6); w1.Add(this.progressAlign); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.progressAlign])); w6.Position = 3; w6.Expand = false; w6.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.waypointName = new Gtk.Label(); this.waypointName.Name = "waypointName"; this.waypointName.Xalign = 0F; this.waypointName.LabelProp = Mono.Unix.Catalog.GetString("<i>Initializing</i>"); this.waypointName.UseMarkup = true; w1.Add(this.waypointName); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.waypointName])); w7.Position = 4; w7.Expand = false; w7.Fill = false; // Internal child ocmgtk.ProgressDialog.ActionArea Gtk.HButtonBox w8 = this.ActionArea; w8.Name = "dialog1_ActionArea"; w8.Spacing = 10; w8.BorderWidth = ((uint)(5)); w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel])); w9.Expand = false; w9.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.okButton = new Gtk.Button(); this.okButton.Sensitive = false; this.okButton.CanFocus = true; this.okButton.Name = "okButton"; this.okButton.UseStock = true; this.okButton.UseUnderline = true; this.okButton.Label = "gtk-ok"; this.AddActionWidget(this.okButton, -5); Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.okButton])); w10.Position = 1; w10.Expand = false; w10.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 412; this.DefaultHeight = 197; this.okButton.Hide(); this.Show(); this.Close += new System.EventHandler(this.OnCancel); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnCancel); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancel); this.okButton.Clicked += new System.EventHandler(this.OnButton179Clicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget RoboWarX.GTK.ErrorDialog this.Name = "RoboWarX.GTK.ErrorDialog"; this.Title = Mono.Unix.Catalog.GetString("Robot error"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.HasSeparator = false; // Internal child RoboWarX.GTK.ErrorDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 12; this.hbox2.BorderWidth = ((uint)(7)); // Container child hbox2.Gtk.Box+BoxChild this.image2 = new Gtk.Image(); this.image2.Name = "image2"; this.image2.Yalign = 0F; this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Dialog, 48); this.hbox2.Add(this.image2); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.image2])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.titlelabel = new Gtk.Label(); this.titlelabel.Name = "titlelabel"; this.titlelabel.Xalign = 0F; this.titlelabel.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Error in robot 'Name'</b></big>"); this.titlelabel.UseMarkup = true; this.vbox3.Add(this.titlelabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.titlelabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.errorlabel = new Gtk.Label(); this.errorlabel.Name = "errorlabel"; this.errorlabel.Xalign = 0F; this.errorlabel.Yalign = 0F; this.errorlabel.LabelProp = Mono.Unix.Catalog.GetString("Error text"); this.errorlabel.UseMarkup = true; this.vbox3.Add(this.errorlabel); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.errorlabel])); w4.Position = 1; this.hbox2.Add(this.vbox3); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3])); w5.Position = 1; w5.Expand = false; w5.Fill = false; w1.Add(this.hbox2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.hbox2])); w6.Position = 0; // Internal child RoboWarX.GTK.ErrorDialog.ActionArea Gtk.HButtonBox w7 = this.ActionArea; w7.Name = "dialog1_ActionArea"; w7.Spacing = 6; w7.BorderWidth = ((uint)(5)); w7.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonJump = new Gtk.Button(); this.buttonJump.Sensitive = false; this.buttonJump.CanDefault = true; this.buttonJump.CanFocus = true; this.buttonJump.Name = "buttonJump"; this.buttonJump.UseStock = true; this.buttonJump.UseUnderline = true; this.buttonJump.Label = "gtk-jump-to"; this.AddActionWidget(this.buttonJump, -10); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonJump])); w8.Expand = false; w8.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonStop = new Gtk.Button(); this.buttonStop.CanFocus = true; this.buttonStop.Name = "buttonStop"; this.buttonStop.UseStock = true; this.buttonStop.UseUnderline = true; this.buttonStop.Label = "gtk-stop"; this.AddActionWidget(this.buttonStop, -6); Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonStop])); w9.Position = 1; w9.Expand = false; w9.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonClose = new Gtk.Button(); this.buttonClose.CanDefault = true; this.buttonClose.CanFocus = true; this.buttonClose.Name = "buttonClose"; this.buttonClose.UseStock = true; this.buttonClose.UseUnderline = true; this.buttonClose.Label = "gtk-close"; this.AddActionWidget(this.buttonClose, -7); Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonClose])); w10.Position = 2; w10.Expand = false; w10.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 352; this.DefaultHeight = 137; this.Show(); this.buttonStop.Clicked += new System.EventHandler(this.OnButtonStopClicked); this.buttonClose.Clicked += new System.EventHandler(this.OnButtonCloseClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Do.FilesAndFolders.Configuration Stetic.BinContainer.Attach(this); this.Name = "Do.FilesAndFolders.Configuration"; // Container child Do.FilesAndFolders.Configuration.Gtk.Container+ContainerChild this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; this.alignment1.BorderWidth = ((uint)(8)); // Container child alignment1.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.HeightRequest = 270; this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; this.notebook1.ShowBorder = false; // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.alignment3 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment3.Name = "alignment3"; this.alignment3.LeftPadding = ((uint)(8)); this.alignment3.TopPadding = ((uint)(8)); this.alignment3.RightPadding = ((uint)(8)); this.alignment3.BottomPadding = ((uint)(8)); // Container child alignment3.Gtk.Container+ContainerChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.index_node_scroll = new Gtk.ScrolledWindow(); this.index_node_scroll.CanFocus = true; this.index_node_scroll.Name = "index_node_scroll"; this.index_node_scroll.ShadowType = ((Gtk.ShadowType)(1)); this.vbox6.Add(this.index_node_scroll); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox6[this.index_node_scroll])); w1.Position = 0; // Container child vbox6.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.IndexLabel = new Gtk.Label(); this.IndexLabel.Name = "IndexLabel"; this.hbox1.Add(this.IndexLabel); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.IndexLabel])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.index_remove_btn = new Gtk.Button(); this.index_remove_btn.CanFocus = true; this.index_remove_btn.Name = "index_remove_btn"; this.index_remove_btn.UseUnderline = true; // Container child index_remove_btn.Gtk.Container+ContainerChild Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w4 = new Gtk.HBox(); w4.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w5 = new Gtk.Image(); w5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Button, 16); w4.Add(w5); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w7 = new Gtk.Label(); w4.Add(w7); w3.Add(w4); this.index_remove_btn.Add(w3); this.hbuttonbox2.Add(this.index_remove_btn); Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.index_remove_btn])); w11.Expand = false; w11.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.index_add_btn = new Gtk.Button(); this.index_add_btn.CanFocus = true; this.index_add_btn.Name = "index_add_btn"; this.index_add_btn.UseUnderline = true; // Container child index_add_btn.Gtk.Container+ContainerChild Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w13 = new Gtk.HBox(); w13.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w14 = new Gtk.Image(); w14.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); w13.Add(w14); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w16 = new Gtk.Label(); w13.Add(w16); w12.Add(w13); this.index_add_btn.Add(w12); this.hbuttonbox2.Add(this.index_add_btn); Gtk.ButtonBox.ButtonBoxChild w20 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.index_add_btn])); w20.Position = 1; w20.Expand = false; w20.Fill = false; this.hbox1.Add(this.hbuttonbox2); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbuttonbox2])); w21.Position = 1; w21.Expand = false; this.vbox6.Add(this.hbox1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox1])); w22.Position = 1; w22.Expand = false; w22.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.show_hidden_chk = new Gtk.CheckButton(); this.show_hidden_chk.CanFocus = true; this.show_hidden_chk.Name = "show_hidden_chk"; this.show_hidden_chk.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Show hidden files"); this.show_hidden_chk.DrawIndicator = true; this.show_hidden_chk.UseUnderline = true; this.show_hidden_chk.BorderWidth = ((uint)(5)); this.vbox6.Add(this.show_hidden_chk); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox6[this.show_hidden_chk])); w23.Position = 2; w23.Expand = false; w23.Fill = false; this.alignment3.Add(this.vbox6); this.vbox4.Add(this.alignment3); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox4[this.alignment3])); w25.Position = 0; this.notebook1.Add(this.vbox4); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Indexed Folders"); this.notebook1.SetTabLabel(this.vbox4, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.alignment2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment2.Name = "alignment2"; this.alignment2.LeftPadding = ((uint)(8)); this.alignment2.TopPadding = ((uint)(8)); this.alignment2.RightPadding = ((uint)(8)); this.alignment2.BottomPadding = ((uint)(8)); // Container child alignment2.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.ignore_node_scroll = new Gtk.ScrolledWindow(); this.ignore_node_scroll.CanFocus = true; this.ignore_node_scroll.Name = "ignore_node_scroll"; this.ignore_node_scroll.ShadowType = ((Gtk.ShadowType)(1)); this.vbox3.Add(this.ignore_node_scroll); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox3[this.ignore_node_scroll])); w27.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.IgnoreLabel = new Gtk.Label(); this.IgnoreLabel.Name = "IgnoreLabel"; this.hbox3.Add(this.IgnoreLabel); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.hbox3[this.IgnoreLabel])); w28.Position = 0; w28.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.ignore_remove_btn = new Gtk.Button(); this.ignore_remove_btn.CanFocus = true; this.ignore_remove_btn.Name = "ignore_remove_btn"; this.ignore_remove_btn.UseUnderline = true; // Container child ignore_remove_btn.Gtk.Container+ContainerChild Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w30 = new Gtk.HBox(); w30.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w31 = new Gtk.Image(); w31.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Button, 16); w30.Add(w31); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w33 = new Gtk.Label(); w30.Add(w33); w29.Add(w30); this.ignore_remove_btn.Add(w29); this.hbuttonbox3.Add(this.ignore_remove_btn); Gtk.ButtonBox.ButtonBoxChild w37 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.ignore_remove_btn])); w37.Expand = false; w37.Fill = false; w37.Padding = ((uint)(5)); // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.ignore_add_btn = new Gtk.Button(); this.ignore_add_btn.CanFocus = true; this.ignore_add_btn.Name = "ignore_add_btn"; this.ignore_add_btn.UseUnderline = true; // Container child ignore_add_btn.Gtk.Container+ContainerChild Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w39 = new Gtk.HBox(); w39.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w40 = new Gtk.Image(); w40.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); w39.Add(w40); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w42 = new Gtk.Label(); w39.Add(w42); w38.Add(w39); this.ignore_add_btn.Add(w38); this.hbuttonbox3.Add(this.ignore_add_btn); Gtk.ButtonBox.ButtonBoxChild w46 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.ignore_add_btn])); w46.Position = 1; w46.Expand = false; w46.Fill = false; w46.Padding = ((uint)(5)); this.hbox3.Add(this.hbuttonbox3); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbuttonbox3])); w47.Position = 1; w47.Expand = false; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w48.Position = 1; w48.Expand = false; w48.Fill = false; this.alignment2.Add(this.vbox3); this.vbox5.Add(this.alignment2); Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox5[this.alignment2])); w50.Position = 0; this.notebook1.Add(this.vbox5); Gtk.Notebook.NotebookChild w51 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox5])); w51.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Ignored Folders"); this.notebook1.SetTabLabel(this.vbox5, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w52.Position = 0; this.vbox2.Add(this.vbox1); Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox1])); w53.Position = 0; this.alignment1.Add(this.vbox2); this.Add(this.alignment1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.index_remove_btn.Clicked += new System.EventHandler(this.OnRemoveBtnClicked); this.index_add_btn.Clicked += new System.EventHandler(this.OnAddBtnClicked); this.show_hidden_chk.Clicked += new System.EventHandler(this.OnShowHiddenChkClicked); this.ignore_remove_btn.Clicked += new System.EventHandler(this.OnRemoveBtnClicked); this.ignore_add_btn.Clicked += new System.EventHandler(this.OnAddBtnClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("GoogleTranslate"); this.Icon = new Gdk.Pixbuf(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./res/icon.png")); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.alignment2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment2.Name = "alignment2"; this.alignment2.LeftPadding = ((uint)(6)); this.alignment2.TopPadding = ((uint)(6)); this.alignment2.RightPadding = ((uint)(6)); this.alignment2.BottomPadding = ((uint)(6)); // Container child alignment2.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.CanDefault = true; this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(2)); this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w1 = new Gtk.Viewport(); w1.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.TTV_first = new Gtk.TextView(); this.TTV_first.CanFocus = true; this.TTV_first.Name = "TTV_first"; this.TTV_first.WrapMode = ((Gtk.WrapMode)(2)); w1.Add(this.TTV_first); this.scrolledwindow1.Add(w1); this.vbox4.Add(this.scrolledwindow1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow1])); w4.Position = 0; // Container child vbox4.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.CB_first = Gtk.ComboBox.NewText(); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Albanian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Arabic")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Bulgarian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Catalan")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Chinese (Simplified)")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Chinese (Traditional)")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Croatian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Czech")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Danish")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Dutch")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("English")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Estonian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Filipino")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Finnish")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("French")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Galician")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("German")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Greek")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Hebrew")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Hindi")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Hungarian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Indonesian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Italian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Japanese")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Korean")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Latvian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Lithuanian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Maltese")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Norwegian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Polish")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Portuguese")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Romanian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Russian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Serbian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Slovak")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Slovenian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Spanish")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Swedish")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Thai")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Turkish")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Ukrainian")); this.CB_first.AppendText(Mono.Unix.Catalog.GetString("Vietnamese")); this.CB_first.Name = "CB_first"; this.CB_first.Active = 32; this.hbox1.Add(this.CB_first); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.CB_first])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.B_change = new Gtk.Button(); this.B_change.CanFocus = true; this.B_change.Name = "B_change"; this.B_change.UseUnderline = true; // Container child B_change.Gtk.Container+ContainerChild Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w7 = new Gtk.HBox(); w7.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w8 = new Gtk.Image(); w8.Pixbuf = new Gdk.Pixbuf(System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "./res/swap.png")); w7.Add(w8); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w10 = new Gtk.Label(); w7.Add(w10); w6.Add(w7); this.B_change.Add(w6); this.hbox1.Add(this.B_change); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.B_change])); w14.Position = 1; w14.Expand = false; w14.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.CB_second = Gtk.ComboBox.NewText(); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Albanian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Arabic")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Bulgarian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Catalan")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Chinese (Simplified)")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Chinese (Traditional)")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Croatian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Czech")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Danish")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Dutch")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("English")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Estonian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Filipino")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Finnish")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("French")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Galician")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("German")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Greek")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Hebrew")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Hindi")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Hungarian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Indonesian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Italian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Japanese")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Korean")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Latvian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Lithuanian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Maltese")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Norwegian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Polish")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Portuguese")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Romanian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Russian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Serbian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Slovak")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Slovenian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Spanish")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Swedish")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Thai")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Turkish")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Ukrainian")); this.CB_second.AppendText(Mono.Unix.Catalog.GetString("Vietnamese")); this.CB_second.Name = "CB_second"; this.CB_second.Active = 10; this.hbox2.Add(this.CB_second); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.CB_second])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.B_translate = new Gtk.Button(); this.B_translate.CanFocus = true; this.B_translate.Name = "B_translate"; this.B_translate.UseUnderline = true; this.B_translate.Label = Mono.Unix.Catalog.GetString("Translate"); this.hbox2.Add(this.B_translate); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.B_translate])); w16.Position = 1; w16.Expand = false; w16.Fill = false; this.hbox1.Add(this.hbox2); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbox2])); w17.Position = 2; w17.Expand = false; w17.Fill = false; this.vbox4.Add(this.hbox1); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1])); w18.Position = 1; w18.Expand = false; w18.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.scrolledwindow3 = new Gtk.ScrolledWindow(); this.scrolledwindow3.CanFocus = true; this.scrolledwindow3.Name = "scrolledwindow3"; this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(2)); this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow3.Gtk.Container+ContainerChild Gtk.Viewport w19 = new Gtk.Viewport(); w19.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.TTV_second = new Gtk.TextView(); this.TTV_second.CanFocus = true; this.TTV_second.Name = "TTV_second"; this.TTV_second.AcceptsTab = false; w19.Add(this.TTV_second); this.scrolledwindow3.Add(w19); this.vbox4.Add(this.scrolledwindow3); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox4[this.scrolledwindow3])); w22.Position = 2; this.alignment2.Add(this.vbox4); this.Add(this.alignment2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 443; this.DefaultHeight = 302; this.vbox4.HasDefault = true; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.Mapped += new System.EventHandler(this.OnMapped); this.B_change.Clicked += new System.EventHandler(this.OnBChangeClicked); this.B_translate.Clicked += new System.EventHandler(this.OnBTranslateClicked); }
public override void Initialize(IPadWindow window) { base.Initialize(window); // Call ctors inputEditor = new TextEditor() { Name = "input", Events = Gdk.EventMask.AllEventsMask, HeightRequest = 80 }; editor = new TextEditor() { Name = "output", Events = Gdk.EventMask.AllEventsMask }; vpaned = new Gtk.VPaned(); var scr1 = new Gtk.ScrolledWindow(); var scr2 = new Gtk.ScrolledWindow(); // Init layout scr1.ShadowType = Gtk.ShadowType.In; scr1.Child = inputEditor; vpaned.Add1(scr1); scr1.ShowAll(); inputEditor.ShowAll(); scr2.ShadowType = Gtk.ShadowType.In; scr2.Child = editor; vpaned.Add2(scr2); scr2.ShowAll(); editor.ShowAll(); vpaned.ShowAll(); // Init editors var o = editor.Options; inputEditor.Options = o; o.ShowLineNumberMargin = false; o.ShowFoldMargin = false; o.ShowIconMargin = false; editor.Document.ReadOnly = true; inputEditor.Text = PropertyService.Get(lastInputStringPropId, string.Empty); editor.Text = string.Empty; editor.Document.SyntaxMode = new Highlighting.DSyntaxMode(); inputEditor.Document.SyntaxMode = new Highlighting.DSyntaxMode(); editor.Document.MimeType = Formatting.DCodeFormatter.MimeType; inputEditor.Document.MimeType = Formatting.DCodeFormatter.MimeType; // Init toolbar var tb = window.GetToolbar(Gtk.PositionType.Top); executeButton = new Gtk.Button(); executeButton.Image = new Gtk.Image(Gtk.Stock.Execute, Gtk.IconSize.Menu); executeButton.TooltipText = "Evaluates the expression typed in the upper input editor."; executeButton.Clicked += Execute; tb.Add(executeButton); abortButton = new Gtk.Button(); abortButton.Sensitive = false; abortButton.Image = new Gtk.Image(Gtk.Stock.Stop, Gtk.IconSize.Menu); abortButton.TooltipText = "Stops the evaluation."; abortButton.Clicked += (object sender, EventArgs e) => AbortExecution(); tb.Add(abortButton); tb.ShowAll(); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget CBinding.EditPackagesDialog this.Name = "CBinding.EditPackagesDialog"; this.Title = Mono.Unix.Catalog.GetString("Edit packages"); this.Modal = true; // Internal child CBinding.EditPackagesDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vpaned1 = new Gtk.VPaned(); this.vpaned1.CanFocus = true; this.vpaned1.Name = "vpaned1"; this.vpaned1.Position = 183; this.vpaned1.BorderWidth = ((uint)(6)); // Container child vpaned1.Gtk.Paned+PanedChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.normalPackageTreeView = new Gtk.TreeView(); this.normalPackageTreeView.CanFocus = true; this.normalPackageTreeView.Name = "normalPackageTreeView"; this.normalPackageTreeView.HeadersClickable = true; this.scrolledwindow1.Add(this.normalPackageTreeView); this.notebook1.Add(this.scrolledwindow1); Gtk.Notebook.NotebookChild w3 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow1])); w3.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("System Packages"); this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1); // Container child notebook1.Gtk.Notebook+NotebookChild this.scrolledwindow3 = new Gtk.ScrolledWindow(); this.scrolledwindow3.CanFocus = true; this.scrolledwindow3.Name = "scrolledwindow3"; this.scrolledwindow3.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow3.Gtk.Container+ContainerChild this.projectPackageTreeView = new Gtk.TreeView(); this.projectPackageTreeView.CanFocus = true; this.projectPackageTreeView.Name = "projectPackageTreeView"; this.projectPackageTreeView.HeadersClickable = true; this.scrolledwindow3.Add(this.projectPackageTreeView); this.notebook1.Add(this.scrolledwindow3); Gtk.Notebook.NotebookChild w5 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow3])); w5.Position = 1; w5.TabExpand = false; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Project Packages"); this.notebook1.SetTabLabel(this.scrolledwindow3, this.label2); this.vpaned1.Add(this.notebook1); Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.notebook1])); w6.Resize = false; // Container child vpaned1.Gtk.Paned+PanedChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.Yalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Selected packages:"); this.table1.Add(this.label3); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild this.selectedPackagesTreeView = new Gtk.TreeView(); this.selectedPackagesTreeView.CanFocus = true; this.selectedPackagesTreeView.Name = "selectedPackagesTreeView"; this.selectedPackagesTreeView.HeadersClickable = true; this.scrolledwindow2.Add(this.selectedPackagesTreeView); this.table1.Add(this.scrolledwindow2); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.scrolledwindow2])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.removeButton = new Gtk.Button(); Gtk.Tooltips w10 = new Gtk.Tooltips(); w10.SetTip(this.removeButton, "Remove selected package from the project.", "Remove selected package from the project."); this.removeButton.WidthRequest = 33; this.removeButton.HeightRequest = 33; this.removeButton.Sensitive = false; this.removeButton.CanFocus = true; this.removeButton.Name = "removeButton"; this.removeButton.UseUnderline = true; // Container child removeButton.Gtk.Container+ContainerChild Gtk.Alignment w11 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w12 = new Gtk.HBox(); w12.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w13 = new Gtk.Image(); w13.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16); w12.Add(w13); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w15 = new Gtk.Label(); w15.LabelProp = ""; w12.Add(w15); w11.Add(w12); this.removeButton.Add(w11); this.vbox2.Add(this.removeButton); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.removeButton])); w19.Position = 0; w19.Expand = false; w19.Fill = false; this.table1.Add(this.vbox2); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.vbox2])); w20.TopAttach = ((uint)(1)); w20.BottomAttach = ((uint)(2)); w20.LeftAttach = ((uint)(1)); w20.RightAttach = ((uint)(2)); w20.XOptions = ((Gtk.AttachOptions)(4)); this.vpaned1.Add(this.table1); w1.Add(this.vpaned1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(w1[this.vpaned1])); w22.Position = 0; w22.Padding = ((uint)(3)); // Internal child CBinding.EditPackagesDialog.ActionArea Gtk.HButtonBox w23 = this.ActionArea; w23.Name = "dialog1_ActionArea"; w23.Spacing = 6; w23.BorderWidth = ((uint)(5)); w23.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w24 = ((Gtk.ButtonBox.ButtonBoxChild)(w23[this.buttonCancel])); w24.Expand = false; w24.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w25 = ((Gtk.ButtonBox.ButtonBoxChild)(w23[this.buttonOk])); w25.Position = 1; w25.Expand = false; w25.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 580; this.DefaultHeight = 449; this.Show(); this.removeButton.Clicked += new System.EventHandler(this.OnRemoveButtonClicked); this.removeButton.Clicked += new System.EventHandler(this.OnRemoveButtonClick); this.selectedPackagesTreeView.CursorChanged += new System.EventHandler(this.OnSelectedPackagesTreeViewCursorChanged); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelButtonClick); this.buttonOk.Clicked += new System.EventHandler(this.OnOkButtonClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget test.MainWindow2 this.Name = "test.MainWindow2"; this.Title = Mono.Unix.Catalog.GetString("MainWindow2"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child test.MainWindow2.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.button4 = new Gtk.Button(); this.button4.CanFocus = true; this.button4.Name = "button4"; this.button4.UseUnderline = true; this.button4.Label = Mono.Unix.Catalog.GetString("button4"); this.vbox1.Add(this.button4); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.button4])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.button3 = new Gtk.Button(); this.button3.CanFocus = true; this.button3.Name = "button3"; this.button3.UseUnderline = true; this.button3.Label = Mono.Unix.Catalog.GetString("button3"); this.hbox1.Add(this.button3); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.button3])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.himagecheckbox1 = new HollyLibrary.HImageCheckBox(); this.himagecheckbox1.Events = ((Gdk.EventMask)(256)); this.himagecheckbox1.Name = "himagecheckbox1"; this.himagecheckbox1.Checked = false; this.himagecheckbox1.Text = "gigi duru"; this.hbox1.Add(this.himagecheckbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.himagecheckbox1])); w3.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.button2 = new Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; this.button2.Label = Mono.Unix.Catalog.GetString("button2"); this.hbox1.Add(this.button2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.button2])); w4.Position = 2; w4.Expand = false; w4.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w5.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.button5 = new Gtk.Button(); this.button5.CanFocus = true; this.button5.Name = "button5"; this.button5.UseUnderline = true; this.button5.Label = Mono.Unix.Catalog.GetString("button5"); this.vbox1.Add(this.button5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.button5])); w6.Position = 2; w6.Expand = false; w6.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
static void ShowEvalDialog() { string evalTitle = GettextCatalog.GetString("Evaluation Version"); string evalHeader = GettextCatalog.GetString("Feature Not Available In Evaluation Version"); string evalMessage = GettextCatalog.GetString( "Upgrade to the full version of Mono for Android to deploy\n" + "to devices, and to enable your applications to be distributed."); string continueMessage = GettextCatalog.GetString("Continue evaluation"); var dialog = new Gtk.Dialog() { Title = evalTitle, }; dialog.VBox.PackStart( new Gtk.Label("<b><big>" + evalHeader + "</big></b>") { Xalign = 0.5f, UseMarkup = true }, true, false, 12); var align = new Gtk.Alignment(0.5f, 0.5f, 1.0f, 1.0f) { LeftPadding = 12, RightPadding = 12 }; dialog.VBox.PackStart(align, true, false, 12); align.Add(new Gtk.Label(evalMessage) { Xalign = 0.5f, Justify = Gtk.Justification.Center }); align = new Gtk.Alignment(0.5f, 0.5f, 1.0f, 1.0f) { LeftPadding = 12, RightPadding = 12 }; dialog.VBox.PackStart(align, true, false, 12); string activateMessage; if (PropertyService.IsWindows) { activateMessage = GettextCatalog.GetString("Activate Mono for Android"); } else { activateMessage = GettextCatalog.GetString("Buy Mono for Android"); } var buyButton = new Gtk.Button(new Gtk.Label("<big>" + activateMessage + "</big>") { UseMarkup = true }); buyButton.Clicked += delegate { Activate(); dialog.Respond(Gtk.ResponseType.Accept); }; align.Add(buyButton); dialog.AddButton(continueMessage, Gtk.ResponseType.Close); dialog.ShowAll(); MessageService.ShowCustomDialog(dialog); }
void CreateControls() { if (node.Type == Gtk.UIManagerItemType.Separator) { Gtk.Widget sep; if (parentMenu.IsTopMenu) { sep = new Gtk.VSeparator(); sep.WidthRequest = 6; } else { sep = new Gtk.HSeparator(); sep.HeightRequest = 6; } Add(sep); ShowAll(); return; } else { if (Child != null && Child is Gtk.Separator) { Remove(Child); } } if (node.Action == null) { return; } bool isGlobal = wrapper != null && wrapper.Project.ActionGroups.IndexOf(node.Action.ActionGroup) != -1; Gtk.Action gaction = node.Action.GtkAction; bool barItem = parentMenu.IsTopMenu; string text = gaction.Label; string stock = gaction.StockId; if (barItem) { icon = null; } else if (node.Action.Type == Stetic.Wrapper.Action.ActionType.Radio) { icon = new CheckActionIcon(true, node.Action.Active); } else if (node.Action.Type == Stetic.Wrapper.Action.ActionType.Toggle) { icon = new CheckActionIcon(node.Action.DrawAsRadio, node.Action.Active); } if (stock != null) { Gtk.StockItem item = Gtk.Stock.Lookup(stock); if (text == null || text.Length == 0) { text = item.Label; } if (item.Keyval != 0 && !editing && !barItem) { Gtk.Label lac = new Gtk.Label(); string accelName = Gtk.Accelerator.Name(item.Keyval, item.Modifier).ToUpper(); accelName = accelName.Replace("<CONTROL>", "Ctrl+"); accelName = accelName.Replace("<SHIFT>", "Shift+"); accelName = accelName.Replace("<ALT>", "Alt+"); lac.Text = accelName; accel = lac; } if (icon == null && !barItem) { icon = node.Action.CreateIcon(Gtk.IconSize.Menu); } } if (editing && !isGlobal) { if (!barItem) { Gtk.HBox bbox = new Gtk.HBox(); if (icon != null) { bbox.PackStart(icon, false, false, 0); } bbox.PackStart(new Gtk.Arrow(Gtk.ArrowType.Down, Gtk.ShadowType.In), false, false, 0); Gtk.Button b = new Gtk.Button(bbox); b.TooltipText = Catalog.GetString("Select action type"); b.Relief = Gtk.ReliefStyle.None; b.ButtonPressEvent += OnSelectIcon; icon = b; } else { icon = null; } Gtk.Entry entry = new Gtk.Entry(); entry.Text = text; entry.Activated += OnLabelActivated; entry.KeyPressEvent += OnEntryKeyPress; entry.HasFrame = false; this.label = entry; entry.TooltipText = Catalog.GetString("Action label"); } else { Gtk.Label label = new Gtk.Label(text); label.Xalign = 0; this.label = label; } if (editing && wrapper != null) { // Add a button for creating / deleting a submenu Gdk.Pixbuf img; string tip; if (node.Type != Gtk.UIManagerItemType.Menu) { img = addMenuImage; tip = Catalog.GetString("Add submenu (Ctrl+Right)"); } else { img = removeMenuImage; tip = Catalog.GetString("Remove submenu (Ctrl+Left)"); } Gtk.Button sb = new Gtk.Button(new Gtk.Image(img)); sb.TooltipText = tip; sb.Relief = Gtk.ReliefStyle.None; sb.Clicked += OnCreateDeleteSubmenu; // Make sure the button is alligned to the right of the column Gtk.HBox bbox = new Gtk.HBox(); bbox.PackEnd(sb, false, false, 0); accel = bbox; } if (node.Type == Gtk.UIManagerItemType.Menu && !editing && !barItem) { Gtk.Arrow arrow = new Gtk.Arrow(Gtk.ArrowType.Right, Gtk.ShadowType.None); arrow.Xalign = 1; this.accel = arrow; } if (itemSpacing > 0 && icon != null) { // Add some padding to the left of the icon Gtk.Alignment a = new Gtk.Alignment(0, 0.5f, 0, 0); a.LeftPadding = itemSpacing; a.Add(icon); icon = a; } }
public NoteDialog(Gtk.Window parentWindow, ITask task) : base() { this.ParentWindow = parentWindow.GdkWindow; this.task = task; this.Title = String.Format(Catalog.GetString("Notes for: {0:s}"), task.Name); this.HasSeparator = false; this.SetSizeRequest(500, 320); this.Icon = Utilities.GetIcon("tasque-16", 16); //this.Flags = Gtk.DialogFlags.DestroyWithParent; sw.VscrollbarPolicy = Gtk.PolicyType.Automatic; sw.HscrollbarPolicy = Gtk.PolicyType.Never; sw.BorderWidth = 0; sw.CanFocus = true; sw.Show(); Gtk.EventBox innerEb = new Gtk.EventBox(); innerEb.BorderWidth = 0; targetVBox = new Gtk.VBox(); targetVBox.BorderWidth = 5; targetVBox.Show(); innerEb.Add(targetVBox); innerEb.Show(); if (task.Notes != null) { foreach (INote note in task.Notes) { NoteWidget noteWidget = new NoteWidget(note); noteWidget.TextChanged += OnNoteTextChanged; noteWidget.DeleteButtonClicked += OnDeleteButtonClicked; noteWidget.EditCanceled += OnEditCanceled; noteWidget.Show(); targetVBox.PackStart(noteWidget, false, false, 0); } } sw.AddWithViewport(innerEb); sw.Show(); VBox.PackStart(sw, true, true, 0); if (task.SupportsMultipleNotes) { addButton = new Gtk.Button(Gtk.Stock.Add); addButton.Show(); this.ActionArea.PackStart(addButton); addButton.Clicked += OnAddButtonClicked; } AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close); Response += delegate(object sender, Gtk.ResponseArgs args) { // Hide the window. The TaskWindow watches for when the // dialog is hidden and will take care of the rest. Hide(); }; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Jeton.BestellWidget Stetic.BinContainer.Attach(this); this.Name = "Jeton.BestellWidget"; // Container child Jeton.BestellWidget.Gtk.Container+ContainerChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(1)); this.frame1.BorderWidth = ((uint)(35)); // Container child frame1.Gtk.Container+ContainerChild this.eventBox = new Gtk.EventBox(); this.eventBox.Name = "eventBox"; // Container child eventBox.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); this.GtkAlignment2.RightPadding = ((uint)(12)); this.GtkAlignment2.BottomPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.table = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table.Name = "table"; this.table.RowSpacing = ((uint)(6)); this.table.ColumnSpacing = ((uint)(6)); this.table.BorderWidth = ((uint)(5)); this.vbox3.Add(this.table); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.table])); w1.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.cancelBtn = new Gtk.Button(); this.cancelBtn.WidthRequest = 150; this.cancelBtn.HeightRequest = 50; this.cancelBtn.CanFocus = true; this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.UseUnderline = true; // Container child cancelBtn.Gtk.Container+ContainerChild Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w3 = new Gtk.HBox(); w3.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w4 = new Gtk.Image(); w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Button, 20); w3.Add(w4); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w6 = new Gtk.Label(); w6.LabelProp = Mono.Unix.Catalog.GetString("Alle _entfernen"); w6.UseUnderline = true; w3.Add(w6); w2.Add(w3); this.cancelBtn.Add(w2); this.hbuttonbox2.Add(this.cancelBtn); Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.cancelBtn])); w10.Expand = false; w10.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.applyBtn = new Gtk.Button(); this.applyBtn.WidthRequest = 150; this.applyBtn.CanFocus = true; this.applyBtn.Name = "applyBtn"; this.applyBtn.UseUnderline = true; // Container child applyBtn.Gtk.Container+ContainerChild Gtk.Alignment w11 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w12 = new Gtk.HBox(); w12.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w13 = new Gtk.Image(); w13.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Button, 20); w12.Add(w13); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w15 = new Gtk.Label(); w15.LabelProp = Mono.Unix.Catalog.GetString("_Kaufen"); w15.UseUnderline = true; w12.Add(w15); w11.Add(w12); this.applyBtn.Add(w11); this.hbuttonbox2.Add(this.applyBtn); Gtk.ButtonBox.ButtonBoxChild w19 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.applyBtn])); w19.Position = 1; w19.Expand = false; w19.Fill = false; this.vbox3.Add(this.hbuttonbox2); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox2])); w20.Position = 1; w20.Expand = false; w20.Fill = false; this.GtkAlignment2.Add(this.vbox3); this.eventBox.Add(this.GtkAlignment2); this.frame1.Add(this.eventBox); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel2; this.Add(this.frame1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.cancelBtn.Clicked += new System.EventHandler(this.OnCancelClicked); this.applyBtn.Clicked += new System.EventHandler(this.OnApplyClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Profiler.LoadedClassChooser this.Name = "Mono.Profiler.LoadedClassChooser"; this.Title = Mono.Unix.Catalog.GetString("Choose item"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; // Internal child Mono.Profiler.LoadedClassChooser.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.ClassList = new Gtk.NodeView(); this.ClassList.CanFocus = true; this.ClassList.Name = "ClassList"; this.ClassList.Reorderable = true; this.ClassList.SearchColumn = 0; this.GtkScrolledWindow.Add(this.ClassList); w1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.GtkScrolledWindow])); w3.Position = 0; // Internal child Mono.Profiler.LoadedClassChooser.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 6; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w5.Expand = false; w5.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk])); w6.Position = 1; w6.Expand = false; w6.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.Response += new Gtk.ResponseHandler(this.OnOK); this.Close += new System.EventHandler(this.OnCancel); }