Exemple #1
0
        public ViewActions()
        {
            Gtk.IconFactory fact = new Gtk.IconFactory ();
            fact.Add ("Menu.View.ActualSize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ActualSize.png")));
            fact.Add ("Menu.View.Grid.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.Grid.png")));
            fact.Add ("Menu.View.Rulers.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.Rulers.png")));
            fact.Add ("Menu.View.ZoomIn.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomIn.png")));
            fact.Add ("Menu.View.ZoomOut.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomOut.png")));
            fact.Add ("Menu.View.ZoomToSelection.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomToSelection.png")));
            fact.Add ("Menu.View.ZoomToWindow.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.View.ZoomToWindow.png")));
            fact.AddDefault ();

            ZoomIn = new Gtk.Action ("ZoomIn", Mono.Unix.Catalog.GetString ("Zoom In"), null, "Menu.View.ZoomIn.png");
            ZoomOut = new Gtk.Action ("ZoomOut", Mono.Unix.Catalog.GetString ("Zoom Out"), null, "Menu.View.ZoomOut.png");
            ZoomToWindow = new Gtk.Action ("ZoomToWindow", Mono.Unix.Catalog.GetString ("Zoom to Window"), null, "Menu.View.ZoomToWindow.png");
            ZoomToSelection = new Gtk.Action ("ZoomToSelection", Mono.Unix.Catalog.GetString ("Zoom to Selection"), null, "Menu.View.ZoomToSelection.png");
            ActualSize = new Gtk.Action ("ActualSize", Mono.Unix.Catalog.GetString ("Actual Size"), null, "Menu.View.ActualSize.png");
            PixelGrid = new Gtk.ToggleAction ("PixelGrid", Mono.Unix.Catalog.GetString ("Pixel Grid"), null, "Menu.View.Grid.png");
            Rulers = new Gtk.ToggleAction ("Rulers", Mono.Unix.Catalog.GetString ("Rulers"), null, "Menu.View.Rulers.png");
            Pixels = new Gtk.Action ("Pixels", Mono.Unix.Catalog.GetString ("Pixels"), null, null);
            Inches = new Gtk.Action ("Inches", Mono.Unix.Catalog.GetString ("Inches"), null, null);
            Centimeters = new Gtk.Action ("Centimeters", Mono.Unix.Catalog.GetString ("Centimeters"), null, null);
            Fullscreen = new Gtk.Action ("Fullscreen", Catalog.GetString ("Fullscreen"), null, Gtk.Stock.Fullscreen);

            ZoomComboBox = new ToolBarComboBox (75, 11, true, "3600%", "2400%", "1600%", "1200%", "800%", "700%", "600%", "500%", "400%", "300%", "200%", "100%", "66%", "50%", "33%", "25%", "16%", "12%", "8%", "5%", "Window");
            UnitComboBox = new ToolBarComboBox (100, 0, false, "Pixels", "Inches", "Centimeters");
        }
Exemple #2
0
        public RobotActions(int id)
            : base("RobotActions")
        {
            prefix = String.Format("Robot{0}", id);

            PropertiesAction = new Gtk.Action(prefix + "Action",
                                              String.Format("Robot _{0}...", id),
                                              null, "gtk-properties");
            PropertiesAction.ShortLabel = "_Properties...";
            Add(this.PropertiesAction, null);

            PropertiesAction = new Gtk.Action(prefix + "PropertiesAction", "_Properties...", null, "gtk-properties");
            PropertiesAction.ShortLabel = "_Properties...";
            Add(this.PropertiesAction, null);

            SaveAction = new Gtk.Action(prefix + "SaveAction", "_Save", null, "gtk-save");
            SaveAction.ShortLabel = "_Save";
            Add(this.SaveAction, null);

            SaveAsAction = new Gtk.Action(prefix + "SaveAsAction", "Save _As...", null, "gtk-save-as");
            SaveAsAction.ShortLabel = "Save _As...";
            Add(this.SaveAsAction, null);

            CloseAction = new Gtk.Action(prefix + "CloseAction", "_Close", null, "gtk-close");
            CloseAction.ShortLabel = "_Close";
            Add(this.CloseAction, null);
        }
Exemple #3
0
        public RobotActions(int id) : base("RobotActions")
        {
            prefix = String.Format("Robot{0}", id);

            PropertiesAction = new Gtk.Action(prefix + "Action",
                                              String.Format("Robot _{0}...", id),
                                              null, "gtk-properties");
            PropertiesAction.ShortLabel = "_Properties...";
            Add(this.PropertiesAction, null);

            PropertiesAction            = new Gtk.Action(prefix + "PropertiesAction", "_Properties...", null, "gtk-properties");
            PropertiesAction.ShortLabel = "_Properties...";
            Add(this.PropertiesAction, null);

            SaveAction            = new Gtk.Action(prefix + "SaveAction", "_Save", null, "gtk-save");
            SaveAction.ShortLabel = "_Save";
            Add(this.SaveAction, null);

            SaveAsAction            = new Gtk.Action(prefix + "SaveAsAction", "Save _As...", null, "gtk-save-as");
            SaveAsAction.ShortLabel = "Save _As...";
            Add(this.SaveAsAction, null);

            CloseAction            = new Gtk.Action(prefix + "CloseAction", "_Close", null, "gtk-close");
            CloseAction.ShortLabel = "_Close";
            Add(this.CloseAction, null);
        }
Exemple #4
0
 public void UpdateAction(string action_name, string label, string icon)
 {
     Gtk.Action action = this [action_name];
     action.Label   = label;
     action.StockId = icon;
     // FIXME: SyncButtons () ?
 }
Exemple #5
0
        public ImageActions()
        {
            Gtk.IconFactory fact = new Gtk.IconFactory ();
            fact.Add ("Menu.Image.CanvasSize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.CanvasSize.png")));
            fact.Add ("Menu.Image.Crop.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Crop.png")));
            fact.Add ("Menu.Image.Flatten.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Flatten.png")));
            fact.Add ("Menu.Image.FlipHorizontal.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.FlipHorizontal.png")));
            fact.Add ("Menu.Image.FlipVertical.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.FlipVertical.png")));
            fact.Add ("Menu.Image.Resize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Resize.png")));
            fact.Add ("Menu.Image.Rotate180CW.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Rotate180CW.png")));
            fact.Add ("Menu.Image.Rotate90CCW.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Rotate90CCW.png")));
            fact.Add ("Menu.Image.Rotate90CW.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Rotate90CW.png")));
            fact.AddDefault ();

            CropToSelection = new Gtk.Action ("CropToSelection", Catalog.GetString ("Crop to Selection"), null, "Menu.Image.Crop.png");
            AutoCrop = new Gtk.Action ("AutoCrop", Catalog.GetString ("Auto Crop"), null, "Menu.Image.Crop.png");
            Resize = new Gtk.Action ("Resize", Catalog.GetString ("Resize Image..."), null, "Menu.Image.Resize.png");
            CanvasSize = new Gtk.Action ("CanvasSize", Catalog.GetString ("Resize Canvas..."), null, "Menu.Image.CanvasSize.png");
            FlipHorizontal = new Gtk.Action ("FlipHorizontal", Catalog.GetString ("Flip Horizontal"), null, "Menu.Image.FlipHorizontal.png");
            FlipVertical = new Gtk.Action ("FlipVertical", Catalog.GetString ("Flip Vertical"), null, "Menu.Image.FlipVertical.png");
            RotateCW = new Gtk.Action ("RotateCW", Catalog.GetString ("Rotate 90° Clockwise"), null, "Menu.Image.Rotate90CW.png");
            RotateCCW = new Gtk.Action ("RotateCCW", Catalog.GetString ("Rotate 90° Counter-Clockwise"), null, "Menu.Image.Rotate90CCW.png");
            Rotate180 = new Gtk.Action ("Rotate180", Catalog.GetString ("Rotate 180°"), null, "Menu.Image.Rotate180CW.png");
            Flatten = new Gtk.Action ("Flatten", Catalog.GetString ("Flatten"), null, "Menu.Image.Flatten.png");

            CropToSelection.Sensitive = false;
        }
Exemple #6
0
        public AdjustmentsActions()
        {
            Gtk.IconFactory fact = new Gtk.IconFactory ();
            fact.Add ("Menu.Adjustments.AutoLevel.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.AutoLevel.png")));
            fact.Add ("Menu.Adjustments.BlackAndWhite.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.BlackAndWhite.png")));
            fact.Add ("Menu.Adjustments.BrightnessAndContrast.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.BrightnessAndContrast.png")));
            fact.Add ("Menu.Adjustments.Curves.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.Curves.png")));
            fact.Add ("Menu.Adjustments.HueAndSaturation.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.HueAndSaturation.png")));
            fact.Add ("Menu.Adjustments.InvertColors.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.InvertColors.png")));
            fact.Add ("Menu.Adjustments.Levels.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.Levels.png")));
            fact.Add ("Menu.Adjustments.Posterize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.Posterize.png")));
            fact.Add ("Menu.Adjustments.Sepia.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Adjustments.Sepia.png")));
            fact.AddDefault ();

            AutoLevel = new Gtk.Action ("AutoLevel", Mono.Unix.Catalog.GetString ("Auto Level"), null, "Menu.Adjustments.AutoLevel.png");
            BlackAndWhite = new Gtk.Action ("BlackAndWhite", Mono.Unix.Catalog.GetString ("Black and White"), null, "Menu.Adjustments.BlackAndWhite.png");
            BrightnessContrast = new Gtk.Action ("BrightnessContrast", Mono.Unix.Catalog.GetString ("Brightness / Contrast..."), null, "Menu.Adjustments.BrightnessAndContrast.png");
            Curves = new Gtk.Action ("Curves", Mono.Unix.Catalog.GetString ("Curves..."), null, "Menu.Adjustments.Curves.png");
            HueSaturation = new Gtk.Action ("HueSaturation", Mono.Unix.Catalog.GetString ("Hue / Saturation..."), null, "Menu.Adjustments.HueAndSaturation.png");
            InvertColors = new Gtk.Action ("InvertColors", Mono.Unix.Catalog.GetString ("Invert Colors"), null, "Menu.Adjustments.InvertColors.png");
            Levels = new Gtk.Action ("Levels", Mono.Unix.Catalog.GetString ("Levels..."), null, "Menu.Adjustments.Levels.png");
            Posterize = new Gtk.Action ("Posterize", Mono.Unix.Catalog.GetString ("Posterize..."), null, "Menu.Adjustments.Posterize.png");
            Sepia = new Gtk.Action ("Sepia", Mono.Unix.Catalog.GetString ("Sepia"), null, "Menu.Adjustments.Sepia.png");

            Levels.Sensitive = false;
        }
Exemple #7
0
		public ImageActions ()
		{
			Gtk.IconFactory fact = new Gtk.IconFactory ();
			fact.Add ("Menu.Image.CanvasSize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.CanvasSize.png")));
			fact.Add ("Menu.Image.Crop.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Crop.png")));
			fact.Add ("Menu.Image.Flatten.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Flatten.png")));
			fact.Add ("Menu.Image.FlipHorizontal.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.FlipHorizontal.png")));
			fact.Add ("Menu.Image.FlipVertical.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.FlipVertical.png")));
			fact.Add ("Menu.Image.Resize.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Resize.png")));
			fact.Add ("Menu.Image.Rotate180CW.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Rotate180CW.png")));
			fact.Add ("Menu.Image.Rotate90CCW.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Rotate90CCW.png")));
			fact.Add ("Menu.Image.Rotate90CW.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Image.Rotate90CW.png")));
			fact.AddDefault ();
			
			CropToSelection = new Gtk.Action ("CropToSelection", Catalog.GetString ("Crop to Selection"), null, "Menu.Image.Crop.png");
			AutoCrop = new Gtk.Action ("AutoCrop", Catalog.GetString ("Auto Crop"), null, "Menu.Image.Crop.png");
			Resize = new Gtk.Action ("Resize", Catalog.GetString ("Resize Image..."), null, "Menu.Image.Resize.png");
			CanvasSize = new Gtk.Action ("CanvasSize", Catalog.GetString ("Resize Canvas..."), null, "Menu.Image.CanvasSize.png");
			FlipHorizontal = new Gtk.Action ("FlipHorizontal", Catalog.GetString ("Flip Horizontal"), null, "Menu.Image.FlipHorizontal.png");
			FlipVertical = new Gtk.Action ("FlipVertical", Catalog.GetString ("Flip Vertical"), null, "Menu.Image.FlipVertical.png");
			RotateCW = new Gtk.Action ("RotateCW", Catalog.GetString ("Rotate 90° Clockwise"), null, "Menu.Image.Rotate90CW.png");
			RotateCCW = new Gtk.Action ("RotateCCW", Catalog.GetString ("Rotate 90° Counter-Clockwise"), null, "Menu.Image.Rotate90CCW.png");
			Rotate180 = new Gtk.Action ("Rotate180", Catalog.GetString ("Rotate 180°"), null, "Menu.Image.Rotate180CW.png");
			Flatten = new Gtk.Action ("Flatten", Catalog.GetString ("Flatten"), null, "Menu.Image.Flatten.png");
			
			CropToSelection.Sensitive = false;
		}
Exemple #8
0
        public void Add(Gtk.Action action, string accelerator)
        {
            IntPtr native_accelerator = GLib.Marshaller.StringToPtrGStrdup(accelerator);

            gtk_action_group_add_action_with_accel(Handle, action == null ? IntPtr.Zero : action.Handle, native_accelerator);
            GLib.Marshaller.Free(native_accelerator);
        }
Exemple #9
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddClassFigureAction = new Gtk.Action("AddClassFigureAction", Mono.Unix.Catalog.GetString("Add Class Figure"), null, null);
     this.AddClassFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Class Figure");
     w1.Add(this.AddClassFigureAction, null);
     this.AddStackFigureAction = new Gtk.Action("AddStackFigureAction", Mono.Unix.Catalog.GetString("Add StackFigure"), null, null);
     this.AddStackFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add StackFigure");
     w1.Add(this.AddStackFigureAction, null);
     this.AddMemberGroupAction = new Gtk.Action("AddMemberGroupAction", Mono.Unix.Catalog.GetString("Add MemberGroup"), null, null);
     this.AddMemberGroupAction.ShortLabel = Mono.Unix.Catalog.GetString("Add MemberGroup");
     w1.Add(this.AddMemberGroupAction, null);
     this.AddSimpleTextFigureAction = new Gtk.Action("AddSimpleTextFigureAction", Mono.Unix.Catalog.GetString("Add SimpleTextFigure"), null, null);
     this.AddSimpleTextFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add SimpleTextFigure");
     w1.Add(this.AddSimpleTextFigureAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddClassFigureAction' action='AddClassFigureAction'/><menuitem name='AddStackFigureAction' action='AddStackFigureAction'/><menuitem name='AddMemberGroupAction' action='AddMemberGroupAction'/><menuitem name='AddSimpleTextFigureAction' action='AddSimpleTextFigureAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.mhdcanvas = new MonoHotDraw.SteticComponent();
     this.mhdcanvas.Events = ((Gdk.EventMask)(256));
     this.mhdcanvas.Name = "mhdcanvas";
     this.vbox1.Add(this.mhdcanvas);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mhdcanvas]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AddClassFigureAction.Activated += new System.EventHandler(this.OnAddClassFigureActionActivated);
     this.AddStackFigureAction.Activated += new System.EventHandler(this.OnAddStackFigureActionActivated);
     this.AddMemberGroupAction.Activated += new System.EventHandler(this.OnAddMemberGroupActionActivated);
     this.AddSimpleTextFigureAction.Activated += new System.EventHandler(this.OnAddSimpleTextFigureActionActivated);
 }
        void OnRepeatSessionActivated(object o, EventArgs args)
        {
            Gtk.Action           action = o as Gtk.Action;
            int                  idx    = Int32.Parse(action.Name.Substring(13));
            ProfileConfiguration config = history.Configs [idx];

            StartProfile(config);
        }
Exemple #11
0
        public Gtk.Action GetAction(string path)
        {
            IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup(path);
            IntPtr raw_ret     = gtk_ui_manager_get_action(Handle, native_path);

            Gtk.Action ret = GLib.Object.GetObject(raw_ret) as Gtk.Action;
            GLib.Marshaller.Free(native_path);
            return(ret);
        }
Exemple #12
0
        public Gtk.Action GetAction(string action_name)
        {
            IntPtr native_action_name = GLib.Marshaller.StringToPtrGStrdup(action_name);
            IntPtr raw_ret            = gtk_action_group_get_action(Handle, native_action_name);

            Gtk.Action ret = GLib.Object.GetObject(raw_ret) as Gtk.Action;
            GLib.Marshaller.Free(native_action_name);
            return(ret);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.CronValueEditor
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.selectAllAction = new Gtk.Action("selectAllAction", null, null, "gtk-select-all");
     w2.Add(this.selectAllAction, null);
     this.clearAction = new Gtk.Action("clearAction", null, null, "gtk-clear");
     w2.Add(this.clearAction, null);
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ControlWrappers.CronValueEditor";
     // Container child ControlWrappers.CronValueEditor.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.tvList = new Gtk.TreeView();
     this.tvList.CanFocus = true;
     this.tvList.Name = "tvList";
     this.tvList.EnableSearch = false;
     this.tvList.HeadersVisible = false;
     this.scrolledwindow2.Add(this.tvList);
     this.vbox2.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2]));
     w4.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='selectAllAction' action='selectAllAction'/><toolitem name='clearAction' action='clearAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
     this.selectAllAction.Activated += new System.EventHandler(this.SelectAllActivated);
     this.clearAction.Activated += new System.EventHandler(this.ClearActivated);
     this.tvList.CursorChanged += new System.EventHandler(this.TreeListCursorChanged);
 }
Exemple #14
0
        private void InternalDisconnectProxy(Gtk.Action action, Gtk.Widget proxy)
        {
            DisconnectProxyNativeDelegate unmanaged = class_abi.BaseOverride <DisconnectProxyNativeDelegate>(this.LookupGType(), "disconnect_proxy");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle, proxy == null ? IntPtr.Zero : proxy.Handle);
        }
Exemple #15
0
        public HelpActions()
        {
            Gtk.IconFactory fact = new Gtk.IconFactory ();
            fact.Add ("Menu.Help.Bug.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Help.Bug.png")));
            fact.Add ("Menu.Help.Website.png", new Gtk.IconSet (PintaCore.Resources.GetIcon ("Menu.Help.Website.png")));
            fact.AddDefault ();

            Website = new Gtk.Action ("Website", Mono.Unix.Catalog.GetString ("Pinta Website"), null, "Menu.Help.Website.png");
            Bugs = new Gtk.Action ("Bugs", Mono.Unix.Catalog.GetString ("File a Bug"), null, "Menu.Help.Bug.png");
            About = new Gtk.Action ("About", Mono.Unix.Catalog.GetString ("About"), null, "gtk-about");
        }
