protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget DockingExamples.LocalizationTest
     global::Stetic.BinContainer.Attach(this);
     this.Name = "DockingExamples.LocalizationTest";
     // Container child DockingExamples.LocalizationTest.Gtk.Container+ContainerChild
     this.vbox1         = new global::Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label1           = new global::Docking.Widgets.LabelLocalized();
     this.label1.Name      = "label1";
     this.label1.LabelProp = "Any Content";
     this.vbox1.Add(this.label1);
     global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.label1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.button1              = new global::Docking.Widgets.ButtonLocalized();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label        = "Reset";
     this.vbox1.Add(this.button1);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.button1]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.labellocalized1           = new global::Docking.Widgets.LabelLocalized();
     this.labellocalized1.Name      = "labellocalized1";
     this.labellocalized1.LabelProp = "Other Content";
     this.vbox1.Add(this.labellocalized1);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.labellocalized1]));
     w3.Position = 2;
     w3.Expand   = false;
     w3.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget Docking.Components.LocalizationEditor
     global::Stetic.BinContainer.Attach(this);
     this.Name = "Docking.Components.LocalizationEditor";
     // Container child Docking.Components.LocalizationEditor.Gtk.Container+ContainerChild
     this.vbox2         = new global::Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow            = new global::Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview1          = new global::Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name     = "treeview1";
     this.GtkScrolledWindow.Add(this.treeview1);
     this.vbox2.Add(this.GtkScrolledWindow);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow]));
     w2.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1         = new global::Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button1              = new global::Docking.Widgets.ButtonLocalized();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label        = "Save";
     this.hbox1.Add(this.button1);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.button1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.labelChanges           = new global::Docking.Widgets.LabelLocalized();
     this.labelChanges.Name      = "labelChanges";
     this.labelChanges.LabelProp = "Changes: 0";
     this.hbox1.Add(this.labelChanges);
     global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.labelChanges]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.buttonTranslate              = new global::Docking.Widgets.ButtonLocalized();
     this.buttonTranslate.CanFocus     = true;
     this.buttonTranslate.Name         = "buttonTranslate";
     this.buttonTranslate.UseUnderline = true;
     this.buttonTranslate.Label        = "Translate";
     this.hbox1.Add(this.buttonTranslate);
     global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonTranslate]));
     w5.Position = 2;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.buttonTranslateAll              = new global::Docking.Widgets.ButtonLocalized();
     this.buttonTranslateAll.CanFocus     = true;
     this.buttonTranslateAll.Name         = "buttonTranslateAll";
     this.buttonTranslateAll.UseUnderline = true;
     this.buttonTranslateAll.Label        = "Translate All";
     this.hbox1.Add(this.buttonTranslateAll);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonTranslateAll]));
     w6.PackType = ((global::Gtk.PackType)(1));
     w6.Position = 3;
     w6.Expand   = false;
     w6.Fill     = false;
     this.vbox2.Add(this.hbox1);
     global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
 }
