protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.BoundTextView
     Stetic.BinContainer.Attach(this);
     this.Name = "ControlWrappers.BoundTextView";
     // Container child ControlWrappers.BoundTextView.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
     this.tvBound = new Gtk.TextView();
     this.tvBound.CanFocus = true;
     this.tvBound.Name = "tvBound";
     this.scrolledwindow1.Add(this.tvBound);
     this.Add(this.scrolledwindow1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.tvBound.PasteClipboard += new System.EventHandler(this.PasteClipboardOccurred);
     this.tvBound.InsertAtCursor += new Gtk.InsertAtCursorHandler(this.InsertAtCursorOccurred);
     this.tvBound.CutClipboard += new System.EventHandler(this.CutClipboardOccurred);
     this.tvBound.DeleteFromCursor += new Gtk.DeleteFromCursorHandler(this.DeleteFromCursorOccurred);
     this.tvBound.Backspace += new System.EventHandler(this.BackspaceOccurred);
     this.tvBound.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.KeyReleaseEventOccurred);
 }
Beispiel #2
0
        public void MoveToIter(Gtk.TextView view, Gtk.TextIter iter)
        {
            IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc(iter);

            gtk_source_completion_info_move_to_iter(Handle, view == null ? IntPtr.Zero : view.Handle, native_iter);
            Marshal.FreeHGlobal(native_iter);
        }
Beispiel #3
0
        protected override void Run()
        {
                        #if WIN32
            var wintv = System.Windows.Input.Keyboard.FocusedElement;
            var cmd   = System.Windows.Input.ApplicationCommands.SelectAll;
            if (wintv != null && cmd.CanExecute(null, wintv))
            {
                cmd.Execute(null, wintv);
                return;
            }
                        #endif
            if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
            {
                Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
                if (editable != null)
                {
                    editable.SelectRegion(0, -1);
                    return;
                }
                Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
                if (tv != null)
                {
                    tv.Buffer.SelectRange(tv.Buffer.StartIter, tv.Buffer.EndIter);
                    return;
                }
#if MAC
                var mactv = AppKit.NSApplication.SharedApplication.KeyWindow.FirstResponder as AppKit.NSText;
                if (mactv != null)
                {
                    mactv.SelectAll(mactv);
                    return;
                }
#endif
            }
        }
 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 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();
 }
Beispiel #6
0
        public void AppendTextWithoutScroll(Gtk.TextView t, string text)
        {
            Gtk.TextIter iter;
            //t.Buffer.MoveMark(t.Buffer.InsertMark, t.Buffer.EndIter);
            if (text != null)
            {
                if (text.Equals("") == false)
                {
                    iter = t.Buffer.EndIter;
                    Gtk.TextTag tag = new Gtk.TextTag("bold");
                    tag.Weight     = Pango.Weight.Bold;
                    tag.Foreground = this.rcSettings.ColorChatBold;
                    tag.SizePoints = this.rcSettings.ChatFontSize;
                    t.Buffer.TagTable.Add(tag);
                    tag            = new Gtk.TextTag("font");
                    tag.SizePoints = this.rcSettings.ChatFontSize;
                    tag.Foreground = this.rcSettings.ColorChat;
                    t.Buffer.TagTable.Add(tag);

                    string time = text.Substring(0, text.IndexOf("]") + 1);
                    text = text.Substring(text.IndexOf("]") + 1);
                    t.Buffer.InsertWithTagsByName(ref iter, time, "bold");
                    t.Buffer.InsertWithTagsByName(ref iter, text.Substring(0, text.IndexOf(":") + 1), "bold");
                    t.Buffer.InsertWithTagsByName(ref iter, text.Substring(text.IndexOf(":") + 1), "font");
                }
            }
            iter = t.Buffer.EndIter;
            t.Buffer.Insert(iter, "\n");
        }
Beispiel #7
0
 protected override void Run()
 {
     if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
     {
         Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
         if (editable != null)
         {
             int cm;
             int cme;
             if (!editable.GetSelectionBounds(out cm, out cme))
             {
                 cm  = editable.Position;
                 cme = cm + 1;
             }
             editable.DeleteText(cm, cme);
             return;
         }
         Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
         if (tv != null)
         {
             tv.Buffer.BeginUserAction();
             Gtk.TextIter cm;
             Gtk.TextIter cme;
             if (!tv.Buffer.GetSelectionBounds(out cm, out cme))
             {
                 cm  = tv.Buffer.GetIterAtMark(tv.Buffer.InsertMark);
                 cme = cm;
                 cme.ForwardCursorPosition();
             }
             tv.Buffer.Delete(ref cm, ref cme);
             tv.Buffer.EndUserAction();
             return;
         }
     }
 }
Beispiel #8
0
 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();
 }
Beispiel #9
0
 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();
 }
Beispiel #10
0
 protected override void Run()
 {
     if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
     {
         Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
         if (editable != null)
         {
             editable.SelectRegion(0, -1);
             return;
         }
         Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
         if (tv != null)
         {
             tv.Buffer.SelectRange(tv.Buffer.StartIter, tv.Buffer.EndIter);
             return;
         }
                         #if MAC
         var mactv = AppKit.NSApplication.SharedApplication.KeyWindow.FirstResponder as AppKit.NSText;
         if (mactv != null)
         {
             mactv.SelectAll(mactv);
             return;
         }
                         #endif
     }
 }
Beispiel #11
0
 protected override void Run()
 {
     if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
     {
         Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
         if (editable != null)
         {
             editable.PasteClipboard();
             return;
         }
         Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
         if (tv != null)
         {
             Gtk.Clipboard clipboard = Gtk.Clipboard.Get(Gdk.Atom.Intern("CLIPBOARD", false));
             tv.Buffer.PasteClipboard(clipboard);
             return;
         }
                         #if MAC
         var mactv = AppKit.NSApplication.SharedApplication.KeyWindow.FirstResponder as AppKit.NSText;
         if (mactv != null)
         {
             mactv.Paste(mactv);
             return;
         }
                         #endif
     }
 }
Beispiel #12
0
 public override void OnNoteOpened()
 {
     Gtk.TextView editor = Window.Editor;
     editor.MotionNotifyEvent += OnEditorMotion;
     editor.KeyPressEvent     += OnEditorKeyPress;
     editor.KeyReleaseEvent   += OnEditorKeyRelease;
 }
Beispiel #13
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable = false;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.fixed4 = new Gtk.Fixed();
     this.fixed4.Name = "fixed4";
     this.fixed4.HasWindow = false;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.comboboxentry1 = Gtk.ComboBoxEntry.NewText();
     this.comboboxentry1.WidthRequest = 450;
     this.comboboxentry1.Name = "comboboxentry1";
     this.fixed4.Add(this.comboboxentry1);
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.togglebutton2 = new Gtk.ToggleButton();
     this.togglebutton2.WidthRequest = 50;
     this.togglebutton2.CanFocus = true;
     this.togglebutton2.Name = "togglebutton2";
     this.togglebutton2.UseUnderline = true;
     this.togglebutton2.Label = Mono.Unix.Catalog.GetString("On");
     this.fixed4.Add(this.togglebutton2);
     Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.togglebutton2]));
     w2.X = 450;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label1 = new Gtk.Label();
     this.label1.WidthRequest = 100;
     this.label1.HeightRequest = 28;
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("00:11:22");
     this.fixed4.Add(this.label1);
     Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label1]));
     w3.X = 500;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.WidthRequest = 600;
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.textview2 = new Gtk.TextView();
     this.textview2.CanFocus = true;
     this.textview2.Name = "textview2";
     this.GtkScrolledWindow.Add(this.textview2);
     this.fixed4.Add(this.GtkScrolledWindow);
     Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.GtkScrolledWindow]));
     w5.Y = 32;
     this.Add(this.fixed4);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 602;
     this.DefaultHeight = 178;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.togglebutton2.Toggled += new System.EventHandler(this.togglebutton2_onClick);
 }
Beispiel #14
0
 public RichTextViewBackend()
 {
     Widget = new Gtk.TextView();
     Widget.Show();
     Widget.Editable = false;
     Widget.WrapMode = Gtk.WrapMode.Word;
     InitTagTable();
 }
Beispiel #15
0
        /// <summary>
        /// Prints the text representation of the CFG using MethodDefinition object.
        /// </summary>
        /// <param name='methodDef'>
        /// Method def.
        /// </param>
        /// <param name='textView'>
        /// The Gtk.TextView used to be printed on.
        /// </param>
        ///
        private static void PrintMethod(MethodDefinition methodDef, Gtk.TextView textView)
        {
            textView.Buffer.Clear();

            ControlFlowGraph <Instruction> cfg = new CilToControlFlowGraph().Decompile(methodDef);

            textView.Buffer.Text = cfg.ToString();
        }
Beispiel #16
0
 public void WriteText(Gtk.TextView t, string text)
 {
     Gtk.Application.Invoke(delegate
     {
         this.AppendText(t, text);
     }
                            );
 }
Beispiel #17
0
 private static void ShowTextView(Gtk.TextView textView, string errorMessage, Gtk.TextTag tag)
 {
     textView.Visible     = true;
     textView.Buffer.Text = errorMessage;
     Gtk.TextIter start, end;
     textView.Buffer.GetBounds(out start, out end);
     textView.Buffer.ApplyTag(tag, start, end);
 }
Beispiel #18
0
 public RichTextViewBackend()
 {
     Widget = new Gtk.TextView ();
     Widget.Show ();
     Widget.Editable = false;
     Widget.WrapMode = Gtk.WrapMode.Word;
     InitTagTable ();
 }
 public override void CommitMessageTextViewHook(Gtk.TextView textView)
 {
     this.textView                 = textView;
     overflowTextTag               = new Gtk.TextTag("overflow");
     overflowTextTag.Foreground    = "red";
     overflowTextTag.ForegroundSet = true;
     textView.Buffer.TagTable.Add(overflowTextTag);
     textView.Buffer.Changed += OnTextChanged;
 }
Beispiel #20
0
 public static Gdk.Size GetSize(this Pango.FontDescription font)
 {
     var widget = new Gtk.TextView();
     widget.ModifyFont(font);
     var layout = widget.CreatePangoLayout("W");
     int width, height;
     layout.GetPixelSize(out width, out height);
     return new Gdk.Size() { Width = width, Height = height };
 }
Beispiel #21
0
        private static void PrintMethod(MethodDefinition methodDefinition, Gtk.TextView textView)
        {
            textView.Buffer.Clear();

            var       builder   = new CallGraphBuilder(methodDefinition);
            CallGraph callGraph = builder.Create(5);

            textView.Buffer.Text = callGraph.ToString();
        }
Beispiel #22
0
        public void AppendText(Gtk.TextView t, string text)
        {
            DateTime time   = DateTime.Now;           // Use current time
            string   format = "HH:mm:ss";

            this.AppendTextWithoutScroll(t, "[" + time.ToString(format) + "] " + text);
            t.ScrollToIter(t.Buffer.EndIter, 0.4, true, 0.0, 1.0);
            //t.ScrollToMark(t.Buffer.InsertMark, 0.4, true, 0.0, 1.0);
        }
 public override void CommitMessageTextViewHook(Gtk.TextView textView)
 {
     this.textView                 = textView;
     overflowTextTag               = new Gtk.TextTag("overflow");
     overflowTextTag.Foreground    = Ide.Gui.Styles.ErrorForegroundColor.ToHexString(false);
     overflowTextTag.ForegroundSet = true;
     textView.Buffer.TagTable.Add(overflowTextTag);
     textView.Buffer.Changed += OnTextChanged;
 }
Beispiel #24
0
        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();
        }
Beispiel #25
0
        public GtkSharpMemo(Widget shellobject)
            : base(shellobject)
        {
            textview = new Gtk.TextView();
            GtkSharpDriver.InitWidget(textview, shellobject);
            textview.Show();

            textview.Buffer.Changed += delegate { ((Memo)ShellObject).OnChanged(); };
            textview.AcceptsTab      = false; //dafault is to tab to next control
        }
 public EditableTextView ()
 {
     this.Build ();
     buffer = new Gtk.TextBuffer (TrackTagTable.Instance);
     textview = new Gtk.TextView (buffer);
     textview.WrapMode = Gtk.WrapMode.WordChar;
     scrolledwindow.Add (textview);
     this.ShowAll ();
     this.isEditable = false;
 }
Beispiel #27
0
 public static void PrintPretty(MemberReference memberRef, Gtk.TextView textView) {
   if (memberRef is TypeDefinition)
     PrintType(memberRef as TypeDefinition, textView);
   else if (memberRef is MethodDefinition)
     PrintMethod(memberRef as MethodDefinition, textView);
   else if (memberRef is EventDefinition)
     PrintEvent(memberRef as EventDefinition, textView);
   else if (memberRef is FieldDefinition)
     PrintField(memberRef as FieldDefinition, textView);
 }
Beispiel #28
0
        private static void PrintEvent(EventDefinition evtDef, Gtk.TextView textView)
        {
            textView.Buffer.Clear();
            Gtk.TextIter textIter = textView.Buffer.EndIter;

            foreach (MethodDefinition mDef in evtDef.OtherMethods)
            {
                textView.Buffer.Insert(ref textIter, evtDef.ToString() + "\n");
            }
        }
 public void WriteText(Gtk.TextView txtView, string text)
 {
     if (this.isRC)
     {
         this.rc.WriteText(txtView, text);
     }
     else
     {
         this.mw.WriteText(txtView, text);
     }
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ChangeHistory
     this.Name           = "ocmgtk.ChangeHistory";
     this.Title          = Mono.Unix.Catalog.GetString("Change History...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth   = 500;
     this.DefaultHeight  = 400;
     // Internal child ocmgtk.ChangeHistory.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.textView          = new Gtk.TextView();
     this.textView.CanFocus = true;
     this.textView.Name     = "textView";
     this.textView.Editable = false;
     this.scrolledwindow1.Add(this.textView);
     w1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1]));
     w3.Position = 0;
     // Internal child ocmgtk.ChangeHistory.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name        = "dialog1_ActionArea";
     w4.Spacing     = 10;
     w4.BorderWidth = ((uint)(5));
     w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.CanDefault   = true;
     this.buttonOk.CanFocus     = true;
     this.buttonOk.Name         = "buttonOk";
     this.buttonOk.UseStock     = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label        = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk]));
     w5.Expand = false;
     w5.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.buttonOk.HasDefault = true;
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ChangeHistory
     this.Name = "ocmgtk.ChangeHistory";
     this.Title = Mono.Unix.Catalog.GetString("Change History...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 500;
     this.DefaultHeight = 400;
     // Internal child ocmgtk.ChangeHistory.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.textView = new Gtk.TextView();
     this.textView.CanFocus = true;
     this.textView.Name = "textView";
     this.textView.Editable = false;
     this.scrolledwindow1.Add(this.textView);
     w1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.scrolledwindow1]));
     w3.Position = 0;
     // Internal child ocmgtk.ChangeHistory.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name = "dialog1_ActionArea";
     w4.Spacing = 10;
     w4.BorderWidth = ((uint)(5));
     w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk]));
     w5.Expand = false;
     w5.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.buttonOk.HasDefault = true;
     this.Show();
     this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.About
     this.Name = "omvviewerlight.About";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator = false;
     // Internal child omvviewerlight.About.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.textview1 = new Gtk.TextView();
     this.textview1.Buffer.Text = "\t\t\t\t\t   omvviewer-light\n\nCopyright (C) 2008-2009 Robin Cornelius <*****@*****.**>\n\nContributions from\n\nKhyota\nTechwolf\nDzontaz\nCarjay\nRoslyn\n\nFor help and support please\n\n1) File a bug on jira.byteme.org.uk with a full description of any\nproblem you may have any stack traces, screen shots etc that may help\n\n2) If possible please try to contact us via IRC on EFnet #omvviewer, but \nnote that although there are a hand full of people on that channel, they \nare not always at the keyboard so a response may be a few hours etc.\n\n3) Email me if 2) is not possible. But please file a JIRA first!\n\nThis program is licenced under the GNU General Public Licence V2 or at \nyour choice any later version.\n\n\t\t    GNU GENERAL PUBLIC LICENSE\n\t\t       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\t\t\t    Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.)  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n\t\t    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n\t\t\t    NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n";
     this.textview1.CanFocus = true;
     this.textview1.Name = "textview1";
     this.textview1.WrapMode = ((Gtk.WrapMode)(3));
     this.GtkScrolledWindow.Add(this.textview1);
     w1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.GtkScrolledWindow]));
     w3.Position = 0;
     // Internal child omvviewerlight.About.ActionArea
     Gtk.HButtonBox w4 = this.ActionArea;
     w4.Name = "dialog1_ActionArea";
     w4.Spacing = 6;
     w4.BorderWidth = ((uint)(5));
     w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk]));
     w5.Expand = false;
     w5.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 511;
     this.DefaultHeight = 452;
     this.Show();
 }
 public void AppendTextWithoutScroll(Gtk.TextView t, string text)
 {
     Gtk.TextIter iter;
     //t.Buffer.MoveMark(t.Buffer.InsertMark, t.Buffer.EndIter);
     if (text != null)
     {
         if (text.Equals("") == false)
         {
             iter = t.Buffer.EndIter;
             t.Buffer.Insert(iter, text);
         }
     }
     iter = t.Buffer.EndIter;
     t.Buffer.Insert(iter, "\n");
 }
Beispiel #34
0
 static bool DetectGtkSpellAvailable()
 {
     try {
         Gtk.TextView test_view = new Gtk.TextView();
         IntPtr       test_ptr  = gtkspell_new_attach(test_view.Handle,
                                                      null,
                                                      IntPtr.Zero);
         if (test_ptr != IntPtr.Zero)
         {
             gtkspell_detach(test_ptr);
         }
         return(true);
     } catch {
         return(false);
     }
 }
Beispiel #35
0
        public TextEditorDialog()
        {
            Gtk.ScrolledWindow sc = new Gtk.ScrolledWindow();
            sc.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            sc.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            sc.ShadowType       = Gtk.ShadowType.In;
            sc.BorderWidth      = 6;

            textview = new Gtk.TextView();
            sc.Add(textview);

            dialog = new Gtk.Dialog();
            dialog.AddButton(Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
            dialog.AddButton(Gtk.Stock.Ok, Gtk.ResponseType.Ok);
            dialog.VBox.Add(sc);
        }
Beispiel #36
0
		public TextEditorDialog ()
		{
			Gtk.ScrolledWindow sc = new Gtk.ScrolledWindow ();
			sc.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.ShadowType = Gtk.ShadowType.In;
			sc.BorderWidth = 6;
			
			textview = new Gtk.TextView ();
			sc.Add (textview);
			
			dialog = new Gtk.Dialog ();
			dialog.AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
			dialog.AddButton (Gtk.Stock.Ok, Gtk.ResponseType.Ok);
			dialog.VBox.Add (sc);
		}
Beispiel #37
0
        protected override void Run()
        {
                        #if WIN32
            var wintv = System.Windows.Input.Keyboard.FocusedElement;
            var cmd   = System.Windows.Input.ApplicationCommands.Cut;
            if (wintv != null && cmd.CanExecute(null, wintv))
            {
                cmd.Execute(null, wintv);
                return;
            }
                        #endif

            if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
            {
                Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
                if (editable != null)
                {
                    editable.CutClipboard();
                    return;
                }
                Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
                if (tv != null)
                {
                    Gtk.Clipboard clipboard = Gtk.Clipboard.Get(Gdk.Atom.Intern("CLIPBOARD", false));
                    tv.Buffer.CutClipboard(clipboard, true);
                    return;
                }
            }

                        #if MAC
            var keyWindow = AppKit.NSApplication.SharedApplication.KeyWindow;
            var focusView = keyWindow?.FirstResponder;
            if (focusView != null)
            {
                var mactv = focusView as AppKit.NSText;
                if (mactv != null)
                {
                    mactv.Cut(mactv);
                }
                else
                {
                    AppKit.NSApplication.SharedApplication.SendAction(cutSelector, focusView, keyWindow);
                }
                return;
            }
                        #endif
        }
Beispiel #38
0
 protected override void Run()
 {
     if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
     {
         Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
         if (editable != null)
         {
             editable.SelectRegion(0, -1);
             return;
         }
         Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
         if (tv != null)
         {
             tv.Buffer.SelectRange(tv.Buffer.StartIter, tv.Buffer.EndIter);
             return;
         }
     }
 }
Beispiel #39
0
 protected override void Run()
 {
     if (IdeApp.Workbench.RootWindow.HasToplevelFocus)
     {
         Gtk.Editable editable = IdeApp.Workbench.RootWindow.Focus as Gtk.Editable;
         if (editable != null)
         {
             editable.PasteClipboard();
             return;
         }
         Gtk.TextView tv = IdeApp.Workbench.RootWindow.Focus as Gtk.TextView;
         if (tv != null)
         {
             Gtk.Clipboard clipboard = Gtk.Clipboard.Get(Gdk.Atom.Intern("CLIPBOARD", false));
             tv.Buffer.PasteClipboard(clipboard);
             return;
         }
     }
 }
Beispiel #40
0
        public TextBox(int nlines)
        {
            ShadowType = Gtk.ShadowType.In;
            SetPolicy(Gtk.PolicyType.Never, Gtk.PolicyType.Automatic);

            textview          = new Gtk.TextView();
            textview.WrapMode = Gtk.WrapMode.Word;
            textview.Show();
            Add(textview);

            Pango.Context     ctx     = textview.PangoContext;
            Pango.FontMetrics metrics = ctx.GetMetrics(textview.Style.FontDescription,
                                                       ctx.Language);
            int lineHeight = (metrics.Ascent + metrics.Descent) / (int)Pango.Scale.PangoScale;

            SetSizeRequest(-1, lineHeight * nlines);

            textview.Buffer.Changed += Buffer_Changed;
        }
Beispiel #41
0
        public static void PrintModule(ModuleDefinition moduleDef, Gtk.TextView textView)
        {
            textView.Buffer.Clear();
            ILFormatter writer = new ILFormatter(textView.Buffer);

            if (moduleDef.Types.Count > 0)
            {
                writer.NewLine();
                writer.Write("// Types");
                writer.NewLine();
                writer.NewLine();
            }

            foreach (TypeDefinition typeDef in moduleDef.Types)
            {
                writer.Write(typeDef.Name);
                writer.NewLine();
            }
        }
Beispiel #42
0
 private static void RunModalDialog(string title, string format, params object [] args)
 {
     Gtk.Dialog dlg = new Gtk.Dialog ("Tomboy.InsertImage - " + Catalog.GetString(title), null,
                                      Gtk.DialogFlags.Modal | Gtk.DialogFlags.DestroyWithParent);
     var text = new Gtk.TextView ();
     text.WrapMode = Gtk.WrapMode.Word;
     text.Editable = false;
     if (args.Length > 0)
         format = string.Format (format, args);
     text.Buffer.Text = format;
     var scroll = new Gtk.ScrolledWindow ();
     scroll.Add (text);
     dlg.AddButton (Catalog.GetString("Close"), Gtk.ResponseType.Close);
     dlg.VBox.PackStart (scroll, true, true, 0);
     dlg.SetSizeRequest (300, 240);
     scroll.ShowAll ();
     dlg.Run ();
     dlg.Destroy ();
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.CommentEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.CommentEditorWidget";
     // Container child MonoDevelop.Database.Designer.CommentEditorWidget.Gtk.Container+ContainerChild
     this.scrolledwindow = new Gtk.ScrolledWindow();
     this.scrolledwindow.CanFocus = true;
     this.scrolledwindow.Name = "scrolledwindow";
     this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow.Gtk.Container+ContainerChild
     this.textComment = new Gtk.TextView();
     this.textComment.CanFocus = true;
     this.textComment.Name = "textComment";
     this.scrolledwindow.Add(this.textComment);
     this.Add(this.scrolledwindow);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
Beispiel #44
0
		protected Gtk.Widget SetupNewNotePage()
		{
			var box = new Gtk.VBox();

			// Buttons
			var btnBox = new Gtk.HBox();
			box.PackStart(btnBox, false, false, 2);

			var saveBtn = new Gtk.Button()
			{
				Label = "Save note",
			};
			saveBtn.Clicked += OnSaveNewNoteBtnClicked;
			btnBox.PackStart(saveBtn, true, true, 0);

			var cancelBtn = new Gtk.Button()
			{
				Label = "Cancel",
			};
			cancelBtn.Clicked += OnCancelNewNoteBtnClicked;
			btnBox.PackStart(cancelBtn, true, true, 0);

			// Input fields
			var titleLabel = new Gtk.Label("Title:");
			newNoteTitle = new Gtk.Entry();
			var titleBox = new Gtk.HBox();
			titleBox.PackStart(titleLabel, false, false, 0);
			titleBox.PackStart(newNoteTitle, true, true, 0);
			box.PackStart(titleBox, false, false, 2);

			newNoteField = new Gtk.TextView();
			newNoteField.BorderWidth = 1;
			box.PackStart(newNoteField, true, true, 2);

			return box;
		}
Beispiel #45
0
		protected Gtk.Widget SetupOverviewPage()
		{
			var box = new Gtk.VBox();

			var btnBox = new Gtk.HBox();
			box.PackStart(btnBox, false, true, 2);

			addNoteBtn = new Gtk.Button()
			{
				Label = "Add note",
				HeightRequest = 25,
			};
			addNoteBtn.Clicked += OnAddNoteBtnClicked;
			btnBox.PackStart(addNoteBtn, true, true, 0);

			saveNoteBtn = new Gtk.Button()
			{
				Label = "Save note",
				HeightRequest = 25,
			};
			saveNoteBtn.Clicked += OnSaveNoteBtnClicked;
			btnBox.PackStart(saveNoteBtn, true, true, 0);

			rmNoteBtn = new Gtk.Button()
			{
				Label = "Remove note",
				HeightRequest = 25,
			};
			rmNoteBtn.Clicked += OnRmNoteBtnClicked;
			btnBox.PackStart(rmNoteBtn, true, true, 0);

			listView = new Gtk.NodeView(noteStore);
			listView.AppendColumn("Title", new Gtk.CellRendererText(), "text", 0);
			listView.AppendColumn("Created", new Gtk.CellRendererText(), "text", 1);
			listView.HeadersVisible = true;
			listView.NodeSelection.Changed += OnListViewNodeSelectionChanged;

			var listViewScrollable = new Gtk.ScrolledWindow();
			listViewScrollable.Add(listView);
			box.PackStart(listViewScrollable, true, true, 2);

			var separator = new Gtk.HSeparator();
			box.PackStart(separator, false, false, 2);

			noteView = new Gtk.TextView();

			var noteViewScrollable = new Gtk.ScrolledWindow();
			noteViewScrollable.Add(noteView);
			box.PackStart(noteViewScrollable, true, true, 2);

			return box;
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monsoon.UnhandledExceptionDialog
     this.Name = "Monsoon.UnhandledExceptionDialog";
     this.Title = Mono.Unix.Catalog.GetString("Monsoon - Unhandled Exception");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child Monsoon.UnhandledExceptionDialog.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)(5));
     // 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.exceptionImage = new Gtk.Image();
     this.exceptionImage.Name = "exceptionImage";
     this.hbox1.Add(this.exceptionImage);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.exceptionImage]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.exceptionLabel = new Gtk.Label();
     this.exceptionLabel.Name = "exceptionLabel";
     this.exceptionLabel.Wrap = true;
     this.hbox1.Add(this.exceptionLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.exceptionLabel]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.expander1 = new Gtk.Expander(null);
     this.expander1.CanFocus = true;
     this.expander1.Name = "expander1";
     // Container child expander1.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
     this.exceptionTextView = new Gtk.TextView();
     this.exceptionTextView.CanFocus = true;
     this.exceptionTextView.Name = "exceptionTextView";
     this.scrolledwindow1.Add(this.exceptionTextView);
     this.expander1.Add(this.scrolledwindow1);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("Details");
     this.GtkLabel2.UseUnderline = true;
     this.expander1.LabelWidget = this.GtkLabel2;
     this.vbox2.Add(this.expander1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1]));
     w7.Position = 1;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w8.Position = 0;
     w8.Padding = ((uint)(5));
     // Internal child Monsoon.UnhandledExceptionDialog.ActionArea
     Gtk.HButtonBox w9 = this.ActionArea;
     w9.Name = "dialog1_ActionArea";
     w9.Spacing = 6;
     w9.BorderWidth = ((uint)(5));
     w9.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-quit";
     this.AddActionWidget(this.buttonOk, 0);
     Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk]));
     w10.Expand = false;
     w10.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 440;
     this.DefaultHeight = 172;
     this.Show();
 }