Exemple #16
0
        private void InternalPostActivate(Gtk.Action action)
        {
            PostActivateNativeDelegate unmanaged = class_abi.BaseOverride <PostActivateNativeDelegate>(this.LookupGType(), "post_activate");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PersonalMoney.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.ExitAction = new Gtk.Action("ExitAction", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w1.Add(this.ExitAction, null);
     this.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.ExpensesAction = new Gtk.Action("ExpensesAction", Mono.Unix.Catalog.GetString("Expenses"), null, null);
     this.ExpensesAction.ShortLabel = Mono.Unix.Catalog.GetString("Expenses");
     w1.Add(this.ExpensesAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "PersonalMoney.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child PersonalMoney.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar2'><menu name='FileAction' action='FileAction'><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='ExpensesAction' action='ExpensesAction'/></menu></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = -1;
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ExpensesAction.Activated += new System.EventHandler(this.OnExpensesActionActivated);
 }
Exemple #18
0
        public Gtk.Action[] ListActions()
        {
            IntPtr raw_ret = gtk_action_group_list_actions(Handle);

            GLib.List    list   = new GLib.List(raw_ret);
            Gtk.Action[] result = new Gtk.Action [list.Count];
            for (int i = 0; i < list.Count; i++)
            {
                result [i] = list [i] as Gtk.Action;
            }
            return(result);
        }
Exemple #19
0
        public Gtk.Action this [string widget_path_or_action_name]
        {
            get {
                Gtk.Action action = FindActionByName(widget_path_or_action_name);
                if (action == null)
                {
                    return(ui.GetAction(widget_path_or_action_name));
                }

                return(action);
            }
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoHotDraw.Samples.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddAnalogClockAction = new Gtk.Action("AddAnalogClockAction", Mono.Unix.Catalog.GetString("Add Analog Clock"), null, null);
     this.AddAnalogClockAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Analog Clock");
     w1.Add(this.AddAnalogClockAction, null);
     this.AddDigitalClockAction = new Gtk.Action("AddDigitalClockAction", Mono.Unix.Catalog.GetString("Add Digital Clock"), null, null);
     this.AddDigitalClockAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Digital Clock");
     w1.Add(this.AddDigitalClockAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MonoHotDraw.Samples.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MonoHotDraw.Samples.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddAnalogClockAction' action='AddAnalogClockAction'/><menuitem name='AddDigitalClockAction' action='AddDigitalClockAction'/></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.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.AddAnalogClockAction.Activated += new System.EventHandler(this.OnAddAnalogClockActionActivated);
     this.AddDigitalClockAction.Activated += new System.EventHandler(this.OnAddDigitalClockActionActivated);
 }
Exemple #21
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Wakame.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.FileAction1 = new Gtk.Action("FileAction1", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileAction1.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w1.Add(this.FileAction1, "<Alt><Mod2>f");
     this.ImportAction = new Gtk.Action("ImportAction", Mono.Unix.Catalog.GetString("Import"), null, null);
     this.ImportAction.ShortLabel = Mono.Unix.Catalog.GetString("Import");
     w1.Add(this.ImportAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Wakame.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Wakame.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='FileAction1' action='FileAction1'><menuitem name='ImportAction' action='ImportAction'/></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.Spacing = 6;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 629;
     this.DefaultHeight = 485;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ImportAction.Activated += new System.EventHandler(this.OnOpen);
 }
Exemple #22
0
        private void InternalPostActivate(Gtk.Action action)
        {
            PostActivateNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("post_activate"));
                unmanaged = (PostActivateNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PostActivateNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle);
        }
Exemple #23
0
        private void InternalDisconnectProxy(Gtk.Action action, Gtk.Widget proxy)
        {
            DisconnectProxyNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("disconnect_proxy"));
                unmanaged = (DisconnectProxyNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(DisconnectProxyNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle, proxy == null ? IntPtr.Zero : proxy.Handle);
        }
Exemple #24
0
 private void InternalPostActivate(Gtk.Action action)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
     GLib.Value[]    vals            = new GLib.Value [2];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(action);
     inst_and_params.Append(vals [1]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
 public virtual void Build() {
     // Action group Mono.Profiler.HeapExplorerActions
     this.loadDataAction = new Gtk.Action("loadDataAction", Mono.Unix.Catalog.GetString("Load data"), null, "gtk-add");
     this.loadDataAction.ShortLabel = Mono.Unix.Catalog.GetString("Load data");
     this.Add(this.loadDataAction, null);
     this.filterByClassAction = new Gtk.Action("filterByClassAction", Mono.Unix.Catalog.GetString("Filter by class"), null, null);
     this.filterByClassAction.ShortLabel = Mono.Unix.Catalog.GetString("Filter by class");
     this.Add(this.filterByClassAction, null);
     this.filterByClassOfReferencedObjectAction = new Gtk.Action("filterByClassOfReferencedObjectAction", Mono.Unix.Catalog.GetString("Filter by class of referenced object"), null, null);
     this.filterByClassOfReferencedObjectAction.ShortLabel = Mono.Unix.Catalog.GetString("Filter by class of referenced object");
     this.Add(this.filterByClassOfReferencedObjectAction, null);
     this.filterByClassOfReferencingObjectAction = new Gtk.Action("filterByClassOfReferencingObjectAction", Mono.Unix.Catalog.GetString("Filter by class of referencing object"), null, null);
     this.filterByClassOfReferencingObjectAction.ShortLabel = Mono.Unix.Catalog.GetString("Filter by class of referencing object");
     this.Add(this.filterByClassOfReferencingObjectAction, null);
 }
 public virtual void Build()
 {
     // Action group Mono.Profiler.HeapExplorerActions
     this.loadDataAction            = new Gtk.Action("loadDataAction", Mono.Unix.Catalog.GetString("Load data"), null, "gtk-add");
     this.loadDataAction.ShortLabel = Mono.Unix.Catalog.GetString("Load data");
     this.Add(this.loadDataAction, null);
     this.filterByClassAction            = new Gtk.Action("filterByClassAction", Mono.Unix.Catalog.GetString("Filter by class"), null, null);
     this.filterByClassAction.ShortLabel = Mono.Unix.Catalog.GetString("Filter by class");
     this.Add(this.filterByClassAction, null);
     this.filterByClassOfReferencedObjectAction            = new Gtk.Action("filterByClassOfReferencedObjectAction", Mono.Unix.Catalog.GetString("Filter by class of referenced object"), null, null);
     this.filterByClassOfReferencedObjectAction.ShortLabel = Mono.Unix.Catalog.GetString("Filter by class of referenced object");
     this.Add(this.filterByClassOfReferencedObjectAction, null);
     this.filterByClassOfReferencingObjectAction            = new Gtk.Action("filterByClassOfReferencingObjectAction", Mono.Unix.Catalog.GetString("Filter by class of referencing object"), null, null);
     this.filterByClassOfReferencingObjectAction.ShortLabel = Mono.Unix.Catalog.GetString("Filter by class of referencing object");
     this.Add(this.filterByClassOfReferencingObjectAction, null);
 }
Exemple #27
0
 private void InternalDisconnectProxy(Gtk.Action action, Gtk.Widget proxy)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(3);
     GLib.Value[]    vals            = new GLib.Value [3];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(action);
     inst_and_params.Append(vals [1]);
     vals [2] = new GLib.Value(proxy);
     inst_and_params.Append(vals [2]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
 void UpdateRepeatSessions(object o, EventArgs args)
 {
     for (int i = 0; i < max_history_count; i++)
     {
         Gtk.Action action = group.GetAction("RepeatSession" + i);
         if (i < history.Configs.Count)
         {
             ProfileConfiguration config = history.Configs [i];
             action.Label   = "_" + i + ": " + config.ToString();
             action.Visible = true;
         }
         else
         {
             action.Visible = false;
         }
     }
 }
Exemple #29
0
        /*
         *      int j = 1;
         *      for (int i = 1; i <= insertObject.Document.LineCount; i++) {
         *              LineSegment ls = insertObject.Document.GetLine(i);
         *              if (ls != null) {
         *
         *                      if (j == 1) {
         *                              ErrorMarker er = new ErrorMarker(ls);
         *                              er.AddToLine(insertObject.Document);
         *                              j++;
         *                      } else if (j == 2) {
         *                              TextMarker bm = new BreakpointTextMarker(insertObject, false);
         *                              //DebugTextMarker tm = new DebugTextMarker((insertObject as TextEditor));
         *
         *                              insertObject.Document.AddMarker(ls, bm);
         *                              insertObject.QueueDraw();
         *                              j++;
         *                      } else {
         *                              if (ls.IsBookmarked != true) {
         *                                      //int lineNumber = insertObject.Document.OffsetToLineNumber (ls.Offset);
         *                                      ls.IsBookmarked = true;
         *                                      insertObject.Document.RequestUpdate(new LineUpdate(i));
         *                                      insertObject.Document.CommitDocumentUpdate();
         *                              }
         *                              j = 1;
         *                      }
         *              }
         *      }*/

        void OnTextMarginButtonPress(object s, MarginMouseEventArgs args)
        {
            if (args.Button == 3)
            {
                Selection sel = editor.MainSelection;

                editor.Caret.Line = args.LineNumber;
                DocumentLocation dl = editor.VisualToDocumentLocation(args.X, args.Y);
                editor.Caret.Location = dl;

                if ((sel != null) && (args.LineNumber >= sel.MinLine && args.LineNumber <= sel.MaxLine))
                {
                    editor.MainSelection = sel;
                }

                if (args.LineSegment != null)
                {
                    Gtk.Menu popupMenu = (Gtk.Menu)MainClass.MainWindow.ActionUiManager.GetWidget("/textMarginPopup");
                    if (popupMenu != null)
                    {
                        Gtk.Action act = MainClass.MainWindow.ActionUiManager.FindActionByName("gotodefinition");

                        if (act != null)
                        {
                            act.Visible = false;

                            string caretWord = editor.GetCarretWord();
                            //Console.WriteLine("caretWord ->"+caretWord );
                            if (!String.IsNullOrEmpty(caretWord))
                            {
                                int indx = MainClass.CompletedCache.ListDataTypes.FindIndex(x => x.DisplayText == caretWord);
                                if (indx > -1)
                                {
                                    act.Visible = true;
                                }
                            }
                            //act.Visible = false;
                            //act.Sensitive = false;
                        }
                        //popupMenu.ShowAll();
                        popupMenu.Popup();
                    }
                }
            }
        }
        Gtk.UIManager BuildUIManager()
        {
            Gtk.ActionEntry[] actions = new Gtk.ActionEntry[]
            {
                new Gtk.ActionEntry("ProfileMenu", null, Catalog.GetString("_Profile"), null, null, null),
                new Gtk.ActionEntry("NewAction", Gtk.Stock.New, null, "<control>N", Catalog.GetString("Create New Profile"), new EventHandler(OnNewActivated)),
                new Gtk.ActionEntry("OpenAction", Gtk.Stock.Open, null, "<control>O", Catalog.GetString("Open Existing Profile Log"), new EventHandler(OnOpenActivated)),
                new Gtk.ActionEntry("SaveAsAction", Gtk.Stock.SaveAs, null, "<control>S", Catalog.GetString("Save Profile Data"), new EventHandler(OnSaveAsActivated)),
                new Gtk.ActionEntry("RecentLogsMenu", null, Catalog.GetString("Recent _Logs"), null, null, null),
                new Gtk.ActionEntry("RecentLogs0", null, "_0", null, null, new EventHandler(OnRecentLogsActivated)),
                new Gtk.ActionEntry("RecentLogs1", null, "_1", null, null, new EventHandler(OnRecentLogsActivated)),
                new Gtk.ActionEntry("RecentLogs2", null, "_2", null, null, new EventHandler(OnRecentLogsActivated)),
                new Gtk.ActionEntry("RecentLogs3", null, "_3", null, null, new EventHandler(OnRecentLogsActivated)),
                new Gtk.ActionEntry("RecentLogs4", null, "_4", null, null, new EventHandler(OnRecentLogsActivated)),
                new Gtk.ActionEntry("RepeatSessionsMenu", null, Catalog.GetString("Re_peat Sessions"), null, null, null),
                new Gtk.ActionEntry("RepeatSession0", null, "_0", null, null, new EventHandler(OnRepeatSessionActivated)),
                new Gtk.ActionEntry("RepeatSession1", null, "_1", null, null, new EventHandler(OnRepeatSessionActivated)),
                new Gtk.ActionEntry("RepeatSession2", null, "_2", null, null, new EventHandler(OnRepeatSessionActivated)),
                new Gtk.ActionEntry("RepeatSession3", null, "_3", null, null, new EventHandler(OnRepeatSessionActivated)),
                new Gtk.ActionEntry("RepeatSession4", null, "_4", null, null, new EventHandler(OnRepeatSessionActivated)),
                new Gtk.ActionEntry("QuitAction", Gtk.Stock.Quit, null, "<control>Q", Catalog.GetString("Quit Profiler"), new EventHandler(OnQuitActivated)),
                new Gtk.ActionEntry("RunMenu", null, Catalog.GetString("_Run"), null, null, null),
                new Gtk.ActionEntry("ViewMenu", null, Catalog.GetString("_View"), null, null, null),
            };

            Gtk.ToggleActionEntry[] toggle_actions = new Gtk.ToggleActionEntry[]
            {
                new Gtk.ToggleActionEntry("ShowSystemNodesAction", null, Catalog.GetString("_Show system nodes"), null, Catalog.GetString("Shows internal nodes of system library method invocations"), new EventHandler(OnShowSystemNodesActivated), false),
                new Gtk.ToggleActionEntry("LogEnabledAction", null, Catalog.GetString("_Logging enabled"), null, Catalog.GetString("Profile logging enabled"), new EventHandler(OnLoggingActivated), true),
            };
            group = new Gtk.ActionGroup("group");
            group.Add(actions);
            group.Add(toggle_actions);
            Gtk.UIManager uim = new Gtk.UIManager();

            uim.InsertActionGroup(group, (int)uim.NewMergeId());
            uim.AddUiFromString(ui_info);
            AddAccelGroup(uim.AccelGroup);
            logging_enabled_action         = group.GetAction("LogEnabledAction") as Gtk.ToggleAction;
            logging_enabled_action.Visible = false;
            save_action              = group.GetAction("SaveAsAction");
            save_action.Sensitive    = false;
            show_system_nodes_action = group.GetAction("ShowSystemNodesAction");
            return(uim);
        }
 void UpdateRecentLogs(object o, EventArgs args)
 {
     for (int i = 0; i < max_history_count; i++)
     {
         Gtk.Action action = group.GetAction("RecentLogs" + i);
         if (i < history.LogFiles.Count)
         {
             LogInfo info = history.LogFiles [i];
             action.Label   = "_" + i + ": " + info.Caption;
             action.Tooltip = info.Filename;
             action.Visible = true;
         }
         else
         {
             action.Visible = false;
         }
     }
 }
Exemple #32
0
        public override void Read(ObjectReader reader, XmlElement elem)
        {
            Gtk.Action ac = new Gtk.Action("", "");

            ClassDescriptor klass = Registry.LookupClassByName("Gtk.Action");

            ObjectWrapper.Bind(reader.Project, klass, this, ac, true);

            WidgetUtils.ReadMembers(klass, this, ac, elem);
            name = nameRoot = oldDefaultName = elem.GetAttribute("id");

            string uid = elem.GetAttribute("undoId");

            if (uid.Length > 0)
            {
                UndoId = uid;
            }
        }
Exemple #33
0
        private void BuildActions()
        {
            actPeso            = new Gtk.Action("Peso", "Peso", "Ver peso", null);
            actPeso.Activated += (obj, evt) => this.onPeso();

            actAbdomen            = new Gtk.Action("Abdomen", "Circunferencia abdominal", "Ver circunferencia abdominal", null);
            actAbdomen.Activated += (obj, evt) => this.onAbdomen();

            actEjerTime            = new Gtk.Action("ViewTimeExercise", "Tiempo Ejercicio", "Ver tiempo ejercicio", null);
            actEjerTime.Activated += (obj, evt) => this.onTimeActivities();


            actEjerActivities            = new Gtk.Action("ViewEjerActivities", "Número de Actividades", "Ver numero ejercicios", null);
            actEjerActivities.Activated += (obj, evt) => this.onNumberActivities();


            actEjerDistance            = new Gtk.Action("ViewDistanceExercise", "Distancia Ejercicio", "Ver distancia ejercicio", null);
            actEjerDistance.Activated += (obj, evt) => this.onDistanceActivities();
        }
        private void BuildActions()
        {
            this.actQuit = new Gtk.Action( "Quit", "Quit", "Quit", Gtk.Stock.Quit );
            this.actQuit.Activated += (o, evt) => this.OnClose();

            this.actAbout = new Gtk.Action( "About...", "About...", "About...", Gtk.Stock.About );
            this.actAbout.Activated += (o, evt) => this.OnAbout();

            this.actViewFrames = new Gtk.Action( "ViewFrames", "Frames", "View frames", null );
            this.actViewFrames.Activated += (obj, evt) => this.OnViewFrames();

            this.actViewBoxes = new Gtk.Action( "ViewBoxes", "Boxes", "View boxes", null );
            this.actViewBoxes.Activated += (obj, evt) => this.OnViewBoxes();

            this.actViewNotebook = new Gtk.Action( "ViewNotebook", "Notebook", "View notebook", null );
            this.actViewNotebook.Activated += (obj, evt) => this.OnViewNotebook();

            this.actViewDrawing = new Gtk.Action( "ViewNotebook", "Drawing demo", "View drawing demo", null );
            this.actViewDrawing.Activated += (obj, evt) => this.OnViewDrawing();
        }
Exemple #35
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.LircConfigAction            = new Gtk.Action("LircConfigAction", Mono.Unix.Catalog.GetString("Lirc Config"), null, null);
     this.LircConfigAction.ShortLabel = Mono.Unix.Catalog.GetString("Lirc Config");
     w1.Add(this.LircConfigAction, null);
     this.DialogAction            = new Gtk.Action("DialogAction", Mono.Unix.Catalog.GetString("Dialog"), null, null);
     this.DialogAction.ShortLabel = Mono.Unix.Catalog.GetString("Dialog");
     w1.Add(this.DialogAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar2'><menu name='LircConfigAction' action='LircConfigAction'><menuitem name='DialogAction' action='DialogAction'/></menu></menubar></ui>");
     this.menubar2      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox2.Add(this.menubar2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar2]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent            += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.DialogAction.Activated += new System.EventHandler(this.OnDialog);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.LircConfigAction = new Gtk.Action("LircConfigAction", Mono.Unix.Catalog.GetString("Lirc Config"), null, null);
     this.LircConfigAction.ShortLabel = Mono.Unix.Catalog.GetString("Lirc Config");
     w1.Add(this.LircConfigAction, null);
     this.DialogAction = new Gtk.Action("DialogAction", Mono.Unix.Catalog.GetString("Dialog"), null, null);
     this.DialogAction.ShortLabel = Mono.Unix.Catalog.GetString("Dialog");
     w1.Add(this.DialogAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar2'><menu name='LircConfigAction' action='LircConfigAction'><menuitem name='DialogAction' action='DialogAction'/></menu></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox2.Add(this.menubar2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.DialogAction.Activated += new System.EventHandler(this.OnDialog);
 }
Exemple #37
0
        public void ConnectAccelerator(Gtk.Action action, string keyBind, Gtk.AccelGroup ag)
        {
            string path = "<Actions>/MainWindow/" + action.Name;

            Gdk.ModifierType mods;
            uint             key;

            /*Console.WriteLine(action.AccelPath);
             *
             * if(action.AccelPath == "<Actions>/MainWindow/idepreferences"){
             *      Console.WriteLine(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
             * }*/

            Gtk.Accelerator.Parse(keyBind, out key, out mods);

            /*
             * Console.WriteLine("keyBind->{0}",keyBind);
             * Console.WriteLine("key->{0}",key);
             * Console.WriteLine("mods->{0}",mods);
             * Console.WriteLine("action->{0}",action.Name);
             */

            if ((keyBind.Contains("<alt>") && MainClass.Platform.IsMac))
            {
                //mods |= Gdk.ModifierType.Mod2Mask;
                mods ^= Gdk.ModifierType.Mod1Mask;
                mods |= Gdk.ModifierType.Mod5Mask;
                //mods |= Gdk.ModifierType.Mod5Mask;
            }
            //Console.WriteLine("mods 2->{0}",mods);

            Gtk.AccelMap.ChangeEntry(path, key, mods, true);

            action.AccelGroup = ag;
            action.AccelPath  = path;

            //Console.WriteLine("action->{0}",action.AccelPath);
            //Console.WriteLine("action->{0}",action.AccelGroup);
        }
Exemple #38
0
 public virtual void Build()
 {
     // Action group RoboWarX.GTK.BasicActions
     this.OpenAction            = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     this.Add(this.OpenAction, null);
     this.QuitAction            = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     this.Add(this.QuitAction, null);
     this.FileMenuAction            = new Gtk.Action("FileMenuAction", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     this.Add(this.FileMenuAction, null);
     this.NewAction            = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Reset"), null, "gtk-refresh");
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reset");
     this.Add(this.NewAction, null);
     this.PlayAction            = new Gtk.Action("PlayAction", Mono.Unix.Catalog.GetString("_Play"), null, "gtk-media-play");
     this.PlayAction.ShortLabel = Mono.Unix.Catalog.GetString("_Play");
     this.Add(this.PlayAction, null);
     this.PauseAction            = new Gtk.Action("PauseAction", Mono.Unix.Catalog.GetString("_Pause"), null, "gtk-media-pause");
     this.PauseAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pause");
     this.Add(this.PauseAction, null);
 }
 public virtual void Build()
 {
     // Action group RoboWarX.GTK.BasicActions
     this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     this.Add(this.OpenAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     this.Add(this.QuitAction, null);
     this.FileMenuAction = new Gtk.Action("FileMenuAction", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     this.Add(this.FileMenuAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Reset"), null, "gtk-refresh");
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reset");
     this.Add(this.NewAction, null);
     this.PlayAction = new Gtk.Action("PlayAction", Mono.Unix.Catalog.GetString("_Play"), null, "gtk-media-play");
     this.PlayAction.ShortLabel = Mono.Unix.Catalog.GetString("_Play");
     this.Add(this.PlayAction, null);
     this.PauseAction = new Gtk.Action("PauseAction", Mono.Unix.Catalog.GetString("_Pause"), null, "gtk-media-pause");
     this.PauseAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pause");
     this.Add(this.PauseAction, null);
 }
        /// <summary>
        /// Removes action from the list of monitored actions
        /// </summary>
        /// <param name="aAction">
        /// Action to remove <see cref="Gtk.Action"/>
        /// </param>
        public void Remove(Gtk.Action aAction)
        {
            if (aAction == null)
            {
                return;
            }

            ActionMonitor am;

            for (int i = actions.Count - 1; i >= 0; i--)
            {
                am = (ActionMonitor)actions[i];
                if ((object)am != null)
                {
                    if (am.IsValid == true)
                    {
                        if (am.Action == aAction)
                        {
                            actions.Remove(am);
                        }
                    }
                }
            }
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget mapping.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.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.Simulation            = new Gtk.Action("Simulation", Mono.Unix.Catalog.GetString("Simulation"), null, null);
     this.Simulation.ShortLabel = Mono.Unix.Catalog.GetString("Simulation");
     w2.Add(this.Simulation, null);
     this.File1            = new Gtk.Action("File1", Mono.Unix.Catalog.GetString("File"), null, null);
     this.File1.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.File1, null);
     this.Exit1            = new Gtk.Action("Exit1", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.Exit1.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit1, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "mapping.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Sentience Mapping");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child mapping.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='File1'><menuitem action='Exit1'/></menu><menu action='Tools'><menuitem action='Simulation'/></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
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Simulation Name");
     this.vbox1.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Robot Design File");
     this.vbox1.Add(this.label2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Stereo Images path");
     this.vbox1.Add(this.label3);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.label3]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Tuning Parameters");
     this.vbox1.Add(this.label4);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.label4]));
     w7.Position = 3;
     w7.Expand   = false;
     w7.Fill     = false;
     this.hbox2.Add(this.vbox1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox1]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.txtSimulationName          = new Gtk.TextView();
     this.txtSimulationName.CanFocus = true;
     this.txtSimulationName.Name     = "txtSimulationName";
     this.vbox3.Add(this.txtSimulationName);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.txtSimulationName]));
     w9.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.txtRobotDesignFile          = new Gtk.TextView();
     this.txtRobotDesignFile.CanFocus = true;
     this.txtRobotDesignFile.Name     = "txtRobotDesignFile";
     this.vbox3.Add(this.txtRobotDesignFile);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.txtRobotDesignFile]));
     w10.Position = 1;
     // Container child vbox3.Gtk.Box+BoxChild
     this.txtStereoImagesPath          = new Gtk.TextView();
     this.txtStereoImagesPath.CanFocus = true;
     this.txtStereoImagesPath.Name     = "txtStereoImagesPath";
     this.vbox3.Add(this.txtStereoImagesPath);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.txtStereoImagesPath]));
     w11.Position = 2;
     // Container child vbox3.Gtk.Box+BoxChild
     this.txtTuningParameters          = new Gtk.TextView();
     this.txtTuningParameters.CanFocus = true;
     this.txtTuningParameters.Name     = "txtTuningParameters";
     this.vbox3.Add(this.txtTuningParameters);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.txtTuningParameters]));
     w12.Position = 3;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w13.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.cmdRobotDesignFileBrowse              = new Gtk.Button();
     this.cmdRobotDesignFileBrowse.CanFocus     = true;
     this.cmdRobotDesignFileBrowse.Name         = "cmdRobotDesignFileBrowse";
     this.cmdRobotDesignFileBrowse.UseUnderline = true;
     this.cmdRobotDesignFileBrowse.Label        = Mono.Unix.Catalog.GetString("Browse");
     this.vbox4.Add(this.cmdRobotDesignFileBrowse);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox4[this.cmdRobotDesignFileBrowse]));
     w14.Position = 1;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.cmdStereoImagesPathBrowse              = new Gtk.Button();
     this.cmdStereoImagesPathBrowse.CanFocus     = true;
     this.cmdStereoImagesPathBrowse.Name         = "cmdStereoImagesPathBrowse";
     this.cmdStereoImagesPathBrowse.UseUnderline = true;
     this.cmdStereoImagesPathBrowse.Label        = Mono.Unix.Catalog.GetString("Browse");
     this.vbox4.Add(this.cmdStereoImagesPathBrowse);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox4[this.cmdStereoImagesPathBrowse]));
     w15.Position = 2;
     w15.Expand   = false;
     w15.Fill     = false;
     this.hbox2.Add(this.vbox4);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox4]));
     w16.Position = 2;
     w16.Expand   = false;
     w16.Fill     = false;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w17.Position = 1;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.vpanedPathSegments          = new Gtk.VPaned();
     this.vpanedPathSegments.CanFocus = true;
     this.vpanedPathSegments.Name     = "vpanedPathSegments";
     this.vpanedPathSegments.Position = 10;
     this.vbox5.Add(this.vpanedPathSegments);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox5[this.vpanedPathSegments]));
     w18.Position = 0;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("X position mm");
     this.vbox6.Add(this.label5);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox6[this.label5]));
     w19.Position = 0;
     w19.Expand   = false;
     w19.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Y position mm");
     this.vbox6.Add(this.label6);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox6[this.label6]));
     w20.Position = 1;
     w20.Expand   = false;
     w20.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Heading degrees");
     this.vbox6.Add(this.label7);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox6[this.label7]));
     w21.Position = 2;
     w21.Expand   = false;
     w21.Fill     = false;
     this.hbox4.Add(this.vbox6);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.vbox6]));
     w22.Position = 0;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.vbox7         = new Gtk.VBox();
     this.vbox7.Name    = "vbox7";
     this.vbox7.Spacing = 6;
     // Container child vbox7.Gtk.Box+BoxChild
     this.txtXPosition             = new Gtk.TextView();
     this.txtXPosition.Buffer.Text = "0000";
     this.txtXPosition.CanFocus    = true;
     this.txtXPosition.Name        = "txtXPosition";
     this.vbox7.Add(this.txtXPosition);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox7[this.txtXPosition]));
     w23.Position = 0;
     // Container child vbox7.Gtk.Box+BoxChild
     this.txtYPosition             = new Gtk.TextView();
     this.txtYPosition.Buffer.Text = "0000";
     this.txtYPosition.CanFocus    = true;
     this.txtYPosition.Name        = "txtYPosition";
     this.vbox7.Add(this.txtYPosition);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox7[this.txtYPosition]));
     w24.Position = 1;
     // Container child vbox7.Gtk.Box+BoxChild
     this.txtHeading             = new Gtk.TextView();
     this.txtHeading.Buffer.Text = "0000";
     this.txtHeading.CanFocus    = true;
     this.txtHeading.Name        = "txtHeading";
     this.vbox7.Add(this.txtHeading);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox7[this.txtHeading]));
     w25.Position = 2;
     this.hbox4.Add(this.vbox7);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox4[this.vbox7]));
     w26.Position = 1;
     // Container child hbox4.Gtk.Box+BoxChild
     this.vbox8         = new Gtk.VBox();
     this.vbox8.Name    = "vbox8";
     this.vbox8.Spacing = 6;
     // Container child vbox8.Gtk.Box+BoxChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Number of steps");
     this.vbox8.Add(this.label8);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox8[this.label8]));
     w27.Position = 0;
     w27.Expand   = false;
     w27.Fill     = false;
     // Container child vbox8.Gtk.Box+BoxChild
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Distance per step mm");
     this.vbox8.Add(this.label9);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox8[this.label9]));
     w28.Position = 1;
     w28.Expand   = false;
     w28.Fill     = false;
     // Container child vbox8.Gtk.Box+BoxChild
     this.label10           = new Gtk.Label();
     this.label10.Name      = "label10";
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Heading change per step");
     this.vbox8.Add(this.label10);
     Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.vbox8[this.label10]));
     w29.Position = 2;
     w29.Expand   = false;
     w29.Fill     = false;
     this.hbox4.Add(this.vbox8);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox4[this.vbox8]));
     w30.Position = 2;
     w30.Expand   = false;
     w30.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.vbox9         = new Gtk.VBox();
     this.vbox9.Name    = "vbox9";
     this.vbox9.Spacing = 6;
     // Container child vbox9.Gtk.Box+BoxChild
     this.txtNoOfSteps             = new Gtk.TextView();
     this.txtNoOfSteps.Buffer.Text = "0000";
     this.txtNoOfSteps.CanFocus    = true;
     this.txtNoOfSteps.Name        = "txtNoOfSteps";
     this.vbox9.Add(this.txtNoOfSteps);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox9[this.txtNoOfSteps]));
     w31.Position = 0;
     // Container child vbox9.Gtk.Box+BoxChild
     this.txtDistancePerStep             = new Gtk.TextView();
     this.txtDistancePerStep.Buffer.Text = "0000";
     this.txtDistancePerStep.CanFocus    = true;
     this.txtDistancePerStep.Name        = "txtDistancePerStep";
     this.vbox9.Add(this.txtDistancePerStep);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox9[this.txtDistancePerStep]));
     w32.Position = 1;
     // Container child vbox9.Gtk.Box+BoxChild
     this.txtHeadingChangePerStep             = new Gtk.TextView();
     this.txtHeadingChangePerStep.Buffer.Text = "0000";
     this.txtHeadingChangePerStep.CanFocus    = true;
     this.txtHeadingChangePerStep.Name        = "txtHeadingChangePerStep";
     this.vbox9.Add(this.txtHeadingChangePerStep);
     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox9[this.txtHeadingChangePerStep]));
     w33.Position = 2;
     this.hbox4.Add(this.vbox9);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox4[this.vbox9]));
     w34.Position = 3;
     this.vbox5.Add(this.hbox4);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox4]));
     w35.Position = 1;
     w35.Expand   = false;
     w35.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.cmdAdd              = new Gtk.Button();
     this.cmdAdd.CanFocus     = true;
     this.cmdAdd.Name         = "cmdAdd";
     this.cmdAdd.UseUnderline = true;
     this.cmdAdd.Label        = Mono.Unix.Catalog.GetString("Add");
     this.hbox3.Add(this.cmdAdd);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdAdd]));
     w36.Position = 0;
     w36.Expand   = false;
     w36.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.cmdRemove              = new Gtk.Button();
     this.cmdRemove.CanFocus     = true;
     this.cmdRemove.Name         = "cmdRemove";
     this.cmdRemove.UseUnderline = true;
     this.cmdRemove.Label        = Mono.Unix.Catalog.GetString("Remove");
     this.hbox3.Add(this.cmdRemove);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdRemove]));
     w37.Position = 1;
     w37.Expand   = false;
     w37.Fill     = false;
     this.vbox5.Add(this.hbox3);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox3]));
     w38.Position = 2;
     w38.Expand   = false;
     w38.Fill     = false;
     this.hbox1.Add(this.vbox5);
     Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox5]));
     w39.Position = 0;
     w39.Expand   = false;
     w39.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgRobotPath      = new Gtk.Image();
     this.imgRobotPath.Name = "imgRobotPath";
     this.hbox1.Add(this.imgRobotPath);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgRobotPath]));
     w40.Position = 1;
     w40.Expand   = false;
     w40.Fill     = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w41.Position = 2;
     w41.Expand   = false;
     w41.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 793;
     this.DefaultHeight = 485;
     this.Show();
     this.DeleteEvent          += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Simulation.Activated += new System.EventHandler(this.mnuSimulation);
     this.Exit1.Activated      += new System.EventHandler(this.OnExit1Activated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.jumpToAction = new Gtk.Action("jumpToAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-jump-to");
     this.jumpToAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart");
     w1.Add(this.jumpToAction, 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.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, "none");
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("About...");
     w1.Add(this.HelpAction, null);
     this.saveAction = new Gtk.Action("saveAction", Mono.Unix.Catalog.GetString("Take snapshot"), null, "gtk-save");
     this.saveAction.ShortLabel = Mono.Unix.Catalog.GetString("Take snapshot");
     w1.Add(this.saveAction, null);
     this.helpAction = new Gtk.Action("helpAction", Mono.Unix.Catalog.GetString("About..."), null, "gtk-help");
     this.helpAction.ShortLabel = Mono.Unix.Catalog.GetString("About...");
     w1.Add(this.helpAction, null);
     this.OptionsAction = new Gtk.Action("OptionsAction", Mono.Unix.Catalog.GetString("Options"), null, null);
     this.OptionsAction.ShortLabel = Mono.Unix.Catalog.GetString("Options");
     w1.Add(this.OptionsAction, null);
     this.GraphicsAction = new Gtk.Action("GraphicsAction", Mono.Unix.Catalog.GetString("Graphics"), null, null);
     this.GraphicsAction.ShortLabel = Mono.Unix.Catalog.GetString("Graphics");
     w1.Add(this.GraphicsAction, null);
     this.AnimationDelayAction = new Gtk.Action("AnimationDelayAction", Mono.Unix.Catalog.GetString("Animation Delay"), null, null);
     this.AnimationDelayAction.ShortLabel = Mono.Unix.Catalog.GetString("Animation Delay");
     w1.Add(this.AnimationDelayAction, null);
     this.mediaPlayAction = new Gtk.Action("mediaPlayAction", Mono.Unix.Catalog.GetString("Frame Delay"), null, "gtk-media-play");
     this.mediaPlayAction.ShortLabel = Mono.Unix.Catalog.GetString("Frame Delay");
     w1.Add(this.mediaPlayAction, null);
     this.d500MsAction = new Gtk.RadioAction("d500MsAction", Mono.Unix.Catalog.GetString("500 ms"), null, null, 0);
     this.d500MsAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.d500MsAction.ShortLabel = Mono.Unix.Catalog.GetString("500 ms");
     w1.Add(this.d500MsAction, null);
     this.d1000MsAction = new Gtk.RadioAction("d1000MsAction", Mono.Unix.Catalog.GetString("1000 ms"), null, null, 0);
     this.d1000MsAction.Group = this.d500MsAction.Group;
     this.d1000MsAction.ShortLabel = Mono.Unix.Catalog.GetString("1000 ms");
     w1.Add(this.d1000MsAction, null);
     this.d250MsAction = new Gtk.RadioAction("d250MsAction", Mono.Unix.Catalog.GetString("250 ms"), null, null, 0);
     this.d250MsAction.Group = this.d500MsAction.Group;
     this.d250MsAction.ShortLabel = Mono.Unix.Catalog.GetString("250 ms");
     w1.Add(this.d250MsAction, null);
     this.d100MsAction = new Gtk.RadioAction("d100MsAction", Mono.Unix.Catalog.GetString("100 ms"), null, null, 0);
     this.d100MsAction.Group = this.d500MsAction.Group;
     this.d100MsAction.ShortLabel = Mono.Unix.Catalog.GetString("100 ms");
     w1.Add(this.d100MsAction, null);
     this.DrawGridAction = new Gtk.ToggleAction("DrawGridAction", Mono.Unix.Catalog.GetString("Draw Grid"), null, null);
     this.DrawGridAction.ShortLabel = Mono.Unix.Catalog.GetString("Draw Grid");
     w1.Add(this.DrawGridAction, null);
     this.ANSIOnlyAction = new Gtk.ToggleAction("ANSIOnlyAction", Mono.Unix.Catalog.GetString("ANSI Only"), null, null);
     this.ANSIOnlyAction.Active = true;
     this.ANSIOnlyAction.ShortLabel = Mono.Unix.Catalog.GetString("ANSI Only");
     w1.Add(this.ANSIOnlyAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("GVisHuff - Adaptive Huffman Animator");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.MainLayout = new Gtk.VBox();
     this.MainLayout.Name = "MainLayout";
     this.MainLayout.Spacing = 6;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='MainMenu'><menu name='FileAction' action='FileAction'><menuitem name='jumpToAction' action='jumpToAction'/><menuitem name='saveAction' action='saveAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='OptionsAction' action='OptionsAction'><menu name='mediaPlayAction' action='mediaPlayAction'><menuitem name='d100MsAction' action='d100MsAction'/><menuitem name='d250MsAction' action='d250MsAction'/><menuitem name='d500MsAction' action='d500MsAction'/><menuitem name='d1000MsAction' action='d1000MsAction'/></menu><menuitem name='DrawGridAction' action='DrawGridAction'/><menuitem name='ANSIOnlyAction' action='ANSIOnlyAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='helpAction' action='helpAction'/></menu></menubar></ui>");
     this.MainMenu = ((Gtk.MenuBar)(this.UIManager.GetWidget("/MainMenu")));
     this.MainMenu.Name = "MainMenu";
     this.MainLayout.Add(this.MainMenu);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.MainLayout[this.MainMenu]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.SenderHBox = new Gtk.HBox();
     this.SenderHBox.Name = "SenderHBox";
     this.SenderHBox.Homogeneous = true;
     this.SenderHBox.Spacing = 6;
     // Container child SenderHBox.Gtk.Box+BoxChild
     this.SenderVBox = new Gtk.VBox();
     this.SenderVBox.Name = "SenderVBox";
     this.SenderVBox.Spacing = 6;
     // Container child SenderVBox.Gtk.Box+BoxChild
     this.MsgEncHBox = new Gtk.HBox();
     this.MsgEncHBox.Name = "MsgEncHBox";
     this.MsgEncHBox.Spacing = 6;
     // Container child MsgEncHBox.Gtk.Box+BoxChild
     this.SenderEntry = new Gtk.Entry();
     this.SenderEntry.CanFocus = true;
     this.SenderEntry.Name = "SenderEntry";
     this.SenderEntry.IsEditable = false;
     this.SenderEntry.InvisibleChar = '●';
     this.MsgEncHBox.Add(this.SenderEntry);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.MsgEncHBox[this.SenderEntry]));
     w3.Position = 0;
     // Container child MsgEncHBox.Gtk.Box+BoxChild
     this.SendButton = new Gtk.Button();
     this.SendButton.CanFocus = true;
     this.SendButton.Name = "SendButton";
     this.SendButton.UseUnderline = true;
     // Container child SendButton.Gtk.Container+ContainerChild
     Gtk.Alignment w4 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w5 = new Gtk.HBox();
     w5.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w6 = new Gtk.Image();
     w6.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.Menu, 16);
     w5.Add(w6);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w8 = new Gtk.Label();
     w8.LabelProp = Mono.Unix.Catalog.GetString("Send Message");
     w8.UseUnderline = true;
     w5.Add(w8);
     w4.Add(w5);
     this.SendButton.Add(w4);
     this.MsgEncHBox.Add(this.SendButton);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.MsgEncHBox[this.SendButton]));
     w12.Position = 1;
     w12.Expand = false;
     w12.Fill = false;
     this.SenderVBox.Add(this.MsgEncHBox);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.SenderVBox[this.MsgEncHBox]));
     w13.Position = 0;
     w13.Expand = false;
     w13.Fill = false;
     // Container child SenderVBox.Gtk.Box+BoxChild
     this.SenderScrWnd = new Gtk.ScrolledWindow();
     this.SenderScrWnd.CanFocus = true;
     this.SenderScrWnd.Name = "SenderScrWnd";
     this.SenderScrWnd.ShadowType = ((Gtk.ShadowType)(1));
     // Container child SenderScrWnd.Gtk.Container+ContainerChild
     Gtk.Viewport w14 = new Gtk.Viewport();
     w14.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.SenderTreeDrawer = new Gtk.DrawingArea();
     this.SenderTreeDrawer.Name = "SenderTreeDrawer";
     w14.Add(this.SenderTreeDrawer);
     this.SenderScrWnd.Add(w14);
     this.SenderVBox.Add(this.SenderScrWnd);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.SenderVBox[this.SenderScrWnd]));
     w17.Position = 1;
     this.SenderHBox.Add(this.SenderVBox);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.SenderHBox[this.SenderVBox]));
     w18.Position = 0;
     // Container child SenderHBox.Gtk.Box+BoxChild
     this.ReceiverVBox = new Gtk.VBox();
     this.ReceiverVBox.Name = "ReceiverVBox";
     this.ReceiverVBox.Spacing = 6;
     // Container child ReceiverVBox.Gtk.Box+BoxChild
     this.DecHBox = new Gtk.HBox();
     this.DecHBox.Name = "DecHBox";
     this.DecHBox.Spacing = 6;
     // Container child DecHBox.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Decoded message:");
     this.DecHBox.Add(this.label3);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.DecHBox[this.label3]));
     w19.Position = 0;
     w19.Expand = false;
     w19.Fill = false;
     // Container child DecHBox.Gtk.Box+BoxChild
     this.DecEntry = new Gtk.Entry();
     this.DecEntry.CanFocus = true;
     this.DecEntry.Name = "DecEntry";
     this.DecEntry.IsEditable = false;
     this.DecEntry.InvisibleChar = '●';
     this.DecHBox.Add(this.DecEntry);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.DecHBox[this.DecEntry]));
     w20.Position = 1;
     this.ReceiverVBox.Add(this.DecHBox);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.ReceiverVBox[this.DecHBox]));
     w21.Position = 0;
     w21.Expand = false;
     w21.Fill = false;
     // Container child ReceiverVBox.Gtk.Box+BoxChild
     this.ReceiverScrWnd = new Gtk.ScrolledWindow();
     this.ReceiverScrWnd.CanFocus = true;
     this.ReceiverScrWnd.Name = "ReceiverScrWnd";
     this.ReceiverScrWnd.ShadowType = ((Gtk.ShadowType)(1));
     // Container child ReceiverScrWnd.Gtk.Container+ContainerChild
     Gtk.Viewport w22 = new Gtk.Viewport();
     w22.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.ReceiverTreeDrawer = new Gtk.DrawingArea();
     this.ReceiverTreeDrawer.Name = "ReceiverTreeDrawer";
     w22.Add(this.ReceiverTreeDrawer);
     this.ReceiverScrWnd.Add(w22);
     this.ReceiverVBox.Add(this.ReceiverScrWnd);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.ReceiverVBox[this.ReceiverScrWnd]));
     w25.Position = 1;
     this.SenderHBox.Add(this.ReceiverVBox);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.SenderHBox[this.ReceiverVBox]));
     w26.Position = 1;
     this.MainLayout.Add(this.SenderHBox);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.MainLayout[this.SenderHBox]));
     w27.Position = 1;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.BinHBox = new Gtk.HBox();
     this.BinHBox.Name = "BinHBox";
     this.BinHBox.Spacing = 6;
     // Container child BinHBox.Gtk.Box+BoxChild
     this.BinLabel = new Gtk.Label();
     this.BinLabel.Name = "BinLabel";
     this.BinLabel.LabelProp = Mono.Unix.Catalog.GetString("Data transferred");
     this.BinHBox.Add(this.BinLabel);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.BinHBox[this.BinLabel]));
     w28.Position = 0;
     w28.Expand = false;
     w28.Fill = false;
     // Container child BinHBox.Gtk.Box+BoxChild
     this.BinEntry = new Gtk.Entry();
     this.BinEntry.CanFocus = true;
     this.BinEntry.Name = "BinEntry";
     this.BinEntry.IsEditable = false;
     this.BinEntry.InvisibleChar = '●';
     this.BinHBox.Add(this.BinEntry);
     Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.BinHBox[this.BinEntry]));
     w29.Position = 1;
     this.MainLayout.Add(this.BinHBox);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.MainLayout[this.BinHBox]));
     w30.Position = 2;
     w30.Expand = false;
     w30.Fill = false;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.HotkeyHintLabel = new Gtk.Label();
     this.HotkeyHintLabel.Name = "HotkeyHintLabel";
     this.HotkeyHintLabel.LabelProp = Mono.Unix.Catalog.GetString("<Ctl-S> to capture the screen, <Ctl-Q> to quit");
     this.MainLayout.Add(this.HotkeyHintLabel);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.MainLayout[this.HotkeyHintLabel]));
     w31.PackType = ((Gtk.PackType)(1));
     w31.Position = 3;
     w31.Expand = false;
     w31.Fill = false;
     this.Add(this.MainLayout);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 697;
     this.DefaultHeight = 538;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.jumpToAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
     this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.saveAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
     this.helpAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.d500MsAction.Activated += new System.EventHandler(this.On500MsActionActivated);
     this.d1000MsAction.Activated += new System.EventHandler(this.On1000MsActionActivated);
     this.d250MsAction.Activated += new System.EventHandler(this.On250MsActionActivated);
     this.d100MsAction.Activated += new System.EventHandler(this.On100MsActionActivated);
     this.DrawGridAction.Toggled += new System.EventHandler(this.OnDrawGridActionToggled);
     this.ANSIOnlyAction.Toggled += new System.EventHandler(this.OnANSIOnlyActionToggled);
     this.SenderEntry.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnSenderEntryKeyReleaseEvent);
     this.SendButton.Clicked += new System.EventHandler(this.OnSendButtonClicked);
     this.SenderTreeDrawer.ExposeEvent += new Gtk.ExposeEventHandler(this.OnSenderTreeDrawerExposeEvent);
     this.ReceiverTreeDrawer.ExposeEvent += new Gtk.ExposeEventHandler(this.OnReceiverTreeDrawerExposeEvent);
 }
