protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Upnp.GtkClient.RawXmlInfo Stetic.BinContainer.Attach(this); this.Name = "Mono.Upnp.GtkClient.RawXmlInfo"; // Container child Mono.Upnp.GtkClient.RawXmlInfo.Gtk.Container+ContainerChild 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 w1 = new Gtk.Viewport(); w1.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.raw = new Gtk.TextView(); this.raw.CanFocus = true; this.raw.Name = "raw"; this.raw.Editable = false; this.vbox1.Add(this.raw); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.raw])); w2.Position = 0; w1.Add(this.vbox1); this.scrolledwindow1.Add(w1); this.Add(this.scrolledwindow1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected void SetupUi() { var box = new Gtk.VBox(); var menu = new Gtk.MenuBar(); var fileMenu = new Gtk.Menu(); var file = new Gtk.MenuItem("File"); file.Submenu = fileMenu; menu.Append(file); var save = new Gtk.MenuItem("Save"); save.Activated += OnSaveMenuActivated; var load = new Gtk.MenuItem("Load"); load.Activated += OnLoadMenuActivated; var exit = new Gtk.MenuItem("Exit"); exit.Activated += (sender, e) => Gtk.Application.Quit(); fileMenu.Append(save); fileMenu.Append(load); fileMenu.Append(exit); box.PackStart(menu, false, false, 0); nb = new Gtk.Notebook(); nb.ShowTabs = false; nb.AppendPage(SetupOverviewPage(), new Gtk.Label("Overview")); nb.AppendPage(SetupNewNotePage(), new Gtk.Label("New")); box.PackStart(nb, true, true, 2); Add(box); }
private void Build() { var vBox = new Gtk.VBox( false, 0 ); this.BuildIcons(); this.BuildActions(); this.BuildMenu(); this.BuildToolbar(); this.BuildNotebook(); this.BuildStatusbar(); vBox.PackStart( this.mbMainMenu, false, false, 0 ); vBox.PackStart( this.tbToolbar, false, false, 0 ); vBox.PackStart( this.nbDocPages, true, true, 0 ); vBox.PackStart( this.sbStatus, false, false, 0 ); this.Add( vBox ); this.ShowAll(); // Prepare this.SetGeometryHints( this, new Gdk.Geometry { MinWidth = 640, MinHeight = 480 }, Gdk.WindowHints.MinSize ); this.DeleteEvent += (o, args) => this.OnTerminateWindow( args ); this.Icon = this.iconTesty; }
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 (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.CleanupSummary Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.CleanupSummary"; // Container child ocmgtk.CleanupSummary.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; this.vbox3.BorderWidth = ((uint)(6)); // Container child vbox3.Gtk.Box+BoxChild this.summaryText = new Gtk.Label(); this.summaryText.Name = "summaryText"; this.summaryText.Xalign = 0F; this.summaryText.LabelProp = Mono.Unix.Catalog.GetString("Database cleanup complete"); this.vbox3.Add(this.summaryText); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.summaryText])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.vbox3.Add(this.hseparator2); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator2])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget omvviewerlight.TexturePreview this.Name = "omvviewerlight.TexturePreview"; this.Title = Mono.Unix.Catalog.GetString("TexturePreview"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child omvviewerlight.TexturePreview.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label_title = new Gtk.Label(); this.label_title.Name = "label_title"; this.vbox1.Add(this.label_title); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label_title])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.image = new Gtk.Image(); this.image.Name = "image"; this.vbox1.Add(this.image); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.image])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.CleanUpPage1 Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.CleanUpPage1"; // Container child ocmgtk.CleanUpPage1.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Ypad = 15; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("This assistant will help guide you through cleaning up your OCM database.\n\nBy reducing the number of logs per cache and compacting your database, you can greatly reduce the size of you OCM database which will improve performance. "); this.label2.Wrap = true; this.label2.WidthChars = 80; this.vbox1.Add(this.label2); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2])); w1.Position = 0; w1.Expand = false; w1.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
public WindowView(Main _view, Controller.Window _ctl) { View = _view; Window = _ctl; Homogeneous = false; Spacing = 0; BorderWidth = 0; var topLevelBox = new Gtk.VBox(); topLevelBox.Homogeneous = false; topLevelBox.Spacing = 0; topLevelBox.BorderWidth = 0; textView = new WindowTextView(Window); scroll = new Gtk.ScrolledWindow { HscrollbarPolicy = Gtk.PolicyType.Automatic, VscrollbarPolicy = Gtk.PolicyType.Automatic }; scroll.Add(textView); Window.CursorMovedByCommand.Add(i => { textView.ScrollToIter(i.GtkIter, 0, false, 0, 0); }); topLevelBox.PackStart(scroll, true, true, 0); status = new Gtk.Statusbar(); status.HasResizeGrip = false; status.Push(StatusbarMode, Window.CurrentMode.GetName()); Window.CurrentMode.Event.Changed += m => { status.Pop(StatusbarMode); status.Push(StatusbarMode, Window.CurrentMode.GetName()); }; Window.Model.Changed += m => { textView.Buffer = m; }; topLevelBox.PackStart(status, false, false, 0); // Wrap the topLevelBox with borders on the left and right var hlBox = new Gtk.DrawingArea(); NormalColor = hlBox.Style.Background(Gtk.StateType.Normal); hlBox.WidthRequest = 10; var borderBox = new Gtk.HBox(); borderBox.Homogeneous = false; borderBox.Spacing = 0; borderBox.BorderWidth = 0; borderBox.PackStart(hlBox, false, false, 0); borderBox.PackStart(topLevelBox, true, true, 0); textView.FocusInEvent += (object o, Gtk.FocusInEventArgs args) => { Window.Controller.FocusedWindow.Value = Window; hlBox.ModifyBg(Gtk.StateType.Normal, HighlightColor); }; textView.FocusOutEvent += (object o, Gtk.FocusOutEventArgs args) => { hlBox.ModifyBg(Gtk.StateType.Normal, NormalColor); }; Add(borderBox); }
public ActionGroupEditor() { changedEvent = new ObjectWrapperEventHandler (OnActionChanged); Gtk.Fixed fx = new Gtk.Fixed (); table = new Gtk.Table (0, 0, false); table.RowSpacing = 8; table.ColumnSpacing = 8; table.BorderWidth = 12; Gtk.EventBox ebox = new Gtk.EventBox (); ebox.ModifyBg (Gtk.StateType.Normal, this.Style.Backgrounds [0]); headerLabel = new EditableLabel (); headerLabel.MarkupTemplate = "<b>$TEXT</b>"; headerLabel.Changed += OnGroupNameChanged; Gtk.VBox vbox = new Gtk.VBox (); Gtk.Label grpLabel = new Gtk.Label (); grpLabel.Xalign = 0; grpLabel.Markup = "<small><i>Action Group</i></small>"; // vbox.PackStart (grpLabel, false, false, 0); vbox.PackStart (headerLabel, false, false, 3); vbox.BorderWidth = 12; ebox.Add (vbox); Gtk.VBox box = new Gtk.VBox (); box.Spacing = 6; box.PackStart (ebox, false, false, 0); box.PackStart (table, false, false, 0); fx.Put (box, 0, 0); Add (fx); ShowAll (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ControlWrappers.BoundComboBox Stetic.BinContainer.Attach(this); this.Name = "ControlWrappers.BoundComboBox"; // Container child ControlWrappers.BoundComboBox.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.cbBound = Gtk.ComboBox.NewText(); this.cbBound.Name = "cbBound"; this.vbox3.Add(this.cbBound); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbBound])); w1.Position = 0; w1.Expand = false; w1.Fill = false; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.cbBound.Changed += new System.EventHandler(this.BoundComboValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.HTMLEditorWidget Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this); this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.UIManager.InsertActionGroup(w2, 0); this.Name = "ocmgtk.HTMLEditorWidget"; // Container child ocmgtk.HTMLEditorWidget.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.editorWindow = new Gtk.ScrolledWindow(); this.editorWindow.CanFocus = true; this.editorWindow.Name = "editorWindow"; this.editorWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child editorWindow.Gtk.Container+ContainerChild this.editor = new Gtk.TextView(); this.editor.CanFocus = true; this.editor.Name = "editor"; this.editor.WrapMode = ((Gtk.WrapMode)(2)); this.editorWindow.Add(this.editor); this.vbox3.Add(this.editorWindow); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.editorWindow])); w4.Position = 0; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } w1.SetUiManager(UIManager); this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget fileparsersharp.ViewWindow this.Name = "fileparsersharp.ViewWindow"; this.Title = "ViewWindow"; this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child fileparsersharp.ViewWindow.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = "ViewWindow"; this.vbox2.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w1.Position = 1; w1.Expand = false; w1.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); }
private void DisplayEntries(IEnumerable<HistoryEntry> entries) { var entryBox = new Gtk.VBox (); entries.ToList ().ForEach (entryBox.Add); scrolledwindow1.AddWithViewport (entryBox); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget PackageManager.Configuration Stetic.BinContainer.Attach(this); this.Name = "PackageManager.Configuration"; // Container child PackageManager.Configuration.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.Xalign = 0F; this.label.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.vbox1.Add(this.label); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label])); w1.Position = 1; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.combobox = Gtk.ComboBox.NewText(); this.combobox.Name = "combobox"; this.vbox1.Add(this.combobox); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.combobox])); w2.Position = 2; w2.Expand = false; w2.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
private void Build() { this.vbMain = new Gtk.VBox( false, 5 ); this.BuildActions(); this.BuildMenu(); this.BuildTools(); // Events this.DeleteEvent += (o, args) => this.OnClose(); this.Shown += (sender, e) => this.OnShow(); // Polish this.WindowPosition = Gtk.WindowPosition.Center; this.Add( this.vbMain ); this.Resize( 640, 480 ); this.SetGeometryHints( this, new Gdk.Geometry() { MinWidth = 320, MinHeight = 200 }, Gdk.WindowHints.MinSize ); }
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); }
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 Mono.Upnp.GtkClient.MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.WidthRequest = 0; this.HeightRequest = 0; this.Name = "Mono.Upnp.GtkClient.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Mono.Upnp"); this.WindowPosition = ((Gtk.WindowPosition)(1)); // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hpaned = new Gtk.HPaned(); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 354; this.hpaned.BorderWidth = ((uint)(5)); // Container child hpaned.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.list = new Gtk.TreeView(); this.list.CanFocus = true; this.list.Name = "list"; this.GtkScrolledWindow.Add(this.list); this.hpaned.Add(this.GtkScrolledWindow); Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow])); w3.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.infoBox = new Gtk.VBox(); this.infoBox.Name = "infoBox"; this.infoBox.Spacing = 6; // Container child infoBox.Gtk.Box+BoxChild this.infoFiller = new Gtk.Label(); this.infoFiller.Name = "infoFiller"; this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service"); this.infoBox.Add(this.infoFiller); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller])); w4.Position = 0; w4.Fill = false; this.hpaned.Add(this.infoBox); this.vbox1.Add(this.hpaned); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned])); w6.Position = 0; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 1077; this.DefaultHeight = 527; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.OCMSplash this.WidthRequest = 744; this.HeightRequest = 600; this.Name = "ocmgtk.OCMSplash"; this.Title = Mono.Unix.Catalog.GetString("OCMSplash"); this.TypeHint = ((Gdk.WindowTypeHint)(4)); this.WindowPosition = ((Gtk.WindowPosition)(3)); this.Resizable = false; this.AllowGrow = false; this.Decorated = false; // Container child ocmgtk.OCMSplash.Gtk.Container+ContainerChild this.splashVBox = new Gtk.VBox(); this.splashVBox.Name = "splashVBox"; this.splashVBox.Spacing = 6; // Container child splashVBox.Gtk.Box+BoxChild this.labelAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.labelAlignment.Name = "labelAlignment"; this.labelAlignment.LeftPadding = ((uint)(120)); this.labelAlignment.TopPadding = ((uint)(430)); // Container child labelAlignment.Gtk.Container+ContainerChild this.versionLabel = new Gtk.Label(); this.versionLabel.Name = "versionLabel"; this.versionLabel.Xalign = 0F; this.versionLabel.Yalign = 0F; this.versionLabel.LabelProp = "<b><big>Version XXX</big></b>\n<small>Copyright (c) Kyle Campbell 2010-2011</small>"; this.versionLabel.UseMarkup = true; this.labelAlignment.Add(this.versionLabel); this.splashVBox.Add(this.labelAlignment); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.splashVBox[this.labelAlignment])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child splashVBox.Gtk.Box+BoxChild this.progressAlign = new Gtk.Alignment(0F, 0F, 1F, 1F); this.progressAlign.Name = "progressAlign"; this.progressAlign.LeftPadding = ((uint)(120)); this.progressAlign.RightPadding = ((uint)(400)); // Container child progressAlign.Gtk.Container+ContainerChild this.loadProgress = new Gtk.ProgressBar(); this.loadProgress.WidthRequest = 100; this.loadProgress.HeightRequest = 10; this.loadProgress.Name = "loadProgress"; this.progressAlign.Add(this.loadProgress); this.splashVBox.Add(this.progressAlign); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.splashVBox[this.progressAlign])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add(this.splashVBox); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 786; this.DefaultHeight = 627; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null); this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures"); w1.Add(this.FiguresAction, null); this.AddClassFigureAction = new Gtk.Action("AddClassFigureAction", Mono.Unix.Catalog.GetString("Add Class Figure"), null, null); this.AddClassFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Class Figure"); w1.Add(this.AddClassFigureAction, null); this.AddStackFigureAction = new Gtk.Action("AddStackFigureAction", Mono.Unix.Catalog.GetString("Add StackFigure"), null, null); this.AddStackFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add StackFigure"); w1.Add(this.AddStackFigureAction, null); this.AddMemberGroupAction = new Gtk.Action("AddMemberGroupAction", Mono.Unix.Catalog.GetString("Add MemberGroup"), null, null); this.AddMemberGroupAction.ShortLabel = Mono.Unix.Catalog.GetString("Add MemberGroup"); w1.Add(this.AddMemberGroupAction, null); this.AddSimpleTextFigureAction = new Gtk.Action("AddSimpleTextFigureAction", Mono.Unix.Catalog.GetString("Add SimpleTextFigure"), null, null); this.AddSimpleTextFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add SimpleTextFigure"); w1.Add(this.AddSimpleTextFigureAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("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.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddClassFigureAction' action='AddClassFigureAction'/><menuitem name='AddStackFigureAction' action='AddStackFigureAction'/><menuitem name='AddMemberGroupAction' action='AddMemberGroupAction'/><menuitem name='AddSimpleTextFigureAction' action='AddSimpleTextFigureAction'/></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.mhdcanvas = new MonoHotDraw.SteticComponent(); this.mhdcanvas.Events = ((Gdk.EventMask)(256)); this.mhdcanvas.Name = "mhdcanvas"; this.vbox1.Add(this.mhdcanvas); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mhdcanvas])); w3.Position = 1; 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); this.AddClassFigureAction.Activated += new System.EventHandler(this.OnAddClassFigureActionActivated); this.AddStackFigureAction.Activated += new System.EventHandler(this.OnAddStackFigureActionActivated); this.AddMemberGroupAction.Activated += new System.EventHandler(this.OnAddMemberGroupActionActivated); this.AddSimpleTextFigureAction.Activated += new System.EventHandler(this.OnAddSimpleTextFigureActionActivated); }
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 (); }; }
public WindowView(Main _view, Controller.Window _ctl) { View = _view; Window = _ctl; Homogeneous = false; Spacing = 0; BorderWidth = 0; var topLevelBox = new Gtk.VBox(); topLevelBox.Homogeneous = false; topLevelBox.Spacing = 0; topLevelBox.BorderWidth = 0; textView = new WindowTextView(Window); scroll = new Gtk.ScrolledWindow { HscrollbarPolicy = Gtk.PolicyType.Automatic, VscrollbarPolicy = Gtk.PolicyType.Automatic }; scroll.Add(textView); Window.CursorMovedByCommand.Add(i => { textView.ScrollToIter(i.GtkIter, 0, false, 0, 0); }); topLevelBox.PackStart(scroll, true, true, 0); status = new MultiStatusbar(); status.Add(StatusbarItem.Create(100, () => Window.CurrentMode.GetName(), Window.CurrentMode.Changed)); status.Add(StatusbarItem.Create(50, Window.Model.Value.HasUnsavedChanges, b => b ? "" : "Saved")); status.AddLast(StatusbarItem.Create(400, Window.Model.Value.File.ProjectRelativeFullName())); topLevelBox.PackStart(status, false, false, 0); Window.Model.Changed += m => { textView.Buffer = m; }; // Wrap the topLevelBox with borders on the left and right var hlBox = new Gtk.DrawingArea(); NormalColor = hlBox.Style.Background(Gtk.StateType.Normal); hlBox.WidthRequest = 10; var borderBox = new Gtk.HBox(); borderBox.Homogeneous = false; borderBox.Spacing = 0; borderBox.BorderWidth = 0; borderBox.PackStart(hlBox, false, false, 0); borderBox.PackStart(topLevelBox, true, true, 0); textView.FocusInEvent += (object o, Gtk.FocusInEventArgs args) => { Window.Controller.Windows.Current = Window; hlBox.ModifyBg(Gtk.StateType.Normal, HighlightColor); }; textView.FocusOutEvent += (object o, Gtk.FocusOutEventArgs args) => { hlBox.ModifyBg(Gtk.StateType.Normal, NormalColor); }; Add(borderBox); }
public CrashDialog(Gtk.Window parent, Exception e) : base(null, parent, Gtk.DialogFlags.Modal) { SetDefaultSize(640, 480); Title = "Smuxi - " + _("Oops, I did it again..."); Gtk.HBox hbox = new Gtk.HBox(); Gtk.Image image = new Gtk.Image(Gtk.Stock.DialogError, Gtk.IconSize.Dialog); hbox.PackStart(image, false, false, 2); Gtk.VBox label_vbox = new Gtk.VBox(); Gtk.Label label1 = new Gtk.Label(); Gtk.Label label2 = new Gtk.Label(); label1.Markup = String.Format( "<b>{0}</b>", GLib.Markup.EscapeText( _("Smuxi crashed because an unhandled exception was thrown!") ) ); label2.Markup = GLib.Markup.EscapeText( _("Here is the stacktrace, please report this bug!") ); label_vbox.PackStart(label1, false, false, 0); label_vbox.PackStart(new Gtk.Fixed(), true, true, 0); label_vbox.PackStart(label2, false, false, 0); hbox.PackStart(label_vbox, true, true, 0); Gtk.VBox vbox = new Gtk.VBox(); vbox.PackStart(hbox, false, false, 2); Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow(); sw.ShadowType = Gtk.ShadowType.In; Gtk.TextView tv = new Gtk.TextView(); tv.Editable = false; tv.CursorVisible = false; sw.Add(tv); vbox.PackStart(sw, true, true, 2); // add to the dialog VBox.PackStart(vbox, true, true, 2); AddButton(_("_Report Bug"), -1); AddButton(Gtk.Stock.Quit, 0); string message = String.Empty; if (e.InnerException != null) { message = "Inner-Exception Type:\n"+e.InnerException.GetType()+"\n\n"+ "Inner-Exception Message:\n"+e.InnerException.Message+"\n\n"+ "Inner-Exception StackTrace:\n"+e.InnerException.StackTrace+"\n"; } message += "Exception Type:\n"+e.GetType()+"\n\n"+ "Exception Message:\n"+e.Message+"\n\n"+ "Exception StackTrace:\n"+e.StackTrace; tv.Buffer.Text = message; ShowAll(); }
protected virtual Gtk.Widget CreateMainLayout () { mainBox = new Gtk.VBox (); mainBox.Show (); alignment = new RootWindowAlignment (this); mainBox.PackStart (alignment, true, true, 0); alignment.Show (); return mainBox; }
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 WindowBackend() { Window = new Gtk.Window (""); mainBox = new Gtk.VBox (); Window.Add (mainBox); mainBox.Show (); alignment = new Gtk.Alignment (0, 0, 1, 1); mainBox.PackStart (alignment, true, true, 0); alignment.Show (); }
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); }
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; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ControlWrappers.CronValueEditor Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this); this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.selectAllAction = new Gtk.Action("selectAllAction", null, null, "gtk-select-all"); w2.Add(this.selectAllAction, null); this.clearAction = new Gtk.Action("clearAction", null, null, "gtk-clear"); w2.Add(this.clearAction, null); this.UIManager.InsertActionGroup(w2, 0); this.Name = "ControlWrappers.CronValueEditor"; // Container child ControlWrappers.CronValueEditor.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild this.tvList = new Gtk.TreeView(); this.tvList.CanFocus = true; this.tvList.Name = "tvList"; this.tvList.EnableSearch = false; this.tvList.HeadersVisible = false; this.scrolledwindow2.Add(this.tvList); this.vbox2.Add(this.scrolledwindow2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2])); w4.Position = 0; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='selectAllAction' action='selectAllAction'/><toolitem name='clearAction' action='clearAction'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((Gtk.IconSize)(3)); this.vbox2.Add(this.toolbar1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } w1.SetUiManager(UIManager); this.Hide(); this.selectAllAction.Activated += new System.EventHandler(this.SelectAllActivated); this.clearAction.Activated += new System.EventHandler(this.ClearActivated); this.tvList.CursorChanged += new System.EventHandler(this.TreeListCursorChanged); }
public WrapperDesignView (ViewContent content) { this.content = content; this.contentBox = new Gtk.VBox (); this.contentBox.PackEnd (content.Control, true, true, 0); this.contentBox.ShowAll (); content.DirtyChanged += new EventHandler (OnTextDirtyChanged); IdeApp.Workbench.ActiveDocumentChanged += new EventHandler (OnActiveDocumentChanged); }
internal static void AttachMainToolbar(Gtk.VBox parent, MainToolbarController toolbar) { PlatformService.AttachMainToolbar(parent, toolbar.ToolbarView); toolbar.Initialize(); }
public virtual void Initialize(PropertyDescriptor prop) { CheckType(prop); this.prop = prop; mainHBox = new Gtk.HBox(false, 6); PackStart(mainHBox, false, false, 0); if (!prop.Translatable) { return; } button = new Gtk.Button(); try { globe = Gdk.Pixbuf.LoadFromResource("globe.png"); globe_not = Gdk.Pixbuf.LoadFromResource("globe-not.png"); } catch (Exception e) { Console.WriteLine("Error while loading pixbuf: " + e); } image = new Gtk.Image(globe); button.Add(image); button.ButtonPressEvent += ButtonPressed; mainHBox.PackEnd(button, false, false, 0); mainHBox.ShowAll(); menu = new Gtk.Menu(); markItem = new Gtk.CheckMenuItem(Mono.Unix.Catalog.GetString("Mark for Translation")); markItem.Toggled += ToggleMark; markItem.Show(); menu.Add(markItem); addContextItem = new Gtk.MenuItem(Mono.Unix.Catalog.GetString("Add Translation Context Hint")); addContextItem.Activated += AddContext; menu.Add(addContextItem); remContextItem = new Gtk.MenuItem(Mono.Unix.Catalog.GetString("Remove Translation Context Hint")); remContextItem.Activated += RemoveContext; menu.Add(remContextItem); addCommentItem = new Gtk.MenuItem(Mono.Unix.Catalog.GetString("Add Comment for Translators")); addCommentItem.Activated += AddComment; menu.Add(addCommentItem); remCommentItem = new Gtk.MenuItem(Mono.Unix.Catalog.GetString("Remove Comment for Translators")); remCommentItem.Activated += RemoveComment; menu.Add(remCommentItem); contextBox = new Gtk.HBox(false, 6); Gtk.Label contextLabel = new Gtk.Label(Mono.Unix.Catalog.GetString("Translation context")); contextLabel.Xalign = 0.0f; contextBox.PackStart(contextLabel, false, false, 0); contextEntry = new Gtk.Entry(); contextEntry.WidthChars = 8; contextBox.PackStart(contextEntry, true, true, 0); contextBox.ShowAll(); contextEntry.Changed += ContextChanged; commentBox = new Gtk.VBox(false, 3); Gtk.Label commentLabel = new Gtk.Label(Mono.Unix.Catalog.GetString("Comment for Translators:")); commentLabel.Xalign = 0.0f; commentBox.PackStart(commentLabel, false, false, 0); commentText = new TextBox(3); commentBox.PackStart(commentText, false, false, 0); commentBox.ShowAll(); commentText.Changed += CommentChanged; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ImportDialog this.WidthRequest = 700; this.HeightRequest = 500; this.Name = "ocmgtk.ImportDialog"; this.Title = Mono.Unix.Catalog.GetString("Import GPX/LOC/ZIP.."); 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.ImportDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.fileWidget = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0))); this.fileWidget.Name = "fileWidget"; w1.Add(this.fileWidget); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.fileWidget])); w2.Position = 0; // Container child dialog1_VBox.Gtk.Box+BoxChild this.expander1 = new Gtk.Expander(null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; this.expander1.Expanded = true; // Container child expander1.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.oldLogsCheck = new Gtk.CheckButton(); this.oldLogsCheck.CanFocus = true; this.oldLogsCheck.Name = "oldLogsCheck"; this.oldLogsCheck.Label = Mono.Unix.Catalog.GetString("Purge old cache logs"); this.oldLogsCheck.DrawIndicator = true; this.oldLogsCheck.UseUnderline = true; this.vbox2.Add(this.oldLogsCheck); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.oldLogsCheck])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.statusCheck = new Gtk.CheckButton(); this.statusCheck.CanFocus = true; this.statusCheck.Name = "statusCheck"; this.statusCheck.Label = Mono.Unix.Catalog.GetString("Do not overwrite existing found status in database"); this.statusCheck.DrawIndicator = true; this.statusCheck.UseUnderline = true; this.vbox2.Add(this.statusCheck); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusCheck])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.gsakFieldsCheck = new Gtk.CheckButton(); this.gsakFieldsCheck.CanFocus = true; this.gsakFieldsCheck.Name = "gsakFieldsCheck"; this.gsakFieldsCheck.Label = Mono.Unix.Catalog.GetString("Ignore GSAK/OCM extra fields in GPX file"); this.gsakFieldsCheck.DrawIndicator = true; this.gsakFieldsCheck.UseUnderline = true; this.vbox2.Add(this.gsakFieldsCheck); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.gsakFieldsCheck])); w5.Position = 2; w5.Expand = false; w5.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.addToListCheck = new Gtk.CheckButton(); this.addToListCheck.CanFocus = true; this.addToListCheck.Name = "addToListCheck"; this.addToListCheck.Label = Mono.Unix.Catalog.GetString("Add to bookmark list:"); this.addToListCheck.DrawIndicator = true; this.addToListCheck.UseUnderline = true; this.hbox1.Add(this.addToListCheck); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.addToListCheck])); w6.Position = 0; w6.Expand = false; // Container child hbox1.Gtk.Box+BoxChild this.bmCombo = Gtk.ComboBox.NewText(); this.bmCombo.Sensitive = false; this.bmCombo.Name = "bmCombo"; this.hbox1.Add(this.bmCombo); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.bmCombo])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.addBmrkButton = new Gtk.Button(); this.addBmrkButton.CanFocus = true; this.addBmrkButton.Name = "addBmrkButton"; // Container child addBmrkButton.Gtk.Container+ContainerChild this.image20 = new Gtk.Image(); this.image20.Sensitive = false; this.image20.Name = "image20"; this.image20.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); this.addBmrkButton.Add(this.image20); this.addBmrkButton.Label = null; this.hbox1.Add(this.addBmrkButton); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox1[this.addBmrkButton])); w9.Position = 2; 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; this.expander1.Add(this.vbox2); this.GtkLabel17 = new Gtk.Label(); this.GtkLabel17.Name = "GtkLabel17"; this.GtkLabel17.LabelProp = Mono.Unix.Catalog.GetString("Options"); this.GtkLabel17.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel17; w1.Add(this.expander1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.expander1])); w12.Position = 1; w12.Expand = false; w12.Fill = false; w12.Padding = ((uint)(6)); // Internal child ocmgtk.ImportDialog.ActionArea Gtk.HButtonBox w13 = this.ActionArea; w13.Name = "dialog1_ActionArea"; w13.Spacing = 10; w13.BorderWidth = ((uint)(5)); w13.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 w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonCancel])); w14.Expand = false; w14.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-open"; this.AddActionWidget(this.buttonOk, -3); Gtk.ButtonBox.ButtonBoxChild w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonOk])); w15.Position = 1; w15.Expand = false; w15.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 721; this.DefaultHeight = 527; this.Show(); this.fileWidget.FileActivated += new System.EventHandler(this.OnFileActivated); this.addToListCheck.Toggled += new System.EventHandler(this.OnAddToBmrkToggle); this.addBmrkButton.Clicked += new System.EventHandler(this.OnAddClicked); 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 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, "gtk-stop"); this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w1.Add(this.ExitAction, null); this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("Tools"), null, null); this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools"); w1.Add(this.ToolsAction, null); this.UIManager.InsertActionGroup(w1, 0); Gtk.ActionGroup w2 = new Gtk.ActionGroup("New Action Group"); this.UIManager.InsertActionGroup(w2, 1); this.AddAccelGroup(this.UIManager.AccelGroup); this.CanFocus = true; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Surveyor SVS"); 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.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='ToolsAction' action='ToolsAction'/></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.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 this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.leftimage = new Gtk.Image(); this.leftimage.Name = "leftimage"; this.hbox1.Add(this.leftimage); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.leftimage])); w4.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.rightimage = new Gtk.Image(); this.rightimage.Name = "rightimage"; this.hbox1.Add(this.rightimage); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.rightimage])); w5.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.picMap = new Gtk.Image(); this.picMap.Name = "picMap"; this.hbox1.Add(this.picMap); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.picMap])); w6.Position = 2; w6.Expand = false; w6.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.chkCalibrateLeft = new Gtk.CheckButton(); this.chkCalibrateLeft.CanFocus = true; this.chkCalibrateLeft.Name = "chkCalibrateLeft"; this.chkCalibrateLeft.Label = Mono.Unix.Catalog.GetString("Calibrate left camera"); this.chkCalibrateLeft.DrawIndicator = true; this.chkCalibrateLeft.UseUnderline = true; this.hbox2.Add(this.chkCalibrateLeft); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkCalibrateLeft])); w8.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.chkCalibrateRight = new Gtk.CheckButton(); this.chkCalibrateRight.CanFocus = true; this.chkCalibrateRight.Name = "chkCalibrateRight"; this.chkCalibrateRight.Label = Mono.Unix.Catalog.GetString("Calibrate right camera"); this.chkCalibrateRight.DrawIndicator = true; this.chkCalibrateRight.UseUnderline = true; this.hbox2.Add(this.chkCalibrateRight); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkCalibrateRight])); w9.Position = 2; // Container child hbox2.Gtk.Box+BoxChild this.chkLogging = new Gtk.CheckButton(); this.chkLogging.CanFocus = true; this.chkLogging.Name = "chkLogging"; this.chkLogging.Label = Mono.Unix.Catalog.GetString("Logging"); this.chkLogging.DrawIndicator = true; this.chkLogging.UseUnderline = true; this.hbox2.Add(this.chkLogging); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkLogging])); w10.PackType = ((Gtk.PackType)(1)); w10.Position = 3; // Container child hbox2.Gtk.Box+BoxChild this.chkEmbedded = new Gtk.CheckButton(); this.chkEmbedded.CanFocus = true; this.chkEmbedded.Name = "chkEmbedded"; this.chkEmbedded.Label = Mono.Unix.Catalog.GetString("Embedded"); this.chkEmbedded.DrawIndicator = true; this.chkEmbedded.UseUnderline = true; this.hbox2.Add(this.chkEmbedded); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkEmbedded])); w11.PackType = ((Gtk.PackType)(1)); w11.Position = 4; // Container child hbox2.Gtk.Box+BoxChild this.cmdAnimatedGif = new Gtk.Button(); this.cmdAnimatedGif.CanFocus = true; this.cmdAnimatedGif.Name = "cmdAnimatedGif"; this.cmdAnimatedGif.UseUnderline = true; this.cmdAnimatedGif.Label = Mono.Unix.Catalog.GetString("Save Gif"); this.hbox2.Add(this.cmdAnimatedGif); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdAnimatedGif])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 5; w12.Expand = false; w12.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.cmdTweaks = new Gtk.Button(); this.cmdTweaks.CanFocus = true; this.cmdTweaks.Name = "cmdTweaks"; this.cmdTweaks.UseUnderline = true; this.cmdTweaks.Label = Mono.Unix.Catalog.GetString("Tweaks"); this.hbox2.Add(this.cmdTweaks); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdTweaks])); w13.PackType = ((Gtk.PackType)(1)); w13.Position = 6; w13.Expand = false; w13.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.cmdCalibrateAlignment = new Gtk.Button(); this.cmdCalibrateAlignment.CanFocus = true; this.cmdCalibrateAlignment.Name = "cmdCalibrateAlignment"; this.cmdCalibrateAlignment.UseUnderline = true; this.cmdCalibrateAlignment.Label = Mono.Unix.Catalog.GetString("Calibrate Alignment"); this.hbox2.Add(this.cmdCalibrateAlignment); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdCalibrateAlignment])); w14.PackType = ((Gtk.PackType)(1)); w14.Position = 7; w14.Expand = false; w14.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w15.Position = 2; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.cmdSpinLeft = new Gtk.Button(); this.cmdSpinLeft.CanFocus = true; this.cmdSpinLeft.Name = "cmdSpinLeft"; this.cmdSpinLeft.UseUnderline = true; // Container child cmdSpinLeft.Gtk.Container+ContainerChild Gtk.Alignment w16 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w17 = new Gtk.HBox(); w17.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w18 = new Gtk.Image(); w18.Pixbuf = Gdk.Pixbuf.LoadFromResource("ccw.png"); w17.Add(w18); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w20 = new Gtk.Label(); w17.Add(w20); w16.Add(w17); this.cmdSpinLeft.Add(w16); this.hbox7.Add(this.cmdSpinLeft); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox7[this.cmdSpinLeft])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.cmdBlank1 = new Gtk.Button(); this.cmdBlank1.CanFocus = true; this.cmdBlank1.Name = "cmdBlank1"; this.cmdBlank1.UseUnderline = true; // Container child cmdBlank1.Gtk.Container+ContainerChild Gtk.Alignment w25 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w26 = new Gtk.HBox(); w26.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w27 = new Gtk.Image(); w27.Pixbuf = Gdk.Pixbuf.LoadFromResource("blank.png"); w26.Add(w27); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w29 = new Gtk.Label(); w26.Add(w29); w25.Add(w26); this.cmdBlank1.Add(w25); this.hbox7.Add(this.cmdBlank1); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.hbox7[this.cmdBlank1])); w33.Position = 1; w33.Expand = false; w33.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.cmdSpinRight = new Gtk.Button(); this.cmdSpinRight.CanFocus = true; this.cmdSpinRight.Name = "cmdSpinRight"; this.cmdSpinRight.UseUnderline = true; // Container child cmdSpinRight.Gtk.Container+ContainerChild Gtk.Alignment w34 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w35 = new Gtk.HBox(); w35.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w36 = new Gtk.Image(); w36.Pixbuf = Gdk.Pixbuf.LoadFromResource("cw.png"); w35.Add(w36); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w38 = new Gtk.Label(); w35.Add(w38); w34.Add(w35); this.cmdSpinRight.Add(w34); this.hbox7.Add(this.cmdSpinRight); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox7[this.cmdSpinRight])); w42.Position = 2; w42.Expand = false; w42.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.cmdBlank2 = new Gtk.Button(); this.cmdBlank2.CanFocus = true; this.cmdBlank2.Name = "cmdBlank2"; this.cmdBlank2.UseUnderline = true; // Container child cmdBlank2.Gtk.Container+ContainerChild Gtk.Alignment w43 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w44 = new Gtk.HBox(); w44.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w45 = new Gtk.Image(); w45.Pixbuf = Gdk.Pixbuf.LoadFromResource("blank.png"); w44.Add(w45); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w47 = new Gtk.Label(); w44.Add(w47); w43.Add(w44); this.cmdBlank2.Add(w43); this.hbox7.Add(this.cmdBlank2); Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.hbox7[this.cmdBlank2])); w51.Position = 3; w51.Expand = false; w51.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.cmdBlank3 = new Gtk.Button(); this.cmdBlank3.CanFocus = true; this.cmdBlank3.Name = "cmdBlank3"; this.cmdBlank3.UseUnderline = true; // Container child cmdBlank3.Gtk.Container+ContainerChild Gtk.Alignment w52 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w53 = new Gtk.HBox(); w53.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w54 = new Gtk.Image(); w54.Pixbuf = Gdk.Pixbuf.LoadFromResource("blank.png"); w53.Add(w54); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w56 = new Gtk.Label(); w53.Add(w56); w52.Add(w53); this.cmdBlank3.Add(w52); this.hbox7.Add(this.cmdBlank3); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox7[this.cmdBlank3])); w60.Position = 4; w60.Expand = false; w60.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.cmd160x128 = new Gtk.Button(); this.cmd160x128.CanFocus = true; this.cmd160x128.Name = "cmd160x128"; this.cmd160x128.UseUnderline = true; // Container child cmd160x128.Gtk.Container+ContainerChild Gtk.Alignment w61 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w62 = new Gtk.HBox(); w62.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w63 = new Gtk.Image(); w63.Pixbuf = Gdk.Pixbuf.LoadFromResource("160.png"); w62.Add(w63); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w65 = new Gtk.Label(); w62.Add(w65); w61.Add(w62); this.cmd160x128.Add(w61); this.hbox7.Add(this.cmd160x128); Gtk.Box.BoxChild w69 = ((Gtk.Box.BoxChild)(this.hbox7[this.cmd160x128])); w69.Position = 5; w69.Expand = false; w69.Fill = false; this.vbox1.Add(this.hbox7); Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox7])); w70.PackType = ((Gtk.PackType)(1)); w70.Position = 3; w70.Expand = false; w70.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.cmdBackLeft = new Gtk.Button(); this.cmdBackLeft.CanFocus = true; this.cmdBackLeft.Name = "cmdBackLeft"; this.cmdBackLeft.UseUnderline = true; // Container child cmdBackLeft.Gtk.Container+ContainerChild Gtk.Alignment w71 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w72 = new Gtk.HBox(); w72.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w73 = new Gtk.Image(); w73.Pixbuf = Gdk.Pixbuf.LoadFromResource("backleft.png"); w72.Add(w73); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w75 = new Gtk.Label(); w72.Add(w75); w71.Add(w72); this.cmdBackLeft.Add(w71); this.hbox6.Add(this.cmdBackLeft); Gtk.Box.BoxChild w79 = ((Gtk.Box.BoxChild)(this.hbox6[this.cmdBackLeft])); w79.Position = 0; w79.Expand = false; w79.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.cmdBack = new Gtk.Button(); this.cmdBack.CanFocus = true; this.cmdBack.Name = "cmdBack"; this.cmdBack.UseUnderline = true; // Container child cmdBack.Gtk.Container+ContainerChild Gtk.Alignment w80 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w81 = new Gtk.HBox(); w81.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w82 = new Gtk.Image(); w82.Pixbuf = Gdk.Pixbuf.LoadFromResource("back.png"); w81.Add(w82); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w84 = new Gtk.Label(); w81.Add(w84); w80.Add(w81); this.cmdBack.Add(w80); this.hbox6.Add(this.cmdBack); Gtk.Box.BoxChild w88 = ((Gtk.Box.BoxChild)(this.hbox6[this.cmdBack])); w88.Position = 1; w88.Expand = false; w88.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.cmdBackRight = new Gtk.Button(); this.cmdBackRight.CanFocus = true; this.cmdBackRight.Name = "cmdBackRight"; this.cmdBackRight.UseUnderline = true; // Container child cmdBackRight.Gtk.Container+ContainerChild Gtk.Alignment w89 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w90 = new Gtk.HBox(); w90.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w91 = new Gtk.Image(); w91.Pixbuf = Gdk.Pixbuf.LoadFromResource("backright.png"); w90.Add(w91); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w93 = new Gtk.Label(); w90.Add(w93); w89.Add(w90); this.cmdBackRight.Add(w89); this.hbox6.Add(this.cmdBackRight); Gtk.Box.BoxChild w97 = ((Gtk.Box.BoxChild)(this.hbox6[this.cmdBackRight])); w97.Position = 2; w97.Expand = false; w97.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.cmdLaserOn = new Gtk.Button(); this.cmdLaserOn.CanFocus = true; this.cmdLaserOn.Name = "cmdLaserOn"; this.cmdLaserOn.UseUnderline = true; // Container child cmdLaserOn.Gtk.Container+ContainerChild Gtk.Alignment w98 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w99 = new Gtk.HBox(); w99.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w100 = new Gtk.Image(); w100.Pixbuf = Gdk.Pixbuf.LoadFromResource("laser.png"); w99.Add(w100); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w102 = new Gtk.Label(); w99.Add(w102); w98.Add(w99); this.cmdLaserOn.Add(w98); this.hbox6.Add(this.cmdLaserOn); Gtk.Box.BoxChild w106 = ((Gtk.Box.BoxChild)(this.hbox6[this.cmdLaserOn])); w106.Position = 3; w106.Expand = false; w106.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.cmdLaserOff = new Gtk.Button(); this.cmdLaserOff.CanFocus = true; this.cmdLaserOff.Name = "cmdLaserOff"; this.cmdLaserOff.UseUnderline = true; // Container child cmdLaserOff.Gtk.Container+ContainerChild Gtk.Alignment w107 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w108 = new Gtk.HBox(); w108.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w109 = new Gtk.Image(); w109.Pixbuf = Gdk.Pixbuf.LoadFromResource("no-laser.png"); w108.Add(w109); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w111 = new Gtk.Label(); w108.Add(w111); w107.Add(w108); this.cmdLaserOff.Add(w107); this.hbox6.Add(this.cmdLaserOff); Gtk.Box.BoxChild w115 = ((Gtk.Box.BoxChild)(this.hbox6[this.cmdLaserOff])); w115.Position = 4; w115.Expand = false; w115.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.cmd320x256 = new Gtk.Button(); this.cmd320x256.CanFocus = true; this.cmd320x256.Name = "cmd320x256"; this.cmd320x256.UseUnderline = true; // Container child cmd320x256.Gtk.Container+ContainerChild Gtk.Alignment w116 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w117 = new Gtk.HBox(); w117.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w118 = new Gtk.Image(); w118.Pixbuf = Gdk.Pixbuf.LoadFromResource("320.png"); w117.Add(w118); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w120 = new Gtk.Label(); w117.Add(w120); w116.Add(w117); this.cmd320x256.Add(w116); this.hbox6.Add(this.cmd320x256); Gtk.Box.BoxChild w124 = ((Gtk.Box.BoxChild)(this.hbox6[this.cmd320x256])); w124.Position = 5; w124.Expand = false; w124.Fill = false; this.vbox1.Add(this.hbox6); Gtk.Box.BoxChild w125 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox6])); w125.PackType = ((Gtk.PackType)(1)); w125.Position = 4; w125.Expand = false; w125.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.cmdLeft = new Gtk.Button(); this.cmdLeft.CanFocus = true; this.cmdLeft.Name = "cmdLeft"; this.cmdLeft.UseUnderline = true; // Container child cmdLeft.Gtk.Container+ContainerChild Gtk.Alignment w126 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w127 = new Gtk.HBox(); w127.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w128 = new Gtk.Image(); w128.Pixbuf = Gdk.Pixbuf.LoadFromResource("turnleft.png"); w127.Add(w128); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w130 = new Gtk.Label(); w127.Add(w130); w126.Add(w127); this.cmdLeft.Add(w126); this.hbox5.Add(this.cmdLeft); Gtk.Box.BoxChild w134 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdLeft])); w134.Position = 0; w134.Expand = false; w134.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmdStop = new Gtk.Button(); this.cmdStop.CanFocus = true; this.cmdStop.Name = "cmdStop"; this.cmdStop.UseUnderline = true; // Container child cmdStop.Gtk.Container+ContainerChild Gtk.Alignment w135 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w136 = new Gtk.HBox(); w136.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w137 = new Gtk.Image(); w137.Pixbuf = Gdk.Pixbuf.LoadFromResource("stop.png"); w136.Add(w137); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w139 = new Gtk.Label(); w136.Add(w139); w135.Add(w136); this.cmdStop.Add(w135); this.hbox5.Add(this.cmdStop); Gtk.Box.BoxChild w143 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdStop])); w143.Position = 1; w143.Expand = false; w143.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmdRight = new Gtk.Button(); this.cmdRight.CanFocus = true; this.cmdRight.Name = "cmdRight"; this.cmdRight.UseUnderline = true; // Container child cmdRight.Gtk.Container+ContainerChild Gtk.Alignment w144 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w145 = new Gtk.HBox(); w145.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w146 = new Gtk.Image(); w146.Pixbuf = Gdk.Pixbuf.LoadFromResource("turnright.png"); w145.Add(w146); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w148 = new Gtk.Label(); w145.Add(w148); w144.Add(w145); this.cmdRight.Add(w144); this.hbox5.Add(this.cmdRight); Gtk.Box.BoxChild w152 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdRight])); w152.Position = 2; w152.Expand = false; w152.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmdAvoid = new Gtk.Button(); this.cmdAvoid.CanFocus = true; this.cmdAvoid.Name = "cmdAvoid"; this.cmdAvoid.UseUnderline = true; // Container child cmdAvoid.Gtk.Container+ContainerChild Gtk.Alignment w153 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w154 = new Gtk.HBox(); w154.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w155 = new Gtk.Image(); w155.Pixbuf = Gdk.Pixbuf.LoadFromResource("avoid.png"); w154.Add(w155); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w157 = new Gtk.Label(); w154.Add(w157); w153.Add(w154); this.cmdAvoid.Add(w153); this.hbox5.Add(this.cmdAvoid); Gtk.Box.BoxChild w161 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdAvoid])); w161.Position = 3; w161.Expand = false; w161.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmdCrash = new Gtk.Button(); this.cmdCrash.CanFocus = true; this.cmdCrash.Name = "cmdCrash"; this.cmdCrash.UseUnderline = true; // Container child cmdCrash.Gtk.Container+ContainerChild Gtk.Alignment w162 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w163 = new Gtk.HBox(); w163.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w164 = new Gtk.Image(); w164.Pixbuf = Gdk.Pixbuf.LoadFromResource("no-avoid.png"); w163.Add(w164); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w166 = new Gtk.Label(); w163.Add(w166); w162.Add(w163); this.cmdCrash.Add(w162); this.hbox5.Add(this.cmdCrash); Gtk.Box.BoxChild w170 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdCrash])); w170.Position = 4; w170.Expand = false; w170.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmd640x512 = new Gtk.Button(); this.cmd640x512.CanFocus = true; this.cmd640x512.Name = "cmd640x512"; this.cmd640x512.UseUnderline = true; // Container child cmd640x512.Gtk.Container+ContainerChild Gtk.Alignment w171 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w172 = new Gtk.HBox(); w172.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w173 = new Gtk.Image(); w173.Pixbuf = Gdk.Pixbuf.LoadFromResource("640.png"); w172.Add(w173); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w175 = new Gtk.Label(); w172.Add(w175); w171.Add(w172); this.cmd640x512.Add(w171); this.hbox5.Add(this.cmd640x512); Gtk.Box.BoxChild w179 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmd640x512])); w179.Position = 5; w179.Expand = false; w179.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.lblReplay = new Gtk.Label(); this.lblReplay.Name = "lblReplay"; this.lblReplay.LabelProp = Mono.Unix.Catalog.GetString("Replay name"); this.vbox3.Add(this.lblReplay); Gtk.Box.BoxChild w180 = ((Gtk.Box.BoxChild)(this.vbox3[this.lblReplay])); w180.Position = 0; w180.Expand = false; w180.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.txtReplay = new Gtk.Entry(); this.txtReplay.CanFocus = true; this.txtReplay.Name = "txtReplay"; this.txtReplay.IsEditable = true; this.txtReplay.InvisibleChar = '●'; this.vbox3.Add(this.txtReplay); Gtk.Box.BoxChild w181 = ((Gtk.Box.BoxChild)(this.vbox3[this.txtReplay])); w181.Position = 1; w181.Expand = false; w181.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.lblReplayState = new Gtk.Label(); this.lblReplayState.Name = "lblReplayState"; this.vbox3.Add(this.lblReplayState); Gtk.Box.BoxChild w182 = ((Gtk.Box.BoxChild)(this.vbox3[this.lblReplayState])); w182.Position = 2; w182.Expand = false; w182.Fill = false; this.hbox5.Add(this.vbox3); Gtk.Box.BoxChild w183 = ((Gtk.Box.BoxChild)(this.hbox5[this.vbox3])); w183.Position = 6; w183.Expand = false; w183.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmdReplay = new Gtk.Button(); this.cmdReplay.CanFocus = true; this.cmdReplay.Name = "cmdReplay"; this.cmdReplay.UseUnderline = true; this.cmdReplay.Label = Mono.Unix.Catalog.GetString("Replay"); this.hbox5.Add(this.cmdReplay); Gtk.Box.BoxChild w184 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdReplay])); w184.Position = 7; w184.Expand = false; w184.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.cmdReplayStop = new Gtk.Button(); this.cmdReplayStop.CanFocus = true; this.cmdReplayStop.Name = "cmdReplayStop"; this.cmdReplayStop.UseUnderline = true; this.cmdReplayStop.Label = Mono.Unix.Catalog.GetString("Stop"); this.hbox5.Add(this.cmdReplayStop); Gtk.Box.BoxChild w185 = ((Gtk.Box.BoxChild)(this.hbox5[this.cmdReplayStop])); w185.Position = 8; w185.Expand = false; w185.Fill = false; this.vbox1.Add(this.hbox5); Gtk.Box.BoxChild w186 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox5])); w186.PackType = ((Gtk.PackType)(1)); w186.Position = 5; w186.Expand = false; w186.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.cmdForwardLeft = new Gtk.Button(); this.cmdForwardLeft.CanFocus = true; this.cmdForwardLeft.Name = "cmdForwardLeft"; this.cmdForwardLeft.UseUnderline = true; // Container child cmdForwardLeft.Gtk.Container+ContainerChild Gtk.Alignment w187 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w188 = new Gtk.HBox(); w188.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w189 = new Gtk.Image(); w189.Pixbuf = Gdk.Pixbuf.LoadFromResource("driftleft.png"); w188.Add(w189); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w191 = new Gtk.Label(); w188.Add(w191); w187.Add(w188); this.cmdForwardLeft.Add(w187); this.hbox4.Add(this.cmdForwardLeft); Gtk.Box.BoxChild w195 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdForwardLeft])); w195.Position = 0; w195.Expand = false; w195.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdForward = new Gtk.Button(); this.cmdForward.CanFocus = true; this.cmdForward.Name = "cmdForward"; this.cmdForward.UseUnderline = true; // Container child cmdForward.Gtk.Container+ContainerChild Gtk.Alignment w196 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w197 = new Gtk.HBox(); w197.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w198 = new Gtk.Image(); w198.Pixbuf = Gdk.Pixbuf.LoadFromResource("forward.png"); w197.Add(w198); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w200 = new Gtk.Label(); w197.Add(w200); w196.Add(w197); this.cmdForward.Add(w196); this.hbox4.Add(this.cmdForward); Gtk.Box.BoxChild w204 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdForward])); w204.Position = 1; w204.Expand = false; w204.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdForwardRight = new Gtk.Button(); this.cmdForwardRight.CanFocus = true; this.cmdForwardRight.Name = "cmdForwardRight"; this.cmdForwardRight.UseUnderline = true; // Container child cmdForwardRight.Gtk.Container+ContainerChild Gtk.Alignment w205 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w206 = new Gtk.HBox(); w206.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w207 = new Gtk.Image(); w207.Pixbuf = Gdk.Pixbuf.LoadFromResource("driftright.png"); w206.Add(w207); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w209 = new Gtk.Label(); w206.Add(w209); w205.Add(w206); this.cmdForwardRight.Add(w205); this.hbox4.Add(this.cmdForwardRight); Gtk.Box.BoxChild w213 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdForwardRight])); w213.Position = 2; w213.Expand = false; w213.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdFast = new Gtk.Button(); this.cmdFast.CanFocus = true; this.cmdFast.Name = "cmdFast"; this.cmdFast.UseUnderline = true; // Container child cmdFast.Gtk.Container+ContainerChild Gtk.Alignment w214 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w215 = new Gtk.HBox(); w215.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w216 = new Gtk.Image(); w216.Pixbuf = Gdk.Pixbuf.LoadFromResource("mot9.png"); w215.Add(w216); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w218 = new Gtk.Label(); w215.Add(w218); w214.Add(w215); this.cmdFast.Add(w214); this.hbox4.Add(this.cmdFast); Gtk.Box.BoxChild w222 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdFast])); w222.Position = 3; w222.Expand = false; w222.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmdSlow = new Gtk.Button(); this.cmdSlow.CanFocus = true; this.cmdSlow.Name = "cmdSlow"; this.cmdSlow.UseUnderline = true; // Container child cmdSlow.Gtk.Container+ContainerChild Gtk.Alignment w223 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w224 = new Gtk.HBox(); w224.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w225 = new Gtk.Image(); w225.Pixbuf = Gdk.Pixbuf.LoadFromResource("mot5.png"); w224.Add(w225); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w227 = new Gtk.Label(); w224.Add(w227); w223.Add(w224); this.cmdSlow.Add(w223); this.hbox4.Add(this.cmdSlow); Gtk.Box.BoxChild w231 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSlow])); w231.Position = 4; w231.Expand = false; w231.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.cmd1280x1024 = new Gtk.Button(); this.cmd1280x1024.CanFocus = true; this.cmd1280x1024.Name = "cmd1280x1024"; this.cmd1280x1024.UseUnderline = true; // Container child cmd1280x1024.Gtk.Container+ContainerChild Gtk.Alignment w232 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w233 = new Gtk.HBox(); w233.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w234 = new Gtk.Image(); w234.Pixbuf = Gdk.Pixbuf.LoadFromResource("1280.png"); w233.Add(w234); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w236 = new Gtk.Label(); w233.Add(w236); w232.Add(w233); this.cmd1280x1024.Add(w232); this.hbox4.Add(this.cmd1280x1024); Gtk.Box.BoxChild w240 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmd1280x1024])); w240.Position = 5; w240.Expand = false; w240.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.lblLogging = new Gtk.Label(); this.lblLogging.Name = "lblLogging"; this.lblLogging.LabelProp = Mono.Unix.Catalog.GetString("Log name"); this.vbox2.Add(this.lblLogging); Gtk.Box.BoxChild w241 = ((Gtk.Box.BoxChild)(this.vbox2[this.lblLogging])); w241.Position = 0; w241.Expand = false; w241.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.txtLogging = new Gtk.Entry(); this.txtLogging.CanFocus = true; this.txtLogging.Name = "txtLogging"; this.txtLogging.IsEditable = true; this.txtLogging.InvisibleChar = '●'; this.txtLogging.Xalign = 0.01F; this.vbox2.Add(this.txtLogging); Gtk.Box.BoxChild w242 = ((Gtk.Box.BoxChild)(this.vbox2[this.txtLogging])); w242.Position = 1; w242.Expand = false; w242.Fill = false; this.hbox4.Add(this.vbox2); Gtk.Box.BoxChild w243 = ((Gtk.Box.BoxChild)(this.hbox4[this.vbox2])); w243.Position = 6; w243.Expand = false; w243.Fill = false; this.vbox1.Add(this.hbox4); Gtk.Box.BoxChild w244 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4])); w244.PackType = ((Gtk.PackType)(1)); w244.Position = 6; w244.Expand = false; w244.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.cmdSimpleStereo = new Gtk.Button(); this.cmdSimpleStereo.CanFocus = true; this.cmdSimpleStereo.Name = "cmdSimpleStereo"; this.cmdSimpleStereo.UseUnderline = true; this.cmdSimpleStereo.Label = Mono.Unix.Catalog.GetString("Simple Stereo"); this.hbox3.Add(this.cmdSimpleStereo); Gtk.Box.BoxChild w245 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdSimpleStereo])); w245.Position = 0; w245.Expand = false; w245.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.cmdDenseStereo = new Gtk.Button(); this.cmdDenseStereo.CanFocus = true; this.cmdDenseStereo.Name = "cmdDenseStereo"; this.cmdDenseStereo.UseUnderline = true; this.cmdDenseStereo.Label = Mono.Unix.Catalog.GetString("Dense Stereo"); this.hbox3.Add(this.cmdDenseStereo); Gtk.Box.BoxChild w246 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdDenseStereo])); w246.Position = 1; w246.Expand = false; w246.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.cmdSaveCalibration = new Gtk.Button(); this.cmdSaveCalibration.CanFocus = true; this.cmdSaveCalibration.Name = "cmdSaveCalibration"; this.cmdSaveCalibration.UseUnderline = true; this.cmdSaveCalibration.Label = Mono.Unix.Catalog.GetString("Save calibration file"); this.hbox3.Add(this.cmdSaveCalibration); Gtk.Box.BoxChild w247 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdSaveCalibration])); w247.Position = 3; w247.Expand = false; w247.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.cmdSaveCalibrationImage = new Gtk.Button(); this.cmdSaveCalibrationImage.CanFocus = true; this.cmdSaveCalibrationImage.Name = "cmdSaveCalibrationImage"; this.cmdSaveCalibrationImage.UseUnderline = true; this.cmdSaveCalibrationImage.Label = Mono.Unix.Catalog.GetString("Save calibration image"); this.hbox3.Add(this.cmdSaveCalibrationImage); Gtk.Box.BoxChild w248 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdSaveCalibrationImage])); w248.Position = 4; w248.Expand = false; w248.Fill = false; this.vbox1.Add(this.hbox3); Gtk.Box.BoxChild w249 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3])); w249.PackType = ((Gtk.PackType)(1)); w249.Position = 7; w249.Expand = false; w249.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 916; this.DefaultHeight = 540; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.ExitAction.Activated += new System.EventHandler(this.OnExitActionActivated); this.chkCalibrateLeft.Clicked += new System.EventHandler(this.OnChkCalibrateLeftClicked); this.chkCalibrateRight.Clicked += new System.EventHandler(this.OnChkCalibrateRightClicked); this.cmdCalibrateAlignment.Clicked += new System.EventHandler(this.OnCmdCalibrateAlignmentClicked); this.cmdTweaks.Clicked += new System.EventHandler(this.OnCmdTweaksClicked); this.cmdAnimatedGif.Clicked += new System.EventHandler(this.OnCmdAnimatedGifClicked); this.chkEmbedded.Clicked += new System.EventHandler(this.OnChkEmbeddedClicked); this.chkLogging.Clicked += new System.EventHandler(this.OnChkLoggingClicked); this.cmdSimpleStereo.Clicked += new System.EventHandler(this.OnCmdSimpleStereoClicked); this.cmdDenseStereo.Clicked += new System.EventHandler(this.OnCmdDenseStereoClicked); this.cmdSaveCalibration.Clicked += new System.EventHandler(this.OnCmdSaveCalibrationClicked); this.cmdSaveCalibrationImage.Clicked += new System.EventHandler(this.OnCmdSaveCalibrationImageClicked); this.cmdForwardLeft.Clicked += new System.EventHandler(this.OnCmdForwardLeftClicked); this.cmdForward.Clicked += new System.EventHandler(this.OnCmdForwardClicked); this.cmdForward.Activated += new System.EventHandler(this.OnCmdForwardActivated); this.cmdForwardRight.Clicked += new System.EventHandler(this.OnCmdForwardRightClicked); this.cmdFast.Clicked += new System.EventHandler(this.OnCmdFastClicked); this.cmdSlow.Clicked += new System.EventHandler(this.OnCmdSlowClicked); this.cmdLeft.Clicked += new System.EventHandler(this.OnCmdLeftClicked); this.cmdStop.Clicked += new System.EventHandler(this.OnCmdStopClicked); this.cmdStop.Activated += new System.EventHandler(this.OnCmdStopActivated); this.cmdRight.Clicked += new System.EventHandler(this.OnCmdRightClicked); this.cmdAvoid.Clicked += new System.EventHandler(this.OnCmdAvoidClicked); this.cmdCrash.Clicked += new System.EventHandler(this.OnCmdCrashClicked); this.cmdReplay.Clicked += new System.EventHandler(this.OnCmdReplayClicked); this.cmdReplayStop.Clicked += new System.EventHandler(this.OnCmdReplayStopClicked); this.cmdBackLeft.Clicked += new System.EventHandler(this.OnCmdBackLeftClicked); this.cmdBack.Clicked += new System.EventHandler(this.OnCmdBackClicked); this.cmdBack.Activated += new System.EventHandler(this.OnCmdBackActivated); this.cmdBackRight.Clicked += new System.EventHandler(this.OnCmdBackRightClicked); this.cmdLaserOn.Clicked += new System.EventHandler(this.OnCmdLaserOnClicked); this.cmdSpinLeft.Clicked += new System.EventHandler(this.OnCmdSpinLeftClicked); this.cmdSpinRight.Clicked += new System.EventHandler(this.OnCmdSpinRightClicked); }
static Gtk.Widget EmptyContainer() { var bin = new Gtk.VBox(); return(bin); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget OpenVP.GtkGui.LinearPresetEditor Stetic.BinContainer.Attach(this); this.Name = "OpenVP.GtkGui.LinearPresetEditor"; // Container child OpenVP.GtkGui.LinearPresetEditor.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 1; // Container child notebook1.Gtk.Notebook+NotebookChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 211; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox1 = new Gtk.HButtonBox(); this.hbuttonbox1.Homogeneous = true; this.hbuttonbox1.Spacing = 6; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.AddEffect = new Gtk.Button(); this.AddEffect.CanFocus = true; this.AddEffect.Name = "AddEffect"; this.AddEffect.UseStock = true; this.AddEffect.UseUnderline = true; this.AddEffect.Label = "gtk-add"; this.hbuttonbox1.Add(this.AddEffect); Gtk.ButtonBox.ButtonBoxChild w1 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.AddEffect])); w1.Expand = false; w1.Fill = false; // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.RemoveEffect = new Gtk.Button(); this.RemoveEffect.Sensitive = false; this.RemoveEffect.CanFocus = true; this.RemoveEffect.Name = "RemoveEffect"; this.RemoveEffect.UseStock = true; this.RemoveEffect.UseUnderline = true; this.RemoveEffect.Label = "gtk-remove"; this.hbuttonbox1.Add(this.RemoveEffect); Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RemoveEffect])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbuttonbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.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.EffectList = new Gtk.TreeView(); this.EffectList.CanFocus = true; this.EffectList.Name = "EffectList"; this.EffectList.HeadersVisible = false; this.EffectList.HeadersClickable = true; this.GtkScrolledWindow.Add(this.EffectList); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w5.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.hbuttonbox2.Homogeneous = true; this.hbuttonbox2.Spacing = 6; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.UpButton = new Gtk.Button(); this.UpButton.Sensitive = false; this.UpButton.CanFocus = true; this.UpButton.Name = "UpButton"; this.UpButton.UseStock = true; this.UpButton.UseUnderline = true; this.UpButton.Label = "gtk-go-up"; this.hbuttonbox2.Add(this.UpButton); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.UpButton])); w6.Expand = false; w6.Fill = false; // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.DownButton = new Gtk.Button(); this.DownButton.Sensitive = false; this.DownButton.CanFocus = true; this.DownButton.Name = "DownButton"; this.DownButton.UseStock = true; this.DownButton.UseUnderline = true; this.DownButton.Label = "gtk-go-down"; this.hbuttonbox2.Add(this.DownButton); Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.DownButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.vbox1.Add(this.hbuttonbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox2])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.hpaned1.Add(this.vbox1); Gtk.Paned.PanedChild w9 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox1])); w9.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.EffectPane = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.EffectPane.Name = "EffectPane"; this.hpaned1.Add(this.EffectPane); this.notebook1.Add(this.hpaned1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Effects"); this.notebook1.SetTabLabel(this.hpaned1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild 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)); // Container child frame1.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.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbuttonbox3 = new Gtk.HButtonBox(); this.hbuttonbox3.Name = "hbuttonbox3"; this.hbuttonbox3.Spacing = 6; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindAddButton = new Gtk.Button(); this.KeybindAddButton.CanFocus = true; this.KeybindAddButton.Name = "KeybindAddButton"; this.KeybindAddButton.UseStock = true; this.KeybindAddButton.UseUnderline = true; this.KeybindAddButton.Label = "gtk-add"; this.hbuttonbox3.Add(this.KeybindAddButton); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindAddButton])); w12.Expand = false; w12.Fill = false; // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild this.KeybindRemoveButton = new Gtk.Button(); this.KeybindRemoveButton.CanFocus = true; this.KeybindRemoveButton.Name = "KeybindRemoveButton"; this.KeybindRemoveButton.UseStock = true; this.KeybindRemoveButton.UseUnderline = true; this.KeybindRemoveButton.Label = "gtk-remove"; this.hbuttonbox3.Add(this.KeybindRemoveButton); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindRemoveButton])); w13.Position = 1; w13.Expand = false; w13.Fill = false; this.vbox2.Add(this.hbuttonbox3); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox3])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.KeybindList = new Gtk.TreeView(); this.KeybindList.CanFocus = true; this.KeybindList.Name = "KeybindList"; this.KeybindList.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.KeybindList); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w16.Position = 1; this.GtkAlignment4.Add(this.vbox2); this.frame1.Add(this.GtkAlignment4); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Bound keys</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.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.GtkAlignment9 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment9.Name = "GtkAlignment9"; this.GtkAlignment9.LeftPadding = ((uint)(12)); this.frame2.Add(this.GtkAlignment9); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Script</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.vbox4.Add(this.frame2); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame2])); w21.Position = 0; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment8 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment8.Name = "GtkAlignment8"; this.GtkAlignment8.LeftPadding = ((uint)(12)); // Container child GtkAlignment8.Gtk.Container+ContainerChild 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.KeybindEventCheck = new Gtk.ToggleButton(); this.KeybindEventCheck.CanFocus = true; this.KeybindEventCheck.Name = "KeybindEventCheck"; this.KeybindEventCheck.UseUnderline = true; this.KeybindEventCheck.Active = true; this.KeybindEventCheck.Label = Mono.Unix.Catalog.GetString("On press"); this.table1.Add(this.KeybindEventCheck); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.KeybindEventCheck])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.KeyEntryAlign = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.KeyEntryAlign.Name = "KeyEntryAlign"; this.table1.Add(this.KeyEntryAlign); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.KeyEntryAlign])); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Key:"); this.table1.Add(this.label4); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment8.Add(this.table1); this.frame3.Add(this.GtkAlignment8); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Trigger</b>"); this.GtkLabel10.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel10; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbuttonbox4 = new Gtk.HButtonBox(); this.hbuttonbox4.Name = "hbuttonbox4"; this.hbuttonbox4.Spacing = 6; this.hbuttonbox4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindRevertButton = new Gtk.Button(); this.KeybindRevertButton.Sensitive = false; this.KeybindRevertButton.CanFocus = true; this.KeybindRevertButton.Name = "KeybindRevertButton"; this.KeybindRevertButton.UseStock = true; this.KeybindRevertButton.UseUnderline = true; this.KeybindRevertButton.Label = "gtk-revert-to-saved"; this.hbuttonbox4.Add(this.KeybindRevertButton); Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindRevertButton])); w28.Expand = false; w28.Fill = false; // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild this.KeybindApplyButton = new Gtk.Button(); this.KeybindApplyButton.Sensitive = false; this.KeybindApplyButton.CanFocus = true; this.KeybindApplyButton.Name = "KeybindApplyButton"; this.KeybindApplyButton.UseStock = true; this.KeybindApplyButton.UseUnderline = true; this.KeybindApplyButton.Label = "gtk-apply"; this.hbuttonbox4.Add(this.KeybindApplyButton); Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindApplyButton])); w29.Position = 1; w29.Expand = false; w29.Fill = false; this.vbox4.Add(this.hbuttonbox4); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbuttonbox4])); w30.Position = 2; w30.Expand = false; w30.Fill = false; this.hbox1.Add(this.vbox4); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox4])); w31.Position = 1; this.notebook1.Add(this.hbox1); Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox1])); w32.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Keybindings"); this.notebook1.SetTabLabel(this.hbox1, this.label2); this.label2.ShowAll(); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.AddEffect.Clicked += new System.EventHandler(this.OnAddEffectClicked); this.RemoveEffect.Clicked += new System.EventHandler(this.OnRemoveEffectClicked); this.UpButton.Clicked += new System.EventHandler(this.OnUpButtonClicked); this.DownButton.Clicked += new System.EventHandler(this.OnDownButtonClicked); this.KeybindEventCheck.Toggled += new System.EventHandler(this.OnKeybindEventCheckToggled); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Jeton.KasseScreen Stetic.BinContainer.Attach(this); this.Name = "Jeton.KasseScreen"; // Container child Jeton.KasseScreen.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(1)); this.frame1.BorderWidth = ((uint)(63)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild this.eventbox1 = new Gtk.EventBox(); this.eventbox1.Name = "eventbox1"; // Container child eventbox1.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = ((uint)(9)); // 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.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"xx-large\"><b>Soll-Kassenstand:</b></span>"); this.label1.UseMarkup = true; this.hbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.standLabel = new Gtk.Label(); this.standLabel.Name = "standLabel"; this.standLabel.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"xx-large\"><b>0,00 €</b></span>"); this.standLabel.UseMarkup = true; this.hbox1.Add(this.standLabel); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.standLabel])); w2.Position = 1; w2.Expand = false; w2.Fill = false; w2.Padding = ((uint)(50)); this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; w3.Padding = ((uint)(20)); // 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.errorBtn = new Gtk.Button(); this.errorBtn.WidthRequest = 300; this.errorBtn.HeightRequest = 80; this.errorBtn.CanFocus = true; this.errorBtn.Name = "errorBtn"; this.errorBtn.UseUnderline = true; this.errorBtn.BorderWidth = ((uint)(10)); // Container child errorBtn.Gtk.Container+ContainerChild Gtk.Alignment w4 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w5 = new Gtk.HBox(); w5.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w6 = new Gtk.Image(); w6.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-no", Gtk.IconSize.Button, 20); w5.Add(w6); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w8 = new Gtk.Label(); w8.LabelProp = Mono.Unix.Catalog.GetString("Fehlbetrag Melden"); w8.UseUnderline = true; w5.Add(w8); w4.Add(w5); this.errorBtn.Add(w4); this.hbox2.Add(this.errorBtn); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.errorBtn])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 0; w12.Expand = false; w12.Fill = false; w12.Padding = ((uint)(1)); this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w13.Position = 1; w13.Expand = false; w13.Fill = false; this.eventbox1.Add(this.vbox2); this.GtkAlignment.Add(this.eventbox1); this.frame1.Add(this.GtkAlignment); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("\n"); this.GtkLabel1.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel1; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w17.Position = 0; w17.Expand = false; w17.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.errorBtn.Clicked += new System.EventHandler(this.OnFehlbetragClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Embroidr.UI.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = 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"); w2.Add(this.FileAction, null); this.findAction = new Gtk.Action("findAction", null, null, "gtk-find"); w2.Add(this.findAction, null); this.FindAction = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null); this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find"); w2.Add(this.FindAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w2.Add(this.saveAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Embroidr.UI.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Embroidr"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(2)); // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>"); this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2"))); this.menubar2.Name = "menubar2"; this.vbox1.Add(this.menubar2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/><toolitem action='saveAction'/></toolbar></ui>"); this.toolbar3 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3"))); this.toolbar3.Name = "toolbar3"; this.toolbar3.ShowArrow = false; this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned2 = new Gtk.HPaned(); this.hpaned2.CanFocus = true; this.hpaned2.Name = "hpaned2"; this.hpaned2.Position = 160; // Container child hpaned2.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.pesTree = new Gtk.TreeView(); this.pesTree.CanFocus = true; this.pesTree.Name = "pesTree"; this.pesTree.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.pesTree); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w6.Position = 0; this.hpaned2.Add(this.vbox2); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2])); w7.Resize = false; // Container child hpaned2.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.pesView = new Gtk.NodeView(); this.pesView.CanFocus = true; this.pesView.Name = "pesView"; this.pesView.HeadersClickable = true; this.GtkScrolledWindow.Add(this.pesView); this.hpaned2.Add(this.GtkScrolledWindow); this.vbox1.Add(this.hpaned2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2])); w10.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.pixbufSize = new Gtk.HScale(null); this.pixbufSize.CanFocus = true; this.pixbufSize.Name = "pixbufSize"; this.pixbufSize.Adjustment.Lower = 16; this.pixbufSize.Adjustment.Upper = 255; this.pixbufSize.Adjustment.PageIncrement = 10; this.pixbufSize.Adjustment.StepIncrement = 1; this.pixbufSize.Adjustment.Value = 90; this.pixbufSize.DrawValue = true; this.pixbufSize.Digits = 0; this.pixbufSize.ValuePos = ((Gtk.PositionType)(2)); this.vbox1.Add(this.pixbufSize); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.pixbufSize])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w12.Position = 4; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 699; this.DefaultHeight = 638; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated); this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.pixbufSize.ValueChanged += new System.EventHandler(this.OnPixbufSizeValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget OpenGridServices.Manager.ConnectToGridServerDialog this.Events = ((Gdk.EventMask)(256)); this.Name = "OpenGridServices.Manager.ConnectToGridServerDialog"; this.Title = Mono.Unix.Catalog.GetString("Connect to Grid server"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.VBox Gtk.VBox w1 = this.VBox; w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; // Container child vbox3.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Grid server URL: "); this.label1.Justify = ((Gtk.Justification)(1)); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.entry1 = new Gtk.Entry(); this.entry1.CanFocus = true; this.entry1.Name = "entry1"; this.entry1.Text = Mono.Unix.Catalog.GetString("http://gridserver:8001"); this.entry1.IsEditable = true; this.entry1.MaxLength = 255; this.entry1.InvisibleChar = '•'; this.hbox1.Add(this.entry1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry1])); w3.Position = 1; this.vbox3.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; // Container child hbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 1F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Username:"******"entry2"; this.entry2.IsEditable = true; this.entry2.InvisibleChar = '•'; this.hbox2.Add(this.entry2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.entry2])); w6.Position = 1; this.vbox3.Add(this.hbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"entry3"; this.entry3.IsEditable = true; this.entry3.InvisibleChar = '•'; this.hbox3.Add(this.entry3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.entry3])); w9.Position = 1; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w10.Position = 2; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.vbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3])); w11.Position = 2; w11.Expand = false; w11.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w12.Position = 0; // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.ActionArea Gtk.HButtonBox w13 = this.ActionArea; w13.Events = ((Gdk.EventMask)(256)); w13.Name = "OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea"; w13.Spacing = 6; w13.BorderWidth = ((uint)(5)); w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button2 = new Gtk.Button(); this.button2.CanDefault = true; this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; // Container child button2.Gtk.Container+ContainerChild Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w14.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w15 = new Gtk.HBox(); w15.Name = "GtkHBox"; w15.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w16 = new Gtk.Image(); w16.Name = "image1"; w16.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0); w15.Add(w16); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w18 = new Gtk.Label(); w18.Name = "GtkLabel"; w18.LabelProp = Mono.Unix.Catalog.GetString("Connect"); w18.UseUnderline = true; w15.Add(w18); w14.Add(w15); this.button2.Add(w14); this.AddActionWidget(this.button2, -5); Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.button2])); w22.Expand = false; w22.Fill = false; // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button8 = new Gtk.Button(); this.button8.CanDefault = true; this.button8.CanFocus = true; this.button8.Name = "button8"; this.button8.UseUnderline = true; // Container child button8.Gtk.Container+ContainerChild Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w23.Name = "GtkAlignment1"; // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w24 = new Gtk.HBox(); w24.Name = "GtkHBox1"; w24.Spacing = 2; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w25 = new Gtk.Image(); w25.Name = "image2"; w25.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0); w24.Add(w25); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w27 = new Gtk.Label(); w27.Name = "GtkLabel1"; w27.LabelProp = Mono.Unix.Catalog.GetString("Cancel"); w27.UseUnderline = true; w24.Add(w27); w23.Add(w24); this.button8.Add(w23); this.AddActionWidget(this.button8, -6); Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.button8])); w31.Position = 1; w31.Expand = false; w31.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 476; this.DefaultHeight = 137; this.Show(); this.Response += new Gtk.ResponseHandler(this.OnResponse); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.MagellanExploristWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.MagellanExploristWidget"; // Container child ocmgtk.MagellanExploristWidget.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; this.vbox3.BorderWidth = ((uint)(6)); // 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.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Caches"); this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.hbox3.Add(this.limitCheck); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox3[this.limitCheck])); w1.Position = 0; w1.Expand = false; // Container child hbox3.Gtk.Box+BoxChild this.limitEntry = new Gtk.Entry(); this.limitEntry.Sensitive = false; this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = "1000"; this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.hbox3.Add(this.limitEntry); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.limitEntry])); w2.Position = 1; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Serial Port or File:"); this.hbox4.Add(this.label3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.fileEntry = new Gtk.Entry(); this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.Text = "/dev/ttyS0"; this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '•'; this.hbox4.Add(this.fileEntry); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox4[this.fileEntry])); w5.Position = 1; // Container child hbox4.Gtk.Box+BoxChild this.fileButton = new Gtk.Button(); this.fileButton.CanFocus = true; this.fileButton.Name = "fileButton"; // Container child fileButton.Gtk.Container+ContainerChild this.image3 = new Gtk.Image(); this.image3.Name = "image3"; this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.fileButton.Add(this.image3); this.fileButton.Label = null; this.hbox4.Add(this.fileButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.fileButton])); w7.Position = 2; w7.Expand = false; w7.Fill = false; this.vbox3.Add(this.hbox4); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monsoon.LoadTorrentDialog this.Name = "Monsoon.LoadTorrentDialog"; this.Title = Mono.Unix.Catalog.GetString("Load torrent"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child Monsoon.LoadTorrentDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // 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.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.fileChooser = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Select A Folder"), ((Gtk.FileChooserAction)(2))); this.fileChooser.Name = "fileChooser"; this.fileChooser.ShowHidden = true; this.hbox5.Add(this.fileChooser); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox5[this.fileChooser])); w2.Position = 0; this.vbox5.Add(this.hbox5); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox5.Gtk.Box+BoxChild 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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.table1.Add(this.label2); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.table1.Add(this.label3); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label3])); 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.lblName = new Gtk.Label(); this.lblName.Name = "lblName"; this.lblName.Xalign = 0F; this.lblName.LabelProp = Mono.Unix.Catalog.GetString("Suse-11.0-i386.iso"); this.table1.Add(this.lblName); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.lblName])); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblSize = new Gtk.Label(); this.lblSize.Name = "lblSize"; this.lblSize.Xalign = 0F; this.lblSize.LabelProp = Mono.Unix.Catalog.GetString("700MB"); this.table1.Add(this.lblSize); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.lblSize])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); this.vbox5.Add(this.table1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox5[this.table1])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.GtkAlignment2.Add(this.vbox5); this.frame3.Add(this.GtkAlignment2); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Save</b>"); this.GtkLabel2.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel2; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.expander1 = new Gtk.Expander(null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; this.expander1.Expanded = true; // Container child expander1.Gtk.Container+ContainerChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.torrentTreeView = new Gtk.TreeView(); this.torrentTreeView.CanFocus = true; this.torrentTreeView.Name = "torrentTreeView"; this.GtkScrolledWindow.Add(this.torrentTreeView); this.expander1.Add(this.GtkScrolledWindow); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("Files"); this.GtkLabel1.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel1; this.vbox4.Add(this.expander1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox4[this.expander1])); w14.Position = 1; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton2 = new Gtk.CheckButton(); this.checkbutton2.CanFocus = true; this.checkbutton2.Name = "checkbutton2"; this.checkbutton2.Label = Mono.Unix.Catalog.GetString("Always show this dialog"); this.checkbutton2.Active = true; this.checkbutton2.DrawIndicator = true; this.checkbutton2.UseUnderline = true; this.vbox4.Add(this.checkbutton2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton2])); w15.Position = 2; w15.Expand = false; w15.Fill = false; w1.Add(this.vbox4); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w1[this.vbox4])); w16.Position = 0; // Internal child Monsoon.LoadTorrentDialog.ActionArea Gtk.HButtonBox w17 = this.ActionArea; w17.Name = "dialog1_ActionArea"; w17.Spacing = 6; w17.BorderWidth = ((uint)(5)); w17.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 w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonCancel])); w18.Expand = false; w18.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 w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonOk])); w19.Position = 1; w19.Expand = false; w19.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 474; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.LoadGPSFieldNotes this.WidthRequest = 550; this.Name = "ocmgtk.LoadGPSFieldNotes"; this.Title = Mono.Unix.Catalog.GetString("Receive 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.LoadGPSFieldNotes.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.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.image38 = new Gtk.Image(); this.image38.Name = "image38"; this.image38.Yalign = 0F; this.image38.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Dialog, 48); this.hbox3.Add(this.image38); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.image38])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.logText = new Gtk.Label(); this.logText.Name = "logText"; this.logText.LabelProp = Mono.Unix.Catalog.GetString("The field notes file from your GPS will be scanned and OCM will automatically update your caches based on the field notes file. \n\nIf you wish to work with the comments entered in the field before logging your finds online, go to <b>View → Field Notes...</b>"); this.logText.UseMarkup = true; this.logText.Wrap = true; this.logText.WidthChars = 60; this.hbox3.Add(this.logText); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox3[this.logText])); w3.Position = 1; w3.Expand = false; w3.Fill = false; w1.Add(this.hbox3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox3])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hseparator3 = new Gtk.HSeparator(); this.hseparator3.Name = "hseparator3"; w1.Add(this.hseparator3); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.hseparator3])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("<b>Last field notes scan:</b>"); this.label1.UseMarkup = true; this.hbox5.Add(this.label1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox5[this.label1])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.lastScan = new Gtk.Label(); this.lastScan.Name = "lastScan"; this.lastScan.LabelProp = Mono.Unix.Catalog.GetString("label3"); this.hbox5.Add(this.lastScan); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox5[this.lastScan])); w7.Position = 1; w7.Expand = false; w7.Fill = false; w1.Add(this.hbox5); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox5])); w8.Position = 2; w8.Expand = false; w8.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Last field notes scan from this device:</b>"); this.label2.UseMarkup = true; this.hbox6.Add(this.label2); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox6[this.label2])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.lastScanTD = new Gtk.Label(); this.lastScanTD.Name = "lastScanTD"; this.lastScanTD.LabelProp = Mono.Unix.Catalog.GetString("label4"); this.hbox6.Add(this.lastScanTD); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox6[this.lastScanTD])); w10.Position = 1; w10.Expand = false; w10.Fill = false; w1.Add(this.hbox6); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[this.hbox6])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; w1.Add(this.hseparator1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.hseparator1])); w12.Position = 4; w12.Expand = false; w12.Fill = false; // 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.checkIgnoreLogs = new Gtk.CheckButton(); this.checkIgnoreLogs.CanFocus = true; this.checkIgnoreLogs.Name = "checkIgnoreLogs"; this.checkIgnoreLogs.Label = Mono.Unix.Catalog.GetString("Ignore logs before:"); this.checkIgnoreLogs.DrawIndicator = true; this.checkIgnoreLogs.UseUnderline = true; this.hbox4.Add(this.checkIgnoreLogs); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.checkIgnoreLogs])); w13.Position = 0; w13.Expand = false; // Container child hbox4.Gtk.Box+BoxChild this.ignoreDate = new ocmgtk.DateWidget(); this.ignoreDate.Events = ((Gdk.EventMask)(256)); this.ignoreDate.Name = "ignoreDate"; this.ignoreDate.IncludeTime = false; this.ignoreDate.Date = new System.DateTime(0); this.hbox4.Add(this.ignoreDate); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.ignoreDate])); w14.Position = 1; w14.Expand = false; w14.Fill = false; w1.Add(this.hbox4); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[this.hbox4])); w15.Position = 5; w15.Expand = false; w15.Fill = false; // Internal child ocmgtk.LoadGPSFieldNotes.ActionArea Gtk.HButtonBox w16 = this.ActionArea; w16.Name = "dialog1_ActionArea"; w16.Spacing = 10; w16.BorderWidth = ((uint)(5)); w16.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 w17 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonCancel])); w17.Expand = false; w17.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 w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[this.buttonOk])); w18.Position = 1; w18.Expand = false; w18.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 562; this.DefaultHeight = 285; this.buttonOk.HasDefault = true; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Docky.Interface.DockPreferences Stetic.BinContainer.Attach(this); this.Name = "Docky.Interface.DockPreferences"; // Container child Docky.Interface.DockPreferences.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table3 = new Gtk.Table(((uint)(7)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.autohide_box = Gtk.ComboBox.NewText(); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("None")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Autohide")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Intellihide")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Window Dodge")); this.autohide_box.Name = "autohide_box"; this.autohide_box.Active = 3; this.table3.Add(this.autohide_box); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.autohide_box])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.fade_on_hide_check = new Gtk.CheckButton(); this.fade_on_hide_check.TooltipMarkup = "Fade out dock instead of slide off screen"; this.fade_on_hide_check.CanFocus = true; this.fade_on_hide_check.Name = "fade_on_hide_check"; this.fade_on_hide_check.Label = Mono.Unix.Catalog.GetString("_Fade On Hide"); this.fade_on_hide_check.DrawIndicator = true; this.fade_on_hide_check.UseUnderline = true; this.table3.Add(this.fade_on_hide_check); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.fade_on_hide_check])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hide_desc = new Gtk.Label(); this.hide_desc.Name = "hide_desc"; this.hide_desc.Yalign = 0F; this.hide_desc.UseMarkup = true; this.table3.Add(this.hide_desc); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.hide_desc])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.icon_scale = new Gtk.HScale(null); this.icon_scale.CanFocus = true; this.icon_scale.Name = "icon_scale"; this.icon_scale.Adjustment.Upper = 100; this.icon_scale.Adjustment.PageIncrement = 10; this.icon_scale.Adjustment.StepIncrement = 1; this.icon_scale.DrawValue = true; this.icon_scale.Digits = 0; this.icon_scale.ValuePos = ((Gtk.PositionType)(0)); this.table3.Add(this.icon_scale); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.icon_scale])); w4.TopAttach = ((uint)(2)); w4.BottomAttach = ((uint)(3)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(3)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.CanFocus = true; this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.Yalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("_Icon Size:"); this.label1.UseUnderline = true; this.table3.Add(this.label1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table3[this.label1])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.CanFocus = true; this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("_Hiding:"); this.label3.UseUnderline = true; this.table3.Add(this.label3); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table3[this.label3])); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.panel_mode_button = new Gtk.CheckButton(); this.panel_mode_button.CanFocus = true; this.panel_mode_button.Name = "panel_mode_button"; this.panel_mode_button.Label = Mono.Unix.Catalog.GetString("_Panel Mode"); this.panel_mode_button.DrawIndicator = true; this.panel_mode_button.UseUnderline = true; this.table3.Add(this.panel_mode_button); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table3[this.panel_mode_button])); w7.TopAttach = ((uint)(4)); w7.BottomAttach = ((uint)(5)); w7.RightAttach = ((uint)(3)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.threedee_check = new Gtk.CheckButton(); this.threedee_check.CanFocus = true; this.threedee_check.Name = "threedee_check"; this.threedee_check.Label = Mono.Unix.Catalog.GetString("3D Back_ground"); this.threedee_check.DrawIndicator = true; this.threedee_check.UseUnderline = true; this.table3.Add(this.threedee_check); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table3[this.threedee_check])); w8.TopAttach = ((uint)(5)); w8.BottomAttach = ((uint)(6)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.window_manager_check = new Gtk.CheckButton(); this.window_manager_check.CanFocus = true; this.window_manager_check.Name = "window_manager_check"; this.window_manager_check.Label = Mono.Unix.Catalog.GetString("_Manage Windows Without Launcher"); this.window_manager_check.DrawIndicator = true; this.window_manager_check.UseUnderline = true; this.window_manager_check.Xalign = 0F; this.table3.Add(this.window_manager_check); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table3[this.window_manager_check])); w9.TopAttach = ((uint)(6)); w9.BottomAttach = ((uint)(7)); w9.RightAttach = ((uint)(3)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.zoom_checkbutton = new Gtk.CheckButton(); this.zoom_checkbutton.CanFocus = true; this.zoom_checkbutton.Name = "zoom_checkbutton"; this.zoom_checkbutton.Label = Mono.Unix.Catalog.GetString("_Zoom:"); this.zoom_checkbutton.DrawIndicator = true; this.zoom_checkbutton.UseUnderline = true; this.zoom_checkbutton.Xalign = 1F; this.table3.Add(this.zoom_checkbutton); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table3[this.zoom_checkbutton])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.zoom_scale = new Gtk.HScale(null); this.zoom_scale.CanFocus = true; this.zoom_scale.Name = "zoom_scale"; this.zoom_scale.UpdatePolicy = ((Gtk.UpdateType)(1)); this.zoom_scale.Adjustment.Upper = 100; this.zoom_scale.Adjustment.PageIncrement = 10; this.zoom_scale.Adjustment.StepIncrement = 0.01; this.zoom_scale.Adjustment.Value = 20; this.zoom_scale.DrawValue = true; this.zoom_scale.Digits = 2; this.zoom_scale.ValuePos = ((Gtk.PositionType)(0)); this.table3.Add(this.zoom_scale); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table3[this.zoom_scale])); w11.TopAttach = ((uint)(3)); w11.BottomAttach = ((uint)(4)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(3)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table3); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.table3])); w12.Position = 0; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.label1.MnemonicWidget = this.icon_scale; this.label3.MnemonicWidget = this.autohide_box; this.Hide(); this.window_manager_check.Toggled += new System.EventHandler(this.OnWindowManagerCheckToggled); this.threedee_check.Toggled += new System.EventHandler(this.OnThreedeeCheckToggled); this.panel_mode_button.Toggled += new System.EventHandler(this.OnPanelModeButtonToggled); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.ResizeCanvasDialog this.Name = "Pinta.ResizeCanvasDialog"; this.Title = Mono.Unix.Catalog.GetString("Resize Canvas"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.DefaultWidth = 300; this.DefaultHeight = 200; // Internal child Pinta.ResizeCanvasDialog.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; this.vbox2.BorderWidth = ((uint)(12)); // 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.percentageRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By percentage:")); this.percentageRadio.CanFocus = true; this.percentageRadio.Name = "percentageRadio"; this.percentageRadio.DrawIndicator = true; this.percentageRadio.UseUnderline = true; this.percentageRadio.Group = new GLib.SList(System.IntPtr.Zero); this.hbox1.Add(this.percentageRadio); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageRadio])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.percentageSpinner = new Gtk.SpinButton(1, 1000, 1); this.percentageSpinner.CanFocus = true; this.percentageSpinner.Name = "percentageSpinner"; this.percentageSpinner.Adjustment.PageIncrement = 10; this.percentageSpinner.ClimbRate = 1; this.percentageSpinner.Numeric = true; this.percentageSpinner.Value = 100; this.hbox1.Add(this.percentageSpinner); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageSpinner])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = "%"; this.hbox1.Add(this.label1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w4.Position = 2; w4.Expand = false; w4.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w5.Position = 0; w5.Expand = false; w5.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.absoluteRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By absolute size:")); this.absoluteRadio.CanFocus = true; this.absoluteRadio.Name = "absoluteRadio"; this.absoluteRadio.DrawIndicator = true; this.absoluteRadio.UseUnderline = true; this.absoluteRadio.Group = this.percentageRadio.Group; this.hbox2.Add(this.absoluteRadio); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.absoluteRadio])); w6.Position = 0; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w7.Position = 1; w7.Expand = false; w7.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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Width:"); this.hbox3.Add(this.label2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.widthSpinner = new Gtk.SpinButton(1, 10000, 1); this.widthSpinner.Sensitive = false; this.widthSpinner.CanFocus = true; this.widthSpinner.Name = "widthSpinner"; this.widthSpinner.Adjustment.PageIncrement = 10; this.widthSpinner.ClimbRate = 1; this.widthSpinner.Numeric = true; this.hbox3.Add(this.widthSpinner); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.widthSpinner])); w9.Position = 1; w9.Expand = false; w9.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("pixels"); this.hbox3.Add(this.label4); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4])); w10.Position = 2; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.hbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3])); w11.Position = 2; w11.Expand = false; w11.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Height:"); this.hbox4.Add(this.label3); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3])); w12.Position = 0; w12.Expand = false; w12.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.heightSpinner = new Gtk.SpinButton(1, 10000, 1); this.heightSpinner.Sensitive = false; this.heightSpinner.CanFocus = true; this.heightSpinner.Name = "heightSpinner"; this.heightSpinner.Adjustment.PageIncrement = 10; this.heightSpinner.ClimbRate = 1; this.heightSpinner.Numeric = true; this.hbox4.Add(this.heightSpinner); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.heightSpinner])); w13.Position = 1; w13.Expand = false; w13.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("pixels"); this.hbox4.Add(this.label5); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.vbox2.Add(this.hbox4); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4])); w15.Position = 3; w15.Expand = false; w15.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.aspectCheckbox = new Gtk.CheckButton(); this.aspectCheckbox.Sensitive = false; this.aspectCheckbox.CanFocus = true; this.aspectCheckbox.Name = "aspectCheckbox"; this.aspectCheckbox.Label = Mono.Unix.Catalog.GetString("Maintain aspect ratio"); this.aspectCheckbox.Active = true; this.aspectCheckbox.DrawIndicator = true; this.aspectCheckbox.UseUnderline = true; this.vbox2.Add(this.aspectCheckbox); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.aspectCheckbox])); w16.Position = 4; 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.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; this.hbox5.Add(this.alignment1); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment1])); w17.Position = 0; // Container child hbox5.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.CenterButton = new Gtk.Button(); this.CenterButton.WidthRequest = 30; this.CenterButton.HeightRequest = 30; this.CenterButton.CanFocus = true; this.CenterButton.Name = "CenterButton"; this.CenterButton.UseUnderline = true; // Container child CenterButton.Gtk.Container+ContainerChild Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w19 = new Gtk.HBox(); w19.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w20 = new Gtk.Image(); w19.Add(w20); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w22 = new Gtk.Label(); w19.Add(w22); w18.Add(w19); this.CenterButton.Add(w18); this.table1.Add(this.CenterButton); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.CenterButton])); w26.TopAttach = ((uint)(1)); w26.BottomAttach = ((uint)(2)); w26.LeftAttach = ((uint)(1)); w26.RightAttach = ((uint)(2)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.EButton = new Gtk.Button(); this.EButton.WidthRequest = 30; this.EButton.HeightRequest = 30; this.EButton.CanFocus = true; this.EButton.Name = "EButton"; this.EButton.UseUnderline = true; // Container child EButton.Gtk.Container+ContainerChild Gtk.Alignment w27 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w28 = new Gtk.HBox(); w28.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w29 = new Gtk.Image(); w28.Add(w29); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w31 = new Gtk.Label(); w28.Add(w31); w27.Add(w28); this.EButton.Add(w27); this.table1.Add(this.EButton); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table1[this.EButton])); w35.TopAttach = ((uint)(1)); w35.BottomAttach = ((uint)(2)); w35.LeftAttach = ((uint)(2)); w35.RightAttach = ((uint)(3)); w35.XOptions = ((Gtk.AttachOptions)(4)); w35.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NButton = new Gtk.Button(); this.NButton.WidthRequest = 30; this.NButton.HeightRequest = 30; this.NButton.CanFocus = true; this.NButton.Name = "NButton"; this.NButton.UseUnderline = true; // Container child NButton.Gtk.Container+ContainerChild Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w37 = new Gtk.HBox(); w37.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w38 = new Gtk.Image(); w37.Add(w38); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w40 = new Gtk.Label(); w37.Add(w40); w36.Add(w37); this.NButton.Add(w36); this.table1.Add(this.NButton); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table1[this.NButton])); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NEButton = new Gtk.Button(); this.NEButton.WidthRequest = 30; this.NEButton.HeightRequest = 30; this.NEButton.CanFocus = true; this.NEButton.Name = "NEButton"; this.NEButton.UseUnderline = true; // Container child NEButton.Gtk.Container+ContainerChild Gtk.Alignment w45 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w46 = new Gtk.HBox(); w46.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w47 = new Gtk.Image(); w46.Add(w47); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w49 = new Gtk.Label(); w46.Add(w49); w45.Add(w46); this.NEButton.Add(w45); this.table1.Add(this.NEButton); Gtk.Table.TableChild w53 = ((Gtk.Table.TableChild)(this.table1[this.NEButton])); w53.LeftAttach = ((uint)(2)); w53.RightAttach = ((uint)(3)); w53.XOptions = ((Gtk.AttachOptions)(4)); w53.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.NWButton = new Gtk.Button(); this.NWButton.WidthRequest = 30; this.NWButton.HeightRequest = 30; this.NWButton.CanFocus = true; this.NWButton.Name = "NWButton"; this.NWButton.UseUnderline = true; // Container child NWButton.Gtk.Container+ContainerChild Gtk.Alignment w54 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w55 = new Gtk.HBox(); w55.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w56 = new Gtk.Image(); w55.Add(w56); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w58 = new Gtk.Label(); w55.Add(w58); w54.Add(w55); this.NWButton.Add(w54); this.table1.Add(this.NWButton); Gtk.Table.TableChild w62 = ((Gtk.Table.TableChild)(this.table1[this.NWButton])); w62.XOptions = ((Gtk.AttachOptions)(4)); w62.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SButton = new Gtk.Button(); this.SButton.WidthRequest = 30; this.SButton.HeightRequest = 30; this.SButton.CanFocus = true; this.SButton.Name = "SButton"; this.SButton.UseUnderline = true; // Container child SButton.Gtk.Container+ContainerChild Gtk.Alignment w63 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w64 = new Gtk.HBox(); w64.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w65 = new Gtk.Image(); w64.Add(w65); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w67 = new Gtk.Label(); w64.Add(w67); w63.Add(w64); this.SButton.Add(w63); this.table1.Add(this.SButton); Gtk.Table.TableChild w71 = ((Gtk.Table.TableChild)(this.table1[this.SButton])); w71.TopAttach = ((uint)(2)); w71.BottomAttach = ((uint)(3)); w71.LeftAttach = ((uint)(1)); w71.RightAttach = ((uint)(2)); w71.XOptions = ((Gtk.AttachOptions)(4)); w71.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SEButton = new Gtk.Button(); this.SEButton.WidthRequest = 30; this.SEButton.HeightRequest = 30; this.SEButton.CanFocus = true; this.SEButton.Name = "SEButton"; this.SEButton.UseUnderline = true; // Container child SEButton.Gtk.Container+ContainerChild Gtk.Alignment w72 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w73 = new Gtk.HBox(); w73.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w74 = new Gtk.Image(); w73.Add(w74); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w76 = new Gtk.Label(); w73.Add(w76); w72.Add(w73); this.SEButton.Add(w72); this.table1.Add(this.SEButton); Gtk.Table.TableChild w80 = ((Gtk.Table.TableChild)(this.table1[this.SEButton])); w80.TopAttach = ((uint)(2)); w80.BottomAttach = ((uint)(3)); w80.LeftAttach = ((uint)(2)); w80.RightAttach = ((uint)(3)); w80.XOptions = ((Gtk.AttachOptions)(4)); w80.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.SWButton = new Gtk.Button(); this.SWButton.WidthRequest = 30; this.SWButton.HeightRequest = 30; this.SWButton.CanFocus = true; this.SWButton.Name = "SWButton"; this.SWButton.UseUnderline = true; // Container child SWButton.Gtk.Container+ContainerChild Gtk.Alignment w81 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w82 = new Gtk.HBox(); w82.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w83 = new Gtk.Image(); w82.Add(w83); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w85 = new Gtk.Label(); w82.Add(w85); w81.Add(w82); this.SWButton.Add(w81); this.table1.Add(this.SWButton); Gtk.Table.TableChild w89 = ((Gtk.Table.TableChild)(this.table1[this.SWButton])); w89.TopAttach = ((uint)(2)); w89.BottomAttach = ((uint)(3)); w89.XOptions = ((Gtk.AttachOptions)(4)); w89.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.WButton = new Gtk.Button(); this.WButton.WidthRequest = 30; this.WButton.HeightRequest = 30; this.WButton.CanFocus = true; this.WButton.Name = "WButton"; this.WButton.UseUnderline = true; // Container child WButton.Gtk.Container+ContainerChild Gtk.Alignment w90 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w91 = new Gtk.HBox(); w91.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w92 = new Gtk.Image(); w91.Add(w92); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w94 = new Gtk.Label(); w91.Add(w94); w90.Add(w91); this.WButton.Add(w90); this.table1.Add(this.WButton); Gtk.Table.TableChild w98 = ((Gtk.Table.TableChild)(this.table1[this.WButton])); w98.TopAttach = ((uint)(1)); w98.BottomAttach = ((uint)(2)); w98.XOptions = ((Gtk.AttachOptions)(4)); w98.YOptions = ((Gtk.AttachOptions)(4)); this.hbox5.Add(this.table1); Gtk.Box.BoxChild w99 = ((Gtk.Box.BoxChild)(this.hbox5[this.table1])); w99.Position = 1; w99.Expand = false; w99.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.alignment2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment2.Name = "alignment2"; this.hbox5.Add(this.alignment2); Gtk.Box.BoxChild w100 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment2])); w100.Position = 2; this.vbox2.Add(this.hbox5); Gtk.Box.BoxChild w101 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5])); w101.PackType = ((Gtk.PackType)(1)); w101.Position = 5; w101.Expand = false; w101.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Anchor:"); this.vbox2.Add(this.label6); Gtk.Box.BoxChild w102 = ((Gtk.Box.BoxChild)(this.vbox2[this.label6])); w102.PackType = ((Gtk.PackType)(1)); w102.Position = 6; w102.Expand = false; w102.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.vbox2.Add(this.hseparator1); Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox2[this.hseparator1])); w103.PackType = ((Gtk.PackType)(1)); w103.Position = 7; w103.Expand = false; w103.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w104 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w104.Position = 0; w104.Expand = false; w104.Fill = false; // Internal child Pinta.ResizeCanvasDialog.ActionArea Gtk.HButtonBox w105 = this.ActionArea; w105.Name = "dialog1_ActionArea"; w105.Spacing = 10; w105.BorderWidth = ((uint)(5)); w105.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 w106 = ((Gtk.ButtonBox.ButtonBoxChild)(w105[this.buttonCancel])); w106.Expand = false; w106.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 w107 = ((Gtk.ButtonBox.ButtonBoxChild)(w105[this.buttonOk])); w107.Position = 1; w107.Expand = false; w107.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.OCMQueryPage3 Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.OCMQueryPage3"; // Container child ocmgtk.OCMQueryPage3.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.frame6 = new Gtk.Frame(); this.frame6.Name = "frame6"; this.frame6.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame6.Gtk.Container+ContainerChild this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild this.table3 = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.hiddenCheck = new Gtk.CheckButton(); this.hiddenCheck.CanFocus = true; this.hiddenCheck.Name = "hiddenCheck"; this.hiddenCheck.Label = Mono.Unix.Catalog.GetString("Hidden:"); this.hiddenCheck.DrawIndicator = true; this.hiddenCheck.UseUnderline = true; this.table3.Add(this.hiddenCheck); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.hiddenCheck])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hiddenCombo = Gtk.ComboBox.NewText(); this.hiddenCombo.AppendText(Mono.Unix.Catalog.GetString("On or before")); this.hiddenCombo.AppendText(Mono.Unix.Catalog.GetString("On or after")); this.hiddenCombo.Sensitive = false; this.hiddenCombo.Name = "hiddenCombo"; this.hiddenCombo.Active = 0; this.table3.Add(this.hiddenCombo); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.hiddenCombo])); w2.TopAttach = ((uint)(2)); w2.BottomAttach = ((uint)(3)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hiddenDateEntry = new ocmgtk.DateWidget(); this.hiddenDateEntry.Sensitive = false; this.hiddenDateEntry.Events = ((Gdk.EventMask)(256)); this.hiddenDateEntry.Name = "hiddenDateEntry"; this.hiddenDateEntry.IncludeTime = false; this.hiddenDateEntry.Date = new System.DateTime(0); this.table3.Add(this.hiddenDateEntry); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.hiddenDateEntry])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.LeftAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.placedAnyRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Placed by anyone")); this.placedAnyRadio.CanFocus = true; this.placedAnyRadio.Name = "placedAnyRadio"; this.placedAnyRadio.Active = true; this.placedAnyRadio.DrawIndicator = true; this.placedAnyRadio.UseUnderline = true; this.placedAnyRadio.Group = new GLib.SList(System.IntPtr.Zero); this.table3.Add(this.placedAnyRadio); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.placedAnyRadio])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.placedByRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Placed by:")); this.placedByRadio.CanFocus = true; this.placedByRadio.Name = "placedByRadio"; this.placedByRadio.DrawIndicator = true; this.placedByRadio.UseUnderline = true; this.placedByRadio.Group = this.placedAnyRadio.Group; this.table3.Add(this.placedByRadio); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table3[this.placedByRadio])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.placedEntry = new Gtk.Entry(); this.placedEntry.Sensitive = false; this.placedEntry.CanFocus = true; this.placedEntry.Name = "placedEntry"; this.placedEntry.IsEditable = true; this.placedEntry.InvisibleChar = '•'; this.table3.Add(this.placedEntry); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table3[this.placedEntry])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(3)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment3.Add(this.table3); this.frame6.Add(this.GtkAlignment3); this.GtkLabel14 = new Gtk.Label(); this.GtkLabel14.Name = "GtkLabel14"; this.GtkLabel14.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Placement</b>"); this.GtkLabel14.UseMarkup = true; this.frame6.LabelWidget = this.GtkLabel14; this.vbox2.Add(this.frame6); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame6])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // 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.table1 = new Gtk.Table(((uint)(4)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.countryCheck = new Gtk.CheckButton(); this.countryCheck.CanFocus = true; this.countryCheck.Name = "countryCheck"; this.countryCheck.Label = Mono.Unix.Catalog.GetString("Country:"); this.countryCheck.DrawIndicator = true; this.countryCheck.UseUnderline = true; this.table1.Add(this.countryCheck); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.countryCheck])); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.countryEntry = new Gtk.Entry(); this.countryEntry.Sensitive = false; this.countryEntry.CanFocus = true; this.countryEntry.Name = "countryEntry"; this.countryEntry.IsEditable = true; this.countryEntry.InvisibleChar = '•'; this.table1.Add(this.countryEntry); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.countryEntry])); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.distCheck = new Gtk.CheckButton(); this.distCheck.CanFocus = true; this.distCheck.Name = "distCheck"; this.distCheck.Label = Mono.Unix.Catalog.GetString("Distance is:"); this.distCheck.DrawIndicator = true; this.distCheck.UseUnderline = true; this.table1.Add(this.distCheck); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.distCheck])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.distFrame = new Gtk.Frame(); this.distFrame.Sensitive = false; this.distFrame.Name = "distFrame"; this.distFrame.ShadowType = ((Gtk.ShadowType)(1)); // Container child distFrame.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; this.vbox3.BorderWidth = ((uint)(6)); // Container child vbox3.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.distCombo = Gtk.ComboBox.NewText(); this.distCombo.AppendText(Mono.Unix.Catalog.GetString("Less than")); this.distCombo.AppendText(Mono.Unix.Catalog.GetString("Greater than")); this.distCombo.AppendText(Mono.Unix.Catalog.GetString("Equal to")); this.distCombo.Name = "distCombo"; this.distCombo.Active = 0; this.hbox2.Add(this.distCombo); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.distCombo])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.distEntry = new Gtk.Entry(); this.distEntry.CanFocus = true; this.distEntry.Name = "distEntry"; this.distEntry.IsEditable = true; this.distEntry.InvisibleChar = '•'; this.hbox2.Add(this.distEntry); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.distEntry])); w14.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.distMeasureLabel = new Gtk.Label(); this.distMeasureLabel.Name = "distMeasureLabel"; this.distMeasureLabel.LabelProp = Mono.Unix.Catalog.GetString("km"); this.hbox2.Add(this.distMeasureLabel); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.distMeasureLabel])); w15.Position = 2; w15.Expand = false; this.vbox3.Add(this.hbox2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2])); w16.Position = 0; w16.Expand = false; w16.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("From current centre point")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.Active = true; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.vbox3.Add(this.radiobutton1); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.radiobutton1])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // 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.locRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("From location:")); this.locRadio.CanFocus = true; this.locRadio.Name = "locRadio"; this.locRadio.DrawIndicator = true; this.locRadio.UseUnderline = true; this.locRadio.Group = this.radiobutton1.Group; this.hbox3.Add(this.locRadio); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.locRadio])); w18.Position = 0; w18.Expand = false; // Container child hbox3.Gtk.Box+BoxChild this.locationCombo = Gtk.ComboBox.NewText(); this.locationCombo.Sensitive = false; this.locationCombo.Name = "locationCombo"; this.hbox3.Add(this.locationCombo); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox3[this.locationCombo])); w19.Position = 1; w19.Expand = false; w19.Fill = false; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w20.Position = 2; w20.Expand = false; w20.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.posRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("From position:")); this.posRadio.CanFocus = true; this.posRadio.Name = "posRadio"; this.posRadio.DrawIndicator = true; this.posRadio.UseUnderline = true; this.posRadio.Group = this.radiobutton1.Group; this.hbox4.Add(this.posRadio); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox4[this.posRadio])); w21.Position = 0; // Container child hbox4.Gtk.Box+BoxChild this.posLocation = new ocmgtk.LocationWidget(); this.posLocation.Sensitive = false; this.posLocation.Events = ((Gdk.EventMask)(256)); this.posLocation.Name = "posLocation"; this.posLocation.Latitude = 0; this.posLocation.Longitude = 0; this.hbox4.Add(this.posLocation); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.posLocation])); w22.Position = 1; w22.Expand = false; w22.Fill = false; this.vbox3.Add(this.hbox4); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4])); w23.Position = 3; w23.Expand = false; w23.Fill = false; this.GtkAlignment1.Add(this.vbox3); this.distFrame.Add(this.GtkAlignment1); this.table1.Add(this.distFrame); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.distFrame])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.RightAttach = ((uint)(2)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.stateCheck = new Gtk.CheckButton(); this.stateCheck.CanFocus = true; this.stateCheck.Name = "stateCheck"; this.stateCheck.Label = Mono.Unix.Catalog.GetString("State or province:"); this.stateCheck.DrawIndicator = true; this.stateCheck.UseUnderline = true; this.table1.Add(this.stateCheck); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.stateCheck])); w27.TopAttach = ((uint)(1)); w27.BottomAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.stateEntry = new Gtk.Entry(); this.stateEntry.Sensitive = false; this.stateEntry.CanFocus = true; this.stateEntry.Name = "stateEntry"; this.stateEntry.IsEditable = true; this.stateEntry.InvisibleChar = '•'; this.table1.Add(this.stateEntry); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.stateEntry])); w28.TopAttach = ((uint)(1)); w28.BottomAttach = ((uint)(2)); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table1); this.frame1.Add(this.GtkAlignment); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Location</b>"); this.GtkLabel8.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel8; this.vbox2.Add(this.frame1); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1])); w31.Position = 1; w31.Expand = false; w31.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.placedByRadio.Toggled += new System.EventHandler(this.OnPlacedByToggle); this.hiddenCheck.Toggled += new System.EventHandler(this.OnHiddenToggle); this.stateCheck.Toggled += new System.EventHandler(this.OnStateCheckToggle); this.locRadio.Toggled += new System.EventHandler(this.OnLocationToggle); this.posRadio.Toggled += new System.EventHandler(this.OnPositionToggle); this.distCheck.Toggled += new System.EventHandler(this.OnDistanceToggle); this.countryCheck.Toggled += new System.EventHandler(this.OnCountryToggle); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ReviewWaypointDialog this.WidthRequest = 500; this.Name = "ocmgtk.ReviewWaypointDialog"; this.Title = Mono.Unix.Catalog.GetString("Review Waypoint (0 of 0)"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); // Internal child ocmgtk.ReviewWaypointDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.reviewWidget = new ocmgtk.ReviewWaypointWidget(); this.reviewWidget.Events = ((Gdk.EventMask)(256)); this.reviewWidget.Name = "reviewWidget"; w1.Add(this.reviewWidget); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.reviewWidget])); w2.Position = 0; // Internal child ocmgtk.ReviewWaypointDialog.ActionArea Gtk.HButtonBox w3 = this.ActionArea; w3.Name = "dialog1_ActionArea"; w3.Spacing = 10; 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.button595 = new Gtk.Button(); this.button595.CanFocus = true; this.button595.Name = "button595"; this.button595.UseUnderline = true; this.button595.Label = Mono.Unix.Catalog.GetString("_Skip"); this.AddActionWidget(this.button595, 0); Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.button595])); w5.Position = 1; 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-add"; this.AddActionWidget(this.buttonOk, 0); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk])); w6.Position = 2; w6.Expand = false; w6.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 502; this.DefaultHeight = 389; this.Show(); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick); this.button595.Clicked += new System.EventHandler(this.OnSkipClick); this.buttonOk.Clicked += new System.EventHandler(this.OnAddClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Addins.Gui.AddinInstallDialog this.Name = "Mono.Addins.Gui.AddinInstallDialog"; this.Title = Mono.Unix.Catalog.GetString("Extension Installation"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.DefaultWidth = 725; this.DefaultHeight = 550; // Internal child Mono.Addins.Gui.AddinInstallDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog-vbox9"; w1.Spacing = 6; w1.BorderWidth = ((uint)(2)); // Container child dialog-vbox9.Gtk.Box+BoxChild this.wizardNotebook = new Gtk.Notebook(); this.wizardNotebook.CanFocus = true; this.wizardNotebook.Name = "wizardNotebook"; this.wizardNotebook.CurrentPage = 3; this.wizardNotebook.ShowBorder = false; this.wizardNotebook.BorderWidth = ((uint)(6)); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.vbox82 = new Gtk.VBox(); this.vbox82.Name = "vbox82"; this.vbox82.Spacing = 12; // Container child vbox82.Gtk.Box+BoxChild this.label113 = new Gtk.Label(); this.label113.Name = "label113"; this.label113.Xalign = 0F; this.label113.LabelProp = Mono.Unix.Catalog.GetString("<b>Select the extensions to install and click on Next</b>"); this.label113.UseMarkup = true; this.vbox82.Add(this.label113); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox82[this.label113])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox82.Gtk.Box+BoxChild this.hbox66 = new Gtk.HBox(); this.hbox66.Name = "hbox66"; this.hbox66.Spacing = 6; // Container child hbox66.Gtk.Box+BoxChild this.label112 = new Gtk.Label(); this.label112.Name = "label112"; this.label112.LabelProp = Mono.Unix.Catalog.GetString("Install from:"); this.hbox66.Add(this.label112); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox66[this.label112])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox66.Gtk.Box+BoxChild this.repoCombo = new Gtk.ComboBox(); this.repoCombo.Name = "repoCombo"; this.hbox66.Add(this.repoCombo); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox66[this.repoCombo])); w4.Position = 1; // Container child hbox66.Gtk.Box+BoxChild 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-refresh"; this.hbox66.Add(this.button1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox66[this.button1])); w5.Position = 2; w5.Expand = false; w5.Fill = false; // Container child hbox66.Gtk.Box+BoxChild this.btnManageSites = new Gtk.Button(); this.btnManageSites.CanFocus = true; this.btnManageSites.Name = "btnManageSites"; this.btnManageSites.UseUnderline = true; this.btnManageSites.Label = Mono.Unix.Catalog.GetString("_Repositories..."); this.hbox66.Add(this.btnManageSites); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox66[this.btnManageSites])); w6.Position = 3; w6.Expand = false; w6.Fill = false; this.vbox82.Add(this.hbox66); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox66])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox82.Gtk.Box+BoxChild this.hbox70 = new Gtk.HBox(); this.hbox70.Name = "hbox70"; this.hbox70.Spacing = 12; // Container child hbox70.Gtk.Box+BoxChild this.vbox92 = new Gtk.VBox(); this.vbox92.Name = "vbox92"; this.vbox92.Spacing = 6; // Container child vbox92.Gtk.Box+BoxChild this.scrolledwindow18 = new Gtk.ScrolledWindow(); this.scrolledwindow18.CanFocus = true; this.scrolledwindow18.Name = "scrolledwindow18"; this.scrolledwindow18.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow18.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow18.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow18.Gtk.Container+ContainerChild this.addinTree = new Gtk.TreeView(); this.addinTree.CanFocus = true; this.addinTree.Name = "addinTree"; this.addinTree.HeadersClickable = true; this.scrolledwindow18.Add(this.addinTree); this.vbox92.Add(this.scrolledwindow18); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox92[this.scrolledwindow18])); w9.Position = 0; // Container child vbox92.Gtk.Box+BoxChild this.hbox83 = new Gtk.HBox(); this.hbox83.Name = "hbox83"; this.hbox83.Spacing = 6; // Container child hbox83.Gtk.Box+BoxChild this.filterComboBox = Gtk.ComboBox.NewText(); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show all packages")); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show new versions only")); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show updates only")); this.filterComboBox.Name = "filterComboBox"; this.hbox83.Add(this.filterComboBox); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox83[this.filterComboBox])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnInfo = new Gtk.Button(); this.btnInfo.CanFocus = true; this.btnInfo.Name = "btnInfo"; this.btnInfo.UseStock = true; this.btnInfo.UseUnderline = true; this.btnInfo.Label = "gtk-dialog-info"; this.hbox83.Add(this.btnInfo); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnInfo])); w11.PackType = ((Gtk.PackType)(1)); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnUnselectAll = new Gtk.Button(); this.btnUnselectAll.CanFocus = true; this.btnUnselectAll.Name = "btnUnselectAll"; this.btnUnselectAll.UseUnderline = true; this.btnUnselectAll.Label = Mono.Unix.Catalog.GetString("_Unselect All"); this.hbox83.Add(this.btnUnselectAll); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnUnselectAll])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnSelectAll = new Gtk.Button(); this.btnSelectAll.CanFocus = true; this.btnSelectAll.Name = "btnSelectAll"; this.btnSelectAll.UseUnderline = true; this.btnSelectAll.Label = Mono.Unix.Catalog.GetString("Select _All"); this.hbox83.Add(this.btnSelectAll); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnSelectAll])); w13.PackType = ((Gtk.PackType)(1)); w13.Position = 3; w13.Expand = false; w13.Fill = false; this.vbox92.Add(this.hbox83); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox92[this.hbox83])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.hbox70.Add(this.vbox92); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox70[this.vbox92])); w15.Position = 0; this.vbox82.Add(this.hbox70); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox70])); w16.Position = 2; this.wizardNotebook.Add(this.vbox82); Gtk.Notebook.NotebookChild w17 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox82])); w17.TabExpand = false; // Notebook tab this.label108 = new Gtk.Label(); this.label108.Name = "label108"; this.label108.LabelProp = "label108"; this.wizardNotebook.SetTabLabel(this.vbox82, this.label108); this.label108.ShowAll(); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow19 = new Gtk.ScrolledWindow(); this.scrolledwindow19.CanFocus = true; this.scrolledwindow19.Name = "scrolledwindow19"; this.scrolledwindow19.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow19.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow19.Gtk.Container+ContainerChild Gtk.Viewport w18 = new Gtk.Viewport(); // Container child viewport1.Gtk.Container+ContainerChild this.hbox82 = new Gtk.HBox(); this.hbox82.Name = "hbox82"; this.hbox82.Spacing = 12; this.hbox82.BorderWidth = ((uint)(12)); // Container child hbox82.Gtk.Box+BoxChild this.imageInstall = new Gtk.Image(); this.imageInstall.Name = "imageInstall"; this.imageInstall.Xalign = 0F; this.imageInstall.Yalign = 0F; this.imageInstall.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48); this.hbox82.Add(this.imageInstall); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox82[this.imageInstall])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox82.Gtk.Box+BoxChild this.labelSummary = new Gtk.Label(); this.labelSummary.Name = "labelSummary"; this.labelSummary.Xpad = 6; this.labelSummary.Ypad = 6; this.labelSummary.Xalign = 0F; this.labelSummary.Yalign = 0F; this.labelSummary.LabelProp = "<b>The following extensions will be installed:</b>\n\nC# language binding\nC# language IDE extension\n\n<b>The following extensions are required by the selected extensions</b>\n\nNUnit extension\nNAnt extension\n\nasd\nasd\na\nsd\nasd\nasd\na\nsda\nsd\nas\nda\nsd\nasd\n"; this.labelSummary.UseMarkup = true; this.labelSummary.Wrap = true; this.hbox82.Add(this.labelSummary); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox82[this.labelSummary])); w20.Position = 1; w20.Expand = false; w20.Fill = false; w18.Add(this.hbox82); this.scrolledwindow19.Add(w18); this.wizardNotebook.Add(this.scrolledwindow19); Gtk.Notebook.NotebookChild w23 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow19])); w23.Position = 1; w23.TabExpand = false; // Notebook tab this.label124 = new Gtk.Label(); this.label124.Name = "label124"; this.label124.LabelProp = Mono.Unix.Catalog.GetString("label124"); this.wizardNotebook.SetTabLabel(this.scrolledwindow19, this.label124); this.label124.ShowAll(); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.vbox86 = new Gtk.VBox(); this.vbox86.Name = "vbox86"; this.vbox86.Spacing = 6; this.vbox86.BorderWidth = ((uint)(116)); // Container child vbox86.Gtk.Box+BoxChild this.label126 = new Gtk.Label(); this.label126.Name = "label126"; this.label126.Xalign = 0F; this.label126.LabelProp = Mono.Unix.Catalog.GetString("Overall Progress:"); this.vbox86.Add(this.label126); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox86[this.label126])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.mainProgressBar = new Gtk.ProgressBar(); this.mainProgressBar.Name = "mainProgressBar"; this.mainProgressBar.PulseStep = 10000000149; this.vbox86.Add(this.mainProgressBar); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox86[this.mainProgressBar])); w25.Position = 1; w25.Expand = false; w25.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.label129 = new Gtk.Label(); this.label129.Name = "label129"; this.label129.LabelProp = ""; this.vbox86.Add(this.label129); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox86[this.label129])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.progressLabel = new Gtk.Label(); this.progressLabel.Name = "progressLabel"; this.progressLabel.Xalign = 0F; this.progressLabel.LabelProp = Mono.Unix.Catalog.GetString("Downloading extensions..."); this.vbox86.Add(this.progressLabel); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox86[this.progressLabel])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.progressBar = new Gtk.ProgressBar(); this.progressBar.Name = "progressBar"; this.progressBar.PulseStep = 10000000149; this.vbox86.Add(this.progressBar); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox86[this.progressBar])); w28.Position = 4; w28.Expand = false; w28.Fill = false; this.wizardNotebook.Add(this.vbox86); Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox86])); w29.Position = 2; w29.TabExpand = false; // Notebook tab this.label110 = new Gtk.Label(); this.label110.Name = "label110"; this.label110.LabelProp = "label110"; this.wizardNotebook.SetTabLabel(this.vbox86, this.label110); this.label110.ShowAll(); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow20 = new Gtk.ScrolledWindow(); this.scrolledwindow20.CanFocus = true; this.scrolledwindow20.Name = "scrolledwindow20"; this.scrolledwindow20.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow20.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow20.Gtk.Container+ContainerChild Gtk.Viewport w30 = new Gtk.Viewport(); // Container child viewport3.Gtk.Container+ContainerChild this.vbox91 = new Gtk.VBox(); this.vbox91.Name = "vbox91"; // Container child vbox91.Gtk.Box+BoxChild this.label130 = new Gtk.Label(); this.label130.Name = "label130"; this.label130.LabelProp = ""; this.vbox91.Add(this.label130); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox91[this.label130])); w31.Position = 0; // Container child vbox91.Gtk.Box+BoxChild this.imageError = new Gtk.Image(); this.imageError.Name = "imageError"; this.imageError.Yalign = 1F; this.imageError.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Dialog, 48); this.vbox91.Add(this.imageError); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageError])); w32.Position = 1; w32.Expand = false; w32.Fill = false; w32.Padding = ((uint)(5)); // Container child vbox91.Gtk.Box+BoxChild this.imageWarn = new Gtk.Image(); this.imageWarn.Name = "imageWarn"; this.imageWarn.Yalign = 1F; this.imageWarn.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48); this.vbox91.Add(this.imageWarn); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageWarn])); w33.Position = 2; w33.Expand = false; w33.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.imageInfo = new Gtk.Image(); this.imageInfo.Name = "imageInfo"; this.imageInfo.Yalign = 1F; this.imageInfo.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Dialog, 48); this.vbox91.Add(this.imageInfo); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageInfo])); w34.Position = 3; w34.Expand = false; w34.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.hbox71 = new Gtk.HBox(); this.hbox71.Name = "hbox71"; // Container child hbox71.Gtk.Box+BoxChild this.labelResult = new Gtk.Label(); this.labelResult.WidthRequest = 450; this.labelResult.Name = "labelResult"; this.labelResult.Ypad = 9; this.labelResult.Yalign = 0F; this.labelResult.LabelProp = "Done"; this.labelResult.UseMarkup = true; this.labelResult.Wrap = true; this.labelResult.Justify = ((Gtk.Justification)(2)); this.hbox71.Add(this.labelResult); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox71[this.labelResult])); w35.PackType = ((Gtk.PackType)(1)); w35.Position = 0; this.vbox91.Add(this.hbox71); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox91[this.hbox71])); w36.Position = 4; w36.Expand = false; w36.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.label131 = new Gtk.Label(); this.label131.Name = "label131"; this.label131.LabelProp = ""; this.vbox91.Add(this.label131); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox91[this.label131])); w37.Position = 5; w30.Add(this.vbox91); this.scrolledwindow20.Add(w30); this.wizardNotebook.Add(this.scrolledwindow20); Gtk.Notebook.NotebookChild w40 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20])); w40.Position = 3; w40.TabExpand = false; // Notebook tab this.label111 = new Gtk.Label(); this.label111.Name = "label111"; this.label111.LabelProp = "label111"; this.wizardNotebook.SetTabLabel(this.scrolledwindow20, this.label111); this.label111.ShowAll(); w1.Add(this.wizardNotebook); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(w1[this.wizardNotebook])); w41.Position = 0; // Container child dialog-vbox9.Gtk.Box+BoxChild this.dialog_action_area9 = new Gtk.HButtonBox(); this.dialog_action_area9.Name = "dialog_action_area9"; this.dialog_action_area9.Spacing = 9; this.dialog_action_area9.BorderWidth = ((uint)(6)); this.dialog_action_area9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnCancel = new Gtk.Button(); this.btnCancel.CanDefault = true; this.btnCancel.CanFocus = true; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseStock = true; this.btnCancel.UseUnderline = true; this.btnCancel.Label = "gtk-cancel"; this.dialog_action_area9.Add(this.btnCancel); // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnPrev = new Gtk.Button(); this.btnPrev.CanDefault = true; this.btnPrev.CanFocus = true; this.btnPrev.Name = "btnPrev"; this.btnPrev.UseStock = true; this.btnPrev.UseUnderline = true; this.btnPrev.Label = "gtk-go-back"; this.dialog_action_area9.Add(this.btnPrev); Gtk.ButtonBox.ButtonBoxChild w43 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev])); w43.Position = 1; // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnNext = new Gtk.Button(); this.btnNext.CanDefault = true; this.btnNext.CanFocus = true; this.btnNext.Name = "btnNext"; this.btnNext.UseStock = true; this.btnNext.UseUnderline = true; this.btnNext.Label = "gtk-go-forward"; this.dialog_action_area9.Add(this.btnNext); Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext])); w44.Position = 2; // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnOk = new Gtk.Button(); this.btnOk.CanDefault = true; this.btnOk.CanFocus = true; this.btnOk.Name = "btnOk"; this.btnOk.UseStock = true; this.btnOk.UseUnderline = true; this.btnOk.Label = "gtk-ok"; this.dialog_action_area9.Add(this.btnOk); Gtk.ButtonBox.ButtonBoxChild w45 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk])); w45.Position = 3; w1.Add(this.dialog_action_area9); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(w1[this.dialog_action_area9])); w46.PackType = ((Gtk.PackType)(1)); w46.Position = 2; w46.Expand = false; w46.Fill = false; // Internal child Mono.Addins.Gui.AddinInstallDialog.ActionArea Gtk.HButtonBox w47 = this.ActionArea; w47.Name = "hbuttonbox1"; w47.Spacing = 10; w47.BorderWidth = ((uint)(5)); w47.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); if ((this.Child != null)) { this.Child.ShowAll(); } this.btnOk.Hide(); w47.Hide(); this.Show(); this.repoCombo.Changed += new System.EventHandler(this.OnRepoChanged); this.button1.Clicked += new System.EventHandler(this.OnUpdateRepo); this.btnManageSites.Clicked += new System.EventHandler(this.OnManageSites); this.addinTree.CursorChanged += new System.EventHandler(this.OnActiveAddinChanged); this.filterComboBox.Changed += new System.EventHandler(this.OnFilterChanged); this.btnSelectAll.Clicked += new System.EventHandler(this.OnSelectAll); this.btnUnselectAll.Clicked += new System.EventHandler(this.OnUnselectAll); this.btnInfo.Clicked += new System.EventHandler(this.OnShowInfo); this.btnCancel.Clicked += new System.EventHandler(this.OnCancel); this.btnPrev.Clicked += new System.EventHandler(this.OnPrevPage); this.btnNext.Clicked += new System.EventHandler(this.OnNextPage); this.btnOk.Clicked += new System.EventHandler(this.OnOk); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.ResizeImageDialog this.Name = "Pinta.ResizeImageDialog"; this.Title = Mono.Unix.Catalog.GetString("Resize Image"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.DefaultWidth = 300; this.DefaultHeight = 200; // Internal child Pinta.ResizeImageDialog.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; this.vbox2.BorderWidth = ((uint)(12)); // 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.percentageRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By percentage:")); this.percentageRadio.CanFocus = true; this.percentageRadio.Name = "percentageRadio"; this.percentageRadio.Active = true; this.percentageRadio.DrawIndicator = true; this.percentageRadio.UseUnderline = true; this.percentageRadio.Group = new GLib.SList(System.IntPtr.Zero); this.hbox1.Add(this.percentageRadio); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageRadio])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.percentageSpinner = new Gtk.SpinButton(1, 1000, 1); this.percentageSpinner.CanFocus = true; this.percentageSpinner.Name = "percentageSpinner"; this.percentageSpinner.Adjustment.PageIncrement = 10; this.percentageSpinner.ClimbRate = 1; this.percentageSpinner.Numeric = true; this.percentageSpinner.Value = 100; this.hbox1.Add(this.percentageSpinner); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageSpinner])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = "%"; this.hbox1.Add(this.label1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w4.Position = 2; w4.Expand = false; w4.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w5.Position = 0; w5.Expand = false; w5.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.absoluteRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By absolute size:")); this.absoluteRadio.CanFocus = true; this.absoluteRadio.Name = "absoluteRadio"; this.absoluteRadio.DrawIndicator = true; this.absoluteRadio.UseUnderline = true; this.absoluteRadio.Group = this.percentageRadio.Group; this.hbox2.Add(this.absoluteRadio); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.absoluteRadio])); w6.Position = 0; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w7.Position = 1; w7.Expand = false; w7.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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Width:"); this.hbox3.Add(this.label2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.widthSpinner = new Gtk.SpinButton(1, 10000, 1); this.widthSpinner.Sensitive = false; this.widthSpinner.CanFocus = true; this.widthSpinner.Name = "widthSpinner"; this.widthSpinner.Adjustment.PageIncrement = 10; this.widthSpinner.ClimbRate = 1; this.widthSpinner.Numeric = true; this.hbox3.Add(this.widthSpinner); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.widthSpinner])); w9.Position = 1; w9.Expand = false; w9.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("pixels"); this.hbox3.Add(this.label4); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4])); w10.Position = 2; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.hbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3])); w11.Position = 2; w11.Expand = false; w11.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Height:"); this.hbox4.Add(this.label3); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3])); w12.Position = 0; w12.Expand = false; w12.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.heightSpinner = new Gtk.SpinButton(1, 10000, 1); this.heightSpinner.Sensitive = false; this.heightSpinner.CanFocus = true; this.heightSpinner.Name = "heightSpinner"; this.heightSpinner.Adjustment.PageIncrement = 10; this.heightSpinner.ClimbRate = 1; this.heightSpinner.Numeric = true; this.hbox4.Add(this.heightSpinner); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.heightSpinner])); w13.Position = 1; w13.Expand = false; w13.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("pixels"); this.hbox4.Add(this.label5); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.vbox2.Add(this.hbox4); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4])); w15.Position = 3; w15.Expand = false; w15.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.aspectCheckbox = new Gtk.CheckButton(); this.aspectCheckbox.Sensitive = false; this.aspectCheckbox.CanFocus = true; this.aspectCheckbox.Name = "aspectCheckbox"; this.aspectCheckbox.Label = Mono.Unix.Catalog.GetString("Maintain aspect ratio"); this.aspectCheckbox.Active = true; this.aspectCheckbox.DrawIndicator = true; this.aspectCheckbox.UseUnderline = true; this.vbox2.Add(this.aspectCheckbox); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.aspectCheckbox])); w16.Position = 4; w16.Expand = false; w16.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Internal child Pinta.ResizeImageDialog.ActionArea Gtk.HButtonBox w18 = this.ActionArea; w18.Name = "dialog1_ActionArea"; w18.Spacing = 10; w18.BorderWidth = ((uint)(5)); w18.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 w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w18[this.buttonCancel])); w19.Expand = false; w19.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 w20 = ((Gtk.ButtonBox.ButtonBoxChild)(w18[this.buttonOk])); w20.Position = 1; w20.Expand = false; w20.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); }