Beispiel #47
0
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.File, null);
     this.Exit = new Gtk.Action("Exit", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.Exit.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit, null);
     this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w2.Add(this.View, null);
     this.Quality = new Gtk.Action("Quality", Mono.Unix.Catalog.GetString("Quality"), null, null);
     this.Quality.ShortLabel = Mono.Unix.Catalog.GetString("Quality");
     w2.Add(this.Quality, null);
     this.Low = new Gtk.Action("Low", Mono.Unix.Catalog.GetString("Low"), null, null);
     this.Low.ShortLabel = Mono.Unix.Catalog.GetString("Low");
     w2.Add(this.Low, null);
     this.Medium = new Gtk.Action("Medium", Mono.Unix.Catalog.GetString("Medium"), null, null);
     this.Medium.ShortLabel = Mono.Unix.Catalog.GetString("Medium");
     w2.Add(this.Medium, null);
     this.High = new Gtk.Action("High", Mono.Unix.Catalog.GetString("High"), null, null);
     this.High.ShortLabel = Mono.Unix.Catalog.GetString("High");
     w2.Add(this.High, null);
     this.DepthMap = new Gtk.Action("DepthMap", Mono.Unix.Catalog.GetString("Depth Map"), null, null);
     this.DepthMap.ShortLabel = Mono.Unix.Catalog.GetString("Depth Map");
     w2.Add(this.DepthMap, null);
     this.SimpleStereo = new Gtk.Action("SimpleStereo", Mono.Unix.Catalog.GetString("Simple Stereo"), null, null);
     this.SimpleStereo.ShortLabel = Mono.Unix.Catalog.GetString("Simple Stereo");
     w2.Add(this.SimpleStereo, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Stereo Correspondence");
     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
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='View'><menuitem action='DepthMap'/><menuitem action='SimpleStereo'/></menu><menu action='Quality'><menuitem action='Low'/><menuitem action='Medium'/><menuitem action='High'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // 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.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Stereo Images Directory");
     this.hbox3.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.label1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.txtImagesDirectory = new Gtk.TextView();
     this.txtImagesDirectory.CanFocus = true;
     this.txtImagesDirectory.Name = "txtImagesDirectory";
     this.hbox3.Add(this.txtImagesDirectory);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox3[this.txtImagesDirectory]));
     w5.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.cmdImagesDirectory = new Gtk.Button();
     this.cmdImagesDirectory.CanFocus = true;
     this.cmdImagesDirectory.Name = "cmdImagesDirectory";
     this.cmdImagesDirectory.UseUnderline = true;
     this.cmdImagesDirectory.Label = Mono.Unix.Catalog.GetString("Browse");
     this.hbox3.Add(this.cmdImagesDirectory);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdImagesDirectory]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w7.Position = 0;
     w7.Expand = false;
     w7.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.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Calibration/Robot design file");
     this.hbox4.Add(this.label2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.label2]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.txtCalibrationFilename = new Gtk.TextView();
     this.txtCalibrationFilename.CanFocus = true;
     this.txtCalibrationFilename.Name = "txtCalibrationFilename";
     this.hbox4.Add(this.txtCalibrationFilename);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.txtCalibrationFilename]));
     w9.Position = 1;
     // Container child hbox4.Gtk.Box+BoxChild
     this.cmdCalibrationFilename = new Gtk.Button();
     this.cmdCalibrationFilename.CanFocus = true;
     this.cmdCalibrationFilename.Name = "cmdCalibrationFilename";
     this.cmdCalibrationFilename.UseUnderline = true;
     this.cmdCalibrationFilename.Label = Mono.Unix.Catalog.GetString("Browse");
     this.hbox4.Add(this.cmdCalibrationFilename);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdCalibrationFilename]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.vbox2.Add(this.hbox4);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
     w11.Position = 1;
     w11.Expand = false;
     w11.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.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Calculation Time (mS)");
     this.hbox5.Add(this.label3);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox5[this.label3]));
     w12.Position = 0;
     w12.Expand = false;
     w12.Fill = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.txtStereoCorrespondenceTime = new Gtk.TextView();
     this.txtStereoCorrespondenceTime.CanFocus = true;
     this.txtStereoCorrespondenceTime.Name = "txtStereoCorrespondenceTime";
     this.hbox5.Add(this.txtStereoCorrespondenceTime);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox5[this.txtStereoCorrespondenceTime]));
     w13.Position = 1;
     this.vbox2.Add(this.hbox5);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5]));
     w14.Position = 2;
     w14.Expand = false;
     w14.Fill = false;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w15.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdPrevious = new Gtk.Button();
     this.cmdPrevious.CanFocus = true;
     this.cmdPrevious.Name = "cmdPrevious";
     this.cmdPrevious.UseUnderline = true;
     this.cmdPrevious.Label = Mono.Unix.Catalog.GetString("Previous");
     this.vbox3.Add(this.cmdPrevious);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdPrevious]));
     w16.Position = 0;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdNext = new Gtk.Button();
     this.cmdNext.CanFocus = true;
     this.cmdNext.Name = "cmdNext";
     this.cmdNext.UseUnderline = true;
     this.cmdNext.Label = Mono.Unix.Catalog.GetString("Next");
     this.vbox3.Add(this.cmdNext);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdNext]));
     w17.Position = 1;
     w17.Expand = false;
     w17.Fill = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w18.Position = 2;
     w18.Expand = false;
     w18.Fill = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w19.Position = 1;
     w19.Expand = false;
     w19.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.picLeftImage = new Gtk.Image();
     this.picLeftImage.Name = "picLeftImage";
     this.hbox1.Add(this.picLeftImage);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.picLeftImage]));
     w20.Position = 0;
     w20.Expand = false;
     w20.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.picRightImage = new Gtk.Image();
     this.picRightImage.Name = "picRightImage";
     this.hbox1.Add(this.picRightImage);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.picRightImage]));
     w21.Position = 1;
     w21.Expand = false;
     w21.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w22.Position = 2;
     w22.Expand = false;
     w22.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.picDepthMap = new Gtk.Image();
     this.picDepthMap.Name = "picDepthMap";
     this.vbox1.Add(this.picDepthMap);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox1[this.picDepthMap]));
     w23.Position = 3;
     w23.Expand = false;
     w23.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 641;
     this.DefaultHeight = 451;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Exit.Activated += new System.EventHandler(this.OnExitActivated);
     this.Low.Activated += new System.EventHandler(this.OnLowActivated);
     this.Medium.Activated += new System.EventHandler(this.OnMediumActivated);
     this.High.Activated += new System.EventHandler(this.OnHighActivated);
     this.DepthMap.Activated += new System.EventHandler(this.OnDepthMapActivated);
     this.SimpleStereo.Activated += new System.EventHandler(this.OnSimpleStereoActivated);
     this.cmdImagesDirectory.Clicked += new System.EventHandler(this.OnCmdImagesDirectoryClicked);
     this.cmdCalibrationFilename.Clicked += new System.EventHandler(this.OnCmdCalibrationFilenameClicked);
     this.cmdPrevious.Clicked += new System.EventHandler(this.OnCmdPreviousClicked);
     this.cmdNext.Clicked += new System.EventHandler(this.OnCmdNextClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget DirectoryHistory.UI.HistoryEntry
     Stetic.BinContainer.Attach(this);
     this.Name = "DirectoryHistory.UI.HistoryEntry";
     // Container child DirectoryHistory.UI.HistoryEntry.Gtk.Container+ContainerChild
     this.table1 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment1.Name = "alignment1";
     // Container child alignment1.Gtk.Container+ContainerChild
     this.openButton = new Gtk.Button();
     this.openButton.CanFocus = true;
     this.openButton.Name = "openButton";
     this.openButton.UseUnderline = true;
     this.openButton.Label = Mono.Unix.Catalog.GetString("Open this version");
     this.alignment1.Add(this.openButton);
     this.table1.Add(this.alignment1);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.alignment1]));
     w2.TopAttach = ((uint)(3));
     w2.BottomAttach = ((uint)(4));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(0));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.dateLabel = new Gtk.Label();
     this.dateLabel.Name = "dateLabel";
     this.dateLabel.LabelProp = Mono.Unix.Catalog.GetString("label2");
     this.table1.Add(this.dateLabel);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.dateLabel]));
     w3.LeftAttach = ((uint)(1));
     w3.RightAttach = ((uint)(2));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.commentTextview = new Gtk.TextView();
     this.commentTextview.CanFocus = true;
     this.commentTextview.Name = "commentTextview";
     this.commentTextview.Editable = false;
     this.GtkScrolledWindow.Add(this.commentTextview);
     this.table1.Add(this.GtkScrolledWindow);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow]));
     w5.TopAttach = ((uint)(1));
     w5.BottomAttach = ((uint)(2));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.table1.Add(this.hseparator1);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.hseparator1]));
     w6.TopAttach = ((uint)(4));
     w6.BottomAttach = ((uint)(5));
     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.hseparator2 = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.table1.Add(this.hseparator2);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.hseparator2]));
     w7.TopAttach = ((uint)(4));
     w7.BottomAttach = ((uint)(5));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Date");
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Comment");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w9.TopAttach = ((uint)(1));
     w9.BottomAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Difference");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w10.TopAttach = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.scrolledDifference = new Gtk.ScrolledWindow();
     this.scrolledDifference.CanFocus = true;
     this.scrolledDifference.Name = "scrolledDifference";
     this.scrolledDifference.ShadowType = ((Gtk.ShadowType)(1));
     this.table1.Add(this.scrolledDifference);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.scrolledDifference]));
     w11.TopAttach = ((uint)(2));
     w11.BottomAttach = ((uint)(3));
     w11.LeftAttach = ((uint)(1));
     w11.RightAttach = ((uint)(2));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     this.Add(this.table1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "SharpTranslator.ReversibleCombos")) {
         Gtk.Bin cobj = ((Gtk.Bin)(obj));
         // Widget SharpTranslator.ReversibleCombos
         BinContainer.Attach(cobj);
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "SharpTranslator.ReversibleCombos";
         // Container child SharpTranslator.ReversibleCombos.Gtk.Container+ContainerChild
         Gtk.HBox w1 = new Gtk.HBox();
         w1.Spacing = 5;
         w1.BorderWidth = ((uint)(5));
         w1.Events = ((Gdk.EventMask)(0));
         w1.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w2 = new Gtk.Label();
         w2.LabelProp = "Source:";
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "labelSource";
         bindings["labelSource"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
         w3.Position = 0;
         w3.Expand = false;
         w3.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w4 = Gtk.ComboBox.NewText();
         w4.Events = ((Gdk.EventMask)(0));
         w4.Name = "comboSource";
         bindings["comboSource"] = w4;
         w1.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
         w5.Position = 1;
         w5.Expand = false;
         w5.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w6 = new Gtk.VSeparator();
         w6.Events = ((Gdk.EventMask)(0));
         w6.Name = "vseparator1";
         bindings["vseparator1"] = w6;
         w1.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w6]));
         w7.Position = 2;
         w7.Expand = false;
         w7.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.CheckButton w8 = new Gtk.CheckButton();
         w8.Label = "reverse";
         w8.DrawIndicator = true;
         w8.BorderWidth = ((uint)(5));
         w8.CanFocus = true;
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "checkbuttonReverse";
         bindings["checkbuttonReverse"] = w8;
         w1.Add(w8);
         Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w8]));
         w9.Position = 3;
         w9.Expand = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w10 = new Gtk.VSeparator();
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "vseparator2";
         bindings["vseparator2"] = w10;
         w1.Add(w10);
         Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w10]));
         w11.Position = 4;
         w11.Expand = false;
         w11.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w12 = new Gtk.Label();
         w12.LabelProp = "Target:";
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "labelTarget";
         bindings["labelTarget"] = w12;
         w1.Add(w12);
         Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
         w13.Position = 5;
         w13.Expand = false;
         w13.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w14 = Gtk.ComboBox.NewText();
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "comboTarget";
         bindings["comboTarget"] = w14;
         w1.Add(w14);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
         w15.Position = 6;
         w15.Expand = false;
         w15.Fill = false;
         bindings["hbox1"] = w1;
         cobj.Add(w1);
         bindings["SharpTranslator.ReversibleCombos"] = cobj;
         w2.Show();
         w4.Show();
         w6.Show();
         w8.Show();
         w10.Show();
         w12.Show();
         w14.Show();
         w1.Show();
         cobj.Show();
     }
     else {
         if ((id == "SharpTranslator.AboutDialog")) {
             Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
             // Widget SharpTranslator.AboutDialog
             cobj.Title = "AboutDialog";
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.HasSeparator = false;
             cobj.Events = ((Gdk.EventMask)(256));
             cobj.Name = "SharpTranslator.AboutDialog";
             // Internal child SharpTranslator.AboutDialog.VBox
             Gtk.VBox w1 = cobj.VBox;
             w1.BorderWidth = ((uint)(2));
             w1.Events = ((Gdk.EventMask)(256));
             w1.Name = "dialog_VBox";
             // Container child dialog_VBox.Gtk.Box+BoxChild
             Gtk.TextView w2 = new Gtk.TextView();
             w2.Buffer.Text = "\n         SharpTranslator\n\n    Version 0.1.3  (October 2006)\n\n    License: GPL\n\n    Author: Carlos Ble <http://www.shidix.com/carlosble>\n\n    English-Spanish dictionary was taken from i2e:\n          (Alfredo Casademunt, Jose Luis Triviño)\n\n";
             w2.CanFocus = true;
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "textview1";
             bindings["textview1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
             w3.Position = 0;
             // Container child dialog_VBox.Gtk.Box+BoxChild
             Gtk.HSeparator w4 = new Gtk.HSeparator();
             w4.Events = ((Gdk.EventMask)(0));
             w4.Name = "hseparator1";
             bindings["hseparator1"] = w4;
             w1.Add(w4);
             Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
             w5.Position = 1;
             w5.Expand = false;
             w5.Fill = false;
             bindings["dialog_VBox"] = w1;
             // Internal child SharpTranslator.AboutDialog.ActionArea
             Gtk.HButtonBox w6 = cobj.ActionArea;
             w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
             w6.Spacing = 10;
             w6.BorderWidth = ((uint)(5));
             w6.Events = ((Gdk.EventMask)(256));
             w6.Name = "SharpTranslator.AboutDialog_ActionArea";
             // Container child SharpTranslator.AboutDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
             Gtk.Button w7 = new Gtk.Button();
             w7.CanFocus = true;
             w7.Events = ((Gdk.EventMask)(0));
             w7.Name = "buttonClose";
             w7.CanDefault = true;
             // Container child buttonClose.Gtk.Container+ContainerChild
             Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w9 = new Gtk.HBox();
             w9.Spacing = 2;
             w9.Events = ((Gdk.EventMask)(0));
             w9.Name = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w10 = new Gtk.Image();
             w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-close", 16, 0);
             w10.Events = ((Gdk.EventMask)(0));
             w10.Name = "image1";
             bindings["image1"] = w10;
             w9.Add(w10);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w12 = new Gtk.Label();
             w12.LabelProp = "Close";
             w12.Events = ((Gdk.EventMask)(0));
             w12.Name = "GtkLabel";
             bindings["GtkLabel"] = w12;
             w9.Add(w12);
             bindings["GtkHBox"] = w9;
             w8.Add(w9);
             bindings["GtkAlignment"] = w8;
             w7.Add(w8);
             bindings["buttonClose"] = w7;
             cobj.AddActionWidget(w7, 0);
             Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
             w16.Expand = false;
             w16.Fill = false;
             bindings["SharpTranslator.AboutDialog_ActionArea"] = w6;
             cobj.DefaultWidth = 487;
             cobj.DefaultHeight = 303;
             bindings["SharpTranslator.AboutDialog"] = cobj;
             w2.Show();
             w4.Show();
             w1.Show();
             w10.Show();
             w12.Show();
             w9.Show();
             w8.Show();
             w7.Show();
             w6.Show();
             cobj.Show();
             w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
         }
         else {
             if ((id == "SharpTranslator.LearnWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget SharpTranslator.LearnWindow
                 cobj.Title = "LearnWindow";
                 cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                 cobj.Resizable = false;
                 cobj.AllowGrow = false;
                 cobj.Events = ((Gdk.EventMask)(0));
                 cobj.Name = "SharpTranslator.LearnWindow";
                 // Container child SharpTranslator.LearnWindow.Gtk.Container+ContainerChild
                 Gtk.VBox w1 = new Gtk.VBox();
                 w1.Spacing = 5;
                 w1.BorderWidth = ((uint)(3));
                 w1.Events = ((Gdk.EventMask)(0));
                 w1.Name = "vbox1";
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w2 = new Gtk.HBox();
                 w2.BorderWidth = ((uint)(3));
                 w2.Events = ((Gdk.EventMask)(0));
                 w2.Name = "hbox5";
                 // Container child hbox5.Gtk.Box+BoxChild
                 Gtk.Label w3 = new Gtk.Label();
                 w3.LabelProp = "Type of item:";
                 w3.Events = ((Gdk.EventMask)(0));
                 w3.Name = "label1";
                 bindings["label1"] = w3;
                 w2.Add(w3);
                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                 w4.Position = 0;
                 w4.Expand = false;
                 w4.Fill = false;
                 // Container child hbox5.Gtk.Box+BoxChild
                 Gtk.HBox w5 = new Gtk.HBox();
                 w5.Events = ((Gdk.EventMask)(0));
                 w5.Name = "hbox4";
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.CheckButton w6 = new Gtk.CheckButton();
                 w6.Label = "Word";
                 w6.Active = true;
                 w6.DrawIndicator = true;
                 w6.CanFocus = true;
                 w6.Events = ((Gdk.EventMask)(0));
                 w6.Name = "checkbWord";
                 bindings["checkbWord"] = w6;
                 w5.Add(w6);
                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w5[w6]));
                 w7.Position = 0;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.CheckButton w8 = new Gtk.CheckButton();
                 w8.Label = "Expression";
                 w8.DrawIndicator = true;
                 w8.CanFocus = true;
                 w8.Events = ((Gdk.EventMask)(0));
                 w8.Name = "checkbExpression";
                 bindings["checkbExpression"] = w8;
                 w5.Add(w8);
                 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w5[w8]));
                 w9.Position = 1;
                 bindings["hbox4"] = w5;
                 w2.Add(w5);
                 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w2[w5]));
                 w10.Position = 1;
                 w10.Expand = false;
                 bindings["hbox5"] = w2;
                 w1.Add(w2);
                 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w2]));
                 w11.Position = 0;
                 w11.Expand = false;
                 w11.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 SharpTranslator.ReversibleCombos w12 = new SharpTranslator.ReversibleCombos();
                 w12.Events = ((Gdk.EventMask)(256));
                 w12.Name = "rCombos";
                 bindings["rCombos"] = w12;
                 w1.Add(w12);
                 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
                 w13.Position = 1;
                 w13.Expand = false;
                 w13.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w14 = new Gtk.HBox();
                 w14.Spacing = 5;
                 w14.BorderWidth = ((uint)(3));
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "hbox3";
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w15 = new Gtk.Label();
                 w15.LabelProp = "Text:";
                 w15.Events = ((Gdk.EventMask)(0));
                 w15.Name = "labelText";
                 bindings["labelText"] = w15;
                 w14.Add(w15);
                 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w14[w15]));
                 w16.Position = 0;
                 w16.Expand = false;
                 w16.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w17 = new Gtk.Entry();
                 w17.IsEditable = true;
                 w17.InvisibleChar = '●';
                 w17.CanFocus = true;
                 w17.Events = ((Gdk.EventMask)(0));
                 w17.Name = "entryText";
                 bindings["entryText"] = w17;
                 w14.Add(w17);
                 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w14[w17]));
                 w18.Position = 1;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w19 = new Gtk.Label();
                 w19.LabelProp = "Translation:";
                 w19.Events = ((Gdk.EventMask)(0));
                 w19.Name = "label3";
                 bindings["label3"] = w19;
                 w14.Add(w19);
                 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(w14[w19]));
                 w20.Position = 2;
                 w20.Expand = false;
                 w20.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w21 = new Gtk.Entry();
                 w21.IsEditable = true;
                 w21.InvisibleChar = '●';
                 w21.CanFocus = true;
                 w21.Events = ((Gdk.EventMask)(0));
                 w21.Name = "entryTranslation";
                 bindings["entryTranslation"] = w21;
                 w14.Add(w21);
                 Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(w14[w21]));
                 w22.Position = 3;
                 bindings["hbox3"] = w14;
                 w1.Add(w14);
                 Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(w1[w14]));
                 w23.Position = 2;
                 w23.Expand = false;
                 w23.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w24 = new Gtk.HSeparator();
                 w24.Events = ((Gdk.EventMask)(0));
                 w24.Name = "hseparator1";
                 bindings["hseparator1"] = w24;
                 w1.Add(w24);
                 Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w1[w24]));
                 w25.Position = 3;
                 w25.Expand = false;
                 w25.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HButtonBox w26 = new Gtk.HButtonBox();
                 w26.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                 w26.Spacing = 3;
                 w26.BorderWidth = ((uint)(3));
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "hbuttonbox1";
                 // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w27 = new Gtk.Button();
                 w27.CanFocus = true;
                 w27.Events = ((Gdk.EventMask)(0));
                 w27.Name = "buttonCancel";
                 // Container child buttonCancel.Gtk.Container+ContainerChild
                 Gtk.Alignment w28 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w29 = new Gtk.HBox();
                 w29.Spacing = 2;
                 w29.Events = ((Gdk.EventMask)(0));
                 w29.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w30 = new Gtk.Image();
                 w30.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                 w30.Events = ((Gdk.EventMask)(0));
                 w30.Name = "image2";
                 bindings["image2"] = w30;
                 w29.Add(w30);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w32 = new Gtk.Label();
                 w32.LabelProp = "Cancel";
                 w32.Events = ((Gdk.EventMask)(0));
                 w32.Name = "GtkLabel";
                 bindings["GtkLabel"] = w32;
                 w29.Add(w32);
                 bindings["GtkHBox"] = w29;
                 w28.Add(w29);
                 bindings["GtkAlignment"] = w28;
                 w27.Add(w28);
                 bindings["buttonCancel"] = w27;
                 w26.Add(w27);
                 Gtk.ButtonBox.ButtonBoxChild w36 = ((Gtk.ButtonBox.ButtonBoxChild)(w26[w27]));
                 w36.Expand = false;
                 w36.Fill = false;
                 // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w37 = new Gtk.Button();
                 w37.CanFocus = true;
                 w37.Events = ((Gdk.EventMask)(0));
                 w37.Name = "buttonAccept";
                 // Container child buttonAccept.Gtk.Container+ContainerChild
                 Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w38.Events = ((Gdk.EventMask)(0));
                 w38.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w39 = new Gtk.HBox();
                 w39.Spacing = 2;
                 w39.Events = ((Gdk.EventMask)(0));
                 w39.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w40 = new Gtk.Image();
                 w40.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "image3";
                 bindings["image3"] = w40;
                 w39.Add(w40);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w42 = new Gtk.Label();
                 w42.LabelProp = "Accept";
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "GtkLabel";
                 bindings["GtkLabel"] = w42;
                 w39.Add(w42);
                 bindings["GtkHBox"] = w39;
                 w38.Add(w39);
                 bindings["GtkAlignment"] = w38;
                 w37.Add(w38);
                 bindings["buttonAccept"] = w37;
                 w26.Add(w37);
                 Gtk.ButtonBox.ButtonBoxChild w46 = ((Gtk.ButtonBox.ButtonBoxChild)(w26[w37]));
                 w46.Position = 1;
                 w46.Expand = false;
                 w46.Fill = false;
                 bindings["hbuttonbox1"] = w26;
                 w1.Add(w26);
                 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(w1[w26]));
                 w47.Position = 4;
                 w47.Expand = false;
                 w47.Fill = false;
                 bindings["vbox1"] = w1;
                 cobj.Add(w1);
                 cobj.DefaultWidth = 586;
                 cobj.DefaultHeight = 194;
                 bindings["SharpTranslator.LearnWindow"] = cobj;
                 w3.Show();
                 w6.Show();
                 w8.Show();
                 w5.Show();
                 w2.Show();
                 w12.Show();
                 w15.Show();
                 w17.Show();
                 w19.Show();
                 w21.Show();
                 w14.Show();
                 w24.Show();
                 w30.Show();
                 w32.Show();
                 w29.Show();
                 w28.Show();
                 w27.Show();
                 w40.Show();
                 w42.Show();
                 w39.Show();
                 w38.Show();
                 w37.Show();
                 w26.Show();
                 w1.Show();
                 cobj.Show();
                 cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose")));
                 w37.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAccept")));
             }
             else {
                 if ((id == "SharpTranslator.MainWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget SharpTranslator.MainWindow
                     cobj.Title = "SharpTranslator";
                     Gtk.UIManager w1 = new Gtk.UIManager();
                     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
                     Gtk.Action w3 = new Gtk.Action("File", "File", null, null);
                     w3.ShortLabel = "Archivo";
                     bindings["File"] = w3;
                     w2.Add(w3, null);
                     Gtk.Action w4 = new Gtk.Action("Edit", "Edit", null, null);
                     w4.ShortLabel = "Editar";
                     bindings["Edit"] = w4;
                     w2.Add(w4, null);
                     Gtk.Action w5 = new Gtk.Action("Learn", "Learn", null, "gtk-new");
                     w5.ShortLabel = "Learn";
                     bindings["Learn"] = w5;
                     w2.Add(w5, null);
                     Gtk.Action w6 = new Gtk.Action("floppy", null, null, "gtk-floppy");
                     bindings["floppy"] = w6;
                     w2.Add(w6, null);
                     Gtk.Action w7 = new Gtk.Action("LearnWords", "Learn words", null, "gtk-new");
                     w7.ShortLabel = "Learn ";
                     bindings["LearnWords"] = w7;
                     w2.Add(w7, null);
                     Gtk.Action w8 = new Gtk.Action("AddLanguage", "Add Language", null, "gtk-add");
                     w8.ShortLabel = "Exit";
                     bindings["AddLanguage"] = w8;
                     w2.Add(w8, null);
                     Gtk.Action w9 = new Gtk.Action("Cut", "Cut", null, "gtk-cut");
                     w9.ShortLabel = "Cut";
                     bindings["Cut"] = w9;
                     w2.Add(w9, null);
                     Gtk.Action w10 = new Gtk.Action("Copy", "Copy", null, "gtk-copy");
                     w10.ShortLabel = "Copy";
                     bindings["Copy"] = w10;
                     w2.Add(w10, null);
                     Gtk.Action w11 = new Gtk.Action("Paste", "Paste", null, "gtk-paste");
                     w11.ShortLabel = "Paste";
                     bindings["Paste"] = w11;
                     w2.Add(w11, null);
                     Gtk.Action w12 = new Gtk.Action("Help", "Help", null, null);
                     w12.ShortLabel = "Help";
                     bindings["Help"] = w12;
                     w2.Add(w12, null);
                     Gtk.Action w13 = new Gtk.Action("About", "About", null, "gnome-stock-about");
                     w13.ShortLabel = "About";
                     bindings["About"] = w13;
                     w2.Add(w13, null);
                     Gtk.Action w14 = new Gtk.Action("ImportDictionary", "Import Dictionary", null, "gnome-stock-book-blue");
                     w14.ShortLabel = "Import Dictionary";
                     bindings["ImportDictionary"] = w14;
                     w2.Add(w14, null);
                     Gtk.Action w15 = new Gtk.Action("Preferences", "Preferences", null, "gtk-preferences");
                     w15.ShortLabel = "Preferences";
                     bindings["Preferences"] = w15;
                     w2.Add(w15, null);
                     Gtk.Action w16 = new Gtk.Action("Close", "Close", null, "gtk-close");
                     w16.ShortLabel = "Close";
                     bindings["Close"] = w16;
                     w2.Add(w16, null);
                     w1.InsertActionGroup(w2, 0);
                     cobj.AddAccelGroup(w1.AccelGroup);
                     cobj.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-properties", 16, 0);
                     cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                     cobj.DefaultWidth = 60;
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "SharpTranslator.MainWindow";
                     // Container child SharpTranslator.MainWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w17 = new Gtk.VBox();
                     w17.Events = ((Gdk.EventMask)(0));
                     w17.Name = "vbox1";
                     // Container child vbox1.Gtk.Box+BoxChild
                     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='LearnWords'/><menuitem action='AddLanguage'/><menuitem action='ImportDictionary'/><menuitem action='Close'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/><menuitem action='Preferences'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
                     Gtk.MenuBar w18 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
                     w18.Events = ((Gdk.EventMask)(0));
                     w18.Name = "menubar1";
                     bindings["menubar1"] = w18;
                     w17.Add(w18);
                     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18]));
                     w19.Position = 0;
                     w19.Expand = false;
                     w19.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='Learn'/></toolbar></ui>");
                     Gtk.Toolbar w20 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
                     w20.ShowArrow = false;
                     w20.Tooltips = false;
                     w20.ToolbarStyle = ((Gtk.ToolbarStyle)(2));
                     w20.IconSize = ((Gtk.IconSize)(2));
                     w20.Events = ((Gdk.EventMask)(0));
                     w20.Name = "toolbar1";
                     bindings["toolbar1"] = w20;
                     w17.Add(w20);
                     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20]));
                     w21.Position = 1;
                     w21.Expand = false;
                     w21.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     SharpTranslator.ReversibleCombos w22 = new SharpTranslator.ReversibleCombos();
                     w22.Events = ((Gdk.EventMask)(256));
                     w22.Name = "rCombos";
                     bindings["rCombos"] = w22;
                     w17.Add(w22);
                     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(w17[w22]));
                     w23.Position = 2;
                     w23.Expand = false;
                     w23.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.ScrolledWindow w24 = new Gtk.ScrolledWindow();
                     w24.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                     w24.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                     w24.CanFocus = true;
                     w24.Events = ((Gdk.EventMask)(0));
                     w24.Name = "scrolledwindow1";
                     // Container child scrolledwindow1.Gtk.Container+ContainerChild
                     Gtk.TreeView w25 = new Gtk.TreeView();
                     w25.CanFocus = true;
                     w25.Events = ((Gdk.EventMask)(0));
                     w25.Name = "treeviewResults";
                     bindings["treeviewResults"] = w25;
                     w24.Add(w25);
                     bindings["scrolledwindow1"] = w24;
                     w17.Add(w24);
                     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w17[w24]));
                     w27.Position = 3;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HBox w28 = new Gtk.HBox();
                     w28.Spacing = 5;
                     w28.BorderWidth = ((uint)(3));
                     w28.Events = ((Gdk.EventMask)(0));
                     w28.Name = "hbox3";
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Label w29 = new Gtk.Label();
                     w29.LabelProp = "Word:";
                     w29.Events = ((Gdk.EventMask)(0));
                     w29.Name = "labelWord";
                     bindings["labelWord"] = w29;
                     w28.Add(w29);
                     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w28[w29]));
                     w30.Position = 0;
                     w30.Expand = false;
                     w30.Fill = false;
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Entry w31 = new Gtk.Entry();
                     w31.IsEditable = true;
                     w31.InvisibleChar = '●';
                     w31.CanFocus = true;
                     w31.Events = ((Gdk.EventMask)(0));
                     w31.Name = "entryKeyword";
                     w31.CanDefault = true;
                     bindings["entryKeyword"] = w31;
                     w28.Add(w31);
                     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w28[w31]));
                     w32.Position = 1;
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Button w33 = new Gtk.Button();
                     Gtk.Tooltips w34 = new Gtk.Tooltips();
                     w34.SetTip(w33, "Search keyword", "Search keyword");
                     w33.CanFocus = true;
                     w33.Events = ((Gdk.EventMask)(0));
                     w33.Name = "buttonSearch";
                     // Container child buttonSearch.Gtk.Container+ContainerChild
                     Gtk.Alignment w35 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w35.Events = ((Gdk.EventMask)(0));
                     w35.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w36 = new Gtk.HBox();
                     w36.Spacing = 2;
                     w36.Events = ((Gdk.EventMask)(0));
                     w36.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w37 = new Gtk.Image();
                     w37.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                     w37.Events = ((Gdk.EventMask)(0));
                     w37.Name = "image4";
                     bindings["image4"] = w37;
                     w36.Add(w37);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w39 = new Gtk.Label();
                     w39.LabelProp = "Search";
                     w39.Events = ((Gdk.EventMask)(0));
                     w39.Name = "GtkLabel";
                     bindings["GtkLabel"] = w39;
                     w36.Add(w39);
                     bindings["GtkHBox"] = w36;
                     w35.Add(w36);
                     bindings["GtkAlignment"] = w35;
                     w33.Add(w35);
                     bindings["buttonSearch"] = w33;
                     w28.Add(w33);
                     Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(w28[w33]));
                     w43.Position = 2;
                     w43.Expand = false;
                     w43.Fill = false;
                     bindings["hbox3"] = w28;
                     w17.Add(w28);
                     Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w17[w28]));
                     w44.Position = 4;
                     w44.Expand = false;
                     w44.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HBox w45 = new Gtk.HBox();
                     w45.Spacing = 5;
                     w45.BorderWidth = ((uint)(3));
                     w45.Events = ((Gdk.EventMask)(0));
                     w45.Name = "hbox4";
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Label w46 = new Gtk.Label();
                     w46.LabelProp = "Expression:";
                     w46.Events = ((Gdk.EventMask)(0));
                     w46.Name = "labelExpression";
                     bindings["labelExpression"] = w46;
                     w45.Add(w46);
                     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(w45[w46]));
                     w47.Position = 0;
                     w47.Expand = false;
                     w47.Fill = false;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Entry w48 = new Gtk.Entry();
                     w48.IsEditable = true;
                     w48.InvisibleChar = '●';
                     w48.CanFocus = true;
                     w48.Events = ((Gdk.EventMask)(0));
                     w48.Name = "entryExpression";
                     bindings["entryExpression"] = w48;
                     w45.Add(w48);
                     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(w45[w48]));
                     w49.Position = 1;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Button w50 = new Gtk.Button();
                     w34.SetTip(w50, "Search keyword", "Search keyword");
                     w50.CanFocus = true;
                     w50.Events = ((Gdk.EventMask)(0));
                     w50.Name = "buttonSearchExpression";
                     // Container child buttonSearchExpression.Gtk.Container+ContainerChild
                     Gtk.Alignment w51 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w51.Events = ((Gdk.EventMask)(0));
                     w51.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w52 = new Gtk.HBox();
                     w52.Spacing = 2;
                     w52.Events = ((Gdk.EventMask)(0));
                     w52.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w53 = new Gtk.Image();
                     w53.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                     w53.Events = ((Gdk.EventMask)(0));
                     w53.Name = "image5";
                     bindings["image5"] = w53;
                     w52.Add(w53);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w55 = new Gtk.Label();
                     w55.LabelProp = "Search";
                     w55.Events = ((Gdk.EventMask)(0));
                     w55.Name = "GtkLabel";
                     bindings["GtkLabel"] = w55;
                     w52.Add(w55);
                     bindings["GtkHBox"] = w52;
                     w51.Add(w52);
                     bindings["GtkAlignment"] = w51;
                     w50.Add(w51);
                     bindings["buttonSearchExpression"] = w50;
                     w45.Add(w50);
                     Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w45[w50]));
                     w59.Position = 2;
                     w59.Expand = false;
                     w59.Fill = false;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Button w60 = new Gtk.Button();
                     w34.SetTip(w60, "Search keyword", "Search keyword");
                     w60.CanFocus = true;
                     w60.Events = ((Gdk.EventMask)(0));
                     w60.Name = "buttonShowAll";
                     w60.Label = "Show All";
                     bindings["buttonShowAll"] = w60;
                     w45.Add(w60);
                     Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(w45[w60]));
                     w61.Position = 3;
                     w61.Expand = false;
                     w61.Fill = false;
                     bindings["hbox4"] = w45;
                     w17.Add(w45);
                     Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(w17[w45]));
                     w62.Position = 5;
                     w62.Expand = false;
                     w62.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HSeparator w63 = new Gtk.HSeparator();
                     w63.Events = ((Gdk.EventMask)(0));
                     w63.Name = "hseparator1";
                     bindings["hseparator1"] = w63;
                     w17.Add(w63);
                     Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(w17[w63]));
                     w64.Position = 6;
                     w64.Expand = false;
                     w64.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HButtonBox w65 = new Gtk.HButtonBox();
                     w65.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                     w65.BorderWidth = ((uint)(3));
                     w65.Events = ((Gdk.EventMask)(0));
                     w65.Name = "hbuttonbox1";
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w66 = new Gtk.Button();
                     w66.CanFocus = true;
                     w66.Events = ((Gdk.EventMask)(0));
                     w66.Name = "buttonClose";
                     // Container child buttonClose.Gtk.Container+ContainerChild
                     Gtk.Alignment w67 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w67.Events = ((Gdk.EventMask)(0));
                     w67.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w68 = new Gtk.HBox();
                     w68.Spacing = 2;
                     w68.Events = ((Gdk.EventMask)(0));
                     w68.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w69 = new Gtk.Image();
                     w69.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-close", 16, 0);
                     w69.Events = ((Gdk.EventMask)(0));
                     w69.Name = "image6";
                     bindings["image6"] = w69;
                     w68.Add(w69);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w71 = new Gtk.Label();
                     w71.LabelProp = "Close";
                     w71.Events = ((Gdk.EventMask)(0));
                     w71.Name = "GtkLabel";
                     bindings["GtkLabel"] = w71;
                     w68.Add(w71);
                     bindings["GtkHBox"] = w68;
                     w67.Add(w68);
                     bindings["GtkAlignment"] = w67;
                     w66.Add(w67);
                     bindings["buttonClose"] = w66;
                     w65.Add(w66);
                     Gtk.ButtonBox.ButtonBoxChild w75 = ((Gtk.ButtonBox.ButtonBoxChild)(w65[w66]));
                     w75.Expand = false;
                     w75.Fill = false;
                     bindings["hbuttonbox1"] = w65;
                     w17.Add(w65);
                     Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(w17[w65]));
                     w76.Position = 7;
                     w76.Expand = false;
                     w76.Fill = false;
                     bindings["vbox1"] = w17;
                     cobj.Add(w17);
                     cobj.DefaultHeight = 480;
                     bindings["SharpTranslator.MainWindow"] = cobj;
                     w18.Show();
                     w20.Show();
                     w22.Show();
                     w25.Show();
                     w24.Show();
                     w29.Show();
                     w31.Show();
                     w37.Show();
                     w39.Show();
                     w36.Show();
                     w35.Show();
                     w33.Show();
                     w28.Show();
                     w46.Show();
                     w48.Show();
                     w53.Show();
                     w55.Show();
                     w52.Show();
                     w51.Show();
                     w50.Show();
                     w60.Show();
                     w45.Show();
                     w63.Show();
                     w69.Show();
                     w71.Show();
                     w68.Show();
                     w67.Show();
                     w66.Show();
                     w65.Show();
                     w17.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                     w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLearn")));
                     w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLearn")));
                     w13.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAbout")));
                     w16.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                     w31.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearch")));
                     w33.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearch")));
                     w48.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearchExpression")));
                     w50.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearchExpression")));
                     w60.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnShowAll")));
                     w66.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                 }
             }
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1)) {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) {
             field.SetValue(obj, widget);
         }
     }
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Gedcom.UI.GTK.Widgets.IndividualView
     Stetic.BinContainer.Attach(this);
     this.Events = ((Gdk.EventMask)(256));
     this.Name = "Gedcom.UI.GTK.Widgets.IndividualView";
     // Container child Gedcom.UI.GTK.Widgets.IndividualView.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     this.vbox1.BorderWidth = ((uint)(6));
     // Container child vbox1.Gtk.Box+BoxChild
     this.Notebook = new Gtk.Notebook();
     this.Notebook.CanFocus = true;
     this.Notebook.Name = "Notebook";
     this.Notebook.CurrentPage = 3;
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table1 = new Gtk.Table(((uint)(5)), ((uint)(7)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(12));
     this.table1.BorderWidth = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.BornInEntry = new Gtk.Entry();
     this.BornInEntry.CanFocus = true;
     this.BornInEntry.Name = "BornInEntry";
     this.BornInEntry.IsEditable = true;
     this.BornInEntry.InvisibleChar = '●';
     this.table1.Add(this.BornInEntry);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.BornInEntry]));
     w1.TopAttach = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.LeftAttach = ((uint)(4));
     w1.RightAttach = ((uint)(7));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.DateBornEntry = new Gtk.Entry();
     this.DateBornEntry.CanFocus = true;
     this.DateBornEntry.Name = "DateBornEntry";
     this.DateBornEntry.IsEditable = true;
     this.DateBornEntry.InvisibleChar = '●';
     this.table1.Add(this.DateBornEntry);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.DateBornEntry]));
     w2.TopAttach = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.DateBornSourceButton = new Gtk.Button();
     this.DateBornSourceButton.CanFocus = true;
     this.DateBornSourceButton.Name = "DateBornSourceButton";
     // Container child DateBornSourceButton.Gtk.Container+ContainerChild
     this.image440 = new Gtk.Image();
     this.image440.Name = "image440";
     this.image440.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20);
     this.DateBornSourceButton.Add(this.image440);
     this.DateBornSourceButton.Label = null;
     this.table1.Add(this.DateBornSourceButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.DateBornSourceButton]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.LeftAttach = ((uint)(2));
     w4.RightAttach = ((uint)(3));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.DateDiedEntry = new Gtk.Entry();
     this.DateDiedEntry.CanFocus = true;
     this.DateDiedEntry.Name = "DateDiedEntry";
     this.DateDiedEntry.IsEditable = true;
     this.DateDiedEntry.InvisibleChar = '●';
     this.table1.Add(this.DateDiedEntry);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.DateDiedEntry]));
     w5.TopAttach = ((uint)(2));
     w5.BottomAttach = ((uint)(3));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.DateDiedSourceButton = new Gtk.Button();
     this.DateDiedSourceButton.CanFocus = true;
     this.DateDiedSourceButton.Name = "DateDiedSourceButton";
     // Container child DateDiedSourceButton.Gtk.Container+ContainerChild
     this.image438 = new Gtk.Image();
     this.image438.Name = "image438";
     this.image438.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20);
     this.DateDiedSourceButton.Add(this.image438);
     this.DateDiedSourceButton.Label = null;
     this.table1.Add(this.DateDiedSourceButton);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.DateDiedSourceButton]));
     w7.TopAttach = ((uint)(2));
     w7.BottomAttach = ((uint)(3));
     w7.LeftAttach = ((uint)(2));
     w7.RightAttach = ((uint)(3));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.DeleteButton = new Gtk.Button();
     this.DeleteButton.CanFocus = true;
     this.DeleteButton.Name = "DeleteButton";
     // Container child DeleteButton.Gtk.Container+ContainerChild
     this.image415 = new Gtk.Image();
     this.image415.Name = "image415";
     this.image415.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
     this.DeleteButton.Add(this.image415);
     this.DeleteButton.Label = null;
     this.table1.Add(this.DeleteButton);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.DeleteButton]));
     w9.LeftAttach = ((uint)(6));
     w9.RightAttach = ((uint)(7));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.DiedInEntry = new Gtk.Entry();
     this.DiedInEntry.CanFocus = true;
     this.DiedInEntry.Name = "DiedInEntry";
     this.DiedInEntry.IsEditable = true;
     this.DiedInEntry.InvisibleChar = '●';
     this.table1.Add(this.DiedInEntry);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.DiedInEntry]));
     w10.TopAttach = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.LeftAttach = ((uint)(4));
     w10.RightAttach = ((uint)(7));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.FactView = new Gedcom.UI.GTK.Widgets.FactView();
     this.FactView.Events = ((Gdk.EventMask)(256));
     this.FactView.Name = "FactView";
     this.table1.Add(this.FactView);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.FactView]));
     w11.TopAttach = ((uint)(4));
     w11.BottomAttach = ((uint)(5));
     w11.RightAttach = ((uint)(7));
     w11.YOptions = ((Gtk.AttachOptions)(7));
     // Container child table1.Gtk.Table+TableChild
     this.hseparator3 = new Gtk.HSeparator();
     this.hseparator3.Name = "hseparator3";
     this.table1.Add(this.hseparator3);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.hseparator3]));
     w12.TopAttach = ((uint)(3));
     w12.BottomAttach = ((uint)(4));
     w12.RightAttach = ((uint)(7));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.IndiScrapbookButton = new Gtk.Button();
     this.IndiScrapbookButton.CanFocus = true;
     this.IndiScrapbookButton.Name = "IndiScrapbookButton";
     // Container child IndiScrapbookButton.Gtk.Container+ContainerChild
     Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w14 = new Gtk.HBox();
     w14.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w15 = new Gtk.Image();
     w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-paste", Gtk.IconSize.Button, 20);
     w14.Add(w15);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w17 = new Gtk.Label();
     w17.LabelProp = "Scrapbook";
     w14.Add(w17);
     w13.Add(w14);
     this.IndiScrapbookButton.Add(w13);
     this.table1.Add(this.IndiScrapbookButton);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.IndiScrapbookButton]));
     w21.LeftAttach = ((uint)(5));
     w21.RightAttach = ((uint)(6));
     w21.XOptions = ((Gtk.AttachOptions)(4));
     w21.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label10 = new Gtk.Label();
     this.label10.Name = "label10";
     this.label10.LabelProp = "in:";
     this.table1.Add(this.label10);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.label10]));
     w22.TopAttach = ((uint)(1));
     w22.BottomAttach = ((uint)(2));
     w22.LeftAttach = ((uint)(3));
     w22.RightAttach = ((uint)(4));
     w22.XOptions = ((Gtk.AttachOptions)(4));
     w22.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label11 = new Gtk.Label();
     this.label11.Name = "label11";
     this.label11.LabelProp = "in:";
     this.table1.Add(this.label11);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.label11]));
     w23.TopAttach = ((uint)(2));
     w23.BottomAttach = ((uint)(3));
     w23.LeftAttach = ((uint)(3));
     w23.RightAttach = ((uint)(4));
     w23.XOptions = ((Gtk.AttachOptions)(4));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label18 = new Gtk.Label();
     this.label18.Name = "label18";
     this.label18.Xalign = 0F;
     this.label18.LabelProp = "Date Born:";
     this.table1.Add(this.label18);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label18]));
     w24.TopAttach = ((uint)(1));
     w24.BottomAttach = ((uint)(2));
     w24.XOptions = ((Gtk.AttachOptions)(4));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label19 = new Gtk.Label();
     this.label19.Name = "label19";
     this.label19.Xalign = 0F;
     this.label19.LabelProp = "Date Died:";
     this.table1.Add(this.label19);
     Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.label19]));
     w25.TopAttach = ((uint)(2));
     w25.BottomAttach = ((uint)(3));
     w25.XOptions = ((Gtk.AttachOptions)(4));
     w25.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.LabelProp = "Sex:";
     this.table1.Add(this.label9);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.label9]));
     w26.LeftAttach = ((uint)(3));
     w26.RightAttach = ((uint)(4));
     w26.XOptions = ((Gtk.AttachOptions)(4));
     w26.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.NameButton = new Gtk.Button();
     this.NameButton.CanFocus = true;
     this.NameButton.Name = "NameButton";
     // Container child NameButton.Gtk.Container+ContainerChild
     this.SpouseNameLabel = new Gtk.Label();
     this.SpouseNameLabel.Name = "SpouseNameLabel";
     this.SpouseNameLabel.Xalign = 1F;
     this.SpouseNameLabel.LabelProp = "Name:";
     this.NameButton.Add(this.SpouseNameLabel);
     this.NameButton.Label = null;
     this.table1.Add(this.NameButton);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.NameButton]));
     w28.XOptions = ((Gtk.AttachOptions)(4));
     w28.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.NameEntry = new Gtk.Entry();
     this.NameEntry.CanFocus = true;
     this.NameEntry.Name = "NameEntry";
     this.NameEntry.IsEditable = true;
     this.NameEntry.InvisibleChar = '●';
     this.table1.Add(this.NameEntry);
     Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table1[this.NameEntry]));
     w29.LeftAttach = ((uint)(1));
     w29.RightAttach = ((uint)(2));
     w29.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.NameSourceButton = new Gtk.Button();
     this.NameSourceButton.CanFocus = true;
     this.NameSourceButton.Name = "NameSourceButton";
     // Container child NameSourceButton.Gtk.Container+ContainerChild
     this.image439 = new Gtk.Image();
     this.image439.Name = "image439";
     this.image439.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20);
     this.NameSourceButton.Add(this.image439);
     this.NameSourceButton.Label = null;
     this.table1.Add(this.NameSourceButton);
     Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table1[this.NameSourceButton]));
     w31.LeftAttach = ((uint)(2));
     w31.RightAttach = ((uint)(3));
     w31.XOptions = ((Gtk.AttachOptions)(4));
     w31.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.SexComboBox = Gtk.ComboBox.NewText();
     this.SexComboBox.AppendText("Undetermined");
     this.SexComboBox.AppendText("Male");
     this.SexComboBox.AppendText("Female");
     this.SexComboBox.AppendText("Both");
     this.SexComboBox.AppendText("Neuter");
     this.SexComboBox.Name = "SexComboBox";
     this.SexComboBox.Active = 0;
     this.table1.Add(this.SexComboBox);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table1[this.SexComboBox]));
     w32.LeftAttach = ((uint)(4));
     w32.RightAttach = ((uint)(5));
     w32.XOptions = ((Gtk.AttachOptions)(4));
     w32.YOptions = ((Gtk.AttachOptions)(4));
     this.Notebook.Add(this.table1);
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = "Facts";
     this.Notebook.SetTabLabel(this.table1, this.label2);
     this.label2.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table3 = new Gtk.Table(((uint)(3)), ((uint)(5)), false);
     this.table3.Name = "table3";
     this.table3.RowSpacing = ((uint)(6));
     this.table3.ColumnSpacing = ((uint)(12));
     this.table3.BorderWidth = ((uint)(6));
     // Container child table3.Gtk.Table+TableChild
     this.hseparator4 = new Gtk.HSeparator();
     this.hseparator4.Name = "hseparator4";
     this.table3.Add(this.hseparator4);
     Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table3[this.hseparator4]));
     w34.TopAttach = ((uint)(1));
     w34.BottomAttach = ((uint)(2));
     w34.RightAttach = ((uint)(5));
     w34.XOptions = ((Gtk.AttachOptions)(4));
     w34.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.MarriageView = new Gedcom.UI.GTK.Widgets.MarriageView();
     this.MarriageView.Events = ((Gdk.EventMask)(256));
     this.MarriageView.Name = "MarriageView";
     this.table3.Add(this.MarriageView);
     Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table3[this.MarriageView]));
     w35.RightAttach = ((uint)(5));
     w35.XOptions = ((Gtk.AttachOptions)(4));
     w35.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.scrolledwindow8 = new Gtk.ScrolledWindow();
     this.scrolledwindow8.CanFocus = true;
     this.scrolledwindow8.Name = "scrolledwindow8";
     this.scrolledwindow8.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow8.Gtk.Container+ContainerChild
     Gtk.Viewport w36 = new Gtk.Viewport();
     w36.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.MarriageTreeView = new Gtk.TreeView();
     this.MarriageTreeView.CanFocus = true;
     this.MarriageTreeView.Name = "MarriageTreeView";
     w36.Add(this.MarriageTreeView);
     this.scrolledwindow8.Add(w36);
     this.table3.Add(this.scrolledwindow8);
     Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table3[this.scrolledwindow8]));
     w39.TopAttach = ((uint)(2));
     w39.BottomAttach = ((uint)(3));
     w39.RightAttach = ((uint)(5));
     w39.XOptions = ((Gtk.AttachOptions)(7));
     w39.YOptions = ((Gtk.AttachOptions)(7));
     this.Notebook.Add(this.table3);
     Gtk.Notebook.NotebookChild w40 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table3]));
     w40.Position = 1;
     // Notebook tab
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = "Marriage";
     this.Notebook.SetTabLabel(this.table3, this.label6);
     this.label6.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.AddressView = new Gedcom.UI.GTK.Widgets.AddressView();
     this.AddressView.Events = ((Gdk.EventMask)(256));
     this.AddressView.Name = "AddressView";
     this.Notebook.Add(this.AddressView);
     Gtk.Notebook.NotebookChild w41 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.AddressView]));
     w41.Position = 2;
     // Notebook tab
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = "Addresses";
     this.Notebook.SetTabLabel(this.AddressView, this.label3);
     this.label3.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table6 = new Gtk.Table(((uint)(4)), ((uint)(5)), false);
     this.table6.Name = "table6";
     this.table6.RowSpacing = ((uint)(6));
     this.table6.ColumnSpacing = ((uint)(12));
     this.table6.BorderWidth = ((uint)(6));
     // Container child table6.Gtk.Table+TableChild
     this.HeightEntry = new Gtk.Entry();
     this.HeightEntry.CanFocus = true;
     this.HeightEntry.Name = "HeightEntry";
     this.HeightEntry.IsEditable = true;
     this.HeightEntry.InvisibleChar = '●';
     this.table6.Add(this.HeightEntry);
     Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table6[this.HeightEntry]));
     w42.LeftAttach = ((uint)(1));
     w42.RightAttach = ((uint)(2));
     w42.XOptions = ((Gtk.AttachOptions)(4));
     w42.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.label30 = new Gtk.Label();
     this.label30.Name = "label30";
     this.label30.Xalign = 0F;
     this.label30.LabelProp = "Height:";
     this.table6.Add(this.label30);
     Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table6[this.label30]));
     w43.XOptions = ((Gtk.AttachOptions)(4));
     w43.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.label33 = new Gtk.Label();
     this.label33.Name = "label33";
     this.label33.Xalign = 0F;
     this.label33.LabelProp = "Weight:";
     this.table6.Add(this.label33);
     Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table6[this.label33]));
     w44.TopAttach = ((uint)(1));
     w44.BottomAttach = ((uint)(2));
     w44.XOptions = ((Gtk.AttachOptions)(4));
     w44.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.label34 = new Gtk.Label();
     this.label34.Name = "label34";
     this.label34.Xalign = 0F;
     this.label34.Yalign = 0F;
     this.label34.LabelProp = "Cause of Death:";
     this.table6.Add(this.label34);
     Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table6[this.label34]));
     w45.TopAttach = ((uint)(2));
     w45.BottomAttach = ((uint)(3));
     w45.XOptions = ((Gtk.AttachOptions)(4));
     w45.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.label35 = new Gtk.Label();
     this.label35.Name = "label35";
     this.label35.Xalign = 0F;
     this.label35.Yalign = 0F;
     this.label35.LabelProp = "Medical Information:";
     this.table6.Add(this.label35);
     Gtk.Table.TableChild w46 = ((Gtk.Table.TableChild)(this.table6[this.label35]));
     w46.TopAttach = ((uint)(3));
     w46.BottomAttach = ((uint)(4));
     w46.XOptions = ((Gtk.AttachOptions)(4));
     w46.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.scrolledwindow5 = new Gtk.ScrolledWindow();
     this.scrolledwindow5.CanFocus = true;
     this.scrolledwindow5.Name = "scrolledwindow5";
     this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow5.Gtk.Container+ContainerChild
     this.MedicalInformationTextView = new Gtk.TextView();
     this.MedicalInformationTextView.CanFocus = true;
     this.MedicalInformationTextView.Name = "MedicalInformationTextView";
     this.scrolledwindow5.Add(this.MedicalInformationTextView);
     this.table6.Add(this.scrolledwindow5);
     Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table6[this.scrolledwindow5]));
     w48.TopAttach = ((uint)(3));
     w48.BottomAttach = ((uint)(4));
     w48.LeftAttach = ((uint)(1));
     w48.RightAttach = ((uint)(5));
     // Container child table6.Gtk.Table+TableChild
     this.scrolledwindow6 = new Gtk.ScrolledWindow();
     this.scrolledwindow6.CanFocus = true;
     this.scrolledwindow6.Name = "scrolledwindow6";
     this.scrolledwindow6.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow6.Gtk.Container+ContainerChild
     this.CauseOfDeathTextView = new Gtk.TextView();
     this.CauseOfDeathTextView.CanFocus = true;
     this.CauseOfDeathTextView.Name = "CauseOfDeathTextView";
     this.scrolledwindow6.Add(this.CauseOfDeathTextView);
     this.table6.Add(this.scrolledwindow6);
     Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table6[this.scrolledwindow6]));
     w50.TopAttach = ((uint)(2));
     w50.BottomAttach = ((uint)(3));
     w50.LeftAttach = ((uint)(1));
     w50.RightAttach = ((uint)(5));
     // Container child table6.Gtk.Table+TableChild
     this.WeightEntry = new Gtk.Entry();
     this.WeightEntry.CanFocus = true;
     this.WeightEntry.Name = "WeightEntry";
     this.WeightEntry.IsEditable = true;
     this.WeightEntry.InvisibleChar = '●';
     this.table6.Add(this.WeightEntry);
     Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(this.table6[this.WeightEntry]));
     w51.TopAttach = ((uint)(1));
     w51.BottomAttach = ((uint)(2));
     w51.LeftAttach = ((uint)(1));
     w51.RightAttach = ((uint)(2));
     w51.XOptions = ((Gtk.AttachOptions)(4));
     w51.YOptions = ((Gtk.AttachOptions)(4));
     this.Notebook.Add(this.table6);
     Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table6]));
     w52.Position = 3;
     // Notebook tab
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = "Medical";
     this.Notebook.SetTabLabel(this.table6, this.label4);
     this.label4.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = "label5";
     this.Notebook.Add(this.label5);
     Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.label5]));
     w53.Position = 4;
     // Notebook tab
     this.label40 = new Gtk.Label();
     this.label40.Name = "label40";
     this.label40.LabelProp = "Lineage";
     this.Notebook.SetTabLabel(this.label5, this.label40);
     this.label40.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.NotesView = new Gedcom.UI.GTK.Widgets.NotesView();
     this.NotesView.Events = ((Gdk.EventMask)(256));
     this.NotesView.Name = "NotesView";
     this.NotesView.DataNotes = false;
     this.NotesView.ListOnly = false;
     this.NotesView.NoteOnly = false;
     this.Notebook.Add(this.NotesView);
     Gtk.Notebook.NotebookChild w54 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.NotesView]));
     w54.Position = 5;
     // Notebook tab
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.LabelProp = "Notes";
     this.Notebook.SetTabLabel(this.NotesView, this.label7);
     this.label7.ShowAll();
     this.vbox1.Add(this.Notebook);
     Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.vbox1[this.Notebook]));
     w55.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.vbox5 = new Gtk.VBox();
     this.vbox5.Name = "vbox5";
     // Container child vbox5.Gtk.Box+BoxChild
     this.SwitchBox = new Gtk.VBox();
     this.SwitchBox.Name = "SwitchBox";
     this.SwitchBox.Spacing = 6;
     // Container child SwitchBox.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = "Switch to this individual's:";
     this.SwitchBox.Add(this.label1);
     Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.SwitchBox[this.label1]));
     w56.Position = 0;
     w56.Expand = false;
     w56.Fill = false;
     // Container child SwitchBox.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Homogeneous = true;
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.ParentsCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox();
     this.ParentsCombo.Name = "ParentsCombo";
     this.ParentsCombo.Active = 0;
     this.ParentsCombo.NoIndividualText = "Parents";
     this.hbox3.Add(this.ParentsCombo);
     Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(this.hbox3[this.ParentsCombo]));
     w57.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.ChildrenCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox();
     this.ChildrenCombo.Name = "ChildrenCombo";
     this.ChildrenCombo.Active = 0;
     this.ChildrenCombo.NoIndividualText = "Children";
     this.hbox3.Add(this.ChildrenCombo);
     Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.hbox3[this.ChildrenCombo]));
     w58.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.SpousesCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox();
     this.SpousesCombo.Name = "SpousesCombo";
     this.SpousesCombo.Active = 0;
     this.SpousesCombo.NoIndividualText = "Spouses";
     this.hbox3.Add(this.SpousesCombo);
     Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox3[this.SpousesCombo]));
     w59.Position = 2;
     // Container child hbox3.Gtk.Box+BoxChild
     this.SiblingsCombo = new Gedcom.UI.GTK.Widgets.IndividualListComboBox();
     this.SiblingsCombo.Name = "SiblingsCombo";
     this.SiblingsCombo.Active = 0;
     this.SiblingsCombo.NoIndividualText = "Siblings";
     this.hbox3.Add(this.SiblingsCombo);
     Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox3[this.SiblingsCombo]));
     w60.Position = 3;
     this.SwitchBox.Add(this.hbox3);
     Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.SwitchBox[this.hbox3]));
     w61.Position = 1;
     w61.Expand = false;
     w61.Fill = false;
     this.vbox5.Add(this.SwitchBox);
     Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.vbox5[this.SwitchBox]));
     w62.Position = 0;
     w62.Expand = false;
     w62.Fill = false;
     this.vbox1.Add(this.vbox5);
     Gtk.Box.BoxChild w63 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox5]));
     w63.Position = 1;
     w63.Expand = false;
     w63.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.NameSourceButton.Clicked += new System.EventHandler(this.OnNameSourceButton_Clicked);
     this.NameButton.Clicked += new System.EventHandler(this.OnNameButton_Clicked);
     this.IndiScrapbookButton.Clicked += new System.EventHandler(this.OnIndiScrapbookButton_Clicked);
     this.FactView.MoreInformation += new System.EventHandler<Gedcom.UI.Common.FactArgs>(this.OnFactView_MoreInformation);
     this.DiedInEntry.Changed += new System.EventHandler(this.Died_Changed);
     this.DeleteButton.Clicked += new System.EventHandler(this.OnDeleteButton_Clicked);
     this.DateDiedSourceButton.Clicked += new System.EventHandler(this.OnDateDiedSourceButton_Clicked);
     this.DateDiedEntry.Changed += new System.EventHandler(this.Died_Changed);
     this.DateBornSourceButton.Clicked += new System.EventHandler(this.OnDateBornSourceButton_Clicked);
     this.DateBornEntry.Changed += new System.EventHandler(this.Born_Changed);
     this.BornInEntry.Changed += new System.EventHandler(this.Born_Changed);
     this.AddressView.ShowSourceCitation += new System.EventHandler<Gedcom.UI.Common.SourceCitationArgs>(this.OnAddressView_ShowSourceCitation);
     this.AddressView.ShowScrapBook += new System.EventHandler<Gedcom.UI.Common.ScrapBookArgs>(this.OnAddressView_ShowScrapBook);
     this.AddressView.MoreFactInformation += new System.EventHandler<Gedcom.UI.Common.FactArgs>(this.OnAddressView_MoreFactInformation);
     this.NotesView.ShowSourceCitation += new System.EventHandler<Gedcom.UI.Common.SourceCitationArgs>(this.OnNotesView_ShowSourceCitation);
     this.NotesView.SelectNewNote += new System.EventHandler<Gedcom.UI.Common.NoteArgs>(this.OnNotesView_SelectNewNote);
     this.ParentsCombo.Changed += new System.EventHandler(this.OnParentsCombo_Changed);
     this.ChildrenCombo.Changed += new System.EventHandler(this.OnChildrenCombo_Changed);
     this.SpousesCombo.Changed += new System.EventHandler(this.OnSpousesCombo_Changed);
     this.SiblingsCombo.Changed += new System.EventHandler(this.OnSiblingsCombo_Changed);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Gedcom.UI.GTK.Widgets.SourceView
     Stetic.BinContainer.Attach(this);
     this.Events = ((Gdk.EventMask)(256));
     this.Name = "Gedcom.UI.GTK.Widgets.SourceView";
     // Container child Gedcom.UI.GTK.Widgets.SourceView.Gtk.Container+ContainerChild
     this.Notebook = new Gtk.Notebook();
     this.Notebook.CanFocus = true;
     this.Notebook.Name = "Notebook";
     this.Notebook.CurrentPage = 2;
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(12));
     this.table1.BorderWidth = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.FiledByEntry = new Gtk.Entry();
     this.FiledByEntry.CanFocus = true;
     this.FiledByEntry.Name = "FiledByEntry";
     this.FiledByEntry.IsEditable = true;
     this.FiledByEntry.InvisibleChar = '●';
     this.table1.Add(this.FiledByEntry);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.FiledByEntry]));
     w1.TopAttach = ((uint)(2));
     w1.BottomAttach = ((uint)(3));
     w1.LeftAttach = ((uint)(1));
     w1.RightAttach = ((uint)(2));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.ScrapBookButton = new Gtk.Button();
     this.ScrapBookButton.CanFocus = true;
     this.ScrapBookButton.Name = "ScrapBookButton";
     // Container child ScrapBookButton.Gtk.Container+ContainerChild
     Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w3 = new Gtk.HBox();
     w3.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w4 = new Gtk.Image();
     w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-paste", Gtk.IconSize.Button, 20);
     w3.Add(w4);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w6 = new Gtk.Label();
     w6.LabelProp = "Scrapbook";
     w3.Add(w6);
     w2.Add(w3);
     this.ScrapBookButton.Add(w2);
     this.hbox4.Add(this.ScrapBookButton);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.ScrapBookButton]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 1;
     w10.Expand = false;
     w10.Fill = false;
     this.table1.Add(this.hbox4);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.hbox4]));
     w11.TopAttach = ((uint)(3));
     w11.BottomAttach = ((uint)(4));
     w11.RightAttach = ((uint)(2));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label10 = new Gtk.Label();
     this.label10.Name = "label10";
     this.label10.Xalign = 0F;
     this.label10.LabelProp = "Publication Facts:";
     this.table1.Add(this.label10);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label10]));
     w12.TopAttach = ((uint)(4));
     w12.BottomAttach = ((uint)(5));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label18 = new Gtk.Label();
     this.label18.Name = "label18";
     this.label18.Xalign = 0F;
     this.label18.LabelProp = "Author:";
     this.table1.Add(this.label18);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.label18]));
     w13.TopAttach = ((uint)(1));
     w13.BottomAttach = ((uint)(2));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 0F;
     this.label4.LabelProp = "Title:";
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.Xalign = 0F;
     this.label8.LabelProp = "Filed By:";
     this.table1.Add(this.label8);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
     w15.TopAttach = ((uint)(2));
     w15.BottomAttach = ((uint)(3));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.OriginatorEntry = new Gtk.Entry();
     this.OriginatorEntry.CanFocus = true;
     this.OriginatorEntry.Name = "OriginatorEntry";
     this.OriginatorEntry.IsEditable = true;
     this.OriginatorEntry.InvisibleChar = '●';
     this.table1.Add(this.OriginatorEntry);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.OriginatorEntry]));
     w16.TopAttach = ((uint)(1));
     w16.BottomAttach = ((uint)(2));
     w16.LeftAttach = ((uint)(1));
     w16.RightAttach = ((uint)(2));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.scrolledwindow5 = new Gtk.ScrolledWindow();
     this.scrolledwindow5.CanFocus = true;
     this.scrolledwindow5.Name = "scrolledwindow5";
     this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow5.Gtk.Container+ContainerChild
     this.PublicationFactsTextView = new Gtk.TextView();
     this.PublicationFactsTextView.CanFocus = true;
     this.PublicationFactsTextView.Name = "PublicationFactsTextView";
     this.scrolledwindow5.Add(this.PublicationFactsTextView);
     this.table1.Add(this.scrolledwindow5);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.scrolledwindow5]));
     w18.TopAttach = ((uint)(5));
     w18.BottomAttach = ((uint)(6));
     w18.RightAttach = ((uint)(2));
     // Container child table1.Gtk.Table+TableChild
     this.TitleEntry = new Gtk.Entry();
     this.TitleEntry.CanFocus = true;
     this.TitleEntry.Name = "TitleEntry";
     this.TitleEntry.IsEditable = true;
     this.TitleEntry.InvisibleChar = '●';
     this.table1.Add(this.TitleEntry);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.TitleEntry]));
     w19.LeftAttach = ((uint)(1));
     w19.RightAttach = ((uint)(2));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     this.Notebook.Add(this.table1);
     // Notebook tab
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = "Details";
     this.Notebook.SetTabLabel(this.table1, this.label5);
     this.label5.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table2 = new Gtk.Table(((uint)(6)), ((uint)(4)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(12));
     this.table2.BorderWidth = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.DateRecordedEntry = new Gtk.Entry();
     this.DateRecordedEntry.CanFocus = true;
     this.DateRecordedEntry.Name = "DateRecordedEntry";
     this.DateRecordedEntry.IsEditable = true;
     this.DateRecordedEntry.InvisibleChar = '●';
     this.table2.Add(this.DateRecordedEntry);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table2[this.DateRecordedEntry]));
     w21.TopAttach = ((uint)(2));
     w21.BottomAttach = ((uint)(3));
     w21.LeftAttach = ((uint)(1));
     w21.RightAttach = ((uint)(2));
     w21.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.scrolledwindow6 = new Gtk.ScrolledWindow();
     this.scrolledwindow6.CanFocus = true;
     this.scrolledwindow6.Name = "scrolledwindow6";
     this.scrolledwindow6.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow6.Gtk.Container+ContainerChild
     Gtk.Viewport w22 = new Gtk.Viewport();
     w22.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.EventGroupTreeView = new Gtk.TreeView();
     this.EventGroupTreeView.CanFocus = true;
     this.EventGroupTreeView.Name = "EventGroupTreeView";
     w22.Add(this.EventGroupTreeView);
     this.scrolledwindow6.Add(w22);
     this.hbox3.Add(this.scrolledwindow6);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox3[this.scrolledwindow6]));
     w25.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.vbuttonbox1 = new Gtk.VButtonBox();
     this.vbuttonbox1.Name = "vbuttonbox1";
     this.vbuttonbox1.Spacing = 6;
     this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.NewEventGroupButton = new Gtk.Button();
     this.NewEventGroupButton.CanFocus = true;
     this.NewEventGroupButton.Name = "NewEventGroupButton";
     this.NewEventGroupButton.UseStock = true;
     this.NewEventGroupButton.UseUnderline = true;
     this.NewEventGroupButton.Label = "gtk-new";
     this.vbuttonbox1.Add(this.NewEventGroupButton);
     Gtk.ButtonBox.ButtonBoxChild w26 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.NewEventGroupButton]));
     w26.Expand = false;
     w26.Fill = false;
     this.hbox3.Add(this.vbuttonbox1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox3[this.vbuttonbox1]));
     w27.Position = 1;
     w27.Expand = false;
     w27.Fill = false;
     this.table2.Add(this.hbox3);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table2[this.hbox3]));
     w28.TopAttach = ((uint)(5));
     w28.BottomAttach = ((uint)(6));
     w28.RightAttach = ((uint)(4));
     // Container child table2.Gtk.Table+TableChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.table2.Add(this.hseparator1);
     Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table2[this.hseparator1]));
     w29.TopAttach = ((uint)(3));
     w29.BottomAttach = ((uint)(4));
     w29.RightAttach = ((uint)(4));
     w29.XOptions = ((Gtk.AttachOptions)(4));
     w29.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = "Event Groups:";
     this.table2.Add(this.label1);
     Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table2[this.label1]));
     w30.TopAttach = ((uint)(4));
     w30.BottomAttach = ((uint)(5));
     w30.XOptions = ((Gtk.AttachOptions)(4));
     w30.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label16 = new Gtk.Label();
     this.label16.Name = "label16";
     this.label16.Xalign = 0F;
     this.label16.LabelProp = "Date Recorded:";
     this.table2.Add(this.label16);
     Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table2[this.label16]));
     w31.TopAttach = ((uint)(2));
     w31.BottomAttach = ((uint)(3));
     w31.XOptions = ((Gtk.AttachOptions)(4));
     w31.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label17 = new Gtk.Label();
     this.label17.Name = "label17";
     this.label17.Xalign = 0F;
     this.label17.LabelProp = "Events in selected group:";
     this.table2.Add(this.label17);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table2[this.label17]));
     w32.RightAttach = ((uint)(4));
     w32.XOptions = ((Gtk.AttachOptions)(4));
     w32.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = "in";
     this.table2.Add(this.label2);
     Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table2[this.label2]));
     w33.TopAttach = ((uint)(2));
     w33.BottomAttach = ((uint)(3));
     w33.LeftAttach = ((uint)(2));
     w33.RightAttach = ((uint)(3));
     w33.XOptions = ((Gtk.AttachOptions)(4));
     w33.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.PlaceRecordedEntry = new Gtk.Entry();
     this.PlaceRecordedEntry.CanFocus = true;
     this.PlaceRecordedEntry.Name = "PlaceRecordedEntry";
     this.PlaceRecordedEntry.IsEditable = true;
     this.PlaceRecordedEntry.InvisibleChar = '●';
     this.table2.Add(this.PlaceRecordedEntry);
     Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table2[this.PlaceRecordedEntry]));
     w34.TopAttach = ((uint)(2));
     w34.BottomAttach = ((uint)(3));
     w34.LeftAttach = ((uint)(3));
     w34.RightAttach = ((uint)(4));
     w34.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.scrolledwindow9 = new Gtk.ScrolledWindow();
     this.scrolledwindow9.CanFocus = true;
     this.scrolledwindow9.Name = "scrolledwindow9";
     this.scrolledwindow9.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow9.Gtk.Container+ContainerChild
     Gtk.Viewport w35 = new Gtk.Viewport();
     w35.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.EventTypeTreeView = new Gtk.TreeView();
     this.EventTypeTreeView.CanFocus = true;
     this.EventTypeTreeView.Name = "EventTypeTreeView";
     this.EventTypeTreeView.RulesHint = true;
     w35.Add(this.EventTypeTreeView);
     this.scrolledwindow9.Add(w35);
     this.table2.Add(this.scrolledwindow9);
     Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow9]));
     w38.TopAttach = ((uint)(1));
     w38.BottomAttach = ((uint)(2));
     w38.RightAttach = ((uint)(4));
     w38.XOptions = ((Gtk.AttachOptions)(4));
     this.Notebook.Add(this.table2);
     Gtk.Notebook.NotebookChild w39 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table2]));
     w39.Position = 1;
     // Notebook tab
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = "Events Recorded";
     this.Notebook.SetTabLabel(this.table2, this.label6);
     this.label6.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table3 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table3.Name = "table3";
     this.table3.RowSpacing = ((uint)(6));
     this.table3.ColumnSpacing = ((uint)(12));
     this.table3.BorderWidth = ((uint)(6));
     // Container child table3.Gtk.Table+TableChild
     this.AgencyTextBox = new Gtk.Entry();
     this.AgencyTextBox.CanFocus = true;
     this.AgencyTextBox.Name = "AgencyTextBox";
     this.AgencyTextBox.IsEditable = true;
     this.AgencyTextBox.InvisibleChar = '●';
     this.table3.Add(this.AgencyTextBox);
     Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table3[this.AgencyTextBox]));
     w40.LeftAttach = ((uint)(1));
     w40.RightAttach = ((uint)(2));
     w40.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.DataNotesView = new Gedcom.UI.GTK.Widgets.NotesView();
     this.DataNotesView.Events = ((Gdk.EventMask)(256));
     this.DataNotesView.Name = "DataNotesView";
     this.DataNotesView.DataNotes = true;
     this.DataNotesView.ListOnly = false;
     this.DataNotesView.NoteOnly = false;
     this.table3.Add(this.DataNotesView);
     Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table3[this.DataNotesView]));
     w41.TopAttach = ((uint)(1));
     w41.BottomAttach = ((uint)(2));
     w41.RightAttach = ((uint)(2));
     // Container child table3.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 0F;
     this.label3.LabelProp = "Agency:";
     this.table3.Add(this.label3);
     Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table3[this.label3]));
     w42.XOptions = ((Gtk.AttachOptions)(4));
     w42.YOptions = ((Gtk.AttachOptions)(4));
     this.Notebook.Add(this.table3);
     Gtk.Notebook.NotebookChild w43 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table3]));
     w43.Position = 2;
     // Notebook tab
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.LabelProp = "Data Information";
     this.Notebook.SetTabLabel(this.table3, this.label7);
     this.label7.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     this.scrolledwindow2.BorderWidth = ((uint)(6));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.TextTextView = new Gtk.TextView();
     this.TextTextView.CanFocus = true;
     this.TextTextView.Name = "TextTextView";
     this.scrolledwindow2.Add(this.TextTextView);
     this.Notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w45 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.scrolledwindow2]));
     w45.Position = 3;
     // Notebook tab
     this.label15 = new Gtk.Label();
     this.label15.Name = "label15";
     this.label15.LabelProp = "Text";
     this.Notebook.SetTabLabel(this.scrolledwindow2, this.label15);
     this.label15.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.NotesView = new Gedcom.UI.GTK.Widgets.NotesView();
     this.NotesView.Events = ((Gdk.EventMask)(256));
     this.NotesView.Name = "NotesView";
     this.NotesView.DataNotes = false;
     this.NotesView.ListOnly = false;
     this.NotesView.NoteOnly = false;
     this.Notebook.Add(this.NotesView);
     Gtk.Notebook.NotebookChild w46 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.NotesView]));
     w46.Position = 4;
     // Notebook tab
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.LabelProp = "Notes";
     this.Notebook.SetTabLabel(this.NotesView, this.label9);
     this.label9.ShowAll();
     // Container child Notebook.Gtk.Notebook+NotebookChild
     this.table4 = new Gtk.Table(((uint)(4)), ((uint)(4)), false);
     this.table4.Name = "table4";
     this.table4.RowSpacing = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(12));
     this.table4.BorderWidth = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.CallNumberEntry = new Gtk.Entry();
     this.CallNumberEntry.CanFocus = true;
     this.CallNumberEntry.Name = "CallNumberEntry";
     this.CallNumberEntry.IsEditable = true;
     this.CallNumberEntry.InvisibleChar = '●';
     this.table4.Add(this.CallNumberEntry);
     Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table4[this.CallNumberEntry]));
     w47.LeftAttach = ((uint)(1));
     w47.RightAttach = ((uint)(2));
     w47.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.label12 = new Gtk.Label();
     this.label12.Name = "label12";
     this.label12.Xalign = 0F;
     this.label12.LabelProp = "Call Number:";
     this.table4.Add(this.label12);
     Gtk.Table.TableChild w48 = ((Gtk.Table.TableChild)(this.table4[this.label12]));
     w48.XOptions = ((Gtk.AttachOptions)(4));
     w48.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.label13 = new Gtk.Label();
     this.label13.Name = "label13";
     this.label13.Xalign = 0F;
     this.label13.LabelProp = "Media Type:";
     this.table4.Add(this.label13);
     Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(this.table4[this.label13]));
     w49.LeftAttach = ((uint)(2));
     w49.RightAttach = ((uint)(3));
     w49.XOptions = ((Gtk.AttachOptions)(4));
     w49.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.label14 = new Gtk.Label();
     this.label14.Name = "label14";
     this.label14.Xalign = 0F;
     this.label14.LabelProp = "Notes:";
     this.table4.Add(this.label14);
     Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table4[this.label14]));
     w50.TopAttach = ((uint)(2));
     w50.BottomAttach = ((uint)(3));
     w50.XOptions = ((Gtk.AttachOptions)(4));
     w50.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.MediaTypeCombo = new Gtk.ComboBox();
     this.MediaTypeCombo.Name = "MediaTypeCombo";
     this.table4.Add(this.MediaTypeCombo);
     Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(this.table4[this.MediaTypeCombo]));
     w51.LeftAttach = ((uint)(3));
     w51.RightAttach = ((uint)(4));
     w51.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.RepoNotesView = new Gedcom.UI.GTK.Widgets.NotesView();
     this.RepoNotesView.Events = ((Gdk.EventMask)(256));
     this.RepoNotesView.Name = "RepoNotesView";
     this.RepoNotesView.DataNotes = false;
     this.RepoNotesView.ListOnly = false;
     this.RepoNotesView.NoteOnly = false;
     this.table4.Add(this.RepoNotesView);
     Gtk.Table.TableChild w52 = ((Gtk.Table.TableChild)(this.table4[this.RepoNotesView]));
     w52.TopAttach = ((uint)(3));
     w52.BottomAttach = ((uint)(4));
     w52.RightAttach = ((uint)(4));
     w52.XOptions = ((Gtk.AttachOptions)(4));
     w52.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.scrolledwindow4 = new Gtk.ScrolledWindow();
     this.scrolledwindow4.CanFocus = true;
     this.scrolledwindow4.Name = "scrolledwindow4";
     this.scrolledwindow4.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow4.Gtk.Container+ContainerChild
     this.CallNumberTreeView = new Gtk.TreeView();
     this.CallNumberTreeView.CanFocus = true;
     this.CallNumberTreeView.Name = "CallNumberTreeView";
     this.scrolledwindow4.Add(this.CallNumberTreeView);
     this.table4.Add(this.scrolledwindow4);
     Gtk.Table.TableChild w54 = ((Gtk.Table.TableChild)(this.table4[this.scrolledwindow4]));
     w54.TopAttach = ((uint)(1));
     w54.BottomAttach = ((uint)(2));
     w54.RightAttach = ((uint)(4));
     this.Notebook.Add(this.table4);
     Gtk.Notebook.NotebookChild w55 = ((Gtk.Notebook.NotebookChild)(this.Notebook[this.table4]));
     w55.Position = 5;
     // Notebook tab
     this.label11 = new Gtk.Label();
     this.label11.Name = "label11";
     this.label11.LabelProp = "Repositories";
     this.Notebook.SetTabLabel(this.table4, this.label11);
     this.label11.ShowAll();
     this.Add(this.Notebook);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.Notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebook_SwitchPage);
     this.ScrapBookButton.Clicked += new System.EventHandler(this.OnScrapbookButton_Clicked);
     this.EventGroupTreeView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnEventGroupTreeView_ButtonPressEvent);
     this.NewEventGroupButton.Clicked += new System.EventHandler(this.OnNewEventGroupButton_Clicked);
     this.NotesView.ShowSourceCitation += new System.EventHandler<Gedcom.UI.Common.SourceCitationArgs>(this.OnNotesView_ShowSourceCitation);
     this.NotesView.SelectNewNote += new System.EventHandler<Gedcom.UI.Common.NoteArgs>(this.OnNotesView_SelectNewNote);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OffLineLogViewer
     this.WidthRequest = 600;
     this.HeightRequest = 400;
     this.Name = "ocmgtk.OffLineLogViewer";
     this.Title = Mono.Unix.Catalog.GetString("View Field Notes...");
     this.TypeHint = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     this.BorderWidth = ((uint)(6));
     this.AllowShrink = true;
     this.Gravity = ((Gdk.Gravity)(5));
     this.SkipPagerHint = true;
     this.SkipTaskbarHint = true;
     // Internal child ocmgtk.OffLineLogViewer.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.vpaned1 = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name = "vpaned1";
     this.vpaned1.Position = 250;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.image11 = new Gtk.Image();
     this.image11.Name = "image11";
     this.image11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.LargeToolbar, 24);
     this.hbox1.Add(this.image11);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image11]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.fnFieldNotesLabel = new Gtk.Label();
     this.fnFieldNotesLabel.Name = "fnFieldNotesLabel";
     this.fnFieldNotesLabel.LabelProp = Mono.Unix.Catalog.GetString("Please wait...");
     this.hbox1.Add(this.fnFieldNotesLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.fnFieldNotesLabel]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     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.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox3.Add(this.hseparator1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // 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.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.logView = new Gtk.TreeView();
     this.logView.CanFocus = true;
     this.logView.Name = "logView";
     this.logView.EnableSearch = false;
     this.scrolledwindow1.Add(this.logView);
     this.hbox2.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.scrolledwindow1]));
     w7.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbuttonbox1 = new Gtk.VButtonBox();
     this.vbuttonbox1.Name = "vbuttonbox1";
     this.vbuttonbox1.Spacing = 6;
     this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.viewCacheButton = new Gtk.Button();
     this.viewCacheButton.Sensitive = false;
     this.viewCacheButton.CanFocus = true;
     this.viewCacheButton.Name = "viewCacheButton";
     this.viewCacheButton.UseUnderline = true;
     this.viewCacheButton.Label = Mono.Unix.Catalog.GetString("View Cache");
     this.vbuttonbox1.Add(this.viewCacheButton);
     Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.viewCacheButton]));
     w8.Expand = false;
     w8.Fill = false;
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.deleteButton = new Gtk.Button();
     this.deleteButton.Sensitive = false;
     this.deleteButton.CanFocus = true;
     this.deleteButton.Name = "deleteButton";
     this.deleteButton.UseStock = true;
     this.deleteButton.UseUnderline = true;
     this.deleteButton.Label = "gtk-delete";
     this.vbuttonbox1.Add(this.deleteButton);
     Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.deleteButton]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.delAllButton = new Gtk.Button();
     this.delAllButton.CanFocus = true;
     this.delAllButton.Name = "delAllButton";
     this.delAllButton.UseUnderline = true;
     this.delAllButton.Label = Mono.Unix.Catalog.GetString("Delete All");
     this.vbuttonbox1.Add(this.delAllButton);
     Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.delAllButton]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.hbox2.Add(this.vbuttonbox1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbuttonbox1]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     w11.Padding = ((uint)(6));
     this.vbox3.Add(this.hbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2]));
     w12.Position = 2;
     this.vpaned1.Add(this.vbox3);
     Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox3]));
     w13.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.fieldNotesDescPane = new Gtk.Notebook();
     this.fieldNotesDescPane.Sensitive = false;
     this.fieldNotesDescPane.CanFocus = true;
     this.fieldNotesDescPane.Name = "fieldNotesDescPane";
     this.fieldNotesDescPane.CurrentPage = 0;
     this.fieldNotesDescPane.TabPos = ((Gtk.PositionType)(0));
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.logPane = new Gtk.VBox();
     this.logPane.Name = "logPane";
     this.logPane.Spacing = 6;
     this.logPane.BorderWidth = ((uint)(6));
     // Container child logPane.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.LabelProp = Mono.Unix.Catalog.GetString("Log Type:");
     this.hbox5.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox5[this.label1]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.logChoice = Gtk.ComboBox.NewText();
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Found it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Didn't Find it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Write Note"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Needs Maintenance"));
     this.logChoice.Name = "logChoice";
     this.logChoice.Active = 0;
     this.hbox5.Add(this.logChoice);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox5[this.logChoice]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     this.logPane.Add(this.hbox5);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.logPane[this.hbox5]));
     w16.Position = 0;
     w16.Expand = false;
     w16.Fill = false;
     // Container child logPane.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.firstToFindCheck = new Gtk.CheckButton();
     this.firstToFindCheck.CanFocus = true;
     this.firstToFindCheck.Name = "firstToFindCheck";
     this.firstToFindCheck.Label = Mono.Unix.Catalog.GetString("First To Find");
     this.firstToFindCheck.DrawIndicator = true;
     this.firstToFindCheck.UseUnderline = true;
     this.hbox4.Add(this.firstToFindCheck);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox4[this.firstToFindCheck]));
     w17.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.saveButton = new Gtk.Button();
     this.saveButton.CanFocus = true;
     this.saveButton.Name = "saveButton";
     this.saveButton.UseStock = true;
     this.saveButton.UseUnderline = true;
     this.saveButton.Label = "gtk-save";
     this.hbox4.Add(this.saveButton);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox4[this.saveButton]));
     w18.Position = 1;
     w18.Expand = false;
     w18.Fill = false;
     this.logPane.Add(this.hbox4);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.logPane[this.hbox4]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     // Container child logPane.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.logEntry = new Gtk.TextView();
     this.logEntry.CanFocus = true;
     this.logEntry.Name = "logEntry";
     this.logEntry.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow.Add(this.logEntry);
     this.logPane.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.logPane[this.GtkScrolledWindow]));
     w21.Position = 2;
     this.fieldNotesDescPane.Add(this.logPane);
     // Notebook tab
     this.logPage = new Gtk.Label();
     this.logPage.Name = "logPage";
     this.logPage.LabelProp = Mono.Unix.Catalog.GetString("Field Log");
     this.fieldNotesDescPane.SetTabLabel(this.logPane, this.logPage);
     this.logPage.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // 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.wptCombo = new Gtk.Label();
     this.wptCombo.Name = "wptCombo";
     this.wptCombo.LabelProp = Mono.Unix.Catalog.GetString("Waypoint:");
     this.hbox3.Add(this.wptCombo);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox3[this.wptCombo]));
     w23.Position = 0;
     w23.Expand = false;
     w23.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.waypointCombo = Gtk.ComboBox.NewText();
     this.waypointCombo.Name = "waypointCombo";
     this.hbox3.Add(this.waypointCombo);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox3[this.waypointCombo]));
     w24.Position = 1;
     w24.Expand = false;
     w24.Fill = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w25.Position = 0;
     w25.Expand = false;
     w25.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.mapView = new ocmgtk.MapWidget();
     this.mapView.Events = ((Gdk.EventMask)(256));
     this.mapView.Name = "mapView";
     this.mapView.ShowNearby = false;
     this.mapView.ShowAllChildren = false;
     this.vbox2.Add(this.mapView);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox2[this.mapView]));
     w26.Position = 1;
     this.fieldNotesDescPane.Add(this.vbox2);
     Gtk.Notebook.NotebookChild w27 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.vbox2]));
     w27.Position = 1;
     // Notebook tab
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Map");
     this.fieldNotesDescPane.SetTabLabel(this.vbox2, this.label7);
     this.label7.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheDesc = new ocmgtk.HTMLWidget();
     this.cacheDesc.Events = ((Gdk.EventMask)(256));
     this.cacheDesc.Name = "cacheDesc";
     this.fieldNotesDescPane.Add(this.cacheDesc);
     Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheDesc]));
     w28.Position = 2;
     // Notebook tab
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Cache Description");
     this.fieldNotesDescPane.SetTabLabel(this.cacheDesc, this.label5);
     this.label5.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheLog = new ocmgtk.HTMLWidget();
     this.cacheLog.Events = ((Gdk.EventMask)(256));
     this.cacheLog.Name = "cacheLog";
     this.fieldNotesDescPane.Add(this.cacheLog);
     Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheLog]));
     w29.Position = 3;
     // Notebook tab
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Cache Logs");
     this.fieldNotesDescPane.SetTabLabel(this.cacheLog, this.label8);
     this.label8.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheNotes = new ocmgtk.NotesWidget();
     this.cacheNotes.Events = ((Gdk.EventMask)(256));
     this.cacheNotes.Name = "cacheNotes";
     this.fieldNotesDescPane.Add(this.cacheNotes);
     Gtk.Notebook.NotebookChild w30 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheNotes]));
     w30.Position = 4;
     // Notebook tab
     this.notesLabel = new Gtk.Label();
     this.notesLabel.Name = "notesLabel";
     this.notesLabel.LabelProp = Mono.Unix.Catalog.GetString("Notes");
     this.fieldNotesDescPane.SetTabLabel(this.cacheNotes, this.notesLabel);
     this.notesLabel.ShowAll();
     this.vpaned1.Add(this.fieldNotesDescPane);
     w1.Add(this.vpaned1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w1[this.vpaned1]));
     w32.Position = 0;
     // Internal child ocmgtk.OffLineLogViewer.ActionArea
     Gtk.HButtonBox w33 = this.ActionArea;
     w33.Name = "dialog1_ActionArea";
     w33.Spacing = 10;
     w33.BorderWidth = ((uint)(5));
     w33.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.closeButton = new Gtk.Button();
     this.closeButton.CanDefault = true;
     this.closeButton.CanFocus = true;
     this.closeButton.Name = "closeButton";
     this.closeButton.UseStock = true;
     this.closeButton.UseUnderline = true;
     this.closeButton.Label = "gtk-close";
     this.AddActionWidget(this.closeButton, -7);
     Gtk.ButtonBox.ButtonBoxChild w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w33[this.closeButton]));
     w34.Expand = false;
     w34.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 839;
     this.DefaultHeight = 566;
     this.closeButton.HasDefault = true;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnCloseClick);
     this.viewCacheButton.Clicked += new System.EventHandler(this.OnViewCache);
     this.deleteButton.Clicked += new System.EventHandler(this.OnDeleteClick);
     this.delAllButton.Clicked += new System.EventHandler(this.OnDeleteAllClick);
     this.logChoice.Changed += new System.EventHandler(this.OnLogTypeChange);
     this.firstToFindCheck.Toggled += new System.EventHandler(this.OnFTFCheck);
     this.saveButton.Clicked += new System.EventHandler(this.OnSaveClick);
     this.closeButton.Clicked += new System.EventHandler(this.OnCloseClick);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget LunarEclipse.View.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.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Abrir"), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Abrir");
     w1.Add(this.OpenAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Nuevo"), null, "gtk-new");
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Nuevo");
     w1.Add(this.NewAction, null);
     this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Guardar"), null, "gtk-save");
     this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Guardar");
     w1.Add(this.SaveAction, null);
     this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Guardar _como"), null, "gtk-save-as");
     this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Guardar _como");
     w1.Add(this.SaveAsAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Salir"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Salir");
     w1.Add(this.QuitAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit");
     w1.Add(this.EditAction, 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.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w1.Add(this.HelpAction, null);
     this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo");
     this.UndoAction.Sensitive = false;
     this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer");
     w1.Add(this.UndoAction, "<Control>z");
     this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo");
     this.RedoAction.Sensitive = false;
     this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer");
     w1.Add(this.RedoAction, "<Control>y");
     this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cor_tar"), null, "gtk-cut");
     this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cor_tar");
     w1.Add(this.CutAction, null);
     this.CopiarAction = new Gtk.Action("CopiarAction", Mono.Unix.Catalog.GetString("_Copiar"), null, "gtk-copy");
     this.CopiarAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copiar");
     w1.Add(this.CopiarAction, null);
     this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Pegar"), null, "gtk-paste");
     this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pegar");
     w1.Add(this.PasteAction, null);
     this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Borrar"), null, "gtk-delete");
     this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Borrar");
     w1.Add(this.DeleteAction, "<Mod2>Delete");
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("Acerca _de"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("Acerca _de");
     w1.Add(this.AboutAction, null);
     this.SelectionToolAction = new Gtk.RadioAction("SelectionToolAction", Mono.Unix.Catalog.GetString("_Selection Tool"), null, "selection-tool", 0);
     this.SelectionToolAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.SelectionToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Selection Tool");
     w1.Add(this.SelectionToolAction, null);
     this.RectangleToolAction = new Gtk.RadioAction("RectangleToolAction", Mono.Unix.Catalog.GetString("_Rectangle Tool"), null, "rectangle-tool", 0);
     this.RectangleToolAction.Group = this.SelectionToolAction.Group;
     this.RectangleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rectangle Tool");
     w1.Add(this.RectangleToolAction, null);
     this.SquareToolAction = new Gtk.RadioAction("SquareToolAction", Mono.Unix.Catalog.GetString("S_quare Tool"), null, "square-tool", 0);
     this.SquareToolAction.Group = this.RectangleToolAction.Group;
     this.SquareToolAction.ShortLabel = Mono.Unix.Catalog.GetString("S_quare Tool");
     w1.Add(this.SquareToolAction, null);
     this.EllipseToolAction = new Gtk.RadioAction("EllipseToolAction", Mono.Unix.Catalog.GetString("_Ellipse Tool"), null, "ellipse-tool", 0);
     this.EllipseToolAction.Group = this.RectangleToolAction.Group;
     this.EllipseToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Ellipse Tool");
     w1.Add(this.EllipseToolAction, null);
     this.CircleToolAction = new Gtk.RadioAction("CircleToolAction", Mono.Unix.Catalog.GetString("_Circle Tool"), null, "circle-tool", 0);
     this.CircleToolAction.Group = this.EllipseToolAction.Group;
     this.CircleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Circle Tool");
     w1.Add(this.CircleToolAction, null);
     this.PathToolAction = new Gtk.RadioAction("PathToolAction", Mono.Unix.Catalog.GetString("_Path Tool"), null, "path-tool", 0);
     this.PathToolAction.Group = this.CircleToolAction.Group;
     this.PathToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Path Tool");
     w1.Add(this.PathToolAction, null);
     this.TextToolAction = new Gtk.RadioAction("TextToolAction", Mono.Unix.Catalog.GetString("_Text Tool"), null, "text-tool", 0);
     this.TextToolAction.Group = this.CircleToolAction.Group;
     this.TextToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Text Tool");
     w1.Add(this.TextToolAction, null);
     this.ImageToolAction = new Gtk.RadioAction("ImageToolAction", Mono.Unix.Catalog.GetString("Image Tool"), null, "image-tool", 0);
     this.ImageToolAction.Group = this.CircleToolAction.Group;
     this.ImageToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Image Tool");
     w1.Add(this.ImageToolAction, null);
     this.AnimationAction = new Gtk.Action("AnimationAction", Mono.Unix.Catalog.GetString("_Animation"), null, null);
     this.AnimationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Animation");
     w1.Add(this.AnimationAction, null);
     this.RecordAction = new Gtk.Action("RecordAction", Mono.Unix.Catalog.GetString("_Grabar"), null, "gtk-media-record");
     this.RecordAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grabar");
     w1.Add(this.RecordAction, null);
     this.ReproducirAction = new Gtk.Action("ReproducirAction", Mono.Unix.Catalog.GetString("_Reproducir"), null, "gtk-media-play");
     this.ReproducirAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reproducir");
     w1.Add(this.ReproducirAction, null);
     this.StopAction = new Gtk.Action("StopAction", Mono.Unix.Catalog.GetString("_Detener"), null, "gtk-media-stop");
     this.StopAction.ShortLabel = Mono.Unix.Catalog.GetString("_Detener");
     w1.Add(this.StopAction, null);
     this.LineToolAction = new Gtk.RadioAction("LineToolAction", Mono.Unix.Catalog.GetString("_Line Tool"), null, "line-tool", 0);
     this.LineToolAction.Group = this.CircleToolAction.Group;
     this.LineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Line Tool");
     w1.Add(this.LineToolAction, null);
     this.DrawingAction = new Gtk.Action("DrawingAction", Mono.Unix.Catalog.GetString("Drawing"), null, null);
     this.DrawingAction.ShortLabel = Mono.Unix.Catalog.GetString("Drawing");
     w1.Add(this.DrawingAction, null);
     this.CleanAction = new Gtk.Action("CleanAction", Mono.Unix.Catalog.GetString("_Limpiar"), null, "gtk-clear");
     this.CleanAction.ShortLabel = Mono.Unix.Catalog.GetString("_Limpiar");
     w1.Add(this.CleanAction, null);
     this.PolylineToolAction = new Gtk.RadioAction("PolylineToolAction", Mono.Unix.Catalog.GetString("Polyline Tool"), null, "polyline-tool", 0);
     this.PolylineToolAction.Group = this.CircleToolAction.Group;
     this.PolylineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Polyline Tool");
     w1.Add(this.PolylineToolAction, null);
     this.PenToolAction = new Gtk.RadioAction("PenToolAction", Mono.Unix.Catalog.GetString("P_en Tool"), null, "pen-tool", 0);
     this.PenToolAction.Group = this.CircleToolAction.Group;
     this.PenToolAction.ShortLabel = Mono.Unix.Catalog.GetString("P_en Tool");
     w1.Add(this.PenToolAction, null);
     this.debug1 = new Gtk.Action("debug1", null, Mono.Unix.Catalog.GetString("Debug"), "gtk-dialog-warning");
     w1.Add(this.debug1, null);
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Fi_gures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Fi_gure");
     w1.Add(this.FiguresAction, null);
     this.OrderAction = new Gtk.Action("OrderAction", Mono.Unix.Catalog.GetString("Order"), null, null);
     this.OrderAction.ShortLabel = Mono.Unix.Catalog.GetString("Order");
     w1.Add(this.OrderAction, null);
     this.AlignAction = new Gtk.Action("AlignAction", Mono.Unix.Catalog.GetString("_Align"), null, null);
     this.AlignAction.ShortLabel = Mono.Unix.Catalog.GetString("_Align");
     w1.Add(this.AlignAction, null);
     this.BringToFrontAction = new Gtk.Action("BringToFrontAction", Mono.Unix.Catalog.GetString("Bring to _Front"), null, "gtk-goto-top");
     this.BringToFrontAction.Sensitive = false;
     this.BringToFrontAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring to _Front");
     w1.Add(this.BringToFrontAction, null);
     this.SendToBackAction = new Gtk.Action("SendToBackAction", Mono.Unix.Catalog.GetString("Send to _Back"), null, "gtk-goto-bottom");
     this.SendToBackAction.Sensitive = false;
     this.SendToBackAction.ShortLabel = Mono.Unix.Catalog.GetString("Send to _Back");
     w1.Add(this.SendToBackAction, null);
     this.BringForwardsAction = new Gtk.Action("BringForwardsAction", Mono.Unix.Catalog.GetString("Bring Forwards"), null, "gtk-go-up");
     this.BringForwardsAction.Sensitive = false;
     this.BringForwardsAction.ShortLabel = Mono.Unix.Catalog.GetString("Send Forwards");
     w1.Add(this.BringForwardsAction, null);
     this.SendBackwarsAction = new Gtk.Action("SendBackwarsAction", Mono.Unix.Catalog.GetString("Send Backwars"), null, "gtk-go-down");
     this.SendBackwarsAction.Sensitive = false;
     this.SendBackwarsAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring Backwars");
     w1.Add(this.SendBackwarsAction, null);
     this.LeftAction = new Gtk.Action("LeftAction", Mono.Unix.Catalog.GetString("Left"), null, null);
     this.LeftAction.ShortLabel = Mono.Unix.Catalog.GetString("Left");
     w1.Add(this.LeftAction, null);
     this.HorizontalCenterAction = new Gtk.Action("HorizontalCenterAction", Mono.Unix.Catalog.GetString("Horizontal Center"), null, null);
     this.HorizontalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Center");
     w1.Add(this.HorizontalCenterAction, null);
     this.RightAction = new Gtk.Action("RightAction", Mono.Unix.Catalog.GetString("Right"), null, null);
     this.RightAction.ShortLabel = Mono.Unix.Catalog.GetString("Right");
     w1.Add(this.RightAction, null);
     this.TopAction = new Gtk.Action("TopAction", Mono.Unix.Catalog.GetString("Top"), null, null);
     this.TopAction.ShortLabel = Mono.Unix.Catalog.GetString("Top");
     w1.Add(this.TopAction, null);
     this.VerticalCenterAction = new Gtk.Action("VerticalCenterAction", Mono.Unix.Catalog.GetString("Vertical Center"), null, null);
     this.VerticalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Middle");
     w1.Add(this.VerticalCenterAction, null);
     this.BottomAction = new Gtk.Action("BottomAction", Mono.Unix.Catalog.GetString("Bottom"), null, null);
     this.BottomAction.ShortLabel = Mono.Unix.Catalog.GetString("Bottom");
     w1.Add(this.BottomAction, null);
     this.debug2 = new Gtk.Action("debug2", null, Mono.Unix.Catalog.GetString("Debug2"), "gtk-dialog-error");
     w1.Add(this.debug2, null);
     this.CloneAction = new Gtk.Action("CloneAction", Mono.Unix.Catalog.GetString("Cl_one"), null, null);
     this.CloneAction.ShortLabel = Mono.Unix.Catalog.GetString("Clone");
     w1.Add(this.CloneAction, null);
     this.SelectAllAction = new Gtk.Action("SelectAllAction", Mono.Unix.Catalog.GetString("_Select All"), null, null);
     this.SelectAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Select All");
     w1.Add(this.SelectAllAction, "<Control><Mod2>a");
     this.ClearSelectionAction = new Gtk.Action("ClearSelectionAction", Mono.Unix.Catalog.GetString("Clear S_election"), null, null);
     this.ClearSelectionAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear S_election");
     w1.Add(this.ClearSelectionAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "LunarEclipse.View.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Lunar Eclipse");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 800;
     // Container child LunarEclipse.View.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='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/><separator/><menuitem name='CutAction' action='CutAction'/><menuitem name='CopiarAction' action='CopiarAction'/><menuitem name='PasteAction' action='PasteAction'/><menuitem name='CloneAction' action='CloneAction'/><menuitem name='DeleteAction' action='DeleteAction'/><separator/><menuitem name='SelectAllAction' action='SelectAllAction'/><menuitem name='ClearSelectionAction' action='ClearSelectionAction'/></menu><menu name='DrawingAction' action='DrawingAction'><menuitem name='CleanAction' action='CleanAction'/></menu><menu name='FiguresAction' action='FiguresAction'><menu name='OrderAction' action='OrderAction'><menuitem name='BringToFrontAction' action='BringToFrontAction'/><menuitem name='BringForwardsAction' action='BringForwardsAction'/><menuitem name='SendToBackAction' action='SendToBackAction'/><menuitem name='SendBackwarsAction' action='SendBackwarsAction'/></menu><menu name='AlignAction' action='AlignAction'><menuitem name='LeftAction' action='LeftAction'/><menuitem name='HorizontalCenterAction' action='HorizontalCenterAction'/><menuitem name='RightAction' action='RightAction'/><separator/><menuitem name='TopAction' action='TopAction'/><menuitem name='VerticalCenterAction' action='VerticalCenterAction'/><menuitem name='BottomAction' action='BottomAction'/></menu></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='SelectionToolAction' action='SelectionToolAction'/><menuitem name='RectangleToolAction' action='RectangleToolAction'/><menuitem name='SquareToolAction' action='SquareToolAction'/><menuitem name='EllipseToolAction' action='EllipseToolAction'/><menuitem name='CircleToolAction' action='CircleToolAction'/><menuitem name='LineToolAction' action='LineToolAction'/><menuitem name='PolylineToolAction' action='PolylineToolAction'/><menuitem name='PenToolAction' action='PenToolAction'/><menuitem name='PathToolAction' action='PathToolAction'/><menuitem name='TextToolAction' action='TextToolAction'/><menuitem name='ImageToolAction' action='ImageToolAction'/></menu><menu name='AnimationAction' action='AnimationAction'><menuitem name='StopAction' action='StopAction'/><menuitem name='ReproducirAction' action='ReproducirAction'/><menuitem name='RecordAction' action='RecordAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></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.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='NewAction' action='NewAction'/><toolitem name='OpenAction' action='OpenAction'/><toolitem name='SaveAction' action='SaveAction'/><separator/><toolitem name='UndoAction' action='UndoAction'/><toolitem name='RedoAction' action='RedoAction'/><separator/><toolitem name='CutAction' action='CutAction'/><toolitem name='CopiarAction' action='CopiarAction'/><toolitem name='PasteAction' action='PasteAction'/></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.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     this.notebook.TabPos = ((Gtk.PositionType)(3));
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar2'><toolitem name='SelectionToolAction' action='SelectionToolAction'/><toolitem name='SquareToolAction' action='SquareToolAction'/><toolitem name='RectangleToolAction' action='RectangleToolAction'/><toolitem name='CircleToolAction' action='CircleToolAction'/><toolitem name='EllipseToolAction' action='EllipseToolAction'/><toolitem name='LineToolAction' action='LineToolAction'/><toolitem name='PolylineToolAction' action='PolylineToolAction'/><toolitem name='PathToolAction' action='PathToolAction'/><toolitem name='PenToolAction' action='PenToolAction'/><toolitem name='TextToolAction' action='TextToolAction'/><separator/><toolitem name='CleanAction' action='CleanAction'/><toolitem name='debug1' action='debug1'/><toolitem name='debug2' action='debug2'/></toolbar></ui>");
     this.toolbar2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2")));
     this.toolbar2.Name = "toolbar2";
     this.toolbar2.Orientation = ((Gtk.Orientation)(1));
     this.toolbar2.ShowArrow = false;
     this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.hbox2.Add(this.toolbar2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.toolbar2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 842;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(0));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(0));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w5 = new Gtk.Viewport();
     w5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.moonlightwidget = new LunarEclipse.View.MoonlightWidget();
     this.moonlightwidget.Events = ((Gdk.EventMask)(256));
     this.moonlightwidget.Name = "moonlightwidget";
     this.moonlightwidget.Height = 800;
     this.moonlightwidget.Width = 800;
     w5.Add(this.moonlightwidget);
     this.scrolledwindow1.Add(w5);
     this.vbox3.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1]));
     w8.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Zoom:");
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w9.Position = 0;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.zoomScale = new Gtk.HScale(null);
     this.zoomScale.CanFocus = true;
     this.zoomScale.Name = "zoomScale";
     this.zoomScale.Adjustment.Upper = 500;
     this.zoomScale.Adjustment.PageIncrement = 10;
     this.zoomScale.Adjustment.StepIncrement = 1;
     this.zoomScale.Adjustment.Value = 100;
     this.zoomScale.DrawValue = true;
     this.zoomScale.Digits = 0;
     this.zoomScale.ValuePos = ((Gtk.PositionType)(2));
     this.hbox3.Add(this.zoomScale);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.zoomScale]));
     w10.Position = 1;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     this.hpaned1.Add(this.vbox3);
     Gtk.Paned.PanedChild w12 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox3]));
     w12.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.propertypanel = new LunarEclipse.View.PropertyPanel();
     this.propertypanel.Events = ((Gdk.EventMask)(256));
     this.propertypanel.Name = "propertypanel";
     this.hpaned1.Add(this.propertypanel);
     Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.propertypanel]));
     w13.Resize = false;
     this.vbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1]));
     w14.Position = 0;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w15.Position = 1;
     this.notebook.Add(this.hbox2);
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Design");
     this.notebook.SetTabLabel(this.hbox2, this.label2);
     this.label2.ShowAll();
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w17 = new Gtk.Viewport();
     w17.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.xaml_textview = new Gtk.TextView();
     this.xaml_textview.CanFocus = true;
     this.xaml_textview.Name = "xaml_textview";
     w17.Add(this.xaml_textview);
     this.scrolledwindow2.Add(w17);
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w20.Position = 1;
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Xaml Code");
     this.notebook.SetTabLabel(this.scrolledwindow2, this.label1);
     this.label1.ShowAll();
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w21.Position = 2;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultHeight = 729;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
     this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
     this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated);
     this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
     this.CutAction.Activated += new System.EventHandler(this.OnCutActionActivated);
     this.CopiarAction.Activated += new System.EventHandler(this.OnCopyActionActivated);
     this.PasteAction.Activated += new System.EventHandler(this.OnPasteActionActivated);
     this.DeleteAction.Activated += new System.EventHandler(this.OnDeleteActionActivated);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.SelectionToolAction.Activated += new System.EventHandler(this.OnSelectionToolActionActivated);
     this.RectangleToolAction.Activated += new System.EventHandler(this.OnRectangleToolActionActivated);
     this.SquareToolAction.Activated += new System.EventHandler(this.OnSquareToolActionActivated);
     this.EllipseToolAction.Activated += new System.EventHandler(this.OnEllipseToolActionActivated);
     this.CircleToolAction.Activated += new System.EventHandler(this.OnCircleToolActionActivated);
     this.PathToolAction.Activated += new System.EventHandler(this.OnPathToolActionActivated);
     this.TextToolAction.Activated += new System.EventHandler(this.OnTextToolActionActivated);
     this.ImageToolAction.Activated += new System.EventHandler(this.OnImageToolActionActivated);
     this.LineToolAction.Activated += new System.EventHandler(this.OnLineToolActionActivated);
     this.CleanAction.Activated += new System.EventHandler(this.OnLimpiarActionActivated);
     this.PolylineToolAction.Activated += new System.EventHandler(this.OnPolylineToolActionActivated);
     this.PenToolAction.Activated += new System.EventHandler(this.OnPenToolActionActivated);
     this.debug1.Activated += new System.EventHandler(this.OnDebug1Activated);
     this.BringToFrontAction.Activated += new System.EventHandler(this.OnBringToFrontActionActivated);
     this.SendToBackAction.Activated += new System.EventHandler(this.OnSendToBackActionActivated);
     this.BringForwardsAction.Activated += new System.EventHandler(this.OnBringForwardsActionActivated);
     this.SendBackwarsAction.Activated += new System.EventHandler(this.OnSendBackwarsActionActivated);
     this.LeftAction.Activated += new System.EventHandler(this.OnLeftActionActivated);
     this.HorizontalCenterAction.Activated += new System.EventHandler(this.OnHorizontalCenterActionActivated);
     this.RightAction.Activated += new System.EventHandler(this.OnRightActionActivated);
     this.TopAction.Activated += new System.EventHandler(this.OnTopActionActivated);
     this.VerticalCenterAction.Activated += new System.EventHandler(this.OnVerticalCenterActionActivated);
     this.BottomAction.Activated += new System.EventHandler(this.OnBottomActionActivated);
     this.debug2.Activated += new System.EventHandler(this.OnDebug2Activated);
     this.CloneAction.Activated += new System.EventHandler(this.OnCloneActionActivated);
     this.SelectAllAction.Activated += new System.EventHandler(this.OnSelectAllActionActivated);
     this.ClearSelectionAction.Activated += new System.EventHandler(this.OnClearSelectionActionActivated);
     this.notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebookSwitchPage);
     this.zoomScale.ValueChanged += new System.EventHandler(this.OnZoomScaleValueChanged);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize();
     // Widget CBinding.CodeGenerationPanel
     Stetic.BinContainer.Attach(this);
     this.Name = "CBinding.CodeGenerationPanel";
     // Container child CBinding.CodeGenerationPanel.Gtk.Container+ContainerChild
     this.notebook1 = new Gtk.Notebook();
     this.notebook1.CanFocus = true;
     this.notebook1.Name = "notebook1";
     this.notebook1.CurrentPage = 0;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox6 = new Gtk.VBox();
     this.vbox6.Name = "vbox6";
     this.vbox6.Spacing = 3;
     // Container child vbox6.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(5));
     this.table1.ColumnSpacing = ((uint)(5));
     this.table1.BorderWidth = ((uint)(2));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xpad = 10;
     this.label4.Xalign = 0F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Warning Level:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w1.XOptions = ((Gtk.AttachOptions)(4));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xpad = 10;
     this.label5.Xalign = 0F;
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Optimization Level:");
     this.table1.Add(this.label5);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
     w2.TopAttach = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.Xpad = 10;
     this.label6.Xalign = 0F;
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Target:");
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w3.TopAttach = ((uint)(2));
     w3.BottomAttach = ((uint)(3));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.optimizationSpinButton = new Gtk.SpinButton(0, 3, 1);
     this.optimizationSpinButton.CanFocus = true;
     this.optimizationSpinButton.Name = "optimizationSpinButton";
     this.optimizationSpinButton.Adjustment.PageIncrement = 10;
     this.optimizationSpinButton.ClimbRate = 1;
     this.optimizationSpinButton.Numeric = true;
     this.table1.Add(this.optimizationSpinButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.optimizationSpinButton]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.LeftAttach = ((uint)(1));
     w4.RightAttach = ((uint)(2));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.targetComboBox = Gtk.ComboBox.NewText();
     this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Executable"));
     this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Static Library"));
     this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Shared Object"));
     this.targetComboBox.Name = "targetComboBox";
     this.table1.Add(this.targetComboBox);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.targetComboBox]));
     w5.TopAttach = ((uint)(2));
     w5.BottomAttach = ((uint)(3));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.noWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("no warnings"));
     this.noWarningRadio.CanFocus = true;
     this.noWarningRadio.Name = "noWarningRadio";
     this.noWarningRadio.Active = true;
     this.noWarningRadio.DrawIndicator = true;
     this.noWarningRadio.UseUnderline = true;
     this.noWarningRadio.Group = new GLib.SList(System.IntPtr.Zero);
     this.vbox1.Add(this.noWarningRadio);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.noWarningRadio]));
     w6.Position = 0;
     w6.Expand = false;
     w6.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.normalWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("normal"));
     this.normalWarningRadio.CanFocus = true;
     this.normalWarningRadio.Name = "normalWarningRadio";
     this.normalWarningRadio.DrawIndicator = true;
     this.normalWarningRadio.UseUnderline = true;
     this.normalWarningRadio.Group = this.noWarningRadio.Group;
     this.vbox1.Add(this.normalWarningRadio);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.normalWarningRadio]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.allWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("all"));
     this.allWarningRadio.CanFocus = true;
     this.allWarningRadio.Name = "allWarningRadio";
     this.allWarningRadio.DrawIndicator = true;
     this.allWarningRadio.UseUnderline = true;
     this.allWarningRadio.Group = this.noWarningRadio.Group;
     this.vbox1.Add(this.allWarningRadio);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.allWarningRadio]));
     w8.Position = 2;
     w8.Expand = false;
     w8.Fill = false;
     this.table1.Add(this.vbox1);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.vbox1]));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox6.Add(this.table1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox6[this.table1]));
     w10.Position = 0;
     w10.Expand = false;
     w10.Fill = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label12 = new Gtk.Label();
     this.label12.Name = "label12";
     this.label12.Xpad = 13;
     this.label12.Xalign = 0F;
     this.label12.LabelProp = Mono.Unix.Catalog.GetString("Define Symbols:");
     this.hbox1.Add(this.label12);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.label12]));
     w11.Position = 0;
     w11.Expand = false;
     w11.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.defineSymbolsTextEntry = new Gtk.Entry();
     Gtk.Tooltips w12 = new Gtk.Tooltips();
     w12.SetTip(this.defineSymbolsTextEntry, "A space seperated list of symbols to define.", "A space seperated list of symbols to define.");
     this.defineSymbolsTextEntry.CanFocus = true;
     this.defineSymbolsTextEntry.Name = "defineSymbolsTextEntry";
     this.defineSymbolsTextEntry.IsEditable = true;
     this.defineSymbolsTextEntry.InvisibleChar = '●';
     this.hbox1.Add(this.defineSymbolsTextEntry);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.defineSymbolsTextEntry]));
     w13.Position = 1;
     w13.Padding = ((uint)(14));
     this.vbox6.Add(this.hbox1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox1]));
     w14.Position = 1;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.frame2 = new Gtk.Frame();
     this.frame2.Name = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     this.frame2.LabelXalign = 0F;
     this.frame2.LabelYalign = 0F;
     // Container child frame2.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.table5 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table5.Name = "table5";
     this.table5.RowSpacing = ((uint)(6));
     this.table5.ColumnSpacing = ((uint)(9));
     this.table5.BorderWidth = ((uint)(6));
     // Container child table5.Gtk.Table+TableChild
     this.label11 = new Gtk.Label();
     this.label11.Name = "label11";
     this.label11.Xalign = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Extra Linker Options");
     this.table5.Add(this.label11);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table5[this.label11]));
     w15.LeftAttach = ((uint)(1));
     w15.RightAttach = ((uint)(2));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table5.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Extra Compiler Options");
     this.table5.Add(this.label7);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table5[this.label7]));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table5.Gtk.Table+TableChild
     this.scrolledwindow4 = new Gtk.ScrolledWindow();
     this.scrolledwindow4.CanFocus = true;
     this.scrolledwindow4.Name = "scrolledwindow4";
     this.scrolledwindow4.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow4.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow4.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow4.Gtk.Container+ContainerChild
     this.extraCompilerTextView = new Gtk.TextView();
     w12.SetTip(this.extraCompilerTextView, "A newline seperated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--cflags\n\tcairo`", "A newline seperated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--cflags\n\tcairo`");
     this.extraCompilerTextView.CanFocus = true;
     this.extraCompilerTextView.Name = "extraCompilerTextView";
     this.scrolledwindow4.Add(this.extraCompilerTextView);
     this.table5.Add(this.scrolledwindow4);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table5[this.scrolledwindow4]));
     w18.TopAttach = ((uint)(1));
     w18.BottomAttach = ((uint)(2));
     // Container child table5.Gtk.Table+TableChild
     this.scrolledwindow5 = new Gtk.ScrolledWindow();
     this.scrolledwindow5.CanFocus = true;
     this.scrolledwindow5.Name = "scrolledwindow5";
     this.scrolledwindow5.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow5.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow5.Gtk.Container+ContainerChild
     this.extraLinkerTextView = new Gtk.TextView();
     w12.SetTip(this.extraLinkerTextView, "A newline seperated list of extra options to send to the linker.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--libs\n\tcairo`", "A newline seperated list of extra options to send to the linker.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--libs\n\tcairo`");
     this.extraLinkerTextView.CanFocus = true;
     this.extraLinkerTextView.Name = "extraLinkerTextView";
     this.scrolledwindow5.Add(this.extraLinkerTextView);
     this.table5.Add(this.scrolledwindow5);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table5[this.scrolledwindow5]));
     w20.TopAttach = ((uint)(1));
     w20.BottomAttach = ((uint)(2));
     w20.LeftAttach = ((uint)(1));
     w20.RightAttach = ((uint)(2));
     this.GtkAlignment.Add(this.table5);
     this.frame2.Add(this.GtkAlignment);
     this.GtkLabel12 = new Gtk.Label();
     this.GtkLabel12.Name = "GtkLabel12";
     this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>Extra Options</b>");
     this.GtkLabel12.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel12;
     this.vbox6.Add(this.frame2);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame2]));
     w23.Position = 2;
     this.notebook1.Add(this.vbox6);
     Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox6]));
     w24.TabExpand = false;
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Code Generation");
     this.notebook1.SetTabLabel(this.vbox6, this.label1);
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(10));
     this.table2.ColumnSpacing = ((uint)(10));
     this.table2.BorderWidth = ((uint)(3));
     // Container child table2.Gtk.Table+TableChild
     this.addLibButton = new Gtk.Button();
     this.addLibButton.Sensitive = false;
     this.addLibButton.CanFocus = true;
     this.addLibButton.Name = "addLibButton";
     this.addLibButton.UseUnderline = true;
     this.addLibButton.Label = Mono.Unix.Catalog.GetString("Add");
     this.table2.Add(this.addLibButton);
     Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table2[this.addLibButton]));
     w25.LeftAttach = ((uint)(2));
     w25.RightAttach = ((uint)(3));
     w25.XOptions = ((Gtk.AttachOptions)(4));
     w25.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Library:");
     this.table2.Add(this.label8);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table2[this.label8]));
     w26.XOptions = ((Gtk.AttachOptions)(4));
     w26.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.libAddEntry = new Gtk.Entry();
     this.libAddEntry.CanFocus = true;
     this.libAddEntry.Name = "libAddEntry";
     this.libAddEntry.IsEditable = true;
     this.libAddEntry.InvisibleChar = '●';
     this.table2.Add(this.libAddEntry);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table2[this.libAddEntry]));
     w27.LeftAttach = ((uint)(1));
     w27.RightAttach = ((uint)(2));
     w27.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.libTreeView = new Gtk.TreeView();
     this.libTreeView.CanFocus = true;
     this.libTreeView.Name = "libTreeView";
     this.libTreeView.HeadersClickable = true;
     this.scrolledwindow1.Add(this.libTreeView);
     this.table2.Add(this.scrolledwindow1);
     Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow1]));
     w29.TopAttach = ((uint)(1));
     w29.BottomAttach = ((uint)(2));
     w29.LeftAttach = ((uint)(1));
     w29.RightAttach = ((uint)(2));
     // Container child table2.Gtk.Table+TableChild
     this.vbox4 = new Gtk.VBox();
     this.vbox4.Name = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.browseButton = new Gtk.Button();
     this.browseButton.CanFocus = true;
     this.browseButton.Name = "browseButton";
     this.browseButton.UseUnderline = true;
     this.browseButton.Label = Mono.Unix.Catalog.GetString("Browse...");
     this.vbox4.Add(this.browseButton);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.browseButton]));
     w30.Position = 0;
     w30.Expand = false;
     w30.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.removeLibButton = new Gtk.Button();
     this.removeLibButton.Sensitive = false;
     this.removeLibButton.CanFocus = true;
     this.removeLibButton.Name = "removeLibButton";
     this.removeLibButton.UseUnderline = true;
     this.removeLibButton.Label = Mono.Unix.Catalog.GetString("Remove");
     this.vbox4.Add(this.removeLibButton);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeLibButton]));
     w31.Position = 1;
     w31.Expand = false;
     w31.Fill = false;
     this.table2.Add(this.vbox4);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table2[this.vbox4]));
     w32.TopAttach = ((uint)(1));
     w32.BottomAttach = ((uint)(2));
     w32.LeftAttach = ((uint)(2));
     w32.RightAttach = ((uint)(3));
     w32.XOptions = ((Gtk.AttachOptions)(4));
     this.notebook1.Add(this.table2);
     Gtk.Notebook.NotebookChild w33 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.table2]));
     w33.Position = 1;
     w33.TabExpand = false;
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Libraries");
     this.notebook1.SetTabLabel(this.table2, this.label2);
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.vbox7 = new Gtk.VBox();
     this.vbox7.Name = "vbox7";
     this.vbox7.Spacing = 6;
     this.vbox7.BorderWidth = ((uint)(3));
     // Container child vbox7.Gtk.Box+BoxChild
     this.table4 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table4.Name = "table4";
     this.table4.RowSpacing = ((uint)(10));
     this.table4.ColumnSpacing = ((uint)(10));
     // Container child table4.Gtk.Table+TableChild
     this.label10 = new Gtk.Label();
     this.label10.Name = "label10";
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Library:");
     this.table4.Add(this.label10);
     Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.label10]));
     w34.XOptions = ((Gtk.AttachOptions)(4));
     w34.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.libPathAddButton = new Gtk.Button();
     this.libPathAddButton.Sensitive = false;
     this.libPathAddButton.CanFocus = true;
     this.libPathAddButton.Name = "libPathAddButton";
     this.libPathAddButton.UseUnderline = true;
     this.libPathAddButton.Label = Mono.Unix.Catalog.GetString("Add");
     this.table4.Add(this.libPathAddButton);
     Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table4[this.libPathAddButton]));
     w35.LeftAttach = ((uint)(2));
     w35.RightAttach = ((uint)(3));
     w35.XOptions = ((Gtk.AttachOptions)(4));
     w35.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.libPathEntry = new Gtk.Entry();
     this.libPathEntry.CanFocus = true;
     this.libPathEntry.Name = "libPathEntry";
     this.libPathEntry.IsEditable = true;
     this.libPathEntry.InvisibleChar = '●';
     this.table4.Add(this.libPathEntry);
     Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table4[this.libPathEntry]));
     w36.LeftAttach = ((uint)(1));
     w36.RightAttach = ((uint)(2));
     w36.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.scrolledwindow3 = new Gtk.ScrolledWindow();
     this.scrolledwindow3.CanFocus = true;
     this.scrolledwindow3.Name = "scrolledwindow3";
     this.scrolledwindow3.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow3.Gtk.Container+ContainerChild
     this.libPathTreeView = new Gtk.TreeView();
     this.libPathTreeView.CanFocus = true;
     this.libPathTreeView.Name = "libPathTreeView";
     this.libPathTreeView.HeadersClickable = true;
     this.scrolledwindow3.Add(this.libPathTreeView);
     this.table4.Add(this.scrolledwindow3);
     Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table4[this.scrolledwindow3]));
     w38.TopAttach = ((uint)(1));
     w38.BottomAttach = ((uint)(2));
     w38.LeftAttach = ((uint)(1));
     w38.RightAttach = ((uint)(2));
     // Container child table4.Gtk.Table+TableChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.libPathBrowseButton = new Gtk.Button();
     this.libPathBrowseButton.CanFocus = true;
     this.libPathBrowseButton.Name = "libPathBrowseButton";
     this.libPathBrowseButton.UseUnderline = true;
     this.libPathBrowseButton.Label = Mono.Unix.Catalog.GetString("Browse...");
     this.vbox3.Add(this.libPathBrowseButton);
     Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.vbox3[this.libPathBrowseButton]));
     w39.Position = 0;
     w39.Expand = false;
     w39.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.libPathRemoveButton = new Gtk.Button();
     this.libPathRemoveButton.Sensitive = false;
     this.libPathRemoveButton.CanFocus = true;
     this.libPathRemoveButton.Name = "libPathRemoveButton";
     this.libPathRemoveButton.UseUnderline = true;
     this.libPathRemoveButton.Label = Mono.Unix.Catalog.GetString("Remove");
     this.vbox3.Add(this.libPathRemoveButton);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox3[this.libPathRemoveButton]));
     w40.Position = 1;
     w40.Expand = false;
     w40.Fill = false;
     this.table4.Add(this.vbox3);
     Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table4[this.vbox3]));
     w41.TopAttach = ((uint)(1));
     w41.BottomAttach = ((uint)(2));
     w41.LeftAttach = ((uint)(2));
     w41.RightAttach = ((uint)(3));
     w41.XOptions = ((Gtk.AttachOptions)(4));
     this.vbox7.Add(this.table4);
     Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox7[this.table4]));
     w42.Position = 0;
     // Container child vbox7.Gtk.Box+BoxChild
     this.table3 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table3.Name = "table3";
     this.table3.RowSpacing = ((uint)(10));
     this.table3.ColumnSpacing = ((uint)(10));
     // Container child table3.Gtk.Table+TableChild
     this.includePathAddButton = new Gtk.Button();
     this.includePathAddButton.Sensitive = false;
     this.includePathAddButton.CanFocus = true;
     this.includePathAddButton.Name = "includePathAddButton";
     this.includePathAddButton.UseUnderline = true;
     this.includePathAddButton.Label = Mono.Unix.Catalog.GetString("Add");
     this.table3.Add(this.includePathAddButton);
     Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table3[this.includePathAddButton]));
     w43.LeftAttach = ((uint)(2));
     w43.RightAttach = ((uint)(3));
     w43.XOptions = ((Gtk.AttachOptions)(4));
     w43.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.includePathEntry = new Gtk.Entry();
     this.includePathEntry.CanFocus = true;
     this.includePathEntry.Name = "includePathEntry";
     this.includePathEntry.IsEditable = true;
     this.includePathEntry.InvisibleChar = '●';
     this.table3.Add(this.includePathEntry);
     Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table3[this.includePathEntry]));
     w44.LeftAttach = ((uint)(1));
     w44.RightAttach = ((uint)(2));
     w44.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Include:");
     this.table3.Add(this.label9);
     Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table3[this.label9]));
     w45.XOptions = ((Gtk.AttachOptions)(4));
     w45.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.includePathTreeView = new Gtk.TreeView();
     this.includePathTreeView.CanFocus = true;
     this.includePathTreeView.Name = "includePathTreeView";
     this.includePathTreeView.HeadersClickable = true;
     this.scrolledwindow2.Add(this.includePathTreeView);
     this.table3.Add(this.scrolledwindow2);
     Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table3[this.scrolledwindow2]));
     w47.TopAttach = ((uint)(1));
     w47.BottomAttach = ((uint)(2));
     w47.LeftAttach = ((uint)(1));
     w47.RightAttach = ((uint)(2));
     // Container child table3.Gtk.Table+TableChild
     this.vbox5 = new Gtk.VBox();
     this.vbox5.Name = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.includePathBrowseButton = new Gtk.Button();
     this.includePathBrowseButton.CanFocus = true;
     this.includePathBrowseButton.Name = "includePathBrowseButton";
     this.includePathBrowseButton.UseUnderline = true;
     this.includePathBrowseButton.Label = Mono.Unix.Catalog.GetString("Browse...");
     this.vbox5.Add(this.includePathBrowseButton);
     Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox5[this.includePathBrowseButton]));
     w48.Position = 0;
     w48.Expand = false;
     w48.Fill = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.includePathRemoveButton = new Gtk.Button();
     this.includePathRemoveButton.Sensitive = false;
     this.includePathRemoveButton.CanFocus = true;
     this.includePathRemoveButton.Name = "includePathRemoveButton";
     this.includePathRemoveButton.UseUnderline = true;
     this.includePathRemoveButton.Label = Mono.Unix.Catalog.GetString("Remove");
     this.vbox5.Add(this.includePathRemoveButton);
     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox5[this.includePathRemoveButton]));
     w49.Position = 1;
     w49.Expand = false;
     w49.Fill = false;
     this.table3.Add(this.vbox5);
     Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table3[this.vbox5]));
     w50.TopAttach = ((uint)(1));
     w50.BottomAttach = ((uint)(2));
     w50.LeftAttach = ((uint)(2));
     w50.RightAttach = ((uint)(3));
     w50.XOptions = ((Gtk.AttachOptions)(4));
     this.vbox7.Add(this.table3);
     Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.vbox7[this.table3]));
     w51.Position = 1;
     this.notebook1.Add(this.vbox7);
     Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox7]));
     w52.Position = 2;
     w52.TabExpand = false;
     // Notebook tab
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Paths");
     this.notebook1.SetTabLabel(this.vbox7, this.label3);
     this.Add(this.notebook1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.browseButton.Clicked += new System.EventHandler(this.OnBrowseButtonClick);
     this.removeLibButton.Clicked += new System.EventHandler(this.OnRemoveLibButtonClicked);
     this.removeLibButton.Clicked += new System.EventHandler(this.OnLibRemoved);
     this.libTreeView.CursorChanged += new System.EventHandler(this.OnLibTreeViewCursorChanged);
     this.libAddEntry.Changed += new System.EventHandler(this.OnLibAddEntryChanged);
     this.libAddEntry.Activated += new System.EventHandler(this.OnLibAddEntryActivated);
     this.addLibButton.Clicked += new System.EventHandler(this.OnLibAdded);
     this.libPathBrowseButton.Clicked += new System.EventHandler(this.OnLibPathBrowseButtonClick);
     this.libPathRemoveButton.Clicked += new System.EventHandler(this.OnLibPathRemoveButtonClicked);
     this.libPathRemoveButton.Clicked += new System.EventHandler(this.OnLibPathRemoved);
     this.libPathTreeView.CursorChanged += new System.EventHandler(this.OnLibPathTreeViewCursorChanged);
     this.libPathEntry.Changed += new System.EventHandler(this.OnLibPathEntryChanged);
     this.libPathEntry.Activated += new System.EventHandler(this.OnLibPathEntryActivated);
     this.libPathAddButton.Clicked += new System.EventHandler(this.OnLibPathAdded);
     this.includePathBrowseButton.Clicked += new System.EventHandler(this.OnIncludePathBrowseButtonClick);
     this.includePathRemoveButton.Clicked += new System.EventHandler(this.OnIncludePathRemoveButtonClicked);
     this.includePathRemoveButton.Clicked += new System.EventHandler(this.OnIncludePathRemoved);
     this.includePathTreeView.CursorChanged += new System.EventHandler(this.OnIncludePathTreeViewCursorChanged);
     this.includePathEntry.Changed += new System.EventHandler(this.OnIncludePathEntryChanged);
     this.includePathEntry.Activated += new System.EventHandler(this.OnIncludePathEntryActivated);
     this.includePathAddButton.Clicked += new System.EventHandler(this.OnIncludePathAdded);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog
     this.Name = "MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog";
     this.TypeHint = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     this.SkipTaskbarHint = true;
     this.HasSeparator = false;
     // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.tableGeneral = new Gtk.Table(((uint)(7)), ((uint)(2)), false);
     this.tableGeneral.Name = "tableGeneral";
     this.tableGeneral.RowSpacing = ((uint)(6));
     this.tableGeneral.ColumnSpacing = ((uint)(6));
     this.tableGeneral.BorderWidth = ((uint)(6));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.comboProvider = new Gtk.ComboBox();
     this.comboProvider.Name = "comboProvider";
     this.tableGeneral.Add(this.comboProvider);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.tableGeneral[this.comboProvider]));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryName = new Gtk.Entry();
     this.entryName.CanDefault = true;
     this.entryName.CanFocus = true;
     this.entryName.Name = "entryName";
     this.entryName.IsEditable = true;
     this.entryName.ActivatesDefault = true;
     this.entryName.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryName);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryName]));
     w3.TopAttach = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.LeftAttach = ((uint)(1));
     w3.RightAttach = ((uint)(2));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryServer = new Gtk.Entry();
     this.entryServer.CanFocus = true;
     this.entryServer.Name = "entryServer";
     this.entryServer.IsEditable = true;
     this.entryServer.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryServer);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryServer]));
     w4.TopAttach = ((uint)(2));
     w4.BottomAttach = ((uint)(3));
     w4.LeftAttach = ((uint)(1));
     w4.RightAttach = ((uint)(2));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryUsername = new Gtk.Entry();
     this.entryUsername.CanFocus = true;
     this.entryUsername.Name = "entryUsername";
     this.entryUsername.IsEditable = true;
     this.entryUsername.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryUsername);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryUsername]));
     w5.TopAttach = ((uint)(4));
     w5.BottomAttach = ((uint)(5));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.hboxDatabase = new Gtk.HBox();
     this.hboxDatabase.Name = "hboxDatabase";
     this.hboxDatabase.Spacing = 6;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.comboDatabase = Gtk.ComboBoxEntry.NewText();
     this.comboDatabase.Name = "comboDatabase";
     this.hboxDatabase.Add(this.comboDatabase);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.comboDatabase]));
     w6.Position = 0;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.buttonRefresh = new Gtk.Button();
     this.buttonRefresh.CanFocus = true;
     this.buttonRefresh.Name = "buttonRefresh";
     this.buttonRefresh.UseStock = true;
     this.buttonRefresh.UseUnderline = true;
     this.buttonRefresh.Label = "gtk-refresh";
     this.hboxDatabase.Add(this.buttonRefresh);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonRefresh]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.buttonOpen = new Gtk.Button();
     this.buttonOpen.CanFocus = true;
     this.buttonOpen.Name = "buttonOpen";
     this.buttonOpen.UseStock = true;
     this.buttonOpen.UseUnderline = true;
     this.buttonOpen.Label = "gtk-open";
     this.hboxDatabase.Add(this.buttonOpen);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonOpen]));
     w8.Position = 2;
     w8.Expand = false;
     w8.Fill = false;
     this.tableGeneral.Add(this.hboxDatabase);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxDatabase]));
     w9.TopAttach = ((uint)(6));
     w9.BottomAttach = ((uint)(7));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.hboxPassword = new Gtk.HBox();
     this.hboxPassword.Name = "hboxPassword";
     this.hboxPassword.Spacing = 6;
     // Container child hboxPassword.Gtk.Box+BoxChild
     this.entryPassword = new Gtk.Entry();
     this.entryPassword.CanFocus = true;
     this.entryPassword.Name = "entryPassword";
     this.entryPassword.IsEditable = true;
     this.entryPassword.Visibility = false;
     this.entryPassword.InvisibleChar = '●';
     this.hboxPassword.Add(this.entryPassword);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.entryPassword]));
     w10.Position = 0;
     // Container child hboxPassword.Gtk.Box+BoxChild
     this.checkSavePassword = new Gtk.CheckButton();
     this.checkSavePassword.CanFocus = true;
     this.checkSavePassword.Name = "checkSavePassword";
     this.checkSavePassword.Label = Mono.Unix.Catalog.GetString("Save Password");
     this.checkSavePassword.Active = true;
     this.checkSavePassword.DrawIndicator = true;
     this.checkSavePassword.UseUnderline = true;
     this.hboxPassword.Add(this.checkSavePassword);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.checkSavePassword]));
     w11.Position = 1;
     w11.Expand = false;
     this.tableGeneral.Add(this.hboxPassword);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxPassword]));
     w12.TopAttach = ((uint)(5));
     w12.BottomAttach = ((uint)(6));
     w12.LeftAttach = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Type");
     this.tableGeneral.Add(this.label3);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label3]));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 0F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Name");
     this.tableGeneral.Add(this.label4);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label4]));
     w14.TopAttach = ((uint)(1));
     w14.BottomAttach = ((uint)(2));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xalign = 0F;
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Server");
     this.tableGeneral.Add(this.label5);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label5]));
     w15.TopAttach = ((uint)(2));
     w15.BottomAttach = ((uint)(3));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.Xalign = 0F;
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.tableGeneral.Add(this.label6);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label6]));
     w16.TopAttach = ((uint)(3));
     w16.BottomAttach = ((uint)(4));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Username");
     this.tableGeneral.Add(this.label7);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label7]));
     w17.TopAttach = ((uint)(4));
     w17.BottomAttach = ((uint)(5));
     w17.XOptions = ((Gtk.AttachOptions)(4));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.Xalign = 0F;
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.tableGeneral.Add(this.label8);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label8]));
     w18.TopAttach = ((uint)(5));
     w18.BottomAttach = ((uint)(6));
     w18.XOptions = ((Gtk.AttachOptions)(4));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.Xalign = 0F;
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Database");
     this.tableGeneral.Add(this.label9);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label9]));
     w19.TopAttach = ((uint)(6));
     w19.BottomAttach = ((uint)(7));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.spinPort = new Gtk.SpinButton(1, 65535, 1);
     this.spinPort.CanFocus = true;
     this.spinPort.Name = "spinPort";
     this.spinPort.Adjustment.PageIncrement = 10;
     this.spinPort.ClimbRate = 1;
     this.spinPort.Numeric = true;
     this.spinPort.Value = 1;
     this.tableGeneral.Add(this.spinPort);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.tableGeneral[this.spinPort]));
     w20.TopAttach = ((uint)(3));
     w20.BottomAttach = ((uint)(4));
     w20.LeftAttach = ((uint)(1));
     w20.RightAttach = ((uint)(2));
     w20.XOptions = ((Gtk.AttachOptions)(4));
     w20.YOptions = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.tableGeneral);
     Gtk.Notebook.NotebookChild w21 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableGeneral]));
     w21.TabExpand = false;
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("General");
     this.notebook.SetTabLabel(this.tableGeneral, this.label1);
     this.label1.ShowAll();
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.tableAdvanced = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
     this.tableAdvanced.Name = "tableAdvanced";
     this.tableAdvanced.RowSpacing = ((uint)(6));
     this.tableAdvanced.ColumnSpacing = ((uint)(6));
     this.tableAdvanced.BorderWidth = ((uint)(6));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.checkCustom = new Gtk.CheckButton();
     this.checkCustom.CanFocus = true;
     this.checkCustom.Name = "checkCustom";
     this.checkCustom.Label = Mono.Unix.Catalog.GetString("Use custom connection string");
     this.checkCustom.DrawIndicator = true;
     this.checkCustom.UseUnderline = true;
     this.tableAdvanced.Add(this.checkCustom);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.checkCustom]));
     w22.TopAttach = ((uint)(2));
     w22.BottomAttach = ((uint)(3));
     w22.RightAttach = ((uint)(2));
     w22.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.label10 = new Gtk.Label();
     this.label10.Name = "label10";
     this.label10.Xalign = 0F;
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Min Pool Size");
     this.tableAdvanced.Add(this.label10);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label10]));
     w23.XOptions = ((Gtk.AttachOptions)(4));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.label11 = new Gtk.Label();
     this.label11.Name = "label11";
     this.label11.Xalign = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Max Pool Size");
     this.tableAdvanced.Add(this.label11);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label11]));
     w24.TopAttach = ((uint)(1));
     w24.BottomAttach = ((uint)(2));
     w24.XOptions = ((Gtk.AttachOptions)(4));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.scrolledwindow = new Gtk.ScrolledWindow();
     this.scrolledwindow.Sensitive = false;
     this.scrolledwindow.CanFocus = true;
     this.scrolledwindow.Name = "scrolledwindow";
     this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow.Gtk.Container+ContainerChild
     this.textConnectionString = new Gtk.TextView();
     this.textConnectionString.CanFocus = true;
     this.textConnectionString.Name = "textConnectionString";
     this.scrolledwindow.Add(this.textConnectionString);
     this.tableAdvanced.Add(this.scrolledwindow);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.scrolledwindow]));
     w26.TopAttach = ((uint)(3));
     w26.BottomAttach = ((uint)(4));
     w26.RightAttach = ((uint)(2));
     w26.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.spinMaxPoolSize = new Gtk.SpinButton(1, 100, 1);
     this.spinMaxPoolSize.CanFocus = true;
     this.spinMaxPoolSize.Name = "spinMaxPoolSize";
     this.spinMaxPoolSize.Adjustment.PageIncrement = 10;
     this.spinMaxPoolSize.ClimbRate = 1;
     this.spinMaxPoolSize.Numeric = true;
     this.spinMaxPoolSize.Value = 5;
     this.tableAdvanced.Add(this.spinMaxPoolSize);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMaxPoolSize]));
     w27.TopAttach = ((uint)(1));
     w27.BottomAttach = ((uint)(2));
     w27.LeftAttach = ((uint)(1));
     w27.RightAttach = ((uint)(2));
     w27.XOptions = ((Gtk.AttachOptions)(4));
     w27.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.spinMinPoolSize = new Gtk.SpinButton(1, 100, 1);
     this.spinMinPoolSize.CanFocus = true;
     this.spinMinPoolSize.Name = "spinMinPoolSize";
     this.spinMinPoolSize.Adjustment.PageIncrement = 10;
     this.spinMinPoolSize.ClimbRate = 1;
     this.spinMinPoolSize.Numeric = true;
     this.spinMinPoolSize.Value = 1;
     this.tableAdvanced.Add(this.spinMinPoolSize);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMinPoolSize]));
     w28.LeftAttach = ((uint)(1));
     w28.RightAttach = ((uint)(2));
     w28.XOptions = ((Gtk.AttachOptions)(4));
     w28.YOptions = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.tableAdvanced);
     Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableAdvanced]));
     w29.Position = 1;
     w29.TabExpand = false;
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Advanced");
     this.notebook.SetTabLabel(this.tableAdvanced, this.label2);
     this.label2.ShowAll();
     w1.Add(this.notebook);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w1[this.notebook]));
     w30.Position = 0;
     w30.Expand = false;
     w30.Fill = false;
     // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.ActionArea
     Gtk.HButtonBox w31 = this.ActionArea;
     w31.Name = "dialog1_ActionArea";
     w31.Spacing = 6;
     w31.BorderWidth = ((uint)(5));
     w31.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 w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonCancel]));
     w32.Expand = false;
     w32.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 w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonOk]));
     w33.Position = 1;
     w33.Expand = false;
     w33.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 606;
     this.DefaultHeight = 351;
     this.entryName.HasDefault = true;
     this.Show();
     this.spinPort.Changed += new System.EventHandler(this.PortChanged);
     this.entryPassword.Changed += new System.EventHandler(this.PasswordChanged);
     this.buttonRefresh.Clicked += new System.EventHandler(this.RefreshClicked);
     this.buttonOpen.Clicked += new System.EventHandler(this.OpenClicked);
     this.entryUsername.Changed += new System.EventHandler(this.UsernameChanged);
     this.entryServer.Changed += new System.EventHandler(this.ServerChanged);
     this.entryName.Changed += new System.EventHandler(this.NameChanged);
     this.comboProvider.Changed += new System.EventHandler(this.ProviderChanged);
     this.spinMinPoolSize.Changed += new System.EventHandler(this.MinPoolSizeChanged);
     this.spinMaxPoolSize.Changed += new System.EventHandler(this.MaxPoolSizeChanged);
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked);
     this.buttonOk.Clicked += new System.EventHandler(this.OnOkClicked);
 }