Exemple #43
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);
 }
 void OnRecentLogsActivated(object o, EventArgs args)
 {
     Gtk.Action action = o as Gtk.Action;
     OpenProfile(action.Tooltip);
 }
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "Sosp.EarthOMeter.MainWindow")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget Sosp.EarthOMeter.MainWindow
         cobj.Title = "EarthOMeter";
         Gtk.UIManager w1 = new Gtk.UIManager();
         Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
         Gtk.Action w3 = new Gtk.Action("paste", null, "Entfernungen aus Zwischenablage laden", "gtk-paste");
         bindings["paste"] = w3;
         w2.Add(w3, "<Control><Mod2>v");
         Gtk.Action w4 = new Gtk.Action("open", null, "Entfernungen aus KML Datei laden", "gtk-open");
         bindings["open"] = w4;
         w2.Add(w4, null);
         Gtk.Action w5 = new Gtk.Action("Bearbeiten", "Bearbeiten", null, null);
         w5.ShortLabel = "Bearbeiten";
         bindings["Bearbeiten"] = w5;
         w2.Add(w5, null);
         Gtk.Action w6 = new Gtk.Action("Hilfe", "Hilfe", null, null);
         w6.ShortLabel = "Hilfe";
         bindings["Hilfe"] = w6;
         w2.Add(w6, null);
         Gtk.Action w7 = new Gtk.Action("Info", "Info", null, "gtk-about");
         w7.ShortLabel = "Info";
         bindings["Info"] = w7;
         w2.Add(w7, null);
         w1.InsertActionGroup(w2, 0);
         cobj.AddAccelGroup(w1.AccelGroup);
         cobj.Icon = Gdk.Pixbuf.LoadFromResource("Icon22x22.png");
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "Sosp.EarthOMeter.MainWindow";
         // Container child Sosp.EarthOMeter.MainWindow.Gtk.Container+ContainerChild
         Gtk.VBox w8 = new Gtk.VBox();
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "vbox1";
         // Container child vbox1.Gtk.Box+BoxChild
         w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Bearbeiten'><menuitem action='open'/><menuitem action='paste'/></menu><menu action='Hilfe'><menuitem action='Info'/></menu></menubar></ui>");
         Gtk.MenuBar w9 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
         w9.Events = ((Gdk.EventMask)(0));
         w9.Name = "menubar2";
         bindings["menubar2"] = w9;
         w8.Add(w9);
         Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9]));
         w10.Position = 0;
         w10.Expand = false;
         w10.Fill = false;
         // Container child vbox1.Gtk.Box+BoxChild
         w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='open'/><toolitem action='paste'/></toolbar></ui>");
         Gtk.Toolbar w11 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
         w11.ShowArrow = false;
         w11.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
         w11.IconSize = ((Gtk.IconSize)(2));
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "toolbar1";
         bindings["toolbar1"] = w11;
         w8.Add(w11);
         Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11]));
         w12.Position = 1;
         w12.Expand = false;
         w12.Fill = false;
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.TreeView w13 = new Gtk.TreeView();
         w13.CanFocus = true;
         w13.Events = ((Gdk.EventMask)(0));
         w13.Name = "treeview1";
         bindings["treeview1"] = w13;
         w8.Add(w13);
         Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w8[w13]));
         w14.Position = 2;
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.Statusbar w15 = new Gtk.Statusbar();
         w15.Events = ((Gdk.EventMask)(0));
         w15.Name = "statusbar1";
         bindings["statusbar1"] = w15;
         w8.Add(w15);
         Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w8[w15]));
         w16.Position = 3;
         w16.Expand = false;
         w16.Fill = false;
         bindings["vbox1"] = w8;
         cobj.Add(w8);
         cobj.DefaultWidth = 527;
         cobj.DefaultHeight = 300;
         bindings["Sosp.EarthOMeter.MainWindow"] = cobj;
         w9.Show();
         w11.Show();
         w13.Show();
         w15.Show();
         w8.Show();
         cobj.Show();
         cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
         w3.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "pasteActivated")));
         w4.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "openActivated")));
         w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "infoActivated")));
     }
     else {
         if ((id == "Sosp.EarthOMeter.About")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget Sosp.EarthOMeter.About
             cobj.Title = "Über EarthOMeter";
             cobj.Icon = Gdk.Pixbuf.LoadFromResource("Icon16x16.png");
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.Modal = true;
             cobj.Resizable = false;
             cobj.AllowGrow = false;
             cobj.DefaultWidth = 300;
             cobj.DefaultHeight = 400;
             cobj.DestroyWithParent = true;
             cobj.Gravity = ((Gdk.Gravity)(5));
             cobj.Events = ((Gdk.EventMask)(0));
             cobj.Name = "Sosp.EarthOMeter.About";
             cobj.HeightRequest = 400;
             cobj.WidthRequest = 300;
             // Container child Sosp.EarthOMeter.About.Gtk.Container+ContainerChild
             Gtk.VBox w1 = new Gtk.VBox();
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "alignment2";
             // Container child alignment2.Gtk.Container+ContainerChild
             Gtk.Label w3 = new Gtk.Label();
             w3.LabelProp = "Version";
             w3.Xpad = 20;
             w3.Xalign = 0F;
             w3.Yalign = 1F;
             w3.Events = ((Gdk.EventMask)(0));
             w3.Name = "lblVersionHeader";
             w3.HeightRequest = 150;
             bindings["lblVersionHeader"] = w3;
             w2.Add(w3);
             bindings["alignment2"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w2]));
             w5.Position = 0;
             w5.Expand = false;
             w5.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w6 = new Gtk.Label();
             w6.LabelProp = "label2";
             w6.Selectable = true;
             w6.Xpad = 30;
             w6.Ypad = 5;
             w6.Xalign = 0F;
             w6.CanFocus = true;
             w6.Events = ((Gdk.EventMask)(0));
             w6.Name = "lblVersion";
             bindings["lblVersion"] = w6;
             w1.Add(w6);
             Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w6]));
             w7.Position = 1;
             w7.Expand = false;
             w7.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w8 = new Gtk.Label();
             w8.LabelProp = "Lizenz";
             w8.Xpad = 20;
             w8.Ypad = 5;
             w8.Xalign = 0F;
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "lblLicenseHeader";
             bindings["lblLicenseHeader"] = w8;
             w1.Add(w8);
             Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w8]));
             w9.Position = 2;
             w9.Expand = false;
             w9.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w10 = new Gtk.Label();
             w10.LabelProp = "GNU GENERAL PUBLIC LICENSE\nVersion 2, June 1991";
             w10.Xpad = 30;
             w10.Ypad = 5;
             w10.Xalign = 0F;
             w10.Events = ((Gdk.EventMask)(0));
             w10.Name = "lblVersion1";
             bindings["lblVersion1"] = w10;
             w1.Add(w10);
             Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w10]));
             w11.Position = 3;
             w11.Expand = false;
             w11.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w12 = new Gtk.Label();
             w12.LabelProp = "Copyright";
             w12.Xpad = 20;
             w12.Ypad = 5;
             w12.Xalign = 0F;
             w12.Events = ((Gdk.EventMask)(0));
             w12.Name = "lblCopyrightHeader";
             bindings["lblCopyrightHeader"] = w12;
             w1.Add(w12);
             Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
             w13.Position = 4;
             w13.Expand = false;
             w13.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w14 = new Gtk.Label();
             w14.LabelProp = "© 2008 Softsprings\nAlois Flammensboeck";
             w14.Xpad = 30;
             w14.Xalign = 0F;
             w14.Yalign = 0.02F;
             w14.Events = ((Gdk.EventMask)(0));
             w14.Name = "lblCopyright1";
             w14.HeightRequest = 35;
             bindings["lblCopyright1"] = w14;
             w1.Add(w14);
             Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
             w15.Position = 5;
             w15.Expand = false;
             w15.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w16 = new Gtk.Label();
             w16.LabelProp = "http://www.softsprings.de";
             w16.UseUnderline = true;
             w16.Selectable = true;
             w16.Xpad = 30;
             w16.Xalign = 0F;
             w16.Yalign = 0F;
             w16.CanFocus = true;
             w16.Events = ((Gdk.EventMask)(0));
             w16.Name = "lblCopyright2";
             w16.HeightRequest = 19;
             bindings["lblCopyright2"] = w16;
             w1.Add(w16);
             Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[w16]));
             w17.Position = 6;
             w17.Expand = false;
             w17.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Label w18 = new Gtk.Label();
             w18.LabelProp = "*****@*****.**";
             w18.UseUnderline = true;
             w18.Selectable = true;
             w18.Xpad = 30;
             w18.Xalign = 0F;
             w18.Yalign = 0F;
             w18.CanFocus = true;
             w18.Events = ((Gdk.EventMask)(0));
             w18.Name = "lblCopyright3";
             bindings["lblCopyright3"] = w18;
             w1.Add(w18);
             Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w1[w18]));
             w19.Position = 7;
             w19.Expand = false;
             w19.Fill = false;
             bindings["vbox1"] = w1;
             cobj.Add(w1);
             bindings["Sosp.EarthOMeter.About"] = cobj;
             w3.Show();
             w2.Show();
             w6.Show();
             w8.Show();
             w10.Show();
             w12.Show();
             w14.Show();
             w16.Show();
             w18.Show();
             w1.Show();
             cobj.Show();
         }
     }
     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 MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.StatusAction = new Gtk.Action("StatusAction", Mono.Unix.Catalog.GetString("Status"), null, null);
     this.StatusAction.ShortLabel = Mono.Unix.Catalog.GetString("Status");
     w1.Add(this.StatusAction, null);
     this.BusyAction = new Gtk.RadioAction("BusyAction", Mono.Unix.Catalog.GetString("Busy"), null, "gtk-dialog-error", 0);
     this.BusyAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.BusyAction.Sensitive = false;
     this.BusyAction.ShortLabel = Mono.Unix.Catalog.GetString("Busy");
     w1.Add(this.BusyAction, null);
     this.AwayAction = new Gtk.RadioAction("AwayAction", Mono.Unix.Catalog.GetString("Away"), null, "gtk-redo", 0);
     this.AwayAction.Group = this.BusyAction.Group;
     this.AwayAction.ShortLabel = Mono.Unix.Catalog.GetString("Away");
     w1.Add(this.AwayAction, null);
     this.GroundSitAction = new Gtk.RadioAction("GroundSitAction", Mono.Unix.Catalog.GetString("Ground Sit"), null, null, 0);
     this.GroundSitAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.GroundSitAction.ShortLabel = Mono.Unix.Catalog.GetString("Ground Sit");
     w1.Add(this.GroundSitAction, null);
     this.CrouchAction = new Gtk.RadioAction("CrouchAction", Mono.Unix.Catalog.GetString("Crouch"), null, null, 0);
     this.CrouchAction.Group = this.GroundSitAction.Group;
     this.CrouchAction.ShortLabel = Mono.Unix.Catalog.GetString("Crouch");
     w1.Add(this.CrouchAction, null);
     this.FlyAction = new Gtk.RadioAction("FlyAction", Mono.Unix.Catalog.GetString("Fly"), null, null, 0);
     this.FlyAction.Group = this.GroundSitAction.Group;
     this.FlyAction.ShortLabel = Mono.Unix.Catalog.GetString("Fly");
     w1.Add(this.FlyAction, null);
     this.AvaiableAction = new Gtk.RadioAction("AvaiableAction", Mono.Unix.Catalog.GetString("Avaiable"), null, "gtk-yes", 0);
     this.AvaiableAction.Group = this.BusyAction.Group;
     this.AvaiableAction.ShortLabel = Mono.Unix.Catalog.GetString("Avaiable");
     w1.Add(this.AvaiableAction, null);
     this.StandingAction = new Gtk.RadioAction("StandingAction", Mono.Unix.Catalog.GetString("Standing"), null, null, 0);
     this.StandingAction.Group = this.GroundSitAction.Group;
     this.StandingAction.ShortLabel = Mono.Unix.Catalog.GetString("Standing");
     w1.Add(this.StandingAction, null);
     this.SittingAction = new Gtk.RadioAction("SittingAction", Mono.Unix.Catalog.GetString("Sitting"), null, null, 0);
     this.SittingAction.Group = this.GroundSitAction.Group;
     this.SittingAction.Sensitive = false;
     this.SittingAction.ShortLabel = Mono.Unix.Catalog.GetString("Sitting");
     w1.Add(this.SittingAction, null);
     this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("Tools"), null, "gtk-execute");
     this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools");
     w1.Add(this.ToolsAction, null);
     this.ParcelAction = new Gtk.ToggleAction("ParcelAction", Mono.Unix.Catalog.GetString("Parcel"), null, null);
     this.ParcelAction.ShortLabel = Mono.Unix.Catalog.GetString("Parcel");
     w1.Add(this.ParcelAction, null);
     this.ObjectsAction = new Gtk.ToggleAction("ObjectsAction", Mono.Unix.Catalog.GetString("Objects"), null, null);
     this.ObjectsAction.ShortLabel = Mono.Unix.Catalog.GetString("Objects");
     w1.Add(this.ObjectsAction, null);
     this.InventoryAction = new Gtk.ToggleAction("InventoryAction", Mono.Unix.Catalog.GetString("Inventory"), null, null);
     this.InventoryAction.ShortLabel = Mono.Unix.Catalog.GetString("Inventory");
     w1.Add(this.InventoryAction, null);
     this.LocationAction = new Gtk.ToggleAction("LocationAction", Mono.Unix.Catalog.GetString("Location"), null, null);
     this.LocationAction.ShortLabel = Mono.Unix.Catalog.GetString("Location");
     w1.Add(this.LocationAction, null);
     this.GroupsAction = new Gtk.ToggleAction("GroupsAction", Mono.Unix.Catalog.GetString("Groups"), null, "Groups");
     this.GroupsAction.ShortLabel = Mono.Unix.Catalog.GetString("Groups");
     w1.Add(this.GroupsAction, null);
     this.SearchAction = new Gtk.ToggleAction("SearchAction", Mono.Unix.Catalog.GetString("Search"), null, null);
     this.SearchAction.ShortLabel = Mono.Unix.Catalog.GetString("Search");
     w1.Add(this.SearchAction, null);
     this.SettingsAction = new Gtk.Action("SettingsAction", Mono.Unix.Catalog.GetString("Settings"), null, null);
     this.SettingsAction.ShortLabel = Mono.Unix.Catalog.GetString("Settings");
     w1.Add(this.SettingsAction, null);
     this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-properties");
     this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("Preferences");
     w1.Add(this.PreferencesAction, 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.BrowserAction = new Gtk.Action("BrowserAction", Mono.Unix.Catalog.GetString("Browser"), null, null);
     this.BrowserAction.ShortLabel = Mono.Unix.Catalog.GetString("Browser");
     w1.Add(this.BrowserAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, "gtk-help");
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction, 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.WidthRequest = 800;
     this.HeightRequest = 600;
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.AllowShrink = true;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox6 = new Gtk.VBox();
     this.vbox6.Name = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='StatusAction' action='StatusAction'><menuitem name='AvaiableAction' action='AvaiableAction'/><menuitem name='BusyAction' action='BusyAction'/><menuitem name='AwayAction' action='AwayAction'/><separator/><menuitem name='StandingAction' action='StandingAction'/><menuitem name='GroundSitAction' action='GroundSitAction'/><menuitem name='CrouchAction' action='CrouchAction'/><menuitem name='FlyAction' action='FlyAction'/><menuitem name='SittingAction' action='SittingAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='ParcelAction' action='ParcelAction'/><menuitem name='ObjectsAction' action='ObjectsAction'/><menuitem name='InventoryAction' action='InventoryAction'/><menuitem name='LocationAction' action='LocationAction'/><menuitem name='GroupsAction' action='GroupsAction'/><menuitem name='SearchAction' action='SearchAction'/></menu><menu name='SettingsAction' action='SettingsAction'><menuitem name='PreferencesAction' action='PreferencesAction'/></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.vbox6.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox6[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox6.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.logincontrol5 = new omvviewerlight.LoginControl();
     this.logincontrol5.Events = ((Gdk.EventMask)(256));
     this.logincontrol5.Name = "logincontrol5";
     this.notebook.Add(this.logincontrol5);
     // Notebook tab
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Login");
     this.notebook.SetTabLabel(this.logincontrol5, this.label8);
     this.label8.ShowAll();
     this.vbox6.Add(this.notebook);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox6[this.notebook]));
     w4.Position = 1;
     // Container child vbox6.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.HeightRequest = 20;
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox6.Add(this.statusbar1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox6[this.statusbar1]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox6);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 812;
     this.DefaultHeight = 629;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.BusyAction.Activated += new System.EventHandler(this.OnBusyActionActivated);
     this.AwayAction.Activated += new System.EventHandler(this.OnAwayActionActivated);
     this.GroundSitAction.Activated += new System.EventHandler(this.OnGroundSitActionActivated);
     this.CrouchAction.Activated += new System.EventHandler(this.OnCrouchActionActivated);
     this.FlyAction.Activated += new System.EventHandler(this.OnFlyActionActivated);
     this.AvaiableAction.Activated += new System.EventHandler(this.OnAvaiableActionActivated);
     this.StandingAction.Activated += new System.EventHandler(this.OnStandingActionActivated);
     this.ParcelAction.Toggled += new System.EventHandler(this.OnParcelActionToggled);
     this.ObjectsAction.Toggled += new System.EventHandler(this.OnObjectsActionToggled);
     this.InventoryAction.Toggled += new System.EventHandler(this.OnInventoryActionToggled);
     this.LocationAction.Toggled += new System.EventHandler(this.OnLocationActionToggled);
     this.GroupsAction.Toggled += new System.EventHandler(this.OnGroupsActionToggled);
     this.SearchAction.Toggled += new System.EventHandler(this.OnSearchActionToggled);
     this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferencesActionActivated);
     this.BrowserAction.Activated += new System.EventHandler(this.OnBrowserActionActivated);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.openAction = new Gtk.Action("openAction", Mono.Unix.Catalog.GetString("openDirectory"), Mono.Unix.Catalog.GetString("Opens a directory"), "gtk-open");
     this.openAction.ShortLabel = Mono.Unix.Catalog.GetString("openDirectory");
     w1.Add(this.openAction, null);
     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.HistoryAction = new Gtk.Action("HistoryAction", Mono.Unix.Catalog.GetString("History"), null, null);
     this.HistoryAction.ShortLabel = Mono.Unix.Catalog.GetString("History");
     w1.Add(this.HistoryAction, null);
     this.InfoAction = new Gtk.Action("InfoAction", Mono.Unix.Catalog.GetString("Info"), null, null);
     this.InfoAction.ShortLabel = Mono.Unix.Catalog.GetString("Info");
     w1.Add(this.InfoAction, null);
     this.refreshAction = new Gtk.Action("refreshAction", Mono.Unix.Catalog.GetString("refresh"), Mono.Unix.Catalog.GetString("Refresh the current repository"), "gtk-refresh");
     this.refreshAction.ShortLabel = Mono.Unix.Catalog.GetString("refresh");
     w1.Add(this.refreshAction, "<Control>r");
     this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("quit"), Mono.Unix.Catalog.GetString("Quit the application"), "gtk-quit");
     this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("quit");
     w1.Add(this.quitAction, 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.addAction = new Gtk.Action("addAction", Mono.Unix.Catalog.GetString("_Add"), Mono.Unix.Catalog.GetString("Add the selected file to the version control"), "gtk-add");
     this.addAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add");
     w1.Add(this.addAction, null);
     this.applyAction = new Gtk.Action("applyAction", Mono.Unix.Catalog.GetString("_Apply"), Mono.Unix.Catalog.GetString("Save the changes to the history of this file"), "gtk-apply");
     this.applyAction.ShortLabel = Mono.Unix.Catalog.GetString("_Apply");
     w1.Add(this.applyAction, null);
     this.fileHistoryAction = new Gtk.Action("fileHistoryAction", Mono.Unix.Catalog.GetString("File_History"), Mono.Unix.Catalog.GetString("Shows the history of the selected file"), "gtk-dnd-multiple");
     this.fileHistoryAction.ShortLabel = Mono.Unix.Catalog.GetString("File_History");
     w1.Add(this.fileHistoryAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Directory History");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-find-and-replace", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 550;
     this.DefaultHeight = 640;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='openAction' action='openAction'/><menuitem name='quitAction' action='quitAction'/></menu><menu name='HistoryAction' action='HistoryAction'><menuitem name='refreshAction' action='refreshAction'/></menu><menu name='InfoAction' action='InfoAction'><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.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='openAction' action='openAction'/><toolitem name='refreshAction' action='refreshAction'/><toolitem name='addAction' action='addAction'/><toolitem name='applyAction' action='applyAction'/><toolitem name='fileHistoryAction' action='fileHistoryAction'/><toolitem name='quitAction' action='quitAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.folderlist = new DirectoryHistory.UI.FolderList();
     this.folderlist.Events = ((Gdk.EventMask)(256));
     this.folderlist.Name = "folderlist";
     this.vbox2.Add(this.folderlist);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.folderlist]));
     w4.Position = 1;
     this.vbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox2]));
     w5.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     // Container child statusbar1.Gtk.Box+BoxChild
     this.loadedDirectoryLabel = new Gtk.Label();
     this.loadedDirectoryLabel.Name = "loadedDirectoryLabel";
     this.loadedDirectoryLabel.LabelProp = Mono.Unix.Catalog.GetString("No directory loaded");
     this.statusbar1.Add(this.loadedDirectoryLabel);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.statusbar1[this.loadedDirectoryLabel]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
     this.refreshAction.Activated += new System.EventHandler(this.OnRefreshActionActivated);
     this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.aboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.addAction.Activated += new System.EventHandler(this.OnAddActionActivated);
     this.applyAction.Activated += new System.EventHandler(this.OnApplyActionActivated);
     this.fileHistoryAction.Activated += new System.EventHandler(this.OnFileHistoryActionActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget SimpleDownloader.TestDownloadWindow
     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.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.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "SimpleDownloader.TestDownloadWindow";
     this.Title = Mono.Unix.Catalog.GetString("TestDownloadWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child SimpleDownloader.TestDownloadWindow.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='quitAction' action='quitAction'/></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.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 141;
     this.hpaned1.BorderWidth = ((uint)(5));
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.expander1 = new Gtk.Expander(null);
     this.expander1.CanFocus = true;
     this.expander1.Name = "expander1";
     this.expander1.Expanded = true;
     // Container child expander1.Gtk.Container+ContainerChild
     this.vbuttonbox2 = new Gtk.VButtonBox();
     this.vbuttonbox2.Name = "vbuttonbox2";
     this.vbuttonbox2.Homogeneous = true;
     this.vbuttonbox2.Spacing = 5;
     this.vbuttonbox2.BorderWidth = ((uint)(5));
     // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseStock = true;
     this.button1.UseUnderline = true;
     this.button1.Label = "gtk-add";
     this.vbuttonbox2.Add(this.button1);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button1]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button2 = new Gtk.Button();
     this.button2.CanFocus = true;
     this.button2.Name = "button2";
     this.button2.UseStock = true;
     this.button2.UseUnderline = true;
     this.button2.Label = "gtk-delete";
     this.vbuttonbox2.Add(this.button2);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.expander1.Add(this.vbuttonbox2);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Download");
     this.GtkLabel3.UseUnderline = true;
     this.expander1.LabelWidget = this.GtkLabel3;
     this.vbox2.Add(this.expander1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1]));
     w6.Position = 0;
     w6.Expand = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 1F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Links:");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 1F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("In progress:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w8.TopAttach = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("27");
     this.table1.Add(this.label5);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("13");
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w10.TopAttach = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.LeftAttach = ((uint)(1));
     w10.RightAttach = ((uint)(2));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 1F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Done:");
     this.table1.Add(this.label7);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label7]));
     w11.TopAttach = ((uint)(2));
     w11.BottomAttach = ((uint)(3));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("14");
     this.table1.Add(this.label8);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
     w12.TopAttach = ((uint)(2));
     w12.BottomAttach = ((uint)(3));
     w12.LeftAttach = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox2.Add(this.table1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
     w13.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Current:");
     this.vbox3.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.label1]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.progressCurrent = new Gtk.ProgressBar();
     this.progressCurrent.Name = "progressCurrent";
     this.progressCurrent.Text = "";
     this.vbox3.Add(this.progressCurrent);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressCurrent]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Overall:");
     this.vbox3.Add(this.label2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.progressbar2 = new Gtk.ProgressBar();
     this.progressbar2.Name = "progressbar2";
     this.progressbar2.Text = "";
     this.vbox3.Add(this.progressbar2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressbar2]));
     w17.Position = 3;
     w17.Expand = false;
     w17.Fill = false;
     this.vbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
     w18.Position = 2;
     w18.Expand = false;
     w18.Fill = false;
     this.hpaned1.Add(this.vbox2);
     Gtk.Paned.PanedChild w19 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox2]));
     w19.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     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.downloadTree = new Gtk.TreeView();
     this.downloadTree.CanFocus = true;
     this.downloadTree.Name = "downloadTree";
     this.scrolledwindow1.Add(this.downloadTree);
     this.hpaned1.Add(this.scrolledwindow1);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w22.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 609;
     this.DefaultHeight = 413;
     this.Show();
     this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked);
     this.downloadTree.RowActivated += new Gtk.RowActivatedHandler(this.OnDownloadTreeRowActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget LinuxGUITest.BalanceBoardInformation
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     Gtk.UIManager w2 = new Gtk.UIManager();
     Gtk.ActionGroup w3 = new Gtk.ActionGroup("Default");
     this.BalanceBoardAction = new Gtk.Action("BalanceBoardAction", Mono.Unix.Catalog.GetString("BalanceBoard"), null, null);
     this.BalanceBoardAction.ShortLabel = Mono.Unix.Catalog.GetString("BalanceBoard");
     w3.Add(this.BalanceBoardAction, null);
     this.DisconnectAction = new Gtk.Action("DisconnectAction", Mono.Unix.Catalog.GetString("Disconnect"), null, null);
     this.DisconnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect");
     w3.Add(this.DisconnectAction, null);
     w2.InsertActionGroup(w3, 0);
     this.Name = "LinuxGUITest.BalanceBoardInformation";
     // Container child LinuxGUITest.BalanceBoardInformation.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w2.AddUiFromString("<ui><menubar name='menubar1'><menu action='BalanceBoardAction'><menuitem action='DisconnectAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w2.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.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 w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator2]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.checkboxLed = new Gtk.CheckButton();
     this.checkboxLed.CanFocus = true;
     this.checkboxLed.Name = "checkboxLed";
     this.checkboxLed.Label = Mono.Unix.Catalog.GetString("Led");
     this.checkboxLed.DrawIndicator = true;
     this.checkboxLed.UseUnderline = true;
     this.hbox4.Add(this.checkboxLed);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.checkboxLed]));
     w6.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.lblButton = new Gtk.Label();
     this.lblButton.Name = "lblButton";
     this.lblButton.LabelProp = Mono.Unix.Catalog.GetString("Button");
     this.hbox4.Add(this.lblButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.lblButton]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.entryButton = new Gtk.Entry();
     this.entryButton.CanFocus = true;
     this.entryButton.Name = "entryButton";
     this.entryButton.IsEditable = false;
     this.entryButton.InvisibleChar = '●';
     this.hbox4.Add(this.entryButton);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.entryButton]));
     w8.Position = 2;
     this.vbox1.Add(this.hbox4);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4]));
     w9.Position = 2;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.table4 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table4.Name = "table4";
     this.table4.RowSpacing = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.entryBottomLeft = new Gtk.Entry();
     this.entryBottomLeft.CanFocus = true;
     this.entryBottomLeft.Name = "entryBottomLeft";
     this.entryBottomLeft.IsEditable = false;
     this.entryBottomLeft.InvisibleChar = '●';
     this.table4.Add(this.entryBottomLeft);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomLeft]));
     w10.TopAttach = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryBottomRight = new Gtk.Entry();
     this.entryBottomRight.CanFocus = true;
     this.entryBottomRight.Name = "entryBottomRight";
     this.entryBottomRight.IsEditable = false;
     this.entryBottomRight.InvisibleChar = '●';
     this.table4.Add(this.entryBottomRight);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomRight]));
     w11.TopAttach = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.LeftAttach = ((uint)(1));
     w11.RightAttach = ((uint)(2));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryTopLeft = new Gtk.Entry();
     this.entryTopLeft.CanFocus = true;
     this.entryTopLeft.Name = "entryTopLeft";
     this.entryTopLeft.IsEditable = false;
     this.entryTopLeft.InvisibleChar = '●';
     this.table4.Add(this.entryTopLeft);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table4[this.entryTopLeft]));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryTopRight = new Gtk.Entry();
     this.entryTopRight.CanFocus = true;
     this.entryTopRight.Name = "entryTopRight";
     this.entryTopRight.IsEditable = false;
     this.entryTopRight.InvisibleChar = '●';
     this.table4.Add(this.entryTopRight);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table4[this.entryTopRight]));
     w13.LeftAttach = ((uint)(1));
     w13.RightAttach = ((uint)(2));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox3.Add(this.table4);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.table4]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.lblTotalWeight = new Gtk.Label();
     this.lblTotalWeight.Name = "lblTotalWeight";
     this.lblTotalWeight.LabelProp = Mono.Unix.Catalog.GetString("Total Weight");
     this.hbox3.Add(this.lblTotalWeight);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblTotalWeight]));
     w15.Position = 0;
     w15.Expand = false;
     w15.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryTotalWeight = new Gtk.Entry();
     this.entryTotalWeight.CanFocus = true;
     this.entryTotalWeight.Name = "entryTotalWeight";
     this.entryTotalWeight.IsEditable = false;
     this.entryTotalWeight.InvisibleChar = '●';
     this.hbox3.Add(this.entryTotalWeight);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryTotalWeight]));
     w16.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryAverageWeight = new Gtk.Entry();
     this.entryAverageWeight.CanFocus = true;
     this.entryAverageWeight.Name = "entryAverageWeight";
     this.entryAverageWeight.IsEditable = false;
     this.entryAverageWeight.InvisibleChar = '●';
     this.hbox3.Add(this.entryAverageWeight);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryAverageWeight]));
     w17.PackType = ((Gtk.PackType)(1));
     w17.Position = 2;
     // Container child hbox3.Gtk.Box+BoxChild
     this.labelAverageWeight = new Gtk.Label();
     this.labelAverageWeight.Name = "labelAverageWeight";
     this.labelAverageWeight.LabelProp = Mono.Unix.Catalog.GetString("Average");
     this.hbox3.Add(this.labelAverageWeight);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.labelAverageWeight]));
     w18.PackType = ((Gtk.PackType)(1));
     w18.Position = 3;
     w18.Expand = false;
     w18.Fill = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     this.GtkAlignment.Add(this.vbox3);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Weight Sensors</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel2;
     this.vbox1.Add(this.frame1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1]));
     w22.Position = 3;
     w22.Expand = false;
     w22.Fill = false;
     // Container child vbox1.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.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.drawingareaBalance = new Gtk.DrawingArea();
     this.drawingareaBalance.Name = "drawingareaBalance";
     this.GtkAlignment1.Add(this.drawingareaBalance);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Balance</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel3;
     this.vbox1.Add(this.frame2);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2]));
     w25.Position = 4;
     // 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.btnUpdateBattery = new Gtk.Button();
     this.btnUpdateBattery.CanFocus = true;
     this.btnUpdateBattery.Name = "btnUpdateBattery";
     this.btnUpdateBattery.UseUnderline = true;
     this.btnUpdateBattery.Label = Mono.Unix.Catalog.GetString("Update Battery");
     this.hbox1.Add(this.btnUpdateBattery);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnUpdateBattery]));
     w26.Position = 0;
     w26.Expand = false;
     w26.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.progressbar1 = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.hbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox1[this.progressbar1]));
     w27.Position = 1;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w28.Position = 5;
     w28.Expand = false;
     w28.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(w2);
     this.Show();
     this.DisconnectAction.Activated += new System.EventHandler(this.OnDisconnectActionActivated);
     this.checkboxLed.Pressed += new System.EventHandler(this.OnCheckboxLedPressed);
     this.drawingareaBalance.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingareaBalanceExposeEvent);
     this.btnUpdateBattery.Pressed += new System.EventHandler(this.OnBtnUpdateBatteryPressed);
 }
 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 ocmgtk.NotesWidget
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.boldAction = new Gtk.ToggleAction("boldAction", null, null, "gtk-bold");
     w2.Add(this.boldAction, null);
     this.italicAction = new Gtk.Action("italicAction", null, null, "gtk-italic");
     w2.Add(this.italicAction, null);
     this.missingImageAction = new Gtk.Action("missingImageAction", null, null, "gtk-missing-image");
     w2.Add(this.missingImageAction, null);
     this.underlineAction = new Gtk.Action("underlineAction", null, null, "gtk-underline");
     w2.Add(this.underlineAction, null);
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ocmgtk.NotesWidget";
     // Container child ocmgtk.NotesWidget.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.editorWidget = new ocmgtk.HTMLEditorWidget();
     this.editorWidget.Events = ((Gdk.EventMask)(256));
     this.editorWidget.Name = "editorWidget";
     this.vbox1.Add(this.editorWidget);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.editorWidget]));
     w3.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbuttonbox1 = new Gtk.HButtonBox();
     this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.saveButton = new Gtk.Button();
     this.saveButton.Sensitive = false;
     this.saveButton.CanFocus = true;
     this.saveButton.Name = "saveButton";
     this.saveButton.UseUnderline = true;
     // Container child saveButton.Gtk.Container+ContainerChild
     Gtk.Alignment w4 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w5 = new Gtk.HBox();
     w5.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w6 = new Gtk.Image();
     w6.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
     w5.Add(w6);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w8 = new Gtk.Label();
     w8.LabelProp = Mono.Unix.Catalog.GetString("_Save");
     w8.UseUnderline = true;
     w5.Add(w8);
     w4.Add(w5);
     this.saveButton.Add(w4);
     this.hbuttonbox1.Add(this.saveButton);
     Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.saveButton]));
     w12.Expand = false;
     w12.Fill = false;
     this.vbox1.Add(this.hbuttonbox1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1]));
     w13.Position = 1;
     w13.Expand = false;
     w13.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
     this.saveButton.Clicked += new System.EventHandler(this.OnSaveNotes);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget mapping.frmSimulation
     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.Close            = new Gtk.Action("Close", Mono.Unix.Catalog.GetString("Close"), null, null);
     this.Close.ShortLabel = Mono.Unix.Catalog.GetString("Close");
     w2.Add(this.Close, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "mapping.frmSimulation";
     this.Title          = Mono.Unix.Catalog.GetString("Simulation");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child mapping.frmSimulation.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='Close'/></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.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.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdReset              = new Gtk.Button();
     this.cmdReset.CanFocus     = true;
     this.cmdReset.Name         = "cmdReset";
     this.cmdReset.UseUnderline = true;
     this.cmdReset.Label        = Mono.Unix.Catalog.GetString("Reset");
     this.vbox3.Add(this.cmdReset);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdReset]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdRun              = new Gtk.Button();
     this.cmdRun.CanFocus     = true;
     this.cmdRun.Name         = "cmdRun";
     this.cmdRun.UseUnderline = true;
     this.cmdRun.Label        = Mono.Unix.Catalog.GetString("Run");
     this.vbox3.Add(this.cmdRun);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdRun]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdOptimise              = new Gtk.Button();
     this.cmdOptimise.CanFocus     = true;
     this.cmdOptimise.Name         = "cmdOptimise";
     this.cmdOptimise.UseUnderline = true;
     this.cmdOptimise.Label        = Mono.Unix.Catalog.GetString("Optimise");
     this.vbox3.Add(this.cmdOptimise);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdOptimise]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w7.Position = 0;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.cmdStep              = new Gtk.Button();
     this.cmdStep.CanFocus     = true;
     this.cmdStep.Name         = "cmdStep";
     this.cmdStep.UseUnderline = true;
     this.cmdStep.Label        = Mono.Unix.Catalog.GetString("Step");
     this.vbox4.Add(this.cmdStep);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox4[this.cmdStep]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.cmdStop              = new Gtk.Button();
     this.cmdStop.CanFocus     = true;
     this.cmdStop.Name         = "cmdStop";
     this.cmdStop.UseUnderline = true;
     this.cmdStop.Label        = Mono.Unix.Catalog.GetString("Stop");
     this.vbox4.Add(this.cmdStop);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.cmdStop]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     this.hbox2.Add(this.vbox4);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox4]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w11.Position = 0;
     w11.Expand   = false;
     w11.Fill     = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgOccupancyGrid      = new Gtk.Image();
     this.imgOccupancyGrid.Name = "imgOccupancyGrid";
     this.hbox1.Add(this.imgOccupancyGrid);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgOccupancyGrid]));
     w13.Position = 1;
     w13.Expand   = false;
     w13.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w14.Position = 1;
     w14.Expand   = false;
     w14.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 609;
     this.DefaultHeight = 471;
     this.Show();
     this.Close.Activated += new System.EventHandler(this.OnCloseActivated);
 }