示例#3
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget Docking.Components.NewLayout
     this.Events         = ((global::Gdk.EventMask)(65536));
     this.Name           = "Docking.Components.NewLayout";
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Internal child Docking.Components.NewLayout.VBox
     global::Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(10));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vbox2         = new global::Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1         = new global::Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1           = new global::Docking.Widgets.LabelLocalized();
     this.label1.Name      = "label1";
     this.label1.LabelProp = "Layout Name:";
     this.hbox1.Add(this.label1);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.entryLayoutName                  = new global::Docking.Widgets.EntryLocalized();
     this.entryLayoutName.CanFocus         = true;
     this.entryLayoutName.Name             = "entryLayoutName";
     this.entryLayoutName.IsEditable       = true;
     this.entryLayoutName.ActivatesDefault = true;
     this.entryLayoutName.InvisibleChar    = '●';
     this.hbox1.Add(this.entryLayoutName);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.entryLayoutName]));
     w3.Position = 1;
     this.vbox2.Add(this.hbox1);
     global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.radiobuttonCopy               = new global::Docking.Widgets.RadioButtonLocalized();
     this.radiobuttonCopy.CanFocus      = true;
     this.radiobuttonCopy.Name          = "radiobuttonCopy";
     this.radiobuttonCopy.Label         = "Copy from current layout";
     this.radiobuttonCopy.Active        = true;
     this.radiobuttonCopy.DrawIndicator = true;
     this.radiobuttonCopy.UseUnderline  = true;
     this.radiobuttonCopy.Group         = new global::GLib.SList(global::System.IntPtr.Zero);
     this.vbox2.Add(this.radiobuttonCopy);
     global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.radiobuttonCopy]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.radiobuttonEmpty               = new global::Docking.Widgets.RadioButtonLocalized();
     this.radiobuttonEmpty.CanFocus      = true;
     this.radiobuttonEmpty.Name          = "radiobuttonEmpty";
     this.radiobuttonEmpty.Label         = "Empty layout";
     this.radiobuttonEmpty.DrawIndicator = true;
     this.radiobuttonEmpty.UseUnderline  = true;
     this.radiobuttonEmpty.Group         = this.radiobuttonCopy.Group;
     this.vbox2.Add(this.radiobuttonEmpty);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.radiobuttonEmpty]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     w1.Add(this.vbox2);
     global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2]));
     w7.Position = 0;
     w7.Expand   = false;
     w7.Fill     = false;
     // Internal child Docking.Components.NewLayout.ActionArea
     global::Gtk.HButtonBox w8 = this.ActionArea;
     w8.Name        = "dialog1_ActionArea";
     w8.Spacing     = 10;
     w8.BorderWidth = ((uint)(5));
     w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new global::Docking.Widgets.ButtonLocalized();
     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);
     global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonCancel]));
     w9.Expand = false;
     w9.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new global::Docking.Widgets.ButtonLocalized();
     this.buttonOk.Sensitive    = false;
     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);
     global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonOk]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth        = 406;
     this.DefaultHeight       = 141;
     this.buttonOk.HasDefault = true;
     this.Show();
     this.entryLayoutName.Changed  += new global::System.EventHandler(this.OnEntryLayoutNameChanged);
     this.radiobuttonEmpty.Toggled += new global::System.EventHandler(this.OnRadiobuttonEmptyToggled);
 }
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize (this);
     // Widget Docking.Components.LocalizationEditor
     global::Stetic.BinContainer.Attach (this);
     this.Name = "Docking.Components.LocalizationEditor";
     // Container child Docking.Components.LocalizationEditor.Gtk.Container+ContainerChild
     this.vbox2 = new global::Gtk.VBox ();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview1 = new global::Gtk.TreeView ();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     this.GtkScrolledWindow.Add (this.treeview1);
     this.vbox2.Add (this.GtkScrolledWindow);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.GtkScrolledWindow]));
     w2.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1 = new global::Gtk.HBox ();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button1 = new global::Docking.Widgets.ButtonLocalized ();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label = "Save";
     this.hbox1.Add (this.button1);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.button1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.labelChanges = new global::Docking.Widgets.LabelLocalized ();
     this.labelChanges.Name = "labelChanges";
     this.labelChanges.LabelProp = "Changes: 0";
     this.hbox1.Add (this.labelChanges);
     global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.labelChanges]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.buttonTranslate = new global::Docking.Widgets.ButtonLocalized ();
     this.buttonTranslate.CanFocus = true;
     this.buttonTranslate.Name = "buttonTranslate";
     this.buttonTranslate.UseUnderline = true;
     this.buttonTranslate.Label = "Translate";
     this.hbox1.Add (this.buttonTranslate);
     global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonTranslate]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.buttonTranslateAll = new global::Docking.Widgets.ButtonLocalized ();
     this.buttonTranslateAll.CanFocus = true;
     this.buttonTranslateAll.Name = "buttonTranslateAll";
     this.buttonTranslateAll.UseUnderline = true;
     this.buttonTranslateAll.Label = "Translate All";
     this.hbox1.Add (this.buttonTranslateAll);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonTranslateAll]));
     w6.PackType = ((global::Gtk.PackType)(1));
     w6.Position = 3;
     w6.Expand = false;
     w6.Fill = false;
     this.vbox2.Add (this.hbox1);
     global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     this.Add (this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll ();
     }
     this.Hide ();
 }
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize (this);
     // Widget Docking.Components.NewLayout
     this.Events = ((global::Gdk.EventMask)(65536));
     this.Name = "Docking.Components.NewLayout";
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Internal child Docking.Components.NewLayout.VBox
     global::Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(10));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vbox2 = new global::Gtk.VBox ();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1 = new global::Gtk.HBox ();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new global::Docking.Widgets.LabelLocalized ();
     this.label1.Name = "label1";
     this.label1.LabelProp = "Layout Name:";
     this.hbox1.Add (this.label1);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.entryLayoutName = new global::Docking.Widgets.EntryLocalized ();
     this.entryLayoutName.CanFocus = true;
     this.entryLayoutName.Name = "entryLayoutName";
     this.entryLayoutName.IsEditable = true;
     this.entryLayoutName.ActivatesDefault = true;
     this.entryLayoutName.InvisibleChar = '●';
     this.hbox1.Add (this.entryLayoutName);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.entryLayoutName]));
     w3.Position = 1;
     this.vbox2.Add (this.hbox1);
     global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.radiobuttonCopy = new global::Docking.Widgets.RadioButtonLocalized ();
     this.radiobuttonCopy.CanFocus = true;
     this.radiobuttonCopy.Name = "radiobuttonCopy";
     this.radiobuttonCopy.Label = "Copy from current layout";
     this.radiobuttonCopy.Active = true;
     this.radiobuttonCopy.DrawIndicator = true;
     this.radiobuttonCopy.UseUnderline = true;
     this.radiobuttonCopy.Group = new global::GLib.SList (global::System.IntPtr.Zero);
     this.vbox2.Add (this.radiobuttonCopy);
     global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.radiobuttonCopy]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.radiobuttonEmpty = new global::Docking.Widgets.RadioButtonLocalized ();
     this.radiobuttonEmpty.CanFocus = true;
     this.radiobuttonEmpty.Name = "radiobuttonEmpty";
     this.radiobuttonEmpty.Label = "Empty layout";
     this.radiobuttonEmpty.DrawIndicator = true;
     this.radiobuttonEmpty.UseUnderline = true;
     this.radiobuttonEmpty.Group = this.radiobuttonCopy.Group;
     this.vbox2.Add (this.radiobuttonEmpty);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.radiobuttonEmpty]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     w1.Add (this.vbox2);
     global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2]));
     w7.Position = 0;
     w7.Expand = false;
     w7.Fill = false;
     // Internal child Docking.Components.NewLayout.ActionArea
     global::Gtk.HButtonBox w8 = this.ActionArea;
     w8.Name = "dialog1_ActionArea";
     w8.Spacing = 10;
     w8.BorderWidth = ((uint)(5));
     w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new global::Docking.Widgets.ButtonLocalized ();
     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);
     global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonCancel]));
     w9.Expand = false;
     w9.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new global::Docking.Widgets.ButtonLocalized ();
     this.buttonOk.Sensitive = false;
     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);
     global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8 [this.buttonOk]));
     w10.Position = 1;
     w10.Expand = false;
     w10.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll ();
     }
     this.DefaultWidth = 406;
     this.DefaultHeight = 141;
     this.buttonOk.HasDefault = true;
     this.Show ();
     this.entryLayoutName.Changed += new global::System.EventHandler (this.OnEntryLayoutNameChanged);
     this.radiobuttonEmpty.Toggled += new global::System.EventHandler (this.OnRadiobuttonEmptyToggled);
 }