Beispiel #56
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Bot.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.ConnectAction = new Gtk.Action("ConnectAction", Mono.Unix.Catalog.GetString("Connect"), null, "gtk-connect");
     this.ConnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Connect");
     w1.Add(this.ConnectAction, null);
     this.ResetAction = new Gtk.Action("ResetAction", Mono.Unix.Catalog.GetString("Reset"), null, "gtk-refresh");
     this.ResetAction.ShortLabel = Mono.Unix.Catalog.GetString("Reset");
     w1.Add(this.ResetAction, null);
     this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("Close"), null, "gtk-stop");
     this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect");
     w1.Add(this.CloseAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.QuitAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
     w1.Add(this.EditAction, null);
     this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
     this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w1.Add(this.ViewAction, 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.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction, null);
     this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("Help"), null, "gtk-help");
     this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction1, null);
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Bot.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Kakaroto's Bot");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_smiley-10", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Gravity = ((Gdk.Gravity)(5));
     // Container child Bot.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='ConnectAction' action='ConnectAction'/><menuitem name='ResetAction' action='ResetAction'/><menuitem name='CloseAction' action='CloseAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'/><menu name='ViewAction' action='ViewAction'/><menu name='ToolsAction' action='ToolsAction'/><menu name='HelpAction' action='HelpAction'><menuitem name='HelpAction1' action='HelpAction1'/><menuitem name='AboutAction' action='AboutAction'/></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.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Homogeneous = true;
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Irc. Server");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Channel");
     this.hbox1.Add(this.label2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.hbox1.Add(this.label3);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.label3]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w6.Position = 1;
     w6.Expand = 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.entryServer = new Gtk.Entry();
     this.entryServer.CanFocus = true;
     this.entryServer.Name = "entryServer";
     this.entryServer.Text = Mono.Unix.Catalog.GetString("irc.freenode.net");
     this.entryServer.IsEditable = true;
     this.entryServer.InvisibleChar = '●';
     this.hbox3.Add(this.entryServer);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryServer]));
     w7.Position = 0;
     w7.Expand = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryChannel = new Gtk.Entry();
     this.entryChannel.CanFocus = true;
     this.entryChannel.Name = "entryChannel";
     this.entryChannel.Text = Mono.Unix.Catalog.GetString("#gultij");
     this.entryChannel.IsEditable = true;
     this.entryChannel.InvisibleChar = '●';
     this.hbox3.Add(this.entryChannel);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryChannel]));
     w8.Position = 1;
     w8.Expand = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryPort = new Gtk.Entry();
     this.entryPort.CanFocus = true;
     this.entryPort.Name = "entryPort";
     this.entryPort.Text = Mono.Unix.Catalog.GetString("6667");
     this.entryPort.IsEditable = true;
     this.entryPort.InvisibleChar = '●';
     this.hbox3.Add(this.entryPort);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryPort]));
     w9.Position = 2;
     w9.Expand = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     // Container child button1.Gtk.Container+ContainerChild
     Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w11 = new Gtk.HBox();
     w11.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w12 = new Gtk.Image();
     w12.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-connect", Gtk.IconSize.Menu, 16);
     w11.Add(w12);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w14 = new Gtk.Label();
     w14.LabelProp = Mono.Unix.Catalog.GetString("Connect");
     w14.UseUnderline = true;
     w11.Add(w14);
     w10.Add(w11);
     this.button1.Add(w10);
     this.hbox3.Add(this.button1);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.button1]));
     w18.Position = 3;
     w18.Expand = false;
     w18.Fill = false;
     this.vbox1.Add(this.hbox3);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
     w19.Position = 2;
     w19.Expand = false;
     w19.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hseparator2 = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.vbox1.Add(this.hseparator2);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator2]));
     w20.Position = 3;
     w20.Expand = false;
     w20.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.lblTitle = new Gtk.Label();
     this.lblTitle.Name = "lblTitle";
     this.vbox1.Add(this.lblTitle);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.lblTitle]));
     w21.Position = 4;
     w21.Expand = false;
     w21.Fill = false;
     // Container child vbox1.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.textviewLog = new Gtk.TextView();
     this.textviewLog.CanFocus = true;
     this.textviewLog.Name = "textviewLog";
     this.GtkScrolledWindow1.Add(this.textviewLog);
     this.vbox1.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow1]));
     w23.Position = 5;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.vbox1.Add(this.label5);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox1[this.label5]));
     w24.Position = 6;
     w24.Expand = false;
     w24.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbarBot = new Gtk.Statusbar();
     this.statusbarBot.Name = "statusbarBot";
     this.statusbarBot.Spacing = 6;
     this.vbox1.Add(this.statusbarBot);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbarBot]));
     w25.Position = 7;
     w25.Expand = false;
     w25.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 601;
     this.DefaultHeight = 494;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.CloseAction.Activated += new System.EventHandler(this.OnCloseActionActivated);
     this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked);
 }