Exemple #53
0
		public override void Read (ObjectReader reader, XmlElement elem)
		{
			Gtk.Action ac = new Gtk.Action ("", "");
			
			ClassDescriptor klass = Registry.LookupClassByName ("Gtk.Action");
			ObjectWrapper.Bind (reader.Project, klass, this, ac, true);
			
			WidgetUtils.ReadMembers (klass, this, ac, elem);
			name = nameRoot = oldDefaultName = elem.GetAttribute ("id");
			
			string uid = elem.GetAttribute ("undoId");
			if (uid.Length > 0)
				UndoId = uid;
		}
 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);
         }
     }
 }
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "administrator.EditCreateUser")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget administrator.EditCreateUser
         cobj.Title = "EditCreateUser";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "administrator.EditCreateUser";
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 300;
         bindings["administrator.EditCreateUser"] = cobj;
         cobj.Show();
     }
     else {
         if ((id == "administrator.LoginWindow")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget administrator.LoginWindow
             cobj.Title = "Boxerp Server Administrator";
             cobj.WindowPosition = ((Gtk.WindowPosition)(1));
             cobj.Modal = true;
             cobj.Resizable = false;
             cobj.AllowGrow = false;
             cobj.Events = ((Gdk.EventMask)(0));
             cobj.Name = "administrator.LoginWindow";
             // Container child administrator.LoginWindow.Gtk.Container+ContainerChild
             Gtk.VBox w1 = new Gtk.VBox();
             w1.BorderWidth = ((uint)(5));
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w2 = new Gtk.HBox();
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "hbox1";
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Label w3 = new Gtk.Label();
             w3.LabelProp = "Login:"******"label1";
             w3.WidthRequest = 150;
             bindings["label1"] = w3;
             w2.Add(w3);
             Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
             w4.Position = 0;
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Entry w5 = new Gtk.Entry();
             w5.Text = "demo";
             w5.IsEditable = true;
             w5.MaxLength = 100;
             w5.InvisibleChar = '●';
             w5.CanFocus = true;
             w5.Events = ((Gdk.EventMask)(0));
             w5.Name = "entryLogin";
             w5.WidthRequest = 200;
             bindings["entryLogin"] = w5;
             w2.Add(w5);
             Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
             w6.Position = 1;
             w6.Expand = false;
             w6.Fill = false;
             bindings["hbox1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
             w7.Position = 0;
             w7.Expand = false;
             w7.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w8 = new Gtk.HBox();
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "hbox2";
             w8.WidthRequest = 150;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Label w9 = new Gtk.Label();
             w9.LabelProp = "Password:"******"label2";
             bindings["label2"] = w9;
             w8.Add(w9);
             Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9]));
             w10.Position = 0;
             w10.Fill = false;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Entry w11 = new Gtk.Entry();
             w11.Text = "pass";
             w11.IsEditable = true;
             w11.Visibility = false;
             w11.InvisibleChar = '●';
             w11.CanFocus = true;
             w11.Events = ((Gdk.EventMask)(0));
             w11.Name = "entryPassword";
             w11.WidthRequest = 200;
             bindings["entryPassword"] = w11;
             w8.Add(w11);
             Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11]));
             w12.Position = 1;
             w12.Expand = false;
             w12.Fill = false;
             bindings["hbox2"] = w8;
             w1.Add(w8);
             Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w8]));
             w13.Position = 1;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HSeparator w14 = new Gtk.HSeparator();
             w14.Events = ((Gdk.EventMask)(0));
             w14.Name = "hseparator1";
             bindings["hseparator1"] = w14;
             w1.Add(w14);
             Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
             w15.Position = 2;
             w15.Expand = false;
             w15.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w16 = new Gtk.HBox();
             w16.Events = ((Gdk.EventMask)(0));
             w16.Name = "hbox3";
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.Button w17 = new Gtk.Button();
             w17.CanFocus = true;
             w17.Events = ((Gdk.EventMask)(0));
             w17.Name = "buttonConnect";
             // Container child buttonConnect.Gtk.Container+ContainerChild
             Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w18.Events = ((Gdk.EventMask)(0));
             w18.Name = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w19 = new Gtk.HBox();
             w19.Spacing = 2;
             w19.Events = ((Gdk.EventMask)(0));
             w19.Name = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w20 = new Gtk.Image();
             w20.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-connect", 16, 0);
             w20.Events = ((Gdk.EventMask)(0));
             w20.Name = "image15";
             bindings["image15"] = w20;
             w19.Add(w20);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w22 = new Gtk.Label();
             w22.LabelProp = "Connect";
             w22.Events = ((Gdk.EventMask)(0));
             w22.Name = "GtkLabel";
             bindings["GtkLabel"] = w22;
             w19.Add(w22);
             bindings["GtkHBox"] = w19;
             w18.Add(w19);
             bindings["GtkAlignment"] = w18;
             w17.Add(w18);
             bindings["buttonConnect"] = w17;
             w16.Add(w17);
             Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(w16[w17]));
             w26.PackType = ((Gtk.PackType)(1));
             w26.Position = 0;
             w26.Expand = false;
             w26.Fill = false;
             bindings["hbox3"] = w16;
             w1.Add(w16);
             Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w1[w16]));
             w27.Position = 3;
             w27.Expand = false;
             w27.Fill = false;
             bindings["vbox1"] = w1;
             cobj.Add(w1);
             cobj.DefaultWidth = 370;
             cobj.DefaultHeight = 129;
             bindings["administrator.LoginWindow"] = cobj;
             w3.Show();
             w5.Show();
             w2.Show();
             w9.Show();
             w11.Show();
             w8.Show();
             w14.Show();
             w20.Show();
             w22.Show();
             w19.Show();
             w18.Show();
             w17.Show();
             w16.Show();
             w1.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, "OnConnect")));
             w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w17.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
         }
         else {
             if ((id == "administrator.MainWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget administrator.MainWindow
                 cobj.Title = "Boxerp Administrator";
                 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 = "File";
                 bindings["File"] = w3;
                 w2.Add(w3, null);
                 Gtk.Action w4 = new Gtk.Action("Exit", "Exit", null, null);
                 w4.ShortLabel = "Exit";
                 bindings["Exit"] = w4;
                 w2.Add(w4, null);
                 Gtk.Action w5 = new Gtk.Action("Edit", "Edit", null, null);
                 w5.ShortLabel = "Edit";
                 bindings["Edit"] = w5;
                 w2.Add(w5, null);
                 Gtk.Action w6 = new Gtk.Action("Cut", "Cut", null, null);
                 w6.ShortLabel = "Cut";
                 bindings["Cut"] = w6;
                 w2.Add(w6, null);
                 Gtk.Action w7 = new Gtk.Action("Copy", "Copy", null, null);
                 w7.ShortLabel = "Copy";
                 bindings["Copy"] = w7;
                 w2.Add(w7, null);
                 Gtk.Action w8 = new Gtk.Action("Paste", "Paste", null, null);
                 w8.ShortLabel = "Paste";
                 bindings["Paste"] = w8;
                 w2.Add(w8, null);
                 Gtk.Action w9 = new Gtk.Action("Help", "Help", null, null);
                 w9.ShortLabel = "Help";
                 bindings["Help"] = w9;
                 w2.Add(w9, null);
                 Gtk.Action w10 = new Gtk.Action("About", "About", null, null);
                 w10.ShortLabel = "About";
                 bindings["About"] = w10;
                 w2.Add(w10, null);
                 w1.InsertActionGroup(w2, 0);
                 cobj.AddAccelGroup(w1.AccelGroup);
                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                 cobj.DefaultWidth = 800;
                 cobj.DefaultHeight = 600;
                 cobj.Events = ((Gdk.EventMask)(0));
                 cobj.Name = "administrator.MainWindow";
                 // Container child administrator.MainWindow.Gtk.Container+ContainerChild
                 Gtk.VBox w11 = new Gtk.VBox();
                 w11.Events = ((Gdk.EventMask)(0));
                 w11.Name = "vbox1";
                 // Container child vbox1.Gtk.Box+BoxChild
                 w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
                 Gtk.MenuBar w12 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
                 w12.Events = ((Gdk.EventMask)(0));
                 w12.Name = "menubar1";
                 bindings["menubar1"] = w12;
                 w11.Add(w12);
                 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w11[w12]));
                 w13.Position = 0;
                 w13.Expand = false;
                 w13.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 w1.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>");
                 Gtk.Toolbar w14 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
                 w14.ShowArrow = false;
                 w14.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
                 w14.IconSize = ((Gtk.IconSize)(3));
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "toolbar1";
                 bindings["toolbar1"] = w14;
                 w11.Add(w14);
                 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w11[w14]));
                 w15.Position = 1;
                 w15.Expand = false;
                 w15.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.VBox w16 = new Gtk.VBox();
                 w16.BorderWidth = ((uint)(5));
                 w16.Events = ((Gdk.EventMask)(0));
                 w16.Name = "vbox2";
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.HBox w17 = new Gtk.HBox();
                 w17.Events = ((Gdk.EventMask)(0));
                 w17.Name = "hbox1";
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Label w18 = new Gtk.Label();
                 w18.LabelProp = "<b>Enterprise:</b>";
                 w18.UseMarkup = true;
                 w18.Ypad = 6;
                 w18.Events = ((Gdk.EventMask)(256));
                 w18.Name = "labelEnterprise";
                 bindings["labelEnterprise"] = w18;
                 w17.Add(w18);
                 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18]));
                 w19.Position = 0;
                 w19.Expand = false;
                 w19.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Entry w20 = new Gtk.Entry();
                 w20.IsEditable = true;
                 w20.InvisibleChar = '●';
                 w20.CanFocus = true;
                 w20.Events = ((Gdk.EventMask)(0));
                 w20.Name = "entryEnterprise";
                 bindings["entryEnterprise"] = w20;
                 w17.Add(w20);
                 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20]));
                 w21.Position = 1;
                 w21.Expand = false;
                 w21.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Button w22 = new Gtk.Button();
                 Gtk.Tooltips w23 = new Gtk.Tooltips();
                 w23.SetTip(w22, "Añadir un Hecho", "Añadir un Hecho");
                 w22.CanFocus = true;
                 w22.Events = ((Gdk.EventMask)(0));
                 w22.Name = "buttonFindEnterprise";
                 w22.HasDefault = true;
                 // Container child buttonFindEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w24.Events = ((Gdk.EventMask)(0));
                 w24.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w25 = new Gtk.HBox();
                 w25.Spacing = 2;
                 w25.Events = ((Gdk.EventMask)(0));
                 w25.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w26 = new Gtk.Image();
                 w26.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "image1";
                 bindings["image1"] = w26;
                 w25.Add(w26);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w28 = new Gtk.Label();
                 w28.LabelProp = "";
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "GtkLabel";
                 bindings["GtkLabel"] = w28;
                 w25.Add(w28);
                 bindings["GtkHBox"] = w25;
                 w24.Add(w25);
                 bindings["GtkAlignment"] = w24;
                 w22.Add(w24);
                 bindings["buttonFindEnterprise"] = w22;
                 w17.Add(w22);
                 Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w17[w22]));
                 w32.Position = 2;
                 w32.Expand = false;
                 w32.Fill = false;
                 bindings["hbox1"] = w17;
                 w16.Add(w17);
                 Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w16[w17]));
                 w33.Position = 0;
                 w33.Expand = false;
                 w33.Fill = false;
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w34 = new Gtk.ScrolledWindow();
                 w34.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w34.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w34.CanFocus = true;
                 w34.Events = ((Gdk.EventMask)(0));
                 w34.Name = "scrolledwindow1";
                 // Container child scrolledwindow1.Gtk.Container+ContainerChild
                 Gtk.Viewport w35 = new Gtk.Viewport();
                 w35.ShadowType = ((Gtk.ShadowType)(0));
                 w35.Events = ((Gdk.EventMask)(0));
                 w35.Name = "GtkViewport";
                 // Container child GtkViewport.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w36 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w36.Events = ((Gdk.EventMask)(256));
                 w36.Name = "ftreeviewEnterprises";
                 bindings["ftreeviewEnterprises"] = w36;
                 w35.Add(w36);
                 bindings["GtkViewport"] = w35;
                 w34.Add(w35);
                 bindings["scrolledwindow1"] = w34;
                 w16.Add(w34);
                 Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(w16[w34]));
                 w39.Position = 1;
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.HBox w40 = new Gtk.HBox();
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "hbox14";
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w41 = new Gtk.Button();
                 w23.SetTip(w41, "Añadir un Hecho", "Añadir un Hecho");
                 w41.CanFocus = true;
                 w41.Events = ((Gdk.EventMask)(0));
                 w41.Name = "buttonNewEnterprise";
                 w41.HasDefault = true;
                 // Container child buttonNewEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w42 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w43 = new Gtk.HBox();
                 w43.Spacing = 2;
                 w43.Events = ((Gdk.EventMask)(0));
                 w43.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w44 = new Gtk.Image();
                 w44.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w44.Events = ((Gdk.EventMask)(0));
                 w44.Name = "image2";
                 bindings["image2"] = w44;
                 w43.Add(w44);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w46 = new Gtk.Label();
                 w46.LabelProp = "";
                 w46.Events = ((Gdk.EventMask)(0));
                 w46.Name = "GtkLabel";
                 bindings["GtkLabel"] = w46;
                 w43.Add(w46);
                 bindings["GtkHBox"] = w43;
                 w42.Add(w43);
                 bindings["GtkAlignment"] = w42;
                 w41.Add(w42);
                 bindings["buttonNewEnterprise"] = w41;
                 w40.Add(w41);
                 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(w40[w41]));
                 w50.PackType = ((Gtk.PackType)(1));
                 w50.Position = 0;
                 w50.Expand = false;
                 w50.Fill = false;
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w51 = new Gtk.Button();
                 w23.SetTip(w51, "Editar el Hecho", "Editar el Hecho");
                 w51.CanFocus = true;
                 w51.Events = ((Gdk.EventMask)(0));
                 w51.Name = "buttonEditEnterprise";
                 // Container child buttonEditEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w52 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w52.Events = ((Gdk.EventMask)(0));
                 w52.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w53 = new Gtk.HBox();
                 w53.Spacing = 2;
                 w53.Events = ((Gdk.EventMask)(0));
                 w53.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w54 = new Gtk.Image();
                 w54.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w54.Events = ((Gdk.EventMask)(0));
                 w54.Name = "image3";
                 bindings["image3"] = w54;
                 w53.Add(w54);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w56 = new Gtk.Label();
                 w56.LabelProp = "";
                 w56.Events = ((Gdk.EventMask)(0));
                 w56.Name = "GtkLabel";
                 bindings["GtkLabel"] = w56;
                 w53.Add(w56);
                 bindings["GtkHBox"] = w53;
                 w52.Add(w53);
                 bindings["GtkAlignment"] = w52;
                 w51.Add(w52);
                 bindings["buttonEditEnterprise"] = w51;
                 w40.Add(w51);
                 Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w40[w51]));
                 w60.PackType = ((Gtk.PackType)(1));
                 w60.Position = 1;
                 w60.Expand = false;
                 w60.Fill = false;
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w61 = new Gtk.Button();
                 w23.SetTip(w61, "Quitar el Hecho", "Quitar el Hecho");
                 w61.CanFocus = true;
                 w61.Events = ((Gdk.EventMask)(0));
                 w61.Name = "buttonDelEnterprise";
                 // Container child buttonDelEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w62.Events = ((Gdk.EventMask)(0));
                 w62.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w63 = new Gtk.HBox();
                 w63.Spacing = 2;
                 w63.Events = ((Gdk.EventMask)(0));
                 w63.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w64 = new Gtk.Image();
                 w64.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w64.Events = ((Gdk.EventMask)(0));
                 w64.Name = "image4";
                 bindings["image4"] = w64;
                 w63.Add(w64);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w66 = new Gtk.Label();
                 w66.LabelProp = "";
                 w66.Events = ((Gdk.EventMask)(0));
                 w66.Name = "GtkLabel";
                 bindings["GtkLabel"] = w66;
                 w63.Add(w66);
                 bindings["GtkHBox"] = w63;
                 w62.Add(w63);
                 bindings["GtkAlignment"] = w62;
                 w61.Add(w62);
                 bindings["buttonDelEnterprise"] = w61;
                 w40.Add(w61);
                 Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(w40[w61]));
                 w70.PackType = ((Gtk.PackType)(1));
                 w70.Position = 2;
                 w70.Expand = false;
                 w70.Fill = false;
                 bindings["hbox14"] = w40;
                 w16.Add(w40);
                 Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(w16[w40]));
                 w71.Position = 2;
                 w71.Expand = false;
                 w71.Fill = false;
                 bindings["vbox2"] = w16;
                 w11.Add(w16);
                 Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(w11[w16]));
                 w72.Position = 2;
                 w72.Expand = false;
                 w72.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w73 = new Gtk.HSeparator();
                 w73.Events = ((Gdk.EventMask)(0));
                 w73.Name = "hseparator2";
                 bindings["hseparator2"] = w73;
                 w11.Add(w73);
                 Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(w11[w73]));
                 w74.Position = 3;
                 w74.Expand = false;
                 w74.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w75 = new Gtk.HBox();
                 w75.Homogeneous = true;
                 w75.Events = ((Gdk.EventMask)(0));
                 w75.Name = "hbox2";
                 // Container child hbox2.Gtk.Box+BoxChild
                 Gtk.VBox w76 = new Gtk.VBox();
                 w76.BorderWidth = ((uint)(5));
                 w76.Events = ((Gdk.EventMask)(0));
                 w76.Name = "vbox3";
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.HBox w77 = new Gtk.HBox();
                 w77.Events = ((Gdk.EventMask)(0));
                 w77.Name = "hbox3";
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w78 = new Gtk.Label();
                 w78.LabelProp = "<b>User:</b>";
                 w78.UseMarkup = true;
                 w78.Ypad = 6;
                 w78.Events = ((Gdk.EventMask)(256));
                 w78.Name = "labelUser";
                 bindings["labelUser"] = w78;
                 w77.Add(w78);
                 Gtk.Box.BoxChild w79 = ((Gtk.Box.BoxChild)(w77[w78]));
                 w79.Position = 0;
                 w79.Expand = false;
                 w79.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w80 = new Gtk.Entry();
                 w80.IsEditable = true;
                 w80.InvisibleChar = '●';
                 w80.CanFocus = true;
                 w80.Events = ((Gdk.EventMask)(0));
                 w80.Name = "entryUser";
                 bindings["entryUser"] = w80;
                 w77.Add(w80);
                 Gtk.Box.BoxChild w81 = ((Gtk.Box.BoxChild)(w77[w80]));
                 w81.Position = 1;
                 w81.Expand = false;
                 w81.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Button w82 = new Gtk.Button();
                 w23.SetTip(w82, "Añadir un Hecho", "Añadir un Hecho");
                 w82.CanFocus = true;
                 w82.Events = ((Gdk.EventMask)(0));
                 w82.Name = "buttonFindUser";
                 w82.HasDefault = true;
                 // Container child buttonFindUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w83 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w83.Events = ((Gdk.EventMask)(0));
                 w83.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w84 = new Gtk.HBox();
                 w84.Spacing = 2;
                 w84.Events = ((Gdk.EventMask)(0));
                 w84.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w85 = new Gtk.Image();
                 w85.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w85.Events = ((Gdk.EventMask)(0));
                 w85.Name = "image5";
                 bindings["image5"] = w85;
                 w84.Add(w85);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w87 = new Gtk.Label();
                 w87.LabelProp = "";
                 w87.Events = ((Gdk.EventMask)(0));
                 w87.Name = "GtkLabel";
                 bindings["GtkLabel"] = w87;
                 w84.Add(w87);
                 bindings["GtkHBox"] = w84;
                 w83.Add(w84);
                 bindings["GtkAlignment"] = w83;
                 w82.Add(w83);
                 bindings["buttonFindUser"] = w82;
                 w77.Add(w82);
                 Gtk.Box.BoxChild w91 = ((Gtk.Box.BoxChild)(w77[w82]));
                 w91.Position = 2;
                 w91.Expand = false;
                 w91.Fill = false;
                 bindings["hbox3"] = w77;
                 w76.Add(w77);
                 Gtk.Box.BoxChild w92 = ((Gtk.Box.BoxChild)(w76[w77]));
                 w92.Position = 0;
                 w92.Expand = false;
                 w92.Fill = false;
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w93 = new Gtk.ScrolledWindow();
                 w93.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w93.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w93.CanFocus = true;
                 w93.Events = ((Gdk.EventMask)(0));
                 w93.Name = "scrolledwindow2";
                 // Container child scrolledwindow2.Gtk.Container+ContainerChild
                 Gtk.Viewport w94 = new Gtk.Viewport();
                 w94.ShadowType = ((Gtk.ShadowType)(0));
                 w94.Events = ((Gdk.EventMask)(0));
                 w94.Name = "GtkViewport1";
                 // Container child GtkViewport1.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w95 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w95.Events = ((Gdk.EventMask)(256));
                 w95.Name = "ftreeviewUsers";
                 bindings["ftreeviewUsers"] = w95;
                 w94.Add(w95);
                 bindings["GtkViewport1"] = w94;
                 w93.Add(w94);
                 bindings["scrolledwindow2"] = w93;
                 w76.Add(w93);
                 Gtk.Box.BoxChild w98 = ((Gtk.Box.BoxChild)(w76[w93]));
                 w98.Position = 1;
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.HBox w99 = new Gtk.HBox();
                 w99.Events = ((Gdk.EventMask)(0));
                 w99.Name = "hbox15";
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w100 = new Gtk.Button();
                 w23.SetTip(w100, "Añadir un Hecho", "Añadir un Hecho");
                 w100.CanFocus = true;
                 w100.Events = ((Gdk.EventMask)(0));
                 w100.Name = "buttonNewUser";
                 w100.HasDefault = true;
                 // Container child buttonNewUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w101.Events = ((Gdk.EventMask)(0));
                 w101.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w102 = new Gtk.HBox();
                 w102.Spacing = 2;
                 w102.Events = ((Gdk.EventMask)(0));
                 w102.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w103 = new Gtk.Image();
                 w103.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w103.Events = ((Gdk.EventMask)(0));
                 w103.Name = "image6";
                 bindings["image6"] = w103;
                 w102.Add(w103);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w105 = new Gtk.Label();
                 w105.LabelProp = "";
                 w105.Events = ((Gdk.EventMask)(0));
                 w105.Name = "GtkLabel";
                 bindings["GtkLabel"] = w105;
                 w102.Add(w105);
                 bindings["GtkHBox"] = w102;
                 w101.Add(w102);
                 bindings["GtkAlignment"] = w101;
                 w100.Add(w101);
                 bindings["buttonNewUser"] = w100;
                 w99.Add(w100);
                 Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(w99[w100]));
                 w109.PackType = ((Gtk.PackType)(1));
                 w109.Position = 0;
                 w109.Expand = false;
                 w109.Fill = false;
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w110 = new Gtk.Button();
                 w23.SetTip(w110, "Editar el Hecho", "Editar el Hecho");
                 w110.CanFocus = true;
                 w110.Events = ((Gdk.EventMask)(0));
                 w110.Name = "buttonEditUser";
                 // Container child buttonEditUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w111 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w111.Events = ((Gdk.EventMask)(0));
                 w111.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w112 = new Gtk.HBox();
                 w112.Spacing = 2;
                 w112.Events = ((Gdk.EventMask)(0));
                 w112.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w113 = new Gtk.Image();
                 w113.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w113.Events = ((Gdk.EventMask)(0));
                 w113.Name = "image7";
                 bindings["image7"] = w113;
                 w112.Add(w113);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w115 = new Gtk.Label();
                 w115.LabelProp = "";
                 w115.Events = ((Gdk.EventMask)(0));
                 w115.Name = "GtkLabel";
                 bindings["GtkLabel"] = w115;
                 w112.Add(w115);
                 bindings["GtkHBox"] = w112;
                 w111.Add(w112);
                 bindings["GtkAlignment"] = w111;
                 w110.Add(w111);
                 bindings["buttonEditUser"] = w110;
                 w99.Add(w110);
                 Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(w99[w110]));
                 w119.PackType = ((Gtk.PackType)(1));
                 w119.Position = 1;
                 w119.Expand = false;
                 w119.Fill = false;
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w120 = new Gtk.Button();
                 w23.SetTip(w120, "Quitar el Hecho", "Quitar el Hecho");
                 w120.CanFocus = true;
                 w120.Events = ((Gdk.EventMask)(0));
                 w120.Name = "buttonDelUser";
                 // Container child buttonDelUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w121 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w121.Events = ((Gdk.EventMask)(0));
                 w121.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w122 = new Gtk.HBox();
                 w122.Spacing = 2;
                 w122.Events = ((Gdk.EventMask)(0));
                 w122.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w123 = new Gtk.Image();
                 w123.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w123.Events = ((Gdk.EventMask)(0));
                 w123.Name = "image8";
                 bindings["image8"] = w123;
                 w122.Add(w123);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w125 = new Gtk.Label();
                 w125.LabelProp = "";
                 w125.Events = ((Gdk.EventMask)(0));
                 w125.Name = "GtkLabel";
                 bindings["GtkLabel"] = w125;
                 w122.Add(w125);
                 bindings["GtkHBox"] = w122;
                 w121.Add(w122);
                 bindings["GtkAlignment"] = w121;
                 w120.Add(w121);
                 bindings["buttonDelUser"] = w120;
                 w99.Add(w120);
                 Gtk.Box.BoxChild w129 = ((Gtk.Box.BoxChild)(w99[w120]));
                 w129.PackType = ((Gtk.PackType)(1));
                 w129.Position = 2;
                 w129.Expand = false;
                 w129.Fill = false;
                 bindings["hbox15"] = w99;
                 w76.Add(w99);
                 Gtk.Box.BoxChild w130 = ((Gtk.Box.BoxChild)(w76[w99]));
                 w130.Position = 2;
                 w130.Expand = false;
                 w130.Fill = false;
                 bindings["vbox3"] = w76;
                 w75.Add(w76);
                 Gtk.Box.BoxChild w131 = ((Gtk.Box.BoxChild)(w75[w76]));
                 w131.Position = 0;
                 // Container child hbox2.Gtk.Box+BoxChild
                 Gtk.VBox w132 = new Gtk.VBox();
                 w132.BorderWidth = ((uint)(5));
                 w132.Events = ((Gdk.EventMask)(0));
                 w132.Name = "vbox4";
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.HBox w133 = new Gtk.HBox();
                 w133.Events = ((Gdk.EventMask)(0));
                 w133.Name = "hbox4";
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Label w134 = new Gtk.Label();
                 w134.LabelProp = "<b>Group:</b>";
                 w134.UseMarkup = true;
                 w134.Ypad = 6;
                 w134.Events = ((Gdk.EventMask)(256));
                 w134.Name = "labelGroup";
                 bindings["labelGroup"] = w134;
                 w133.Add(w134);
                 Gtk.Box.BoxChild w135 = ((Gtk.Box.BoxChild)(w133[w134]));
                 w135.Position = 0;
                 w135.Expand = false;
                 w135.Fill = false;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Entry w136 = new Gtk.Entry();
                 w136.IsEditable = true;
                 w136.InvisibleChar = '●';
                 w136.CanFocus = true;
                 w136.Events = ((Gdk.EventMask)(0));
                 w136.Name = "entryGroup";
                 bindings["entryGroup"] = w136;
                 w133.Add(w136);
                 Gtk.Box.BoxChild w137 = ((Gtk.Box.BoxChild)(w133[w136]));
                 w137.Position = 1;
                 w137.Expand = false;
                 w137.Fill = false;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Button w138 = new Gtk.Button();
                 w23.SetTip(w138, "Añadir un Hecho", "Añadir un Hecho");
                 w138.CanFocus = true;
                 w138.Events = ((Gdk.EventMask)(0));
                 w138.Name = "buttonFindGroup";
                 w138.HasDefault = true;
                 // Container child buttonFindGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w139 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w139.Events = ((Gdk.EventMask)(0));
                 w139.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w140 = new Gtk.HBox();
                 w140.Spacing = 2;
                 w140.Events = ((Gdk.EventMask)(0));
                 w140.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w141 = new Gtk.Image();
                 w141.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w141.Events = ((Gdk.EventMask)(0));
                 w141.Name = "image9";
                 bindings["image9"] = w141;
                 w140.Add(w141);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w143 = new Gtk.Label();
                 w143.LabelProp = "";
                 w143.Events = ((Gdk.EventMask)(0));
                 w143.Name = "GtkLabel";
                 bindings["GtkLabel"] = w143;
                 w140.Add(w143);
                 bindings["GtkHBox"] = w140;
                 w139.Add(w140);
                 bindings["GtkAlignment"] = w139;
                 w138.Add(w139);
                 bindings["buttonFindGroup"] = w138;
                 w133.Add(w138);
                 Gtk.Box.BoxChild w147 = ((Gtk.Box.BoxChild)(w133[w138]));
                 w147.Position = 2;
                 w147.Expand = false;
                 w147.Fill = false;
                 bindings["hbox4"] = w133;
                 w132.Add(w133);
                 Gtk.Box.BoxChild w148 = ((Gtk.Box.BoxChild)(w132[w133]));
                 w148.Position = 0;
                 w148.Expand = false;
                 w148.Fill = false;
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w149 = new Gtk.ScrolledWindow();
                 w149.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w149.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w149.CanFocus = true;
                 w149.Events = ((Gdk.EventMask)(0));
                 w149.Name = "scrolledwindow3";
                 // Container child scrolledwindow3.Gtk.Container+ContainerChild
                 Gtk.Viewport w150 = new Gtk.Viewport();
                 w150.ShadowType = ((Gtk.ShadowType)(0));
                 w150.Events = ((Gdk.EventMask)(0));
                 w150.Name = "GtkViewport2";
                 // Container child GtkViewport2.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w151 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w151.Events = ((Gdk.EventMask)(256));
                 w151.Name = "ftreeviewGroups";
                 bindings["ftreeviewGroups"] = w151;
                 w150.Add(w151);
                 bindings["GtkViewport2"] = w150;
                 w149.Add(w150);
                 bindings["scrolledwindow3"] = w149;
                 w132.Add(w149);
                 Gtk.Box.BoxChild w154 = ((Gtk.Box.BoxChild)(w132[w149]));
                 w154.Position = 1;
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.HBox w155 = new Gtk.HBox();
                 w155.Events = ((Gdk.EventMask)(0));
                 w155.Name = "hbox16";
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w156 = new Gtk.Button();
                 w23.SetTip(w156, "Añadir un Hecho", "Añadir un Hecho");
                 w156.CanFocus = true;
                 w156.Events = ((Gdk.EventMask)(0));
                 w156.Name = "buttonNewGroup";
                 w156.HasDefault = true;
                 // Container child buttonNewGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w157 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w157.Events = ((Gdk.EventMask)(0));
                 w157.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w158 = new Gtk.HBox();
                 w158.Spacing = 2;
                 w158.Events = ((Gdk.EventMask)(0));
                 w158.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w159 = new Gtk.Image();
                 w159.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w159.Events = ((Gdk.EventMask)(0));
                 w159.Name = "image10";
                 bindings["image10"] = w159;
                 w158.Add(w159);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w161 = new Gtk.Label();
                 w161.LabelProp = "";
                 w161.Events = ((Gdk.EventMask)(0));
                 w161.Name = "GtkLabel";
                 bindings["GtkLabel"] = w161;
                 w158.Add(w161);
                 bindings["GtkHBox"] = w158;
                 w157.Add(w158);
                 bindings["GtkAlignment"] = w157;
                 w156.Add(w157);
                 bindings["buttonNewGroup"] = w156;
                 w155.Add(w156);
                 Gtk.Box.BoxChild w165 = ((Gtk.Box.BoxChild)(w155[w156]));
                 w165.PackType = ((Gtk.PackType)(1));
                 w165.Position = 0;
                 w165.Expand = false;
                 w165.Fill = false;
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w166 = new Gtk.Button();
                 w23.SetTip(w166, "Editar el Hecho", "Editar el Hecho");
                 w166.CanFocus = true;
                 w166.Events = ((Gdk.EventMask)(0));
                 w166.Name = "buttonEditGroup";
                 // Container child buttonEditGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w167 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w167.Events = ((Gdk.EventMask)(0));
                 w167.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w168 = new Gtk.HBox();
                 w168.Spacing = 2;
                 w168.Events = ((Gdk.EventMask)(0));
                 w168.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w169 = new Gtk.Image();
                 w169.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w169.Events = ((Gdk.EventMask)(0));
                 w169.Name = "image11";
                 bindings["image11"] = w169;
                 w168.Add(w169);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w171 = new Gtk.Label();
                 w171.LabelProp = "";
                 w171.Events = ((Gdk.EventMask)(0));
                 w171.Name = "GtkLabel";
                 bindings["GtkLabel"] = w171;
                 w168.Add(w171);
                 bindings["GtkHBox"] = w168;
                 w167.Add(w168);
                 bindings["GtkAlignment"] = w167;
                 w166.Add(w167);
                 bindings["buttonEditGroup"] = w166;
                 w155.Add(w166);
                 Gtk.Box.BoxChild w175 = ((Gtk.Box.BoxChild)(w155[w166]));
                 w175.PackType = ((Gtk.PackType)(1));
                 w175.Position = 1;
                 w175.Expand = false;
                 w175.Fill = false;
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w176 = new Gtk.Button();
                 w23.SetTip(w176, "Quitar el Hecho", "Quitar el Hecho");
                 w176.CanFocus = true;
                 w176.Events = ((Gdk.EventMask)(0));
                 w176.Name = "buttonDelGroup";
                 // Container child buttonDelGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w177 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w177.Events = ((Gdk.EventMask)(0));
                 w177.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w178 = new Gtk.HBox();
                 w178.Spacing = 2;
                 w178.Events = ((Gdk.EventMask)(0));
                 w178.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w179 = new Gtk.Image();
                 w179.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w179.Events = ((Gdk.EventMask)(0));
                 w179.Name = "image12";
                 bindings["image12"] = w179;
                 w178.Add(w179);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w181 = new Gtk.Label();
                 w181.LabelProp = "";
                 w181.Events = ((Gdk.EventMask)(0));
                 w181.Name = "GtkLabel";
                 bindings["GtkLabel"] = w181;
                 w178.Add(w181);
                 bindings["GtkHBox"] = w178;
                 w177.Add(w178);
                 bindings["GtkAlignment"] = w177;
                 w176.Add(w177);
                 bindings["buttonDelGroup"] = w176;
                 w155.Add(w176);
                 Gtk.Box.BoxChild w185 = ((Gtk.Box.BoxChild)(w155[w176]));
                 w185.PackType = ((Gtk.PackType)(1));
                 w185.Position = 2;
                 w185.Expand = false;
                 w185.Fill = false;
                 bindings["hbox16"] = w155;
                 w132.Add(w155);
                 Gtk.Box.BoxChild w186 = ((Gtk.Box.BoxChild)(w132[w155]));
                 w186.Position = 2;
                 w186.Expand = false;
                 w186.Fill = false;
                 bindings["vbox4"] = w132;
                 w75.Add(w132);
                 Gtk.Box.BoxChild w187 = ((Gtk.Box.BoxChild)(w75[w132]));
                 w187.Position = 1;
                 bindings["hbox2"] = w75;
                 w11.Add(w75);
                 Gtk.Box.BoxChild w188 = ((Gtk.Box.BoxChild)(w11[w75]));
                 w188.Position = 4;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w189 = new Gtk.HSeparator();
                 w189.Events = ((Gdk.EventMask)(0));
                 w189.Name = "hseparator1";
                 bindings["hseparator1"] = w189;
                 w11.Add(w189);
                 Gtk.Box.BoxChild w190 = ((Gtk.Box.BoxChild)(w11[w189]));
                 w190.Position = 6;
                 w190.Expand = false;
                 w190.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.Statusbar w191 = new Gtk.Statusbar();
                 w191.Events = ((Gdk.EventMask)(0));
                 w191.Name = "statusbar1";
                 bindings["statusbar1"] = w191;
                 w11.Add(w191);
                 Gtk.Box.BoxChild w192 = ((Gtk.Box.BoxChild)(w11[w191]));
                 w192.Position = 7;
                 w192.Expand = false;
                 w192.Fill = false;
                 bindings["vbox1"] = w11;
                 cobj.Add(w11);
                 bindings["administrator.MainWindow"] = cobj;
                 w12.Show();
                 w14.Show();
                 w18.Show();
                 w20.Show();
                 w26.Show();
                 w28.Show();
                 w25.Show();
                 w24.Show();
                 w22.Show();
                 w17.Show();
                 w36.Show();
                 w35.Show();
                 w34.Show();
                 w44.Show();
                 w46.Show();
                 w43.Show();
                 w42.Show();
                 w41.Show();
                 w54.Show();
                 w56.Show();
                 w53.Show();
                 w52.Show();
                 w51.Show();
                 w64.Show();
                 w66.Show();
                 w63.Show();
                 w62.Show();
                 w61.Show();
                 w40.Show();
                 w16.Show();
                 w73.Show();
                 w78.Show();
                 w80.Show();
                 w85.Show();
                 w87.Show();
                 w84.Show();
                 w83.Show();
                 w82.Show();
                 w77.Show();
                 w95.Show();
                 w94.Show();
                 w93.Show();
                 w103.Show();
                 w105.Show();
                 w102.Show();
                 w101.Show();
                 w100.Show();
                 w113.Show();
                 w115.Show();
                 w112.Show();
                 w111.Show();
                 w110.Show();
                 w123.Show();
                 w125.Show();
                 w122.Show();
                 w121.Show();
                 w120.Show();
                 w99.Show();
                 w76.Show();
                 w134.Show();
                 w136.Show();
                 w141.Show();
                 w143.Show();
                 w140.Show();
                 w139.Show();
                 w138.Show();
                 w133.Show();
                 w151.Show();
                 w150.Show();
                 w149.Show();
                 w159.Show();
                 w161.Show();
                 w158.Show();
                 w157.Show();
                 w156.Show();
                 w169.Show();
                 w171.Show();
                 w168.Show();
                 w167.Show();
                 w166.Show();
                 w179.Show();
                 w181.Show();
                 w178.Show();
                 w177.Show();
                 w176.Show();
                 w155.Show();
                 w132.Show();
                 w75.Show();
                 w189.Show();
                 w191.Show();
                 w11.Show();
                 cobj.Show();
                 cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                 w20.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise")));
                 w22.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise")));
                 w61.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelEnterpriseClicked")));
                 w51.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditEnterpriseClicked")));
                 w41.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewEnterpriseClicked")));
                 w80.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser")));
                 w82.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser")));
                 w120.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelUserClicked")));
                 w110.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditUserClicked")));
                 w100.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewUserClicked")));
                 w136.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup")));
                 w138.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup")));
                 w176.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelGroupClicked")));
                 w166.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditGroupClicked")));
                 w156.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewGroupClicked")));
             }
             else {
                 if ((id == "administrator.EditUserWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget administrator.EditUserWindow
                     cobj.Title = "User";
                     cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "administrator.EditUserWindow";
                     // Container child administrator.EditUserWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w1 = new Gtk.VBox();
                     w1.Events = ((Gdk.EventMask)(0));
                     w1.Name = "vbox1";
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.Notebook w2 = new Gtk.Notebook();
                     w2.CanFocus = true;
                     w2.Events = ((Gdk.EventMask)(0));
                     w2.Name = "notebook1";
                     // Container child notebook1.Gtk.Notebook+NotebookChild
                     Gtk.VBox w3 = new Gtk.VBox();
                     w3.Events = ((Gdk.EventMask)(0));
                     w3.Name = "vbox2";
                     // Container child vbox2.Gtk.Box+BoxChild
                     Gtk.Table w4 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
                     w4.RowSpacing = ((uint)(1));
                     w4.ColumnSpacing = ((uint)(5));
                     w4.BorderWidth = ((uint)(5));
                     w4.Events = ((Gdk.EventMask)(0));
                     w4.Name = "table1";
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.CheckButton w5 = new Gtk.CheckButton();
                     w5.Label = "";
                     w5.DrawIndicator = true;
                     w5.CanFocus = true;
                     w5.Events = ((Gdk.EventMask)(0));
                     w5.Name = "checkActive";
                     bindings["checkActive"] = w5;
                     w4.Add(w5);
                     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(w4[w5]));
                     w6.BottomAttach = ((uint)(5));
                     w6.LeftAttach = ((uint)(1));
                     w6.RightAttach = ((uint)(2));
                     w6.TopAttach = ((uint)(4));
                     w6.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w7 = new Gtk.Label();
                     w7.LabelProp = "Active:";
                     w7.Events = ((Gdk.EventMask)(0));
                     w7.Name = "label4";
                     bindings["label4"] = w7;
                     w4.Add(w7);
                     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(w4[w7]));
                     w8.BottomAttach = ((uint)(5));
                     w8.TopAttach = ((uint)(4));
                     w8.YOptions = ((Gtk.AttachOptions)(4));
                     w8.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w9 = new Gtk.Entry();
                     w9.IsEditable = true;
                     w9.Visibility = false;
                     w9.InvisibleChar = '●';
                     w9.CanFocus = true;
                     w9.Events = ((Gdk.EventMask)(0));
                     w9.Name = "entryPassword";
                     bindings["entryPassword"] = w9;
                     w4.Add(w9);
                     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(w4[w9]));
                     w10.BottomAttach = ((uint)(4));
                     w10.LeftAttach = ((uint)(1));
                     w10.RightAttach = ((uint)(2));
                     w10.TopAttach = ((uint)(3));
                     w10.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w11 = new Gtk.Entry();
                     w11.IsEditable = true;
                     w11.InvisibleChar = '●';
                     w11.CanFocus = true;
                     w11.Events = ((Gdk.EventMask)(0));
                     w11.Name = "entryEmail";
                     bindings["entryEmail"] = w11;
                     w4.Add(w11);
                     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(w4[w11]));
                     w12.BottomAttach = ((uint)(3));
                     w12.LeftAttach = ((uint)(1));
                     w12.RightAttach = ((uint)(2));
                     w12.TopAttach = ((uint)(2));
                     w12.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w13 = new Gtk.Entry();
                     w13.IsEditable = true;
                     w13.InvisibleChar = '●';
                     w13.CanFocus = true;
                     w13.Events = ((Gdk.EventMask)(0));
                     w13.Name = "entryRealName";
                     bindings["entryRealName"] = w13;
                     w4.Add(w13);
                     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(w4[w13]));
                     w14.BottomAttach = ((uint)(2));
                     w14.LeftAttach = ((uint)(1));
                     w14.RightAttach = ((uint)(2));
                     w14.TopAttach = ((uint)(1));
                     w14.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w15 = new Gtk.Label();
                     w15.LabelProp = "Password:"******"label14";
                     bindings["label14"] = w15;
                     w4.Add(w15);
                     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(w4[w15]));
                     w16.BottomAttach = ((uint)(4));
                     w16.TopAttach = ((uint)(3));
                     w16.YOptions = ((Gtk.AttachOptions)(4));
                     w16.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w17 = new Gtk.Label();
                     w17.LabelProp = "Email:";
                     w17.Events = ((Gdk.EventMask)(0));
                     w17.Name = "label13";
                     bindings["label13"] = w17;
                     w4.Add(w17);
                     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(w4[w17]));
                     w18.BottomAttach = ((uint)(3));
                     w18.TopAttach = ((uint)(2));
                     w18.YOptions = ((Gtk.AttachOptions)(4));
                     w18.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w19 = new Gtk.Label();
                     w19.LabelProp = "Real Name:";
                     w19.Events = ((Gdk.EventMask)(0));
                     w19.Name = "label12";
                     bindings["label12"] = w19;
                     w4.Add(w19);
                     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(w4[w19]));
                     w20.BottomAttach = ((uint)(2));
                     w20.TopAttach = ((uint)(1));
                     w20.YOptions = ((Gtk.AttachOptions)(4));
                     w20.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w21 = new Gtk.Label();
                     w21.LabelProp = "User Name:";
                     w21.Events = ((Gdk.EventMask)(0));
                     w21.Name = "label10";
                     bindings["label10"] = w21;
                     w4.Add(w21);
                     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(w4[w21]));
                     w22.YOptions = ((Gtk.AttachOptions)(4));
                     w22.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w23 = new Gtk.Entry();
                     w23.IsEditable = true;
                     w23.InvisibleChar = '●';
                     w23.CanFocus = true;
                     w23.Events = ((Gdk.EventMask)(0));
                     w23.Name = "entryUserName";
                     bindings["entryUserName"] = w23;
                     w4.Add(w23);
                     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(w4[w23]));
                     w24.LeftAttach = ((uint)(1));
                     w24.RightAttach = ((uint)(2));
                     w24.YOptions = ((Gtk.AttachOptions)(4));
                     bindings["table1"] = w4;
                     w3.Add(w4);
                     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w3[w4]));
                     w25.Position = 0;
                     w25.Expand = false;
                     w25.Fill = false;
                     // Container child vbox2.Gtk.Box+BoxChild
                     Boxerp.Client.GtkSharp.Lib.DoubleListView w26 = new Boxerp.Client.GtkSharp.Lib.DoubleListView();
                     w26.Events = ((Gdk.EventMask)(256));
                     w26.Name = "dtreeview";
                     bindings["dtreeview"] = w26;
                     w3.Add(w26);
                     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w3[w26]));
                     w27.Position = 1;
                     bindings["vbox2"] = w3;
                     w2.Add(w3);
                     Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(w2[w3]));
                     w28.TabExpand = false;
                     // Notebook tab
                     Gtk.Label w29 = new Gtk.Label();
                     w29.LabelProp = "Properties";
                     w29.Events = ((Gdk.EventMask)(0));
                     w29.Name = "label1";
                     bindings["label1"] = w29;
                     w2.SetTabLabel(w3, w29);
                     // Container child notebook1.Gtk.Notebook+NotebookChild
                     Gtk.VBox w30 = new Gtk.VBox();
                     w30.Events = ((Gdk.EventMask)(0));
                     w30.Name = "vbox3";
                     bindings["vbox3"] = w30;
                     w2.Add(w30);
                     Gtk.Notebook.NotebookChild w31 = ((Gtk.Notebook.NotebookChild)(w2[w30]));
                     w31.Position = 1;
                     w31.TabExpand = false;
                     // Notebook tab
                     Gtk.Label w32 = new Gtk.Label();
                     w32.LabelProp = "Permissions";
                     w32.Events = ((Gdk.EventMask)(0));
                     w32.Name = "label1";
                     bindings["label1"] = w32;
                     w2.SetTabLabel(w30, w32);
                     bindings["notebook1"] = w2;
                     w1.Add(w2);
                     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w1[w2]));
                     w33.Position = 0;
                     w33.Padding = ((uint)(5));
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HButtonBox w34 = new Gtk.HButtonBox();
                     w34.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                     w34.Spacing = 2;
                     w34.BorderWidth = ((uint)(5));
                     w34.Events = ((Gdk.EventMask)(0));
                     w34.Name = "hbuttonbox1";
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w35 = new Gtk.Button();
                     w35.CanFocus = true;
                     w35.Events = ((Gdk.EventMask)(0));
                     w35.Name = "buttonCancel";
                     // Container child buttonCancel.Gtk.Container+ContainerChild
                     Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w36.Events = ((Gdk.EventMask)(0));
                     w36.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w37 = new Gtk.HBox();
                     w37.Spacing = 2;
                     w37.Events = ((Gdk.EventMask)(0));
                     w37.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w38 = new Gtk.Image();
                     w38.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                     w38.Events = ((Gdk.EventMask)(0));
                     w38.Name = "image13";
                     bindings["image13"] = w38;
                     w37.Add(w38);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w40 = new Gtk.Label();
                     w40.LabelProp = "Cancel";
                     w40.Events = ((Gdk.EventMask)(0));
                     w40.Name = "GtkLabel";
                     bindings["GtkLabel"] = w40;
                     w37.Add(w40);
                     bindings["GtkHBox"] = w37;
                     w36.Add(w37);
                     bindings["GtkAlignment"] = w36;
                     w35.Add(w36);
                     bindings["buttonCancel"] = w35;
                     w34.Add(w35);
                     Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w35]));
                     w44.Expand = false;
                     w44.Fill = false;
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w45 = new Gtk.Button();
                     w45.CanFocus = true;
                     w45.Events = ((Gdk.EventMask)(0));
                     w45.Name = "buttonOk";
                     // Container child buttonOk.Gtk.Container+ContainerChild
                     Gtk.Alignment w46 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w46.Events = ((Gdk.EventMask)(0));
                     w46.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w47 = new Gtk.HBox();
                     w47.Spacing = 2;
                     w47.Events = ((Gdk.EventMask)(0));
                     w47.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w48 = new Gtk.Image();
                     w48.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                     w48.Events = ((Gdk.EventMask)(0));
                     w48.Name = "image14";
                     bindings["image14"] = w48;
                     w47.Add(w48);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w50 = new Gtk.Label();
                     w50.LabelProp = "Ok";
                     w50.Events = ((Gdk.EventMask)(0));
                     w50.Name = "GtkLabel";
                     bindings["GtkLabel"] = w50;
                     w47.Add(w50);
                     bindings["GtkHBox"] = w47;
                     w46.Add(w47);
                     bindings["GtkAlignment"] = w46;
                     w45.Add(w46);
                     bindings["buttonOk"] = w45;
                     w34.Add(w45);
                     Gtk.ButtonBox.ButtonBoxChild w54 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w45]));
                     w54.Position = 1;
                     w54.Expand = false;
                     w54.Fill = false;
                     bindings["hbuttonbox1"] = w34;
                     w1.Add(w34);
                     Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(w1[w34]));
                     w55.PackType = ((Gtk.PackType)(1));
                     w55.Position = 1;
                     w55.Expand = false;
                     w55.Fill = false;
                     bindings["vbox1"] = w1;
                     cobj.Add(w1);
                     cobj.DefaultWidth = 400;
                     cobj.DefaultHeight = 273;
                     bindings["administrator.EditUserWindow"] = cobj;
                     w5.Show();
                     w7.Show();
                     w9.Show();
                     w11.Show();
                     w13.Show();
                     w15.Show();
                     w17.Show();
                     w19.Show();
                     w21.Show();
                     w23.Show();
                     w4.Show();
                     w26.Show();
                     w3.Show();
                     w29.Show();
                     w30.Show();
                     w32.Show();
                     w2.Show();
                     w38.Show();
                     w40.Show();
                     w37.Show();
                     w36.Show();
                     w35.Show();
                     w48.Show();
                     w50.Show();
                     w47.Show();
                     w46.Show();
                     w45.Show();
                     w34.Show();
                     w1.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose")));
                     w35.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancelClicked")));
                     w45.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked")));
                 }
             }
         }
     }
     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);
         }
     }
 }
Exemple #56
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddClassAction = new Gtk.Action("AddClassAction", Mono.Unix.Catalog.GetString("Add Class"), null, null);
     this.AddClassAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Class");
     w1.Add(this.AddClassAction, 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.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo");
     this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer");
     w1.Add(this.UndoAction, null);
     this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo");
     this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer");
     w1.Add(this.RedoAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddClassAction' action='AddClassAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox2.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.mhdcanvas = new MonoHotDraw.SteticComponent();
     this.mhdcanvas.Events = ((Gdk.EventMask)(256));
     this.mhdcanvas.Name = "mhdcanvas";
     this.vbox2.Add(this.mhdcanvas);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.mhdcanvas]));
     w4.Position = 2;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 446;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AddClassAction.Activated += new System.EventHandler(this.OnAddClassActionActivated);
     this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated);
     this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget sermon2.streamview
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.FileAction            = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.FileAction, null);
     this.EditAction            = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
     w2.Add(this.EditAction, null);
     this.ClearAction            = new Gtk.Action("ClearAction", Mono.Unix.Catalog.GetString("Clear"), null, "gtk-cancel");
     this.ClearAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear");
     w2.Add(this.ClearAction, null);
     this.loremIpsumAction            = new Gtk.Action("loremIpsumAction", Mono.Unix.Catalog.GetString("lorem ipsum"), null, "gtk-spell-check");
     this.loremIpsumAction.ShortLabel = Mono.Unix.Catalog.GetString("lorem ipsum");
     w2.Add(this.loremIpsumAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "sermon2.streamview";
     this.Title          = Mono.Unix.Catalog.GetString("streamview");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(3));
     // Container child sermon2.streamview.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='FileAction'/><menu action='EditAction'><menuitem action='ClearAction'/><menuitem action='loremIpsumAction'/></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.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame1.Gtk.Container+ContainerChild
     this.alignment4      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment4.Name = "alignment4";
     // Container child alignment4.Gtk.Container+ContainerChild
     this.hexview1 = new sermon2.hexview();
     this.hexview1.WidthRequest  = 440;
     this.hexview1.HeightRequest = 186;
     this.hexview1.Events        = ((Gdk.EventMask)(256));
     this.hexview1.Name          = "hexview1";
     this.alignment4.Add(this.hexview1);
     this.frame1.Add(this.alignment4);
     this.GtkLabel3           = new Gtk.Label();
     this.GtkLabel3.Name      = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>stream</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel3;
     this.vbox1.Add(this.frame1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1]));
     w6.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1         = new Gtk.Statusbar();
     this.statusbar1.Name    = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w7.PackType = ((Gtk.PackType)(1));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 450;
     this.DefaultHeight = 452;
     this.Show();
     this.ClearAction.Activated      += new System.EventHandler(this.OnClearActionActivated);
     this.loremIpsumAction.Activated += new System.EventHandler(this.OnLoremIpsumActionActivated);
 }
		public Gtk.Action[] ListActions() {
			IntPtr raw_ret = gtk_action_group_list_actions (Handle);
			GLib.List list = new GLib.List (raw_ret);
 			Gtk.Action[] result = new Gtk.Action [list.Count];
			for (int i = 0; i < list.Count; i++)
				result [i] = list [i] as Gtk.Action;
			return result;
		}