Beispiel #57
0
		static bool DetectGtkSpellAvailable()
		{
			try {
				Gtk.TextView test_view = new Gtk.TextView ();
				IntPtr test_ptr = gtkspell_new_attach (test_view.Handle,
				                                       null,
				                                       IntPtr.Zero);
				if (test_ptr != IntPtr.Zero)
					gtkspell_detach (test_ptr);
				return true;
			} catch {
			return false;
		}
	}
 protected virtual void Build() {
     Stetic.Gui.Initialize();
     // Widget Monoxide.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.refresh = new Gtk.Action("refresh", null, null, "gtk-refresh");
     w2.Add(this.refresh, null);
     this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w2.Add(this.File, null);
     this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w2.Add(this.Quit, null);
     this.Tools = new Gtk.Action("Tools", Mono.Unix.Catalog.GetString("_Tools"), null, null);
     this.Tools.ShortLabel = Mono.Unix.Catalog.GetString("_Tools");
     w2.Add(this.Tools, null);
     this.AddinManagerAction = new Gtk.Action("AddinManagerAction", Mono.Unix.Catalog.GetString("Addin Manager..."), null, "AddinManager");
     this.AddinManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("Addin Manager...");
     w2.Add(this.AddinManagerAction, null);
     this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("_View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("_View");
     w2.Add(this.View, null);
     this.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     w2.Add(this.Open, null);
     this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.Help.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w2.Add(this.Help, null);
     this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About..."), null, "gtk-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About...");
     w2.Add(this.About, null);
     this.Save = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save..."), null, "gtk-save");
     this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save...");
     w2.Add(this.Save, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "Monoxide.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("monoXide 0.2");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Monoxide.MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Open'/><menuitem action='Save'/><separator/><menuitem action='Quit'/></menu><menu action='View'><menuitem action='refresh'/></menu><menu action='Tools'><menuitem action='AddinManagerAction'/><separator/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox2.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar'><toolitem action='Open'/><separator/><toolitem action='refresh'/><separator/><toolitem action='AddinManagerAction'/></toolbar></ui>");
     this.toolbar = ((Gtk.Toolbar)(w1.GetWidget("/toolbar")));
     this.toolbar.Name = "toolbar";
     this.toolbar.ShowArrow = false;
     this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 199;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.treeview = new Gtk.TreeView();
     this.treeview.CanFocus = true;
     this.treeview.Name = "treeview";
     this.scrolledwindow1.Add(this.treeview);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w6.Resize = false;
     // 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.objectExpander = new Gtk.Expander(null);
     this.objectExpander.CanFocus = true;
     this.objectExpander.Name = "objectExpander";
     // Container child objectExpander.Gtk.Container+ContainerChild
     this.textview = new Gtk.TextView();
     this.textview.CanFocus = true;
     this.textview.Name = "textview";
     this.textview.Editable = false;
     this.objectExpander.Add(this.textview);
     this.objectLabel = new Gtk.Label();
     this.objectLabel.Name = "objectLabel";
     this.objectLabel.LabelProp = Mono.Unix.Catalog.GetString("<empty>");
     this.objectLabel.UseUnderline = true;
     this.objectExpander.LabelWidget = this.objectLabel;
     this.vbox1.Add(this.objectExpander);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.objectExpander]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     this.notebook.Scrollable = true;
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w9 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w9.TabExpand = false;
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w10.Position = 1;
     this.hpaned1.Add(this.vbox1);
     this.vbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1]));
     w12.Position = 2;
     // Container child vbox2.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox2.Add(this.statusbar1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar1]));
     w13.Position = 3;
     w13.Expand = false;
     w13.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 698;
     this.DefaultHeight = 490;
     this.Show();
     this.refresh.Activated += new System.EventHandler(this.OnRefreshActivated);
     this.Quit.Activated += new System.EventHandler(this.OnQuitActivated);
     this.AddinManagerAction.Activated += new System.EventHandler(this.OnAddinManagerActivated);
     this.Open.Activated += new System.EventHandler(this.OnOpenActivated);
     this.About.Activated += new System.EventHandler(this.OnAboutActivated);
     this.Save.Activated += new System.EventHandler(this.OnSaveActivated);
     this.treeview.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTreeviewButtonPressEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.LoginControl
     Stetic.BinContainer.Attach(this);
     this.Name = "omvviewerlight.LoginControl";
     // Container child omvviewerlight.LoginControl.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // 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.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Homogeneous = true;
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("First name");
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Last Name");
     this.vbox2.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.vbox2.Add(this.label3);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.label3]));
     w3.Position = 2;
     w3.Expand = false;
     w3.Fill = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.entry_first = new Gtk.Entry();
     this.entry_first.CanFocus = true;
     this.entry_first.Name = "entry_first";
     this.entry_first.IsEditable = true;
     this.entry_first.InvisibleChar = '●';
     this.vbox3.Add(this.entry_first);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_first]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.entry_last = new Gtk.Entry();
     this.entry_last.CanFocus = true;
     this.entry_last.Name = "entry_last";
     this.entry_last.IsEditable = true;
     this.entry_last.InvisibleChar = '●';
     this.vbox3.Add(this.entry_last);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_last]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.entry_pass = new Gtk.Entry();
     this.entry_pass.CanFocus = true;
     this.entry_pass.Name = "entry_pass";
     this.entry_pass.IsEditable = true;
     this.entry_pass.InvisibleChar = '●';
     this.vbox3.Add(this.entry_pass);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_pass]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     this.hbox1.Add(this.vbox3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
     w8.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button_login = new Gtk.Button();
     this.button_login.WidthRequest = 100;
     this.button_login.HeightRequest = 50;
     this.button_login.CanFocus = true;
     this.button_login.Name = "button_login";
     this.button_login.UseUnderline = true;
     // Container child button_login.Gtk.Container+ContainerChild
     Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w10 = new Gtk.HBox();
     w10.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w11 = new Gtk.Image();
     w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-connect", Gtk.IconSize.Menu, 16);
     w10.Add(w11);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w13 = new Gtk.Label();
     w13.LabelProp = Mono.Unix.Catalog.GetString("Login");
     w13.UseUnderline = true;
     w10.Add(w13);
     w9.Add(w10);
     this.button_login.Add(w9);
     this.hbox1.Add(this.button_login);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.button_login]));
     w17.Position = 2;
     w17.Expand = false;
     w17.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w18.Position = 0;
     w18.Expand = false;
     w18.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.vbox5 = new Gtk.VBox();
     this.vbox5.Name = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.checkbutton_rememberpass = new Gtk.CheckButton();
     this.checkbutton_rememberpass.CanFocus = true;
     this.checkbutton_rememberpass.Name = "checkbutton_rememberpass";
     this.checkbutton_rememberpass.Label = Mono.Unix.Catalog.GetString("Remember password");
     this.checkbutton_rememberpass.DrawIndicator = true;
     this.checkbutton_rememberpass.UseUnderline = true;
     this.hbox2.Add(this.checkbutton_rememberpass);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkbutton_rememberpass]));
     w19.Position = 0;
     this.vbox5.Add(this.hbox2);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox2]));
     w20.Position = 0;
     w20.Expand = false;
     w20.Fill = false;
     // 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.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Login to");
     this.hbox5.Add(this.label6);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox5[this.label6]));
     w21.Position = 0;
     w21.Expand = false;
     w21.Fill = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 5;
     // Container child hbox4.Gtk.Box+BoxChild
     this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Home"));
     this.radiobutton1.CanFocus = true;
     this.radiobutton1.Name = "radiobutton1";
     this.radiobutton1.DrawIndicator = true;
     this.radiobutton1.UseUnderline = true;
     this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero);
     this.hbox4.Add(this.radiobutton1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.radiobutton1]));
     w22.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Last"));
     this.radiobutton2.CanFocus = true;
     this.radiobutton2.Name = "radiobutton2";
     this.radiobutton2.DrawIndicator = true;
     this.radiobutton2.UseUnderline = true;
     this.radiobutton2.Group = this.radiobutton1.Group;
     this.hbox4.Add(this.radiobutton2);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox4[this.radiobutton2]));
     w23.Position = 1;
     // Container child hbox4.Gtk.Box+BoxChild
     this.radiobutton3 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Location"));
     this.radiobutton3.CanFocus = true;
     this.radiobutton3.Name = "radiobutton3";
     this.radiobutton3.DrawIndicator = true;
     this.radiobutton3.UseUnderline = true;
     this.radiobutton3.Group = this.radiobutton1.Group;
     this.hbox4.Add(this.radiobutton3);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox4[this.radiobutton3]));
     w24.Position = 2;
     // Container child hbox4.Gtk.Box+BoxChild
     this.entry_location = new Gtk.Entry();
     this.entry_location.CanFocus = true;
     this.entry_location.Name = "entry_location";
     this.entry_location.IsEditable = true;
     this.entry_location.InvisibleChar = '●';
     this.hbox4.Add(this.entry_location);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox4[this.entry_location]));
     w25.Position = 3;
     this.hbox5.Add(this.hbox4);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox5[this.hbox4]));
     w26.Position = 1;
     w26.Expand = false;
     w26.Fill = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.progressbar2 = new Gtk.ProgressBar();
     this.progressbar2.Name = "progressbar2";
     this.hbox5.Add(this.progressbar2);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox5[this.progressbar2]));
     w27.PackType = ((Gtk.PackType)(1));
     w27.Position = 2;
     this.vbox5.Add(this.hbox5);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5]));
     w28.Position = 1;
     w28.Expand = false;
     w28.Fill = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox6 = new Gtk.HBox();
     this.hbox6.Name = "hbox6";
     this.hbox6.Spacing = 6;
     // Container child hbox6.Gtk.Box+BoxChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Connect to grid ");
     this.hbox6.Add(this.label4);
     Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox6[this.label4]));
     w29.Position = 0;
     w29.Expand = false;
     w29.Fill = false;
     // Container child hbox6.Gtk.Box+BoxChild
     this.combobox_grid = Gtk.ComboBox.NewText();
     this.combobox_grid.WidthRequest = 140;
     this.combobox_grid.Name = "combobox_grid";
     this.hbox6.Add(this.combobox_grid);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox6[this.combobox_grid]));
     w30.Position = 1;
     w30.Expand = false;
     w30.Fill = false;
     // Container child hbox6.Gtk.Box+BoxChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("URI");
     this.hbox6.Add(this.label5);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox6[this.label5]));
     w31.Position = 2;
     w31.Expand = false;
     w31.Fill = false;
     // Container child hbox6.Gtk.Box+BoxChild
     this.entry_loginuri = new Gtk.Entry();
     this.entry_loginuri.CanFocus = true;
     this.entry_loginuri.Name = "entry_loginuri";
     this.entry_loginuri.IsEditable = true;
     this.entry_loginuri.InvisibleChar = '●';
     this.hbox6.Add(this.entry_loginuri);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox6[this.entry_loginuri]));
     w32.Position = 3;
     this.vbox5.Add(this.hbox6);
     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox6]));
     w33.Position = 2;
     w33.Expand = false;
     w33.Fill = false;
     // Container child vbox5.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.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.textview_loginmsg = new Gtk.TextView();
     this.textview_loginmsg.HeightRequest = 35;
     this.textview_loginmsg.CanFocus = true;
     this.textview_loginmsg.Name = "textview_loginmsg";
     this.textview_loginmsg.Editable = false;
     this.textview_loginmsg.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkAlignment1.Add(this.textview_loginmsg);
     this.frame1.Add(this.GtkAlignment1);
     this.GtkLabel5 = new Gtk.Label();
     this.GtkLabel5.Name = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>Login message</b>");
     this.GtkLabel5.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel5;
     this.vbox5.Add(this.frame1);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame1]));
     w36.Position = 3;
     // Container child vbox5.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.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.textview_log = new Gtk.TextView();
     this.textview_log.CanFocus = true;
     this.textview_log.Name = "textview_log";
     this.textview_log.Editable = false;
     this.textview_log.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow1.Add(this.textview_log);
     this.GtkAlignment2.Add(this.GtkScrolledWindow1);
     this.frame2.Add(this.GtkAlignment2);
     this.GtkLabel6 = new Gtk.Label();
     this.GtkLabel6.Name = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Debug log</b>");
     this.GtkLabel6.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel6;
     this.vbox5.Add(this.frame2);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame2]));
     w40.Position = 4;
     this.vbox1.Add(this.vbox5);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox5]));
     w41.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.button_login.Clicked += new System.EventHandler(this.OnButton1Clicked);
     this.checkbutton_rememberpass.Clicked += new System.EventHandler(this.OnCheckbuttonRememberpassClicked);
     this.combobox_grid.Changed += new System.EventHandler(this.OnComboboxGridChanged);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Synpl.ShellGtk.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("E_xit"), null, null);
     this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w1.Add(this.ExitAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
     w1.Add(this.EditAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, null);
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New");
     w1.Add(this.NewAction, null);
     this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, null);
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("Open");
     w1.Add(this.OpenAction, null);
     this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, null);
     this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("Save");
     w1.Add(this.SaveAction, null);
     this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, null);
     this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save As");
     w1.Add(this.SaveAsAction, null);
     this.SelectAction = new Gtk.Action("SelectAction", Mono.Unix.Catalog.GetString("Select"), null, null);
     this.SelectAction.ShortLabel = Mono.Unix.Catalog.GetString("Select");
     w1.Add(this.SelectAction, null);
     this.ExtendToParentAction = new Gtk.Action("ExtendToParentAction", Mono.Unix.Catalog.GetString("Extend To Parent"), null, null);
     this.ExtendToParentAction.ShortLabel = Mono.Unix.Catalog.GetString("Extend To Parent");
     w1.Add(this.ExtendToParentAction, null);
     this.SelectPreviousSiblingAction = new Gtk.Action("SelectPreviousSiblingAction", Mono.Unix.Catalog.GetString("Select Previous Sibling"), null, null);
     this.SelectPreviousSiblingAction.ShortLabel = Mono.Unix.Catalog.GetString("Select Previous Sibling");
     w1.Add(this.SelectPreviousSiblingAction, null);
     this.SelectNextSiblingAction = new Gtk.Action("SelectNextSiblingAction", Mono.Unix.Catalog.GetString("Select Next Sibling"), null, null);
     this.SelectNextSiblingAction.ShortLabel = Mono.Unix.Catalog.GetString("Select Next Sibling");
     w1.Add(this.SelectNextSiblingAction, null);
     this.IncludePreviousSiblingAction = new Gtk.Action("IncludePreviousSiblingAction", Mono.Unix.Catalog.GetString("Include Previous Sibling"), null, null);
     this.IncludePreviousSiblingAction.ShortLabel = Mono.Unix.Catalog.GetString("Include Previous Sibling");
     w1.Add(this.IncludePreviousSiblingAction, null);
     this.IncludeNextSiblingAction = new Gtk.Action("IncludeNextSiblingAction", Mono.Unix.Catalog.GetString("Include Next Sibling"), null, null);
     this.IncludeNextSiblingAction.ShortLabel = Mono.Unix.Catalog.GetString("Include Next Sibling");
     w1.Add(this.IncludeNextSiblingAction, null);
     this.RestrictChildAction = new Gtk.Action("RestrictChildAction", Mono.Unix.Catalog.GetString("Restrict Child"), null, null);
     this.RestrictChildAction.ShortLabel = Mono.Unix.Catalog.GetString("Restrict Child");
     w1.Add(this.RestrictChildAction, null);
     this.TestAction = new Gtk.Action("TestAction", Mono.Unix.Catalog.GetString("Test"), null, null);
     this.TestAction.ShortLabel = Mono.Unix.Catalog.GetString("Test");
     w1.Add(this.TestAction, null);
     this.Insert1Action = new Gtk.Action("Insert1Action", Mono.Unix.Catalog.GetString("Insert 1"), null, null);
     this.Insert1Action.ShortLabel = Mono.Unix.Catalog.GetString("Insert 1");
     w1.Add(this.Insert1Action, null);
     this.Insert2Action = new Gtk.Action("Insert2Action", Mono.Unix.Catalog.GetString("Insert 2"), null, null);
     this.Insert2Action.ShortLabel = Mono.Unix.Catalog.GetString("Insert 2");
     w1.Add(this.Insert2Action, null);
     this.MoveUpAction1 = new Gtk.Action("MoveUpAction1", Mono.Unix.Catalog.GetString("Move Up"), null, null);
     this.MoveUpAction1.ShortLabel = Mono.Unix.Catalog.GetString("Move Up");
     w1.Add(this.MoveUpAction1, null);
     this.MoveDownAction1 = new Gtk.Action("MoveDownAction1", Mono.Unix.Catalog.GetString("Move Down"), null, null);
     this.MoveDownAction1.ShortLabel = Mono.Unix.Catalog.GetString("Move Down");
     w1.Add(this.MoveDownAction1, null);
     this.IndentAction = new Gtk.Action("IndentAction", Mono.Unix.Catalog.GetString("Indent"), null, null);
     this.IndentAction.ShortLabel = Mono.Unix.Catalog.GetString("Indent");
     w1.Add(this.IndentAction, null);
     this.Insert3Action = new Gtk.Action("Insert3Action", Mono.Unix.Catalog.GetString("Insert 3"), null, null);
     this.Insert3Action.ShortLabel = Mono.Unix.Catalog.GetString("Insert 3");
     w1.Add(this.Insert3Action, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Synpl.ShellGtk.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Synpl.ShellGtk.MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar3'><menu name='FileAction' action='FileAction'><menuitem name='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='MoveUpAction1' action='MoveUpAction1'/><menuitem name='MoveDownAction1' action='MoveDownAction1'/><menuitem name='IndentAction' action='IndentAction'/></menu><menu name='SelectAction' action='SelectAction'><menuitem name='ExtendToParentAction' action='ExtendToParentAction'/><menuitem name='RestrictChildAction' action='RestrictChildAction'/><menuitem name='SelectPreviousSiblingAction' action='SelectPreviousSiblingAction'/><menuitem name='SelectNextSiblingAction' action='SelectNextSiblingAction'/></menu><menu name='TestAction' action='TestAction'><menuitem name='Insert1Action' action='Insert1Action'/><menuitem name='Insert2Action' action='Insert2Action'/><menuitem name='Insert3Action' action='Insert3Action'/></menu></menubar></ui>");
     this.menubar3 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar3")));
     this.menubar3.Name = "menubar3";
     this.vbox2.Add(this.menubar3);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar3]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.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.txtEditor = new Gtk.TextView();
     this.txtEditor.CanFocus = true;
     this.txtEditor.Name = "txtEditor";
     this.GtkScrolledWindow.Add(this.txtEditor);
     this.vbox2.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow]));
     w4.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 512;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ExitAction.Activated += new System.EventHandler(this.OnExitActionActivated);
     this.ExtendToParentAction.Activated += new System.EventHandler(this.OnExtendToParentActionActivated);
     this.SelectPreviousSiblingAction.Activated += new System.EventHandler(this.OnSelectPreviousSiblingActionActivated);
     this.SelectNextSiblingAction.Activated += new System.EventHandler(this.OnSelectNextSiblingActionActivated);
     this.RestrictChildAction.Activated += new System.EventHandler(this.OnRestrictChildActionActivated);
     this.Insert1Action.Activated += new System.EventHandler(this.OnInsert1ActionActivated);
     this.Insert2Action.Activated += new System.EventHandler(this.OnInsert2ActionActivated);
     this.MoveUpAction1.Activated += new System.EventHandler(this.OnMoveUpAction1Activated);
     this.MoveDownAction1.Activated += new System.EventHandler(this.OnMoveDownAction1Activated);
     this.IndentAction.Activated += new System.EventHandler(this.OnIndentActionActivated);
     this.Insert3Action.Activated += new System.EventHandler(this.OnInsert3ActionActivated);
 }