Exemple #59
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.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.HideIfEmpty = false;
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
     this.EditAction.HideIfEmpty = false;
     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.HideIfEmpty = false;
     this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w1.Add(this.ViewAction, null);
     this.ImageAction = new Gtk.Action("ImageAction", Mono.Unix.Catalog.GetString("Image"), null, null);
     this.ImageAction.HideIfEmpty = false;
     this.ImageAction.ShortLabel = Mono.Unix.Catalog.GetString("Image");
     w1.Add(this.ImageAction, null);
     this.LayersAction = new Gtk.Action("LayersAction", Mono.Unix.Catalog.GetString("Layers"), null, null);
     this.LayersAction.HideIfEmpty = false;
     this.LayersAction.ShortLabel = Mono.Unix.Catalog.GetString("Layers");
     w1.Add(this.LayersAction, null);
     this.AdjustmentsAction = new Gtk.Action("AdjustmentsAction", Mono.Unix.Catalog.GetString("Adjustments"), null, null);
     this.AdjustmentsAction.HideIfEmpty = false;
     this.AdjustmentsAction.ShortLabel = Mono.Unix.Catalog.GetString("Adjustments");
     w1.Add(this.AdjustmentsAction, "<Control>a");
     this.EffectsAction = new Gtk.Action("EffectsAction", Mono.Unix.Catalog.GetString("Effects"), null, null);
     this.EffectsAction.HideIfEmpty = false;
     this.EffectsAction.ShortLabel = Mono.Unix.Catalog.GetString("Effects");
     w1.Add(this.EffectsAction, null);
     this.WindowAction = new Gtk.Action("WindowAction", Mono.Unix.Catalog.GetString("Window"), null, null);
     this.WindowAction.ShortLabel = Mono.Unix.Catalog.GetString("Window");
     this.WindowAction.Visible = false;
     w1.Add(this.WindowAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.HideIfEmpty = false;
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Pinta.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Pinta!");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     this.AllowShrink = true;
     this.DefaultWidth = 1100;
     this.DefaultHeight = 750;
     // Container child Pinta.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'/><menu name='EditAction' action='EditAction'/><menu name='ViewAction' action='ViewAction'/><menu name='ImageAction' action='ImageAction'/><menu name='LayersAction' action='LayersAction'/><menu name='AdjustmentsAction' action='AdjustmentsAction'/><menu name='EffectsAction' action='EffectsAction'/><menu name='WindowAction' action='WindowAction'/><menu name='HelpAction' action='HelpAction'/></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'/></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(2));
     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.UIManager.AddUiFromString("<ui><toolbar name='tooltoolbar'/></ui>");
     this.tooltoolbar = ((Gtk.Toolbar)(this.UIManager.GetWidget("/tooltoolbar")));
     this.tooltoolbar.HeightRequest = 28;
     this.tooltoolbar.Name = "tooltoolbar";
     this.tooltoolbar.ShowArrow = false;
     this.tooltoolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.tooltoolbar.IconSize = ((Gtk.IconSize)(2));
     this.vbox1.Add(this.tooltoolbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.tooltoolbar]));
     w4.Position = 2;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     // Container child vbox3.Gtk.Box+BoxChild
     this.colorpalettewidget1 = new Pinta.ColorPaletteWidget();
     this.colorpalettewidget1.Name = "colorpalettewidget1";
     this.vbox3.Add(this.colorpalettewidget1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.colorpalettewidget1]));
     w5.PackType = ((Gtk.PackType)(1));
     w5.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbox1'/></ui>");
     this.toolbox1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbox1")));
     this.toolbox1.Name = "toolbox1";
     this.toolbox1.Orientation = ((Gtk.Orientation)(1));
     this.toolbox1.ShowArrow = false;
     this.toolbox1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbox1.IconSize = ((Gtk.IconSize)(2));
     this.hbox3.Add(this.toolbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.toolbox1]));
     w6.Position = 0;
     w6.Expand = false;
     w6.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbox2'/></ui>");
     this.toolbox2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbox2")));
     this.toolbox2.Name = "toolbox2";
     this.toolbox2.Orientation = ((Gtk.Orientation)(1));
     this.toolbox2.ShowArrow = false;
     this.toolbox2.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbox2.IconSize = ((Gtk.IconSize)(2));
     this.hbox3.Add(this.toolbox2);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.toolbox2]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w8.PackType = ((Gtk.PackType)(1));
     w8.Position = 1;
     w8.Expand = false;
     w8.Fill = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w9.Position = 0;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     Gtk.Viewport w10 = new Gtk.Viewport();
     w10.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.drawingarea1 = new Gtk.DrawingArea();
     this.drawingarea1.CanDefault = true;
     this.drawingarea1.CanFocus = true;
     this.drawingarea1.Events = ((Gdk.EventMask)(16134));
     this.drawingarea1.Name = "drawingarea1";
     w10.Add(this.drawingarea1);
     this.GtkScrolledWindow.Add(w10);
     this.hbox2.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow]));
     w13.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Layers:");
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.layerslistwidget1 = new Pinta.LayersListWidget();
     this.layerslistwidget1.Name = "layerslistwidget1";
     this.vbox2.Add(this.layerslistwidget1);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox2[this.layerslistwidget1]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar4'/></ui>");
     this.toolbar4 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar4")));
     this.toolbar4.Name = "toolbar4";
     this.toolbar4.ShowArrow = false;
     this.toolbar4.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar4.IconSize = ((Gtk.IconSize)(1));
     this.vbox2.Add(this.toolbar4);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar4]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.history_treeview = new Gtk.TreeView();
     this.history_treeview.CanFocus = true;
     this.history_treeview.Name = "history_treeview";
     this.GtkScrolledWindow1.Add(this.history_treeview);
     this.vbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1]));
     w18.Position = 3;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar2'/></ui>");
     this.toolbar2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2")));
     this.toolbar2.Name = "toolbar2";
     this.toolbar2.ShowArrow = false;
     this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar2.IconSize = ((Gtk.IconSize)(1));
     this.vbox2.Add(this.toolbar2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar2]));
     w19.Position = 4;
     w19.Expand = false;
     w19.Fill = false;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w20.Position = 2;
     w20.Expand = false;
     w20.Fill = false;
     this.hbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbox2]));
     w21.Position = 0;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w22.Position = 3;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     // Container child statusbar1.Gtk.Box+BoxChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString(" Paintbrush: Left click to draw with primary color, right click to draw with secondary color");
     this.label5.Justify = ((Gtk.Justification)(3));
     this.label5.SingleLineMode = true;
     this.statusbar1.Add(this.label5);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.statusbar1[this.label5]));
     w23.Position = 0;
     w23.Expand = false;
     w23.Fill = false;
     // Container child statusbar1.Gtk.Box+BoxChild
     this.CursorPositionLabel = new Gtk.Label();
     this.CursorPositionLabel.Name = "CursorPositionLabel";
     this.CursorPositionLabel.LabelProp = Mono.Unix.Catalog.GetString("0, 0");
     this.statusbar1.Add(this.CursorPositionLabel);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.statusbar1[this.CursorPositionLabel]));
     w24.Position = 3;
     w24.Expand = false;
     w24.Fill = false;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w25.Position = 4;
     w25.Expand = false;
     w25.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.drawingarea1.HasDefault = true;
     this.Show();
     this.drawingarea1.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnDrawingarea1ButtonPressEvent);
     this.drawingarea1.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.OnDrawingarea1ButtonReleaseEvent);
     this.drawingarea1.MotionNotifyEvent += new Gtk.MotionNotifyEventHandler(this.OnDrawingarea1MotionNotifyEvent);
     this.drawingarea1.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingarea1ExposeEvent);
     this.drawingarea1.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnDrawingarea1KeyPressEvent);
     this.drawingarea1.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnDrawingarea1KeyReleaseEvent);
 }
 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);
 }