Example #1
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);
 }
 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);
 }
 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);
 }
 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);
 }
Example #5
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);
 }
Example #6
0
        public Widget()
        {
            d_graph = new Graph();

            d_graph.RequestSurface += GraphRequestSurface;
            d_graph.RequestRedraw  += GraphRequestRedraw;

            d_enableMove   = true;
            d_enableZoom   = true;
            d_enableSelect = true;

            d_zoomFactor = 1.25;
            d_zoomstack  = new Stack <Ranges>();

            CanFocus = true;

            AddEvents((int)Gdk.EventMask.AllEventsMask);

            d_popupActions = new Gtk.ActionGroup("PopupActions");
            d_popupActions.Add(new Gtk.ToggleActionEntry[] {
                new Gtk.ToggleActionEntry("ActionShowRuler", null, "Ruler", null, null, OnActionShowRuler, d_graph.ShowRuler),
                new Gtk.ToggleActionEntry("ActionShowRulerAxis", null, "Ruler Axis", null, null, OnActionShowRulerAxis, d_graph.ShowRulerAxis),
                new Gtk.ToggleActionEntry("ActionShowTicks", null, "Ticks", null, null, OnActionShowTicks, true),
                new Gtk.ToggleActionEntry("ActionShowTickLabels", null, "Tick Labels", null, null, OnActionShowTickLabels, true),
                new Gtk.ToggleActionEntry("ActionShowGrid", null, "Grid", null, null, OnActionShowGrid, d_graph.ShowGrid),
                new Gtk.ToggleActionEntry("ActionShowSnapGrid", null, "Snap Grid", null, null, OnActionShowSnapGrid, d_graph.ShowSnapGrid),
                new Gtk.ToggleActionEntry("ActionKeepAspect", null, "Keep Aspect Ratio", null, null, OnActionKeepAspect, d_graph.KeepAspect),
                new Gtk.ToggleActionEntry("ActionShowLabels", null, "Labels", null, null, OnActionShowLabels, d_graph.ShowLabels),
                new Gtk.ToggleActionEntry("ActionShowBox", null, "Box", null, null, OnActionShowBox, d_graph.ShowBox),
                new Gtk.ToggleActionEntry("ActionShowAxis", null, "Axis", null, null, OnActionShowAxis, d_graph.ShowAxis),
                new Gtk.ToggleActionEntry("ActionSnapRuler", null, "Snap Ruler to Data", null, null, OnActionSnapRulerToData, d_graph.SnapRulerToData),
                new Gtk.ToggleActionEntry("ActionSnapRulerAxis", null, "Snap Ruler to Axis", null, null, OnActionSnapRulerToAxis, d_graph.SnapRulerToAxis)
            });

            d_popupActions.Add(new Gtk.ActionEntry[] {
                new Gtk.ActionEntry("ActionAutoAxis", null, "Auto Axis", null, null, OnActionAutoAxis),
                new Gtk.ActionEntry("ActionExport", null, "Export", null, null, null),
                new Gtk.ActionEntry("ActionExportPdf", null, "Export to PDF", null, null, OnActionExportPdf),
                new Gtk.ActionEntry("ActionExportPs", null, "Export to PS", null, null, OnActionExportPs),
                new Gtk.ActionEntry("ActionExportSvg", null, "Export to SVG", null, null, OnActionExportSvg),
                new Gtk.ActionEntry("ActionExportPng", null, "Export to PNG", null, null, OnActionExportPng),
                new Gtk.ActionEntry("ActionShow", null, "Show", null, null, null),
            });

            AppPaintable = true;
        }
        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);
        }
Example #8
0
        public static void Initialize()
        {
            // NOTE: static constructor should get called if this
            // is the first reference to SyncManager

            ///
            /// Add a "Synchronize Notes" to Tomboy's Main Menu
            ///
            Gtk.ActionGroup action_group = new Gtk.ActionGroup("Sync");
            action_group.Add(new Gtk.ActionEntry [] {
                new Gtk.ActionEntry("ToolsMenuAction", null,
                                    Catalog.GetString("_Tools"), null, null, null),
                new Gtk.ActionEntry("SyncNotesAction", null,
                                    Catalog.GetString("Synchronize Notes"), null, null,
                                    delegate {
                    Tomboy.ActionManager ["NoteSynchronizationAction"].Activate();
                })
            });

            Tomboy.ActionManager.UI.AddUiFromString(@"
			                <ui>
			                <menubar name='MainWindowMenubar'>
			                <placeholder name='MainWindowMenuPlaceholder'>
			                <menu name='ToolsMenu' action='ToolsMenuAction'>
			                <menuitem name='SyncNotes' action='SyncNotesAction' />
			                </menu>
			                </placeholder>
			                </menubar>
			                </ui>
			                "            );

            Tomboy.ActionManager.UI.InsertActionGroup(action_group, 0);

            // Initialize all the SyncServiceAddins
            SyncServiceAddin [] addins = Tomboy.DefaultNoteManager.AddinManager.GetSyncServiceAddins();
            foreach (SyncServiceAddin addin in addins)
            {
                try {
                    addin.Initialize();
                } catch (Exception e) {
                    Logger.Debug("Error calling {0}.Initialize (): {1}\n{2}",
                                 addin.Id, e.Message, e.StackTrace);

                    // TODO: Call something like AddinManager.Disable (addin)
                }
            }

            Preferences.SettingChanged += Preferences_SettingChanged;
            NoteMgr.NoteSaved          += (n) => HandleNoteSavedOrDeleted();
            NoteMgr.NoteDeleted        += (o, n) => HandleNoteSavedOrDeleted();

            // Update sync item based on configuration.
            UpdateSyncAction();
        }
Example #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.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);
 }
        void IExtensionService.Initialize()
        {
            Marshaller.Init();
            has_karaoke = Marshaller.CheckGstPlugin("audiokaraoke");
            Hyena.Log.Debug("[Karaoke] GstPlugin audiokaraoke" + (has_karaoke ? "" : " not") + " found");
            if (!has_karaoke)
            {
                Hyena.Log.Warning("[Karaoke] audiokaraoke is not available, please install gstreamer-good-plugins");
                return;
            }

            action_service = ServiceManager.Get <InterfaceActionService> ();
            actions        = new Gtk.ActionGroup("Karaoke");

            actions.Add(new Gtk.ActionEntry[] { new Gtk.ActionEntry("KaraokeAction", null,
                                                                    AddinManager.CurrentLocalizer.GetString("_Karaoke"), null, null, null),
                                                new Gtk.ActionEntry("KaraokeConfigureAction", Gtk.Stock.Properties,
                                                                    AddinManager.CurrentLocalizer.GetString("_Configure"), null,
                                                                    AddinManager.CurrentLocalizer.GetString("Configure the Karaoke extension"), OnConfigure) });

            Gdk.Pixbuf icon = new Gdk.Pixbuf(System.Reflection.Assembly.GetExecutingAssembly()
                                             .GetManifestResourceStream("microphone.png"));

            Gtk.IconSet     iconset     = new Gtk.IconSet(icon);
            Gtk.IconFactory iconfactory = new Gtk.IconFactory();
            iconfactory.Add("microphone", iconset);
            iconfactory.AddDefault();

            actions.Add(new Gtk.ToggleActionEntry[] { new Gtk.ToggleActionEntry("KaraokeEnableAction", "microphone",
                                                                                AddinManager.CurrentLocalizer.GetString("_Activate Karaoke mode"), null,
                                                                                AddinManager.CurrentLocalizer.GetString("Activate Karaoke mode"),
                                                                                OnActivateKaraoke, karaoke_enabled) });

            action_service.UIManager.InsertActionGroup(actions, 0);
            ui_menu_id   = action_service.UIManager.AddUiFromResource("KaraokeMenu.xml");
            ui_button_id = action_service.UIManager.AddUiFromResource("KaraokeButton.xml");
        }
Example #12
0
        private void PopulateActionGroups()
        {
            //
            // Global Actions
            //
            main_window_actions.Add(new Gtk.ActionEntry [] {
                new Gtk.ActionEntry("FileMenuAction", null,
                                    Catalog.GetString("_File"), null, null, null),

                new Gtk.ActionEntry("QuitAction", Gtk.Stock.Quit,
                                    Catalog.GetString("_Quit"), "<Control>Q",
                                    Catalog.GetString("Quit Banter"), null),

                new Gtk.ActionEntry("EditMenuAction", null,
                                    Catalog.GetString("_Edit"), null, null, null),

                new Gtk.ActionEntry("ShowPreferencesAction", Gtk.Stock.Preferences,
                                    Catalog.GetString("_Preferences"), null,
                                    Catalog.GetString("Banter Preferences"), null),

                new Gtk.ActionEntry("HelpMenuAction", null,
                                    Catalog.GetString("_Help"), null, null, null),

                new Gtk.ActionEntry("ShowHelpAction", Gtk.Stock.Help,
                                    Catalog.GetString("_Contents"), "F1",
                                    Catalog.GetString("Banter Help"), null),

                new Gtk.ActionEntry("ShowAboutAction", Gtk.Stock.About,
                                    Catalog.GetString("_About"), null,
                                    Catalog.GetString("About Banter"), null)      //,

//				new Gtk.ActionEntry ("TrayIconMenuAction", null,
//					Catalog.GetString ("TrayIcon"), null, null, null)

//				new Gtk.ActionEntry ("TrayNewNoteAction", Gtk.Stock.New,
//					Catalog.GetString ("Create _New Note"), null,
//					Catalog.GetString ("Create a new note"), null),

//				new Gtk.ActionEntry ("ShowSearchAllNotesAction", Gtk.Stock.Find,
//					Catalog.GetString ("_Search All Notes"), null,
//					Catalog.GetString ("Open the Search All Notes window"), null)
            });

//			main_window_actions.GetAction ("OpenNoteAction").Sensitive = false;
//			main_window_actions.GetAction ("DeleteNoteAction").Sensitive = false;

            ui.InsertActionGroup(main_window_actions, 0);
        }
        public override void Initialize(IPlayer player)
        {
            Gtk.ActionEntry[] actionEntries = new Gtk.ActionEntry[] {
                new Gtk.ActionEntry (
                    "SerpentineBurn",
                    null,
                    "Record Playlist to disc...",
                    "",
                    null,
                    new EventHandler (this.runSerpentine)
                ),
            };
            Gtk.ActionGroup actionGroup = new Gtk.ActionGroup("ShuffleActions");
            actionGroup.Add(actionEntries);

            player.UIManager.InsertActionGroup(actionGroup, -1);
            player.UIManager.AddUi(player.UIManager.NewMergeId(), "/MenuBar/FileMenu/ExtraFileActions", "SerpentineMenuItem", "SerpentineBurn", Gtk.UIManagerItemType.Menuitem, false);
        }
Example #14
0
        public override void Initialize(IPlayer player)
        {
            Gtk.ActionEntry[] actionEntries = new Gtk.ActionEntry[] {
                new Gtk.ActionEntry(
                    "SerpentineBurn",
                    null,
                    "Record Playlist to disc...",
                    "",
                    null,
                    new EventHandler(this.runSerpentine)
                    ),
            };
            Gtk.ActionGroup actionGroup = new Gtk.ActionGroup("ShuffleActions");
            actionGroup.Add(actionEntries);

            player.UIManager.InsertActionGroup(actionGroup, -1);
            player.UIManager.AddUi(player.UIManager.NewMergeId(), "/MenuBar/FileMenu/ExtraFileActions", "SerpentineMenuItem", "SerpentineBurn", Gtk.UIManagerItemType.Menuitem, false);
        }
		/// <summary>
		/// Called when Tomboy has started up and is nearly 100% initialized.
		/// </summary>
		public override void Initialize ()
		{
			// Gets names from subclass.
			SetNames ();

			//Listens for command line args
			Tomboy.DefaultNoteManager.CommandLine.AddinCmdLineArgsDetected += new AddinCommandLineEventHandler (ParseArgs);

			/*Adds "Export All Notes/Notebook To ***" to Tomboy's Main Menu */

			if (am.FindActionByName ("NoteExportAll"+export_file_suffix+"Action") == null) {

				am.MainWindowActions.Add (new Gtk.ActionEntry [] {
					new Gtk.ActionEntry ("NoteExportAll"+export_file_suffix+"Action", null,
					String.Format (Catalog.GetString ("Export All Notes to {0}"), export_type_pretty_name), null,
					String.Format (Catalog.GetString ("Start exporting notes to {0}"), export_type_pretty_name), null)
				});
				am.MainWindowActions.Add (new Gtk.ActionEntry [] {
					new Gtk.ActionEntry ("NoteExportNotebook"+export_file_suffix+"Action", null,
					String.Format (Catalog.GetString ("Export selected notebook to {0}"), export_type_pretty_name), null,
					String.Format (Catalog.GetString ("Start exporting notebook to {0}"), export_type_pretty_name), null)
				});

				action_group = new Gtk.ActionGroup ("Export");
				action_group.Add (new Gtk.ActionEntry [] {
					new Gtk.ActionEntry ("ToolsMenuAction", null,
						Catalog.GetString ("_Tools"), null, null, null),

					new Gtk.ActionEntry ("ExportMenuAction", Gtk.Stock.New,
					Catalog.GetString ("Export"), null,
					Catalog.GetString ("Export your notes."), null),

					new Gtk.ActionEntry ("ExportAllNotes"+export_file_suffix+"Action", null,
						String.Format (Catalog.GetString ("Export All Notes To {0}"), export_type_pretty_name), null, null,
						delegate {
							am ["NoteExportAll"+export_file_suffix+"Action"].Activate ();
					}),
					new Gtk.ActionEntry ("ExportNotebook"+export_file_suffix+"Action", null,
						String.Format (Catalog.GetString ("Export Selected Notebook To {0}"), export_type_pretty_name), null, null,
						delegate {
							am ["NoteExportNotebook"+export_file_suffix+"Action"].Activate ();
					})
				});

				action_group_id = am.UI.AddUiFromString (String.Format (@"
				                <ui>
				                <menubar name='MainWindowMenubar'>
				                <placeholder name='MainWindowMenuPlaceholder'>
				                <menu name='ToolsMenu' action='ToolsMenuAction'>
				                <menu name='ExportMenu' action='ExportMenuAction'>
				                <menuitem name='ExportAllNotes{0}' action='ExportAllNotes{0}Action' />
				                <menuitem name='ExportNotebook{0}' action='ExportNotebook{0}Action' />
				                </menu>
				                </menu>
				                </placeholder>
				                </menubar>
				                </ui>
				                ", export_file_suffix)
				                 );

				am.UI.InsertActionGroup (action_group, 0);

				am ["NoteExportAll"+export_file_suffix+"Action"].Activated += ExportAllButtonClicked;
				am ["NoteExportNotebook"+export_file_suffix+"Action"].Activated += ExportNotebookButtonClicked;

				initialized = true;
			}
		}
Example #16
0
 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", "File", null, null);
     this.FileAction.ShortLabel = "File";
     w1.Add(this.FileAction, null);
     this.newAction            = new Gtk.Action("newAction", "New", null, "gtk-new");
     this.newAction.ShortLabel = "New";
     w1.Add(this.newAction, "<Control>n");
     this.openAction            = new Gtk.Action("openAction", "Open...", null, "gtk-open");
     this.openAction.ShortLabel = "Open...";
     w1.Add(this.openAction, "<Control>o");
     this.saveAction            = new Gtk.Action("saveAction", "Save", null, "gtk-save");
     this.saveAction.ShortLabel = "Save";
     w1.Add(this.saveAction, "<Control>s");
     this.saveAsAction            = new Gtk.Action("saveAsAction", "Save as...", null, "gtk-save-as");
     this.saveAsAction.ShortLabel = "Save as...";
     w1.Add(this.saveAsAction, "<Control><Alt>s");
     this.quitAction            = new Gtk.Action("quitAction", "Exit", null, "gtk-quit");
     this.quitAction.ShortLabel = "Exit";
     w1.Add(this.quitAction, null);
     this.WordsAction            = new Gtk.Action("WordsAction", "Words", null, null);
     this.WordsAction.ShortLabel = "Words";
     w1.Add(this.WordsAction, null);
     this.GenerateAction            = new Gtk.Action("GenerateAction", "Generate", null, null);
     this.GenerateAction.ShortLabel = "Generate";
     w1.Add(this.GenerateAction, "<Control>g");
     this.ClearAndGenerateAction            = new Gtk.Action("ClearAndGenerateAction", "Clear and generate", null, null);
     this.ClearAndGenerateAction.ShortLabel = "Clear and generate";
     w1.Add(this.ClearAndGenerateAction, "<Control><Alt>g");
     this.ClearAction            = new Gtk.Action("ClearAction", "Clear", null, null);
     this.ClearAction.ShortLabel = "Clear";
     w1.Add(this.ClearAction, "<Control><Alt>l");
     this.CopySelectedAction            = new Gtk.Action("CopySelectedAction", "Copy selected", null, null);
     this.CopySelectedAction.ShortLabel = "Copy selected";
     w1.Add(this.CopySelectedAction, "<Control>j");
     this.CopyDescriptionsAction            = new Gtk.Action("CopyDescriptionsAction", "Copy descriptions", null, null);
     this.CopyDescriptionsAction.ShortLabel = "Copy descriptions";
     w1.Add(this.CopyDescriptionsAction, "<Control><Alt>j");
     this.ExportAction            = new Gtk.Action("ExportAction", "Export...", null, null);
     this.ExportAction.ShortLabel = "Export...";
     w1.Add(this.ExportAction, "<Control><Alt>e");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = "WordBuilder v3.0.0";
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "gtk-sort-ascending", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.mainVBox         = new Gtk.VBox();
     this.mainVBox.Name    = "mainVBox";
     this.mainVBox.Spacing = 6;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString(@"<ui><menubar name='mainMenuBar'><menu name='FileAction' action='FileAction'><menuitem name='newAction' action='newAction'/><menuitem name='openAction' action='openAction'/><separator/><menuitem name='saveAction' action='saveAction'/><menuitem name='saveAsAction' action='saveAsAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='WordsAction' action='WordsAction'><menuitem name='GenerateAction' action='GenerateAction'/><menuitem name='ClearAndGenerateAction' action='ClearAndGenerateAction'/><menuitem name='ClearAction' action='ClearAction'/><separator/><menuitem name='CopySelectedAction' action='CopySelectedAction'/><menuitem name='CopyDescriptionsAction' action='CopyDescriptionsAction'/><separator/><menuitem name='ExportAction' action='ExportAction'/></menu></menubar></ui>");
     this.mainMenuBar      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/mainMenuBar")));
     this.mainMenuBar.Name = "mainMenuBar";
     this.mainVBox.Add(this.mainMenuBar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mainVBox[this.mainMenuBar]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.vpaned2          = new Gtk.VPaned();
     this.vpaned2.CanFocus = true;
     this.vpaned2.Name     = "vpaned2";
     this.vpaned2.Position = 199;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.mainHPanes          = new Gtk.HPaned();
     this.mainHPanes.CanFocus = true;
     this.mainHPanes.Name     = "mainHPanes";
     this.mainHPanes.Position = 190;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.codeTextview          = new Gtk.TextView();
     this.codeTextview.CanFocus = true;
     this.codeTextview.Name     = "codeTextview";
     this.GtkScrolledWindow1.Add(this.codeTextview);
     this.mainHPanes.Add(this.GtkScrolledWindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.mainHPanes[this.GtkScrolledWindow1]));
     w4.Resize = false;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.resultVPanes          = new Gtk.VPaned();
     this.resultVPanes.CanFocus = true;
     this.resultVPanes.Name     = "resultVPanes";
     this.resultVPanes.Position = 127;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.resultsTreeview          = new Gtk.TreeView();
     this.resultsTreeview.CanFocus = true;
     this.resultsTreeview.Name     = "resultsTreeview";
     this.GtkScrolledWindow.Add(this.resultsTreeview);
     this.resultVPanes.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.resultVPanes[this.GtkScrolledWindow]));
     w6.Resize = false;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.detailsTextview            = new Gtk.TextView();
     this.detailsTextview.CanFocus   = true;
     this.detailsTextview.Name       = "detailsTextview";
     this.detailsTextview.Editable   = false;
     this.detailsTextview.AcceptsTab = false;
     this.GtkScrolledWindow2.Add(this.detailsTextview);
     this.resultVPanes.Add(this.GtkScrolledWindow2);
     this.mainHPanes.Add(this.resultVPanes);
     this.vpaned2.Add(this.mainHPanes);
     Gtk.Paned.PanedChild w10 = ((Gtk.Paned.PanedChild)(this.vpaned2[this.mainHPanes]));
     w10.Resize = false;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.warningsScrolledWindow            = new Gtk.ScrolledWindow();
     this.warningsScrolledWindow.Name       = "warningsScrolledWindow";
     this.warningsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child warningsScrolledWindow.Gtk.Container+ContainerChild
     this.warningsTreeView          = new Gtk.TreeView();
     this.warningsTreeView.CanFocus = true;
     this.warningsTreeView.Name     = "warningsTreeView";
     this.warningsScrolledWindow.Add(this.warningsTreeView);
     this.vpaned2.Add(this.warningsScrolledWindow);
     this.mainVBox.Add(this.vpaned2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.mainVBox[this.vpaned2]));
     w13.Position = 1;
     this.Add(this.mainVBox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 538;
     this.DefaultHeight = 411;
     this.warningsScrolledWindow.Hide();
     this.Show();
     this.newAction.Activated              += new System.EventHandler(this.OnNewActionActivated);
     this.openAction.Activated             += new System.EventHandler(this.OnOpenActionActivated);
     this.saveAction.Activated             += new System.EventHandler(this.OnSaveActionActivated);
     this.saveAsAction.Activated           += new System.EventHandler(this.OnSaveAsActionActivated);
     this.quitAction.Activated             += new System.EventHandler(this.OnQuitActionActivated);
     this.GenerateAction.Activated         += new System.EventHandler(this.OnGenerateActionActivated);
     this.ClearAndGenerateAction.Activated += new System.EventHandler(this.OnClearAndGenerateActionActivated);
     this.ClearAction.Activated            += new System.EventHandler(this.OnClearActionActivated);
     this.CopySelectedAction.Activated     += new System.EventHandler(this.OnCopySelectedActionActivated);
     this.CopyDescriptionsAction.Activated += new System.EventHandler(this.OnCopyDescriptionsActionActivated);
     this.ExportAction.Activated           += new System.EventHandler(this.OnExportActionActivated);
 }
Example #17
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);
 }
Example #18
0
 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);
 }
Example #19
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget sermon2.MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.HelpAction            = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w2.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");
     w2.Add(this.AboutAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "sermon2.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(3));
     // Container child sermon2.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='HelpAction'><menuitem action='AboutAction'/></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.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 0;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 260;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.hpaned3          = new Gtk.HPaned();
     this.hpaned3.CanFocus = true;
     this.hpaned3.Name     = "hpaned3";
     this.hpaned3.Position = 76;
     // Container child hpaned3.Gtk.Paned+PanedChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.configTreeView                  = new Gtk.TreeView();
     this.configTreeView.CanFocus         = true;
     this.configTreeView.Name             = "configTreeView";
     this.configTreeView.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.configTreeView);
     this.hpaned3.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned3[this.GtkScrolledWindow]));
     w5.Resize = false;
     // Container child hpaned3.Gtk.Paned+PanedChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.commonConfScrolledWindow             = new Gtk.ScrolledWindow();
     this.commonConfScrolledWindow.CanFocus    = true;
     this.commonConfScrolledWindow.Name        = "commonConfScrolledWindow";
     this.commonConfScrolledWindow.ShadowType  = ((Gtk.ShadowType)(1));
     this.commonConfScrolledWindow.BorderWidth = ((uint)(3));
     // Container child commonConfScrolledWindow.Gtk.Container+ContainerChild
     Gtk.Viewport w6 = new Gtk.Viewport();
     w6.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.alignment1      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment1.Name = "alignment1";
     // Container child alignment1.Gtk.Container+ContainerChild
     this.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     this.alignment1.Add(this.vbox5);
     this.vbox4.Add(this.alignment1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox4[this.alignment1]));
     w8.Position = 0;
     // Container child vbox4.Gtk.Box+BoxChild
     this.alignment2      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment2.Name = "alignment2";
     // Container child alignment2.Gtk.Container+ContainerChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     this.alignment2.Add(this.vbox6);
     this.vbox4.Add(this.alignment2);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.alignment2]));
     w10.Position = 1;
     w6.Add(this.vbox4);
     this.commonConfScrolledWindow.Add(w6);
     this.vbox3.Add(this.commonConfScrolledWindow);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox3[this.commonConfScrolledWindow]));
     w13.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.objectAddComboBox = Gtk.ComboBox.NewText();
     this.objectAddComboBox.AppendText(Mono.Unix.Catalog.GetString("serial port"));
     this.objectAddComboBox.AppendText(Mono.Unix.Catalog.GetString("tagger"));
     this.objectAddComboBox.AppendText(Mono.Unix.Catalog.GetString("lop"));
     this.objectAddComboBox.AppendText(Mono.Unix.Catalog.GetString("qport"));
     this.objectAddComboBox.AppendText(Mono.Unix.Catalog.GetString("streamview"));
     this.objectAddComboBox.AppendText(Mono.Unix.Catalog.GetString("lopview"));
     this.objectAddComboBox.Name   = "objectAddComboBox";
     this.objectAddComboBox.Active = 0;
     this.hbox3.Add(this.objectAddComboBox);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.objectAddComboBox]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.NewObjButton              = new Gtk.Button();
     this.NewObjButton.CanFocus     = true;
     this.NewObjButton.Name         = "NewObjButton";
     this.NewObjButton.UseUnderline = true;
     // Container child NewObjButton.Gtk.Container+ContainerChild
     Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w16 = new Gtk.HBox();
     w16.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w17 = new Gtk.Image();
     w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
     w16.Add(w17);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w19 = new Gtk.Label();
     w19.LabelProp    = Mono.Unix.Catalog.GetString("new object");
     w19.UseUnderline = true;
     w16.Add(w19);
     w15.Add(w16);
     this.NewObjButton.Add(w15);
     this.hbox3.Add(this.NewObjButton);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox3[this.NewObjButton]));
     w23.Position = 1;
     w23.Expand   = false;
     w23.Fill     = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w24.Position = 1;
     w24.Expand   = false;
     w24.Fill     = false;
     this.hpaned3.Add(this.vbox3);
     this.hpaned1.Add(this.hpaned3);
     Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.hpaned3]));
     w26.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.treeview1                  = new Gtk.TreeView();
     this.treeview1.CanFocus         = true;
     this.treeview1.Name             = "treeview1";
     this.treeview1.HeadersClickable = true;
     this.GtkScrolledWindow1.Add(this.treeview1);
     this.hpaned1.Add(this.GtkScrolledWindow1);
     this.hbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1]));
     w29.Position = 0;
     this.notebook1.Add(this.hbox2);
     // Notebook tab
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("objects");
     this.notebook1.SetTabLabel(this.hbox2, this.label4);
     this.label4.ShowAll();
     this.vbox2.Add(this.notebook1);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox2[this.notebook1]));
     w31.Position = 1;
     // 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.button1              = new Gtk.Button();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label        = Mono.Unix.Catalog.GetString("button1");
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w32.Position = 0;
     w32.Expand   = false;
     w32.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button24              = new Gtk.Button();
     this.button24.CanFocus     = true;
     this.button24.Name         = "button24";
     this.button24.UseUnderline = true;
     this.button24.Label        = Mono.Unix.Catalog.GetString("button24");
     this.hbox1.Add(this.button24);
     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.hbox1[this.button24]));
     w33.Position = 1;
     w33.Expand   = false;
     w33.Fill     = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w34.Position = 2;
     w34.Expand   = false;
     w34.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.statusbar2         = new Gtk.Statusbar();
     this.statusbar2.Name    = "statusbar2";
     this.statusbar2.Spacing = 6;
     this.vbox2.Add(this.statusbar2);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar2]));
     w35.Position = 3;
     w35.Expand   = false;
     w35.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 392;
     this.Show();
     this.DeleteEvent                    += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AboutAction.Activated          += new System.EventHandler(this.OnAboutActionActivated);
     this.configTreeView.RowActivated    += new Gtk.RowActivatedHandler(this.OnConfigTreeViewRowActivated);
     this.configTreeView.SelectCursorRow += new Gtk.SelectCursorRowHandler(this.OnConfigTreeViewSelectCursorRow);
     this.configTreeView.SelectCursorRow += new Gtk.SelectCursorRowHandler(this.OnConfigTreeViewSelectCursorRow);
     this.configTreeView.ToggleCursorRow += new Gtk.ToggleCursorRowHandler(this.OnConfigTreeViewToggleCursorRow);
     this.configTreeView.CursorChanged   += new System.EventHandler(this.OnConfigTreeViewCursorChanged);
     this.NewObjButton.Released          += new System.EventHandler(this.OnNewObjButtonReleased);
     this.button1.Released               += new System.EventHandler(this.OnButton1Released);
     this.button24.Released              += new System.EventHandler(this.OnButton24Released);
 }
 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);
 }
Example #21
0
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.File, null);
     this.Exit = new Gtk.Action("Exit", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.Exit.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit, null);
     this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w2.Add(this.View, null);
     this.Quality = new Gtk.Action("Quality", Mono.Unix.Catalog.GetString("Quality"), null, null);
     this.Quality.ShortLabel = Mono.Unix.Catalog.GetString("Quality");
     w2.Add(this.Quality, null);
     this.Low = new Gtk.Action("Low", Mono.Unix.Catalog.GetString("Low"), null, null);
     this.Low.ShortLabel = Mono.Unix.Catalog.GetString("Low");
     w2.Add(this.Low, null);
     this.Medium = new Gtk.Action("Medium", Mono.Unix.Catalog.GetString("Medium"), null, null);
     this.Medium.ShortLabel = Mono.Unix.Catalog.GetString("Medium");
     w2.Add(this.Medium, null);
     this.High = new Gtk.Action("High", Mono.Unix.Catalog.GetString("High"), null, null);
     this.High.ShortLabel = Mono.Unix.Catalog.GetString("High");
     w2.Add(this.High, null);
     this.DepthMap = new Gtk.Action("DepthMap", Mono.Unix.Catalog.GetString("Depth Map"), null, null);
     this.DepthMap.ShortLabel = Mono.Unix.Catalog.GetString("Depth Map");
     w2.Add(this.DepthMap, null);
     this.SimpleStereo = new Gtk.Action("SimpleStereo", Mono.Unix.Catalog.GetString("Simple Stereo"), null, null);
     this.SimpleStereo.ShortLabel = Mono.Unix.Catalog.GetString("Simple Stereo");
     w2.Add(this.SimpleStereo, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Stereo Correspondence");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='View'><menuitem action='DepthMap'/><menuitem action='SimpleStereo'/></menu><menu action='Quality'><menuitem action='Low'/><menuitem action='Medium'/><menuitem action='High'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Stereo Images Directory");
     this.hbox3.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.label1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.txtImagesDirectory = new Gtk.TextView();
     this.txtImagesDirectory.CanFocus = true;
     this.txtImagesDirectory.Name = "txtImagesDirectory";
     this.hbox3.Add(this.txtImagesDirectory);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox3[this.txtImagesDirectory]));
     w5.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.cmdImagesDirectory = new Gtk.Button();
     this.cmdImagesDirectory.CanFocus = true;
     this.cmdImagesDirectory.Name = "cmdImagesDirectory";
     this.cmdImagesDirectory.UseUnderline = true;
     this.cmdImagesDirectory.Label = Mono.Unix.Catalog.GetString("Browse");
     this.hbox3.Add(this.cmdImagesDirectory);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdImagesDirectory]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w7.Position = 0;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Calibration/Robot design file");
     this.hbox4.Add(this.label2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.label2]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.txtCalibrationFilename = new Gtk.TextView();
     this.txtCalibrationFilename.CanFocus = true;
     this.txtCalibrationFilename.Name = "txtCalibrationFilename";
     this.hbox4.Add(this.txtCalibrationFilename);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.txtCalibrationFilename]));
     w9.Position = 1;
     // Container child hbox4.Gtk.Box+BoxChild
     this.cmdCalibrationFilename = new Gtk.Button();
     this.cmdCalibrationFilename.CanFocus = true;
     this.cmdCalibrationFilename.Name = "cmdCalibrationFilename";
     this.cmdCalibrationFilename.UseUnderline = true;
     this.cmdCalibrationFilename.Label = Mono.Unix.Catalog.GetString("Browse");
     this.hbox4.Add(this.cmdCalibrationFilename);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdCalibrationFilename]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.vbox2.Add(this.hbox4);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox5 = new Gtk.HBox();
     this.hbox5.Name = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Calculation Time (mS)");
     this.hbox5.Add(this.label3);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox5[this.label3]));
     w12.Position = 0;
     w12.Expand = false;
     w12.Fill = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.txtStereoCorrespondenceTime = new Gtk.TextView();
     this.txtStereoCorrespondenceTime.CanFocus = true;
     this.txtStereoCorrespondenceTime.Name = "txtStereoCorrespondenceTime";
     this.hbox5.Add(this.txtStereoCorrespondenceTime);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox5[this.txtStereoCorrespondenceTime]));
     w13.Position = 1;
     this.vbox2.Add(this.hbox5);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5]));
     w14.Position = 2;
     w14.Expand = false;
     w14.Fill = false;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w15.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdPrevious = new Gtk.Button();
     this.cmdPrevious.CanFocus = true;
     this.cmdPrevious.Name = "cmdPrevious";
     this.cmdPrevious.UseUnderline = true;
     this.cmdPrevious.Label = Mono.Unix.Catalog.GetString("Previous");
     this.vbox3.Add(this.cmdPrevious);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdPrevious]));
     w16.Position = 0;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdNext = new Gtk.Button();
     this.cmdNext.CanFocus = true;
     this.cmdNext.Name = "cmdNext";
     this.cmdNext.UseUnderline = true;
     this.cmdNext.Label = Mono.Unix.Catalog.GetString("Next");
     this.vbox3.Add(this.cmdNext);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdNext]));
     w17.Position = 1;
     w17.Expand = false;
     w17.Fill = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w18.Position = 2;
     w18.Expand = false;
     w18.Fill = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.picLeftImage = new Gtk.Image();
     this.picLeftImage.Name = "picLeftImage";
     this.hbox1.Add(this.picLeftImage);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.picLeftImage]));
     w20.Position = 0;
     w20.Expand = false;
     w20.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.picRightImage = new Gtk.Image();
     this.picRightImage.Name = "picRightImage";
     this.hbox1.Add(this.picRightImage);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.picRightImage]));
     w21.Position = 1;
     w21.Expand = false;
     w21.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w22.Position = 2;
     w22.Expand = false;
     w22.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.picDepthMap = new Gtk.Image();
     this.picDepthMap.Name = "picDepthMap";
     this.vbox1.Add(this.picDepthMap);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox1[this.picDepthMap]));
     w23.Position = 3;
     w23.Expand = false;
     w23.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 641;
     this.DefaultHeight = 451;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Exit.Activated += new System.EventHandler(this.OnExitActivated);
     this.Low.Activated += new System.EventHandler(this.OnLowActivated);
     this.Medium.Activated += new System.EventHandler(this.OnMediumActivated);
     this.High.Activated += new System.EventHandler(this.OnHighActivated);
     this.DepthMap.Activated += new System.EventHandler(this.OnDepthMapActivated);
     this.SimpleStereo.Activated += new System.EventHandler(this.OnSimpleStereoActivated);
     this.cmdImagesDirectory.Clicked += new System.EventHandler(this.OnCmdImagesDirectoryClicked);
     this.cmdCalibrationFilename.Clicked += new System.EventHandler(this.OnCmdCalibrationFilenameClicked);
     this.cmdPrevious.Clicked += new System.EventHandler(this.OnCmdPreviousClicked);
     this.cmdNext.Clicked += new System.EventHandler(this.OnCmdNextClicked);
 }
Example #22
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "MainWindow")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget MainWindow
         cobj.Title = "GNFOViewer";
         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, "<Alt>f");
         Gtk.Action w4 = new Gtk.Action("Tools", "_Tools", null, null);
         w4.ShortLabel = "_Tools";
         bindings["Tools"] = w4;
         w2.Add(w4, "<Alt>t");
         Gtk.Action w5 = new Gtk.Action("Open", "Open", null, "gtk-open");
         w5.ShortLabel = "Open";
         bindings["Open"] = w5;
         w2.Add(w5, "<Control>o");
         Gtk.Action w6 = new Gtk.Action("Quit", "Quit", null, "gtk-quit");
         w6.ShortLabel = "Quit";
         bindings["Quit"] = w6;
         w2.Add(w6, "<Control>q");
         Gtk.Action w7 = new Gtk.Action("Invert", "Invert", null, "gtk-refresh");
         w7.ShortLabel = "Invert";
         bindings["Invert"] = w7;
         w2.Add(w7, "<Control>i");
         w1.InsertActionGroup(w2, 0);
         cobj.AddAccelGroup(w1.AccelGroup);
         cobj.Icon = Gtk.IconTheme.Default.LoadIcon("stock_smiley-26", 16, 0);
         cobj.WindowPosition = ((Gtk.WindowPosition)(3));
         cobj.DefaultWidth = 640;
         cobj.DefaultHeight = 480;
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "MainWindow";
         // Container child 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='menubar1'><menu action='File'><menuitem action='Open'/><menuitem action='Quit'/></menu><menu action='Tools'><menuitem action='Invert'/></menu></menubar></ui>");
         Gtk.MenuBar w9 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
         w9.Events = ((Gdk.EventMask)(0));
         w9.Name = "menubar1";
         bindings["menubar1"] = 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
         Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow();
         w11.VscrollbarPolicy = ((Gtk.PolicyType)(1));
         w11.HscrollbarPolicy = ((Gtk.PolicyType)(1));
         w11.CanFocus = true;
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "scrolledwindow1";
         // Container child scrolledwindow1.Gtk.Container+ContainerChild
         Gtk.TextView w12 = new Gtk.TextView();
         w12.CursorVisible = false;
         w12.Editable = false;
         w12.CanFocus = true;
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "textview1";
         bindings["textview1"] = w12;
         w11.Add(w12);
         bindings["scrolledwindow1"] = w11;
         w8.Add(w11);
         Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w8[w11]));
         w14.Position = 1;
         bindings["vbox1"] = w8;
         cobj.Add(w8);
         bindings["MainWindow"] = cobj;
         w9.Show();
         w12.Show();
         w11.Show();
         w8.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, "OnOpenActivated")));
         w6.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnQuitActivated")));
         w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnInvertActivated")));
     }
     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);
         }
     }
 }
Example #23
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "LabCardCreator.EraseDialog"))
     {
         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
         // Widget LabCardCreator.EraseDialog
         cobj.Title          = "Erase card...";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.HasSeparator   = false;
         cobj.Events         = ((Gdk.EventMask)(256));
         cobj.Name           = "LabCardCreator.EraseDialog";
         cobj.HasDefault     = true;
         cobj.CanDefault     = true;
         // Internal child LabCardCreator.EraseDialog.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.VBox w2 = new Gtk.VBox();
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name   = "vbox1";
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.HBox w3 = new Gtk.HBox();
         w3.Events = ((Gdk.EventMask)(0));
         w3.Name   = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Image w4 = new Gtk.Image();
         w4.Pixbuf          = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-warning", 48, 0);
         w4.Events          = ((Gdk.EventMask)(0));
         w4.Name            = "image3";
         w4.WidthRequest    = 70;
         bindings["image3"] = w4;
         w3.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w3[w4]));
         w5.Position = 0;
         w5.Expand   = false;
         w5.Fill     = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w6 = new Gtk.Label();
         w6.LabelProp         = "<b>Delete card content and format as Labor Card?</b>";
         w6.UseMarkup         = true;
         w6.Justify           = ((Gtk.Justification)(2));
         w6.Events            = ((Gdk.EventMask)(0));
         w6.Name              = "MsgLabel";
         bindings["MsgLabel"] = w6;
         w3.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w3[w6]));
         w7.Position       = 1;
         w7.Padding        = ((uint)(10));
         bindings["hbox1"] = w3;
         w2.Add(w3);
         Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w2[w3]));
         w8.Position = 0;
         w8.Expand   = false;
         w8.Padding  = ((uint)(10));
         // Container child vbox1.Gtk.Box+BoxChild
         Gtk.Expander w9  = new Gtk.Expander(null);
         Gtk.Tooltips w10 = new Gtk.Tooltips();
         w10.SetTip(w9, "Show hexdump of card content", "Show hexdump of card content");
         w9.CanFocus = true;
         w9.Events   = ((Gdk.EventMask)(0));
         w9.Name     = "ContentExpander";
         // Container child ContentExpander.Gtk.Container+ContainerChild
         Gtk.TextView w11 = new Gtk.TextView();
         w11.CursorVisible       = false;
         w11.Editable            = false;
         w11.AcceptsTab          = false;
         w11.CanFocus            = true;
         w11.Events              = ((Gdk.EventMask)(0));
         w11.Name                = "ContentView";
         bindings["ContentView"] = w11;
         w9.Add(w11);
         Gtk.Label w13 = new Gtk.Label();
         w13.LabelProp               = "Show detailed card content";
         w13.UseUnderline            = true;
         w13.Events                  = ((Gdk.EventMask)(0));
         w13.Name                    = "GtkLabel";
         bindings["GtkLabel"]        = w13;
         w9.LabelWidget              = w13;
         bindings["ContentExpander"] = w9;
         w2.Add(w9);
         Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w2[w9]));
         w14.Position      = 1;
         bindings["vbox1"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w2]));
         w15.Position            = 0;
         bindings["dialog_VBox"] = w1;
         // Internal child LabCardCreator.EraseDialog.ActionArea
         Gtk.HButtonBox w16 = cobj.ActionArea;
         w16.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
         w16.Spacing     = 6;
         w16.BorderWidth = ((uint)(5));
         w16.Events      = ((Gdk.EventMask)(256));
         w16.Name        = "LabCardCreator.EraseDialog_ActionArea";
         // Container child LabCardCreator.EraseDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w17 = new Gtk.Button();
         w17.UseStock             = true;
         w17.UseUnderline         = true;
         w17.CanFocus             = true;
         w17.Events               = ((Gdk.EventMask)(0));
         w17.Name                 = "CancelButton";
         w17.HasDefault           = true;
         w17.CanDefault           = true;
         w17.Label                = "gtk-cancel";
         bindings["CancelButton"] = w17;
         cobj.AddActionWidget(w17, -2);
         Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[w17]));
         w18.Expand = false;
         w18.Fill   = false;
         // Container child LabCardCreator.EraseDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w19 = new Gtk.Button();
         w19.UseStock             = true;
         w19.UseUnderline         = true;
         w19.CanFocus             = true;
         w19.Events               = ((Gdk.EventMask)(0));
         w19.Name                 = "DeleteButton";
         w19.CanDefault           = true;
         w19.Label                = "gtk-delete";
         bindings["DeleteButton"] = w19;
         cobj.AddActionWidget(w19, -3);
         Gtk.ButtonBox.ButtonBoxChild w20 = ((Gtk.ButtonBox.ButtonBoxChild)(w16[w19]));
         w20.Position = 1;
         w20.Expand   = false;
         w20.Fill     = false;
         bindings["LabCardCreator.EraseDialog_ActionArea"] = w16;
         cobj.DefaultWidth  = 458;
         cobj.DefaultHeight = 161;
         bindings["LabCardCreator.EraseDialog"] = cobj;
         w4.Show();
         w6.Show();
         w3.Show();
         w11.Show();
         w13.Show();
         w9.Show();
         w2.Show();
         w1.Show();
         w17.Show();
         w19.Show();
         w16.Show();
         cobj.Show();
         w9.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnExpander")));
     }
     else
     {
         if ((id == "LabCardCreator.MainWindow"))
         {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget LabCardCreator.MainWindow
             cobj.Title = "Labor Card Creator";
             Gtk.UIManager   w1 = new Gtk.UIManager();
             Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
             Gtk.Action      w3 = new Gtk.Action("CardCreator", "_CardCreator", null, null);
             w3.ShortLabel           = "_CardCreator";
             bindings["CardCreator"] = w3;
             w2.Add(w3, null);
             Gtk.Action w4 = new Gtk.Action("Help", "_Help", null, null);
             w4.ShortLabel    = "_Help";
             bindings["Help"] = w4;
             w2.Add(w4, null);
             Gtk.Action w5 = new Gtk.Action("Quit", "Quit", null, "gtk-quit");
             w5.ShortLabel    = "Quit";
             bindings["Quit"] = w5;
             w2.Add(w5, null);
             Gtk.Action w6 = new Gtk.Action("About", "_About...", null, "gtk-about");
             w6.ShortLabel     = "_About";
             bindings["About"] = w6;
             w2.Add(w6, null);
             Gtk.Action w7 = new Gtk.Action("ConnectCardTerminal", "Connect Card Terminal...", null, "gtk-connect");
             w7.ShortLabel = "Connect Card Terminal";
             bindings["ConnectCardTerminal"] = w7;
             w2.Add(w7, null);
             Gtk.Action w8 = new Gtk.Action("DisconnectCardTerminal", "Disconnect Card Terminal", null, "gtk-disconnect");
             w8.ShortLabel = "Disconnect Card Terminal";
             w8.Sensitive  = false;
             bindings["DisconnectCardTerminal"] = w8;
             w2.Add(w8, null);
             Gtk.Action w9 = new Gtk.Action("ViewHexdump", "View _Hexdump...", null, "gtk-justify-fill");
             w9.ShortLabel           = "View _Hexdump";
             bindings["ViewHexdump"] = w9;
             w2.Add(w9, null);
             Gtk.Action w10 = new Gtk.Action("EraseCard", "Erase Card...", null, "gtk-clear");
             w10.ShortLabel        = "Erase Card...";
             bindings["EraseCard"] = w10;
             w2.Add(w10, null);
             Gtk.Action w11 = new Gtk.Action("", "------------------", null, null);
             w11.ShortLabel = "------------------";
             bindings[""]   = w11;
             w2.Add(w11, null);
             w1.InsertActionGroup(w2, 0);
             cobj.AddAccelGroup(w1.AccelGroup);
             cobj.Icon           = Gdk.Pixbuf.LoadFromResource("Labor.png");
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.Events         = ((Gdk.EventMask)(0));
             cobj.Name           = "LabCardCreator.MainWindow";
             // Container child LabCardCreator.MainWindow.Gtk.Container+ContainerChild
             Gtk.VBox w12 = new Gtk.VBox();
             w12.Events = ((Gdk.EventMask)(0));
             w12.Name   = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='CardCreator'><menuitem action='ConnectCardTerminal'/><menuitem action='DisconnectCardTerminal'/><menuitem action='ViewHexdump'/><menuitem action='EraseCard'/><menuitem action='Quit'/><menuitem/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
             Gtk.MenuBar w13 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
             w13.Events           = ((Gdk.EventMask)(0));
             w13.Name             = "menubar1";
             bindings["menubar1"] = w13;
             w12.Add(w13);
             Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w12[w13]));
             w14.Position = 0;
             w14.Expand   = false;
             w14.Fill     = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Table w15 = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
             w15.RowSpacing    = ((uint)(6));
             w15.ColumnSpacing = ((uint)(10));
             w15.BorderWidth   = ((uint)(6));
             w15.Events        = ((Gdk.EventMask)(0));
             w15.Name          = "table2";
             // Container child table2.Gtk.Table+TableChild
             Gtk.Entry    w16 = new Gtk.Entry();
             Gtk.Tooltips w17 = new Gtk.Tooltips();
             w17.SetTip(w16, "Internal Card Number", "Internal Card Number");
             w16.Text                = "2342";
             w16.IsEditable          = false;
             w16.InvisibleChar       = '●';
             w16.CanFocus            = true;
             w16.Events              = ((Gdk.EventMask)(0));
             w16.Name                = "numberEntry";
             w16.Sensitive           = false;
             bindings["numberEntry"] = w16;
             w15.Add(w16);
             Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(w15[w16]));
             w18.BottomAttach = ((uint)(3));
             w18.LeftAttach   = ((uint)(1));
             w18.RightAttach  = ((uint)(2));
             w18.TopAttach    = ((uint)(2));
             w18.YOptions     = ((Gtk.AttachOptions)(4));
             w18.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Entry w19 = new Gtk.Entry();
             w19.IsEditable        = true;
             w19.InvisibleChar     = '●';
             w19.CanFocus          = true;
             w19.Events            = ((Gdk.EventMask)(0));
             w19.Name              = "nameEntry";
             w19.Sensitive         = false;
             bindings["nameEntry"] = w19;
             w15.Add(w19);
             Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(w15[w19]));
             w20.BottomAttach = ((uint)(2));
             w20.LeftAttach   = ((uint)(1));
             w20.RightAttach  = ((uint)(2));
             w20.TopAttach    = ((uint)(1));
             w20.YOptions     = ((Gtk.AttachOptions)(4));
             w20.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Entry w21 = new Gtk.Entry();
             w21.IsEditable        = true;
             w21.WidthChars        = 7;
             w21.MaxLength         = 7;
             w21.InvisibleChar     = '●';
             w21.CanFocus          = true;
             w21.Events            = ((Gdk.EventMask)(0));
             w21.Name              = "nickEntry";
             w21.Sensitive         = false;
             bindings["nickEntry"] = w21;
             w15.Add(w21);
             Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(w15[w21]));
             w22.LeftAttach  = ((uint)(1));
             w22.RightAttach = ((uint)(2));
             w22.YOptions    = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w23 = new Gtk.Label();
             w23.LabelProp      = "Card Number:";
             w23.UseUnderline   = true;
             w23.Xalign         = 1F;
             w23.Events         = ((Gdk.EventMask)(0));
             w23.Name           = "label3";
             bindings["label3"] = w23;
             w15.Add(w23);
             Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(w15[w23]));
             w24.BottomAttach = ((uint)(3));
             w24.TopAttach    = ((uint)(2));
             w24.YOptions     = ((Gtk.AttachOptions)(4));
             w24.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w25 = new Gtk.Label();
             w25.LabelProp      = "Real N_ame:";
             w25.UseUnderline   = true;
             w25.Xalign         = 1F;
             w25.Events         = ((Gdk.EventMask)(0));
             w25.Name           = "label2";
             bindings["label2"] = w25;
             w15.Add(w25);
             Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(w15[w25]));
             w26.BottomAttach = ((uint)(2));
             w26.TopAttach    = ((uint)(1));
             w26.YOptions     = ((Gtk.AttachOptions)(4));
             w26.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w27 = new Gtk.Label();
             w27.LabelProp      = "_Nick:";
             w27.UseUnderline   = true;
             w27.Xalign         = 1F;
             w27.Events         = ((Gdk.EventMask)(0));
             w27.Name           = "label4";
             bindings["label4"] = w27;
             w15.Add(w27);
             Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(w15[w27]));
             w28.YOptions = ((Gtk.AttachOptions)(4));
             w28.XOptions = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.Label w29 = new Gtk.Label();
             w29.LabelProp      = "Permissions:";
             w29.UseUnderline   = true;
             w29.Xalign         = 1F;
             w29.Events         = ((Gdk.EventMask)(0));
             w29.Name           = "label1";
             bindings["label1"] = w29;
             w15.Add(w29);
             Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(w15[w29]));
             w30.BottomAttach = ((uint)(4));
             w30.TopAttach    = ((uint)(3));
             w30.YOptions     = ((Gtk.AttachOptions)(4));
             w30.XOptions     = ((Gtk.AttachOptions)(4));
             // Container child table2.Gtk.Table+TableChild
             Gtk.HBox w31 = new Gtk.HBox();
             w31.Events = ((Gdk.EventMask)(0));
             w31.Name   = "hbox2";
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.CheckButton w32 = new Gtk.CheckButton();
             w32.Label              = "Admin";
             w32.DrawIndicator      = true;
             w32.CanFocus           = true;
             w32.Events             = ((Gdk.EventMask)(0));
             w32.Name               = "adminCheck";
             w32.Sensitive          = false;
             bindings["adminCheck"] = w32;
             w31.Add(w32);
             Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w31[w32]));
             w33.Position = 0;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.CheckButton w34 = new Gtk.CheckButton();
             w34.Label              = "Door 0";
             w34.Active             = true;
             w34.DrawIndicator      = true;
             w34.CanFocus           = true;
             w34.Events             = ((Gdk.EventMask)(0));
             w34.Name               = "door0Check";
             w34.Sensitive          = false;
             bindings["door0Check"] = w34;
             w31.Add(w34);
             Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(w31[w34]));
             w35.Position = 1;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.CheckButton w36 = new Gtk.CheckButton();
             w36.Label              = "Door 1";
             w36.Active             = true;
             w36.DrawIndicator      = true;
             w36.CanFocus           = true;
             w36.Events             = ((Gdk.EventMask)(0));
             w36.Name               = "door1Check";
             w36.Sensitive          = false;
             bindings["door1Check"] = w36;
             w31.Add(w36);
             Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(w31[w36]));
             w37.Position      = 2;
             bindings["hbox2"] = w31;
             w15.Add(w31);
             Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(w15[w31]));
             w38.BottomAttach   = ((uint)(4));
             w38.LeftAttach     = ((uint)(1));
             w38.RightAttach    = ((uint)(2));
             w38.TopAttach      = ((uint)(3));
             w38.YOptions       = ((Gtk.AttachOptions)(4));
             w38.XOptions       = ((Gtk.AttachOptions)(4));
             bindings["table2"] = w15;
             w12.Add(w15);
             Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(w12[w15]));
             w39.Position = 1;
             w39.Expand   = false;
             w39.Fill     = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Statusbar w40 = new Gtk.Statusbar();
             w40.HasResizeGrip     = false;
             w40.Events            = ((Gdk.EventMask)(0));
             w40.Name              = "Statusbar";
             bindings["Statusbar"] = w40;
             w12.Add(w40);
             Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(w12[w40]));
             w41.PackType = ((Gtk.PackType)(1));
             w41.Position = 2;
             w41.Expand   = false;
             w41.Fill     = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w42 = new Gtk.HBox();
             w42.Events = ((Gdk.EventMask)(0));
             w42.Name   = "hbox3";
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.Image w43 = new Gtk.Image();
             w43.Pixbuf          = Gdk.Pixbuf.LoadFromResource("Labor.png");
             w43.Events          = ((Gdk.EventMask)(0));
             w43.Name            = "image11";
             bindings["image11"] = w43;
             w42.Add(w43);
             Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w42[w43]));
             w44.Position = 0;
             w44.Expand   = false;
             w44.Fill     = false;
             w44.Padding  = ((uint)(30));
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.HBox w45 = new Gtk.HBox();
             w45.Events = ((Gdk.EventMask)(0));
             w45.Name   = "hbox1";
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.HButtonBox w46 = new Gtk.HButtonBox();
             w46.Spacing     = 20;
             w46.BorderWidth = ((uint)(11));
             w46.Events      = ((Gdk.EventMask)(0));
             w46.Name        = "hbuttonbox1";
             // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
             Gtk.Button w47 = new Gtk.Button();
             w47.UseUnderline = true;
             w47.CanFocus     = true;
             w47.Events       = ((Gdk.EventMask)(0));
             w47.Name         = "writeButton";
             w47.Sensitive    = false;
             w47.HasDefault   = true;
             w47.CanDefault   = true;
             // Container child writeButton.Gtk.Container+ContainerChild
             Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w48.Events = ((Gdk.EventMask)(0));
             w48.Name   = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w49 = new Gtk.HBox();
             w49.Spacing = 2;
             w49.Events  = ((Gdk.EventMask)(0));
             w49.Name    = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w50 = new Gtk.Image();
             w50.Pixbuf         = Gtk.IconTheme.Default.LoadIcon("stock_creditcard", 16, 0);
             w50.Events         = ((Gdk.EventMask)(0));
             w50.Name           = "image1";
             bindings["image1"] = w50;
             w49.Add(w50);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w52 = new Gtk.Label();
             w52.LabelProp        = "_Write to card";
             w52.UseUnderline     = true;
             w52.Events           = ((Gdk.EventMask)(0));
             w52.Name             = "GtkLabel";
             bindings["GtkLabel"] = w52;
             w49.Add(w52);
             bindings["GtkHBox"] = w49;
             w48.Add(w49);
             bindings["GtkAlignment"] = w48;
             w47.Add(w48);
             bindings["writeButton"] = w47;
             w46.Add(w47);
             Gtk.ButtonBox.ButtonBoxChild w56 = ((Gtk.ButtonBox.ButtonBoxChild)(w46[w47]));
             w56.Expand = false;
             w56.Fill   = false;
             bindings["hbuttonbox1"] = w46;
             w45.Add(w46);
             Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(w45[w46]));
             w57.Position      = 0;
             bindings["hbox1"] = w45;
             w42.Add(w45);
             Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(w42[w45]));
             w58.Position      = 1;
             bindings["hbox3"] = w42;
             w12.Add(w42);
             Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w12[w42]));
             w59.PackType      = ((Gtk.PackType)(1));
             w59.Position      = 3;
             w59.Expand        = false;
             w59.Fill          = false;
             bindings["vbox1"] = w12;
             cobj.Add(w12);
             cobj.DefaultWidth  = 516;
             cobj.DefaultHeight = 270;
             bindings["LabCardCreator.MainWindow"] = cobj;
             w13.Show();
             w16.Show();
             w19.Show();
             w21.Show();
             w23.Show();
             w25.Show();
             w27.Show();
             w29.Show();
             w32.Show();
             w34.Show();
             w36.Show();
             w31.Show();
             w15.Show();
             w40.Show();
             w43.Show();
             w50.Show();
             w52.Show();
             w49.Show();
             w48.Show();
             w47.Show();
             w46.Show();
             w45.Show();
             w42.Show();
             w12.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, "OnQuitActivated")));
             w6.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAboutActivated")));
             w7.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnectActivated")));
             w8.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDisconnectActivated")));
             w9.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnViewHexdumpActivated")));
             w10.Activated    += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEraseActivated")));
             w47.Clicked      += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnWriteBtnClicked")));
         }
     }
     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);
         }
     }
 }
Example #24
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction            = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.ExitAction            = new Gtk.Action("ExitAction", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-stop");
     this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w1.Add(this.ExitAction, null);
     this.ToolsAction            = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("Tools"), null, null);
     this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools");
     w1.Add(this.ToolsAction, null);
     this.RecordImagesAction            = new Gtk.ToggleAction("RecordImagesAction", Mono.Unix.Catalog.GetString("Record images"), null, null);
     this.RecordImagesAction.Active     = true;
     this.RecordImagesAction.ShortLabel = Mono.Unix.Catalog.GetString("Record images");
     w1.Add(this.RecordImagesAction, null);
     this.CalibrateAlignmentAction            = new Gtk.Action("CalibrateAlignmentAction", Mono.Unix.Catalog.GetString("Calibrate Alignment"), null, null);
     this.CalibrateAlignmentAction.ShortLabel = Mono.Unix.Catalog.GetString("Calibrate Alignment");
     w1.Add(this.CalibrateAlignmentAction, null);
     this.ManualTweaksAction            = new Gtk.Action("ManualTweaksAction", Mono.Unix.Catalog.GetString("Manual Tweaks"), null, null);
     this.ManualTweaksAction.ShortLabel = Mono.Unix.Catalog.GetString("Manual Tweaks");
     w1.Add(this.ManualTweaksAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("New Action Group");
     this.SaveAsAnimatedGifAction            = new Gtk.Action("SaveAsAnimatedGifAction", Mono.Unix.Catalog.GetString("Save as animated gif"), null, null);
     this.SaveAsAnimatedGifAction.ShortLabel = Mono.Unix.Catalog.GetString("Save as animated gif");
     w2.Add(this.SaveAsAnimatedGifAction, null);
     this.UIManager.InsertActionGroup(w2, 1);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.CanFocus       = true;
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Webcam SVS");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='SaveAsAnimatedGifAction' action='SaveAsAnimatedGifAction'/><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='RecordImagesAction' action='RecordImagesAction'/><menuitem name='CalibrateAlignmentAction' action='CalibrateAlignmentAction'/><menuitem name='ManualTweaksAction' action='ManualTweaksAction'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.leftimage      = new Gtk.Image();
     this.leftimage.Name = "leftimage";
     this.hbox1.Add(this.leftimage);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.leftimage]));
     w4.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.rightimage      = new Gtk.Image();
     this.rightimage.Name = "rightimage";
     this.hbox1.Add(this.rightimage);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.rightimage]));
     w5.Position = 1;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w6.Position = 1;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkRecord               = new Gtk.CheckButton();
     this.chkRecord.CanFocus      = true;
     this.chkRecord.Name          = "chkRecord";
     this.chkRecord.Label         = Mono.Unix.Catalog.GetString("Record");
     this.chkRecord.DrawIndicator = true;
     this.chkRecord.UseUnderline  = true;
     this.hbox2.Add(this.chkRecord);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkRecord]));
     w7.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkCalibrateLeft               = new Gtk.CheckButton();
     this.chkCalibrateLeft.CanFocus      = true;
     this.chkCalibrateLeft.Name          = "chkCalibrateLeft";
     this.chkCalibrateLeft.Label         = Mono.Unix.Catalog.GetString("Calibrate left camera");
     this.chkCalibrateLeft.DrawIndicator = true;
     this.chkCalibrateLeft.UseUnderline  = true;
     this.hbox2.Add(this.chkCalibrateLeft);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkCalibrateLeft]));
     w8.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkCalibrateRight               = new Gtk.CheckButton();
     this.chkCalibrateRight.CanFocus      = true;
     this.chkCalibrateRight.Name          = "chkCalibrateRight";
     this.chkCalibrateRight.Label         = Mono.Unix.Catalog.GetString("Calibrate right camera");
     this.chkCalibrateRight.DrawIndicator = true;
     this.chkCalibrateRight.UseUnderline  = true;
     this.hbox2.Add(this.chkCalibrateRight);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkCalibrateRight]));
     w9.Position = 2;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkFlipRight               = new Gtk.CheckButton();
     this.chkFlipRight.CanFocus      = true;
     this.chkFlipRight.Name          = "chkFlipRight";
     this.chkFlipRight.Label         = Mono.Unix.Catalog.GetString("Flip right");
     this.chkFlipRight.DrawIndicator = true;
     this.chkFlipRight.UseUnderline  = true;
     this.hbox2.Add(this.chkFlipRight);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkFlipRight]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 3;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkFlipLeft               = new Gtk.CheckButton();
     this.chkFlipLeft.CanFocus      = true;
     this.chkFlipLeft.Name          = "chkFlipLeft";
     this.chkFlipLeft.Label         = Mono.Unix.Catalog.GetString("Flip left");
     this.chkFlipLeft.DrawIndicator = true;
     this.chkFlipLeft.UseUnderline  = true;
     this.hbox2.Add(this.chkFlipLeft);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkFlipLeft]));
     w11.PackType = ((Gtk.PackType)(1));
     w11.Position = 4;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkRadialCorrection               = new Gtk.CheckButton();
     this.chkRadialCorrection.CanFocus      = true;
     this.chkRadialCorrection.Name          = "chkRadialCorrection";
     this.chkRadialCorrection.Label         = Mono.Unix.Catalog.GetString("Radial Correction");
     this.chkRadialCorrection.DrawIndicator = true;
     this.chkRadialCorrection.UseUnderline  = true;
     this.hbox2.Add(this.chkRadialCorrection);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkRadialCorrection]));
     w12.PackType = ((Gtk.PackType)(1));
     w12.Position = 5;
     // Container child hbox2.Gtk.Box+BoxChild
     this.chkRectification               = new Gtk.CheckButton();
     this.chkRectification.CanFocus      = true;
     this.chkRectification.Name          = "chkRectification";
     this.chkRectification.Label         = Mono.Unix.Catalog.GetString("Rectification");
     this.chkRectification.DrawIndicator = true;
     this.chkRectification.UseUnderline  = true;
     this.hbox2.Add(this.chkRectification);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.chkRectification]));
     w13.PackType = ((Gtk.PackType)(1));
     w13.Position = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.cmdTweaks              = new Gtk.Button();
     this.cmdTweaks.CanFocus     = true;
     this.cmdTweaks.Name         = "cmdTweaks";
     this.cmdTweaks.UseUnderline = true;
     this.cmdTweaks.Label        = Mono.Unix.Catalog.GetString("Tweaks");
     this.hbox2.Add(this.cmdTweaks);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdTweaks]));
     w14.PackType = ((Gtk.PackType)(1));
     w14.Position = 7;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.cmdCalibrateAlignment              = new Gtk.Button();
     this.cmdCalibrateAlignment.CanFocus     = true;
     this.cmdCalibrateAlignment.Name         = "cmdCalibrateAlignment";
     this.cmdCalibrateAlignment.UseUnderline = true;
     this.cmdCalibrateAlignment.Label        = Mono.Unix.Catalog.GetString("Calibrate Alignment");
     this.hbox2.Add(this.cmdCalibrateAlignment);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.cmdCalibrateAlignment]));
     w15.PackType = ((Gtk.PackType)(1));
     w15.Position = 8;
     w15.Expand   = false;
     w15.Fill     = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w16.Position = 2;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.lblBaseline           = new Gtk.Label();
     this.lblBaseline.Name      = "lblBaseline";
     this.lblBaseline.LabelProp = Mono.Unix.Catalog.GetString("Baseline (mm)");
     this.hbox3.Add(this.lblBaseline);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblBaseline]));
     w17.Position = 0;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.txtBaseline               = new Gtk.Entry();
     this.txtBaseline.CanFocus      = true;
     this.txtBaseline.Name          = "txtBaseline";
     this.txtBaseline.IsEditable    = true;
     this.txtBaseline.InvisibleChar = '●';
     this.hbox3.Add(this.txtBaseline);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.txtBaseline]));
     w18.Position = 1;
     this.vbox1.Add(this.hbox3);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
     w19.Position = 3;
     w19.Expand   = false;
     w19.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.cmdSimpleStereo              = new Gtk.Button();
     this.cmdSimpleStereo.CanFocus     = true;
     this.cmdSimpleStereo.Name         = "cmdSimpleStereo";
     this.cmdSimpleStereo.UseUnderline = true;
     this.cmdSimpleStereo.Label        = Mono.Unix.Catalog.GetString("Simple Stereo");
     this.hbox4.Add(this.cmdSimpleStereo);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSimpleStereo]));
     w20.Position = 0;
     w20.Expand   = false;
     w20.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.cmdDenseStereo              = new Gtk.Button();
     this.cmdDenseStereo.CanFocus     = true;
     this.cmdDenseStereo.Name         = "cmdDenseStereo";
     this.cmdDenseStereo.UseUnderline = true;
     this.cmdDenseStereo.Label        = Mono.Unix.Catalog.GetString("Dense Stereo");
     this.hbox4.Add(this.cmdDenseStereo);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdDenseStereo]));
     w21.Position = 1;
     w21.Expand   = false;
     w21.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.cmdSaveCalibration              = new Gtk.Button();
     this.cmdSaveCalibration.CanFocus     = true;
     this.cmdSaveCalibration.Name         = "cmdSaveCalibration";
     this.cmdSaveCalibration.UseUnderline = true;
     this.cmdSaveCalibration.Label        = Mono.Unix.Catalog.GetString("Save calibration file");
     this.hbox4.Add(this.cmdSaveCalibration);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSaveCalibration]));
     w22.Position = 3;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.cmdSaveCalibrationImage              = new Gtk.Button();
     this.cmdSaveCalibrationImage.CanFocus     = true;
     this.cmdSaveCalibrationImage.Name         = "cmdSaveCalibrationImage";
     this.cmdSaveCalibrationImage.UseUnderline = true;
     this.cmdSaveCalibrationImage.Label        = Mono.Unix.Catalog.GetString("Save calibration image");
     this.hbox4.Add(this.cmdSaveCalibrationImage);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdSaveCalibrationImage]));
     w23.Position = 4;
     w23.Expand   = false;
     w23.Fill     = false;
     this.vbox1.Add(this.hbox4);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4]));
     w24.PackType = ((Gtk.PackType)(1));
     w24.Position = 4;
     w24.Expand   = false;
     w24.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 1076;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent                        += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ExitAction.Activated               += new System.EventHandler(this.OnExitActionActivated);
     this.RecordImagesAction.Activated       += new System.EventHandler(this.OnRecordImagesActionActivated);
     this.CalibrateAlignmentAction.Activated += new System.EventHandler(this.OnCalibrateAlignmentActionActivated);
     this.ManualTweaksAction.Activated       += new System.EventHandler(this.OnManualTweaksActionActivated);
     this.SaveAsAnimatedGifAction.Activated  += new System.EventHandler(this.OnSaveAsAnimatedGifActionActivated);
     this.chkRecord.Clicked                  += new System.EventHandler(this.OnChkRecordClicked);
     this.chkCalibrateLeft.Clicked           += new System.EventHandler(this.OnChkCalibrateLeftClicked);
     this.chkCalibrateRight.Clicked          += new System.EventHandler(this.OnChkCalibrateRightClicked);
     this.cmdCalibrateAlignment.Clicked      += new System.EventHandler(this.OnCmdCalibrateAlignmentClicked);
     this.cmdTweaks.Clicked                  += new System.EventHandler(this.OnCmdTweaksClicked);
     this.chkRectification.Clicked           += new System.EventHandler(this.OnChkDisableRectificationClicked);
     this.chkRadialCorrection.Clicked        += new System.EventHandler(this.OnChkRadialCorrectionClicked);
     this.chkFlipLeft.Clicked                += new System.EventHandler(this.OnChkFlipLeftClicked);
     this.chkFlipRight.Clicked               += new System.EventHandler(this.OnChkFlipRightClicked);
     this.cmdSimpleStereo.Clicked            += new System.EventHandler(this.OnCmdSimpleStereoClicked);
     this.cmdDenseStereo.Clicked             += new System.EventHandler(this.OnCmdDenseStereoClicked);
     this.cmdSaveCalibration.Clicked         += new System.EventHandler(this.OnCmdSaveCalibrationClicked);
     this.cmdSaveCalibrationImage.Clicked    += new System.EventHandler(this.OnCmdSaveCalibrationImageClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget JetonAdmin.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.DateiAction            = new Gtk.Action("DateiAction", Mono.Unix.Catalog.GetString("_Datei"), null, null);
     this.DateiAction.ShortLabel = Mono.Unix.Catalog.GetString("_Datei");
     w1.Add(this.DateiAction, null);
     this.BeendenAction            = new Gtk.Action("BeendenAction", Mono.Unix.Catalog.GetString("_Beenden"), null, "gtk-quit");
     this.BeendenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Beenden");
     w1.Add(this.BeendenAction, null);
     this.VerbindenAction            = new Gtk.Action("VerbindenAction", Mono.Unix.Catalog.GetString("_Verbinden..."), null, "gtk-connect");
     this.VerbindenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Verbinden...");
     w1.Add(this.VerbindenAction, null);
     this.TrennenAction            = new Gtk.Action("TrennenAction", Mono.Unix.Catalog.GetString("_Trennen"), null, "gtk-disconnect");
     this.TrennenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Trennen");
     w1.Add(this.TrennenAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "JetonAdmin.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Jeton Admin");
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "stock_unknown", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child JetonAdmin.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='DateiAction' action='DateiAction'><menuitem name='VerbindenAction' action='VerbindenAction'/><menuitem name='TrennenAction' action='TrennenAction'/><separator/><menuitem name='BeendenAction' action='BeendenAction'/></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.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 1;
     this.notebook1.EnablePopup = true;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.userscreen1 = null;
     this.notebook1.Add(this.userscreen1);
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Benutzer");
     this.notebook1.SetTabLabel(this.userscreen1, this.label1);
     this.label1.ShowAll();
     // Notebook tab
     Gtk.Label w4 = new Gtk.Label();
     w4.Visible = true;
     this.notebook1.Add(w4);
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Artikel Bestand");
     this.notebook1.SetTabLabel(w4, this.label5);
     this.label5.ShowAll();
     // Notebook tab
     Gtk.Label w5 = new Gtk.Label();
     w5.Visible = true;
     this.notebook1.Add(w5);
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Transaktionen");
     this.notebook1.SetTabLabel(w5, this.label8);
     this.label8.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     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.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 619;
     this.DefaultHeight = 587;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoTwitts.Ui.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.MenuAction = new Gtk.Action("MenuAction", Mono.Unix.Catalog.GetString("Menu"), null, null);
     this.MenuAction.ShortLabel = Mono.Unix.Catalog.GetString("Menu");
     w2.Add(this.MenuAction, "<Control>m");
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w2.Add(this.HelpAction, "<Control>h");
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w2.Add(this.AboutAction, null);
     this.FriendsAction = new Gtk.RadioAction("FriendsAction", Mono.Unix.Catalog.GetString("Friends"), null, null, 0);
     this.FriendsAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.FriendsAction.ShortLabel = Mono.Unix.Catalog.GetString("Friends");
     w2.Add(this.FriendsAction, null);
     this.PublicAction = new Gtk.RadioAction("PublicAction", Mono.Unix.Catalog.GetString("Public"), null, null, 0);
     this.PublicAction.Group = this.FriendsAction.Group;
     this.PublicAction.ShortLabel = Mono.Unix.Catalog.GetString("Public");
     w2.Add(this.PublicAction, null);
     this.DirectAction = new Gtk.RadioAction("DirectAction", Mono.Unix.Catalog.GetString("Direct"), null, null, 0);
     this.DirectAction.Group = this.PublicAction.Group;
     this.DirectAction.ShortLabel = Mono.Unix.Catalog.GetString("Direct");
     w2.Add(this.DirectAction, null);
     this.ResponsesAction = new Gtk.RadioAction("ResponsesAction", Mono.Unix.Catalog.GetString("@ Responses"), null, null, 0);
     this.ResponsesAction.Group = this.PublicAction.Group;
     this.ResponsesAction.ShortLabel = Mono.Unix.Catalog.GetString("@ Responses");
     w2.Add(this.ResponsesAction, null);
     this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-preferences");
     this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("Preferences");
     w2.Add(this.PreferencesAction, null);
     this.RefreshAction = new Gtk.Action("RefreshAction", Mono.Unix.Catalog.GetString("Refresh"), null, "gtk-refresh");
     this.RefreshAction.ShortLabel = Mono.Unix.Catalog.GetString("Refresh");
     w2.Add(this.RefreshAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w2.Add(this.QuitAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "MonoTwitts.Ui.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Mono Twitt");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MonoTwitts.Ui.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar'><menu action='MenuAction'><menuitem action='RefreshAction'/><separator/><menuitem action='FriendsAction'/><menuitem action='PublicAction'/><menuitem action='DirectAction'/><menuitem action='ResponsesAction'/><separator/><menuitem action='PreferencesAction'/><separator/><menuitem action='QuitAction'/></menu><menu action='HelpAction'><menuitem action='AboutAction'/></menu></menubar></ui>");
     this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar")));
     this.menubar.Name = "menubar";
     this.vbox1.Add(this.menubar);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.scrolledwindow = new Gtk.ScrolledWindow();
     this.scrolledwindow.CanFocus = true;
     this.scrolledwindow.Name = "scrolledwindow";
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(4));
     this.scrolledwindow.BorderWidth = ((uint)(5));
     this.vbox1.Add(this.scrolledwindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow]));
     w4.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 413;
     this.DefaultHeight = 455;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.RefreshAction.Activated += new System.EventHandler(this.OnRefreshActionActivated);
 }
Example #27
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.File            = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.File, null);
     this.Exit            = new Gtk.Action("Exit", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.Exit.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit, null);
     this.View            = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w2.Add(this.View, null);
     this.Quality            = new Gtk.Action("Quality", Mono.Unix.Catalog.GetString("Quality"), null, null);
     this.Quality.ShortLabel = Mono.Unix.Catalog.GetString("Quality");
     w2.Add(this.Quality, null);
     this.Low            = new Gtk.Action("Low", Mono.Unix.Catalog.GetString("Low"), null, null);
     this.Low.ShortLabel = Mono.Unix.Catalog.GetString("Low");
     w2.Add(this.Low, null);
     this.Medium            = new Gtk.Action("Medium", Mono.Unix.Catalog.GetString("Medium"), null, null);
     this.Medium.ShortLabel = Mono.Unix.Catalog.GetString("Medium");
     w2.Add(this.Medium, null);
     this.High            = new Gtk.Action("High", Mono.Unix.Catalog.GetString("High"), null, null);
     this.High.ShortLabel = Mono.Unix.Catalog.GetString("High");
     w2.Add(this.High, null);
     this.DepthMap            = new Gtk.Action("DepthMap", Mono.Unix.Catalog.GetString("Depth Map"), null, null);
     this.DepthMap.ShortLabel = Mono.Unix.Catalog.GetString("Depth Map");
     w2.Add(this.DepthMap, null);
     this.SimpleStereo            = new Gtk.Action("SimpleStereo", Mono.Unix.Catalog.GetString("Simple Stereo"), null, null);
     this.SimpleStereo.ShortLabel = Mono.Unix.Catalog.GetString("Simple Stereo");
     w2.Add(this.SimpleStereo, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Stereo Correspondence");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='View'><menuitem action='DepthMap'/><menuitem action='SimpleStereo'/></menu><menu action='Quality'><menuitem action='Low'/><menuitem action='Medium'/><menuitem action='High'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Stereo Images Directory");
     this.hbox3.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.label1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.txtImagesDirectory          = new Gtk.TextView();
     this.txtImagesDirectory.CanFocus = true;
     this.txtImagesDirectory.Name     = "txtImagesDirectory";
     this.hbox3.Add(this.txtImagesDirectory);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox3[this.txtImagesDirectory]));
     w5.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.cmdImagesDirectory              = new Gtk.Button();
     this.cmdImagesDirectory.CanFocus     = true;
     this.cmdImagesDirectory.Name         = "cmdImagesDirectory";
     this.cmdImagesDirectory.UseUnderline = true;
     this.cmdImagesDirectory.Label        = Mono.Unix.Catalog.GetString("Browse");
     this.hbox3.Add(this.cmdImagesDirectory);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.cmdImagesDirectory]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w7.Position = 0;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Calibration/Robot design file");
     this.hbox4.Add(this.label2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.label2]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.txtCalibrationFilename          = new Gtk.TextView();
     this.txtCalibrationFilename.CanFocus = true;
     this.txtCalibrationFilename.Name     = "txtCalibrationFilename";
     this.hbox4.Add(this.txtCalibrationFilename);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.txtCalibrationFilename]));
     w9.Position = 1;
     // Container child hbox4.Gtk.Box+BoxChild
     this.cmdCalibrationFilename              = new Gtk.Button();
     this.cmdCalibrationFilename.CanFocus     = true;
     this.cmdCalibrationFilename.Name         = "cmdCalibrationFilename";
     this.cmdCalibrationFilename.UseUnderline = true;
     this.cmdCalibrationFilename.Label        = Mono.Unix.Catalog.GetString("Browse");
     this.hbox4.Add(this.cmdCalibrationFilename);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.cmdCalibrationFilename]));
     w10.Position = 2;
     w10.Expand   = false;
     w10.Fill     = false;
     this.vbox2.Add(this.hbox4);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox5         = new Gtk.HBox();
     this.hbox5.Name    = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Calculation Time (mS)");
     this.hbox5.Add(this.label3);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox5[this.label3]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.txtStereoCorrespondenceTime          = new Gtk.TextView();
     this.txtStereoCorrespondenceTime.CanFocus = true;
     this.txtStereoCorrespondenceTime.Name     = "txtStereoCorrespondenceTime";
     this.hbox5.Add(this.txtStereoCorrespondenceTime);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox5[this.txtStereoCorrespondenceTime]));
     w13.Position = 1;
     this.vbox2.Add(this.hbox5);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5]));
     w14.Position = 2;
     w14.Expand   = false;
     w14.Fill     = false;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w15.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdPrevious              = new Gtk.Button();
     this.cmdPrevious.CanFocus     = true;
     this.cmdPrevious.Name         = "cmdPrevious";
     this.cmdPrevious.UseUnderline = true;
     this.cmdPrevious.Label        = Mono.Unix.Catalog.GetString("Previous");
     this.vbox3.Add(this.cmdPrevious);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdPrevious]));
     w16.Position = 0;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cmdNext              = new Gtk.Button();
     this.cmdNext.CanFocus     = true;
     this.cmdNext.Name         = "cmdNext";
     this.cmdNext.UseUnderline = true;
     this.cmdNext.Label        = Mono.Unix.Catalog.GetString("Next");
     this.vbox3.Add(this.cmdNext);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.cmdNext]));
     w17.Position = 1;
     w17.Expand   = false;
     w17.Fill     = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w18.Position = 2;
     w18.Expand   = false;
     w18.Fill     = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w19.Position = 1;
     w19.Expand   = false;
     w19.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.picLeftImage      = new Gtk.Image();
     this.picLeftImage.Name = "picLeftImage";
     this.hbox1.Add(this.picLeftImage);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.picLeftImage]));
     w20.Position = 0;
     w20.Expand   = false;
     w20.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.picRightImage      = new Gtk.Image();
     this.picRightImage.Name = "picRightImage";
     this.hbox1.Add(this.picRightImage);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.picRightImage]));
     w21.Position = 1;
     w21.Expand   = false;
     w21.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w22.Position = 2;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.picDepthMap      = new Gtk.Image();
     this.picDepthMap.Name = "picDepthMap";
     this.vbox1.Add(this.picDepthMap);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox1[this.picDepthMap]));
     w23.Position = 3;
     w23.Expand   = false;
     w23.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 641;
     this.DefaultHeight = 451;
     this.Show();
     this.DeleteEvent                    += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Exit.Activated                 += new System.EventHandler(this.OnExitActivated);
     this.Low.Activated                  += new System.EventHandler(this.OnLowActivated);
     this.Medium.Activated               += new System.EventHandler(this.OnMediumActivated);
     this.High.Activated                 += new System.EventHandler(this.OnHighActivated);
     this.DepthMap.Activated             += new System.EventHandler(this.OnDepthMapActivated);
     this.SimpleStereo.Activated         += new System.EventHandler(this.OnSimpleStereoActivated);
     this.cmdImagesDirectory.Clicked     += new System.EventHandler(this.OnCmdImagesDirectoryClicked);
     this.cmdCalibrationFilename.Clicked += new System.EventHandler(this.OnCmdCalibrationFilenameClicked);
     this.cmdPrevious.Clicked            += new System.EventHandler(this.OnCmdPreviousClicked);
     this.cmdNext.Clicked                += new System.EventHandler(this.OnCmdNextClicked);
 }
Example #28
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget TuxMate.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w2.Add(this.FileAction, null);
     this.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.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("_View"), null, null);
     this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("_View");
     w2.Add(this.ViewAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
     w2.Add(this.NewAction, null);
     this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
     w2.Add(this.OpenAction, null);
     this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
     this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
     w2.Add(this.SaveAction, null);
     this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As..."), null, "gtk-save-as");
     this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As...");
     w2.Add(this.SaveAsAction, "<Control><Shift>s");
     this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("_Close"), null, "gtk-close");
     this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("_Close");
     w2.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");
     w2.Add(this.QuitAction, null);
     this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("_Preferences"), null, "gtk-preferences");
     this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences");
     w2.Add(this.PreferencesAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w2.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");
     w2.Add(this.AboutAction, null);
     this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo");
     this.UndoAction.Sensitive = false;
     this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
     w2.Add(this.UndoAction, "<Control>z");
     this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo");
     this.RedoAction.Sensitive = false;
     this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
     w2.Add(this.RedoAction, "<Control><Shift>z");
     this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cu_t"), null, "gtk-cut");
     this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cu_t");
     w2.Add(this.CutAction, null);
     this.CopyAction = new Gtk.Action("CopyAction", Mono.Unix.Catalog.GetString("_Copy"), null, "gtk-copy");
     this.CopyAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copy");
     w2.Add(this.CopyAction, null);
     this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Paste"), null, "gtk-paste");
     this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Paste");
     w2.Add(this.PasteAction, null);
     this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo");
     w2.Add(this.undoAction, null);
     this.ShowLineNumbersAction = new Gtk.ToggleAction("ShowLineNumbersAction", Mono.Unix.Catalog.GetString("Show Line Numbers"), null, null);
     this.ShowLineNumbersAction.ShortLabel = Mono.Unix.Catalog.GetString("Show Line Numbers");
     w2.Add(this.ShowLineNumbersAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "TuxMate.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("TuxMate");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 800;
     this.DefaultHeight = 600;
     // Container child TuxMate.MainWindow.Gtk.Container+ContainerChild
     this.vbox = new Gtk.VBox();
     this.vbox.Name = "vbox";
     this.vbox.Spacing = 2;
     // Container child vbox.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menuBar'><menu action='FileAction'><menuitem action='NewAction'/><menuitem action='OpenAction'/><menuitem action='SaveAction'/><menuitem action='SaveAsAction'/><separator/><menuitem action='CloseAction'/><menuitem action='QuitAction'/></menu><menu action='EditAction'><menuitem action='UndoAction'/><menuitem action='RedoAction'/><separator/><menuitem action='CutAction'/><menuitem action='CopyAction'/><menuitem action='PasteAction'/><separator/><menuitem action='PreferencesAction'/><menuitem/></menu><menu action='ViewAction'><menuitem action='ShowLineNumbersAction'/></menu><menu action='HelpAction'><menuitem action='AboutAction'/></menu></menubar></ui>");
     this.menuBar = ((Gtk.MenuBar)(w1.GetWidget("/menuBar")));
     this.menuBar.Name = "menuBar";
     this.vbox.Add(this.menuBar);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox[this.menuBar]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox.Gtk.Box+BoxChild
     this.scrolledwindow = new Gtk.ScrolledWindow();
     this.scrolledwindow.CanFocus = true;
     this.scrolledwindow.Name = "scrolledwindow";
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox.Add(this.scrolledwindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox[this.scrolledwindow]));
     w4.Position = 1;
     // Container child vbox.Gtk.Box+BoxChild
     this.statusbar = new Gtk.Statusbar();
     this.statusbar.Name = "statusbar";
     this.statusbar.Spacing = 6;
     this.vbox.Add(this.statusbar);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox[this.statusbar]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.NewAction.Activated += new System.EventHandler(this.OnNewActionActivated);
     this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
     this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
     this.SaveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
     this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferencesActionActivated);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated);
     this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
     this.ShowLineNumbersAction.Activated += new System.EventHandler(this.OnShowLineNumbersActionActivated);
 }
 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);
 }
Example #30
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction            = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.ExitAction            = new Gtk.Action("ExitAction", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.ExitAction.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w1.Add(this.ExitAction, null);
     this.SaveResultsAction            = new Gtk.Action("SaveResultsAction", Mono.Unix.Catalog.GetString("Save results"), null, null);
     this.SaveResultsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save results");
     w1.Add(this.SaveResultsAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Events         = ((Gdk.EventMask)(268));
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Cognitive dynamics test");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     this.Resizable      = false;
     this.AllowGrow      = false;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='SaveResultsAction' action='SaveResultsAction'/><menuitem name='ExitAction' action='ExitAction'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.lblProposition           = new Gtk.Label();
     this.lblProposition.Name      = "lblProposition";
     this.lblProposition.LabelProp = Mono.Unix.Catalog.GetString(" ");
     this.lblProposition.Wrap      = true;
     this.lblProposition.Justify   = ((Gtk.Justification)(2));
     this.vbox1.Add(this.lblProposition);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.lblProposition]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.imgTest          = new Gtk.Image();
     this.imgTest.CanFocus = true;
     this.imgTest.Events   = ((Gdk.EventMask)(260));
     this.imgTest.Name     = "imgTest";
     this.vbox1.Add(this.imgTest);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.imgTest]));
     w4.Position = 2;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.cmdStart              = new Gtk.Button();
     this.cmdStart.CanFocus     = true;
     this.cmdStart.Name         = "cmdStart";
     this.cmdStart.UseUnderline = true;
     this.cmdStart.Label        = Mono.Unix.Catalog.GetString("Start");
     this.hbox1.Add(this.cmdStart);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.cmdStart]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     w5.Padding  = ((uint)(200));
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w6.Position = 3;
     w6.Expand   = false;
     w6.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 475;
     this.DefaultHeight = 337;
     this.Show();
     this.DeleteEvent                 += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.MotionNotifyEvent           += new Gtk.MotionNotifyEventHandler(this.OnMotionNotifyEvent);
     this.ButtonPressEvent            += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.ExitAction.Activated        += new System.EventHandler(this.OnExitActionActivated);
     this.SaveResultsAction.Activated += new System.EventHandler(this.OnSaveResultsActionActivated);
     this.imgTest.ButtonPressEvent    += new Gtk.ButtonPressEventHandler(this.OnImgTestButtonPressEvent);
     this.cmdStart.Clicked            += new System.EventHandler(this.OnCmdStartClicked);
 }
Example #31
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.File            = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.File, null);
     this.Edit            = new Gtk.Action("Edit", Mono.Unix.Catalog.GetString("Edit"), null, null);
     this.Edit.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
     w2.Add(this.Edit, null);
     this.View            = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w2.Add(this.View, null);
     this.Help            = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.Help.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w2.Add(this.Help, null);
     this.About            = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About");
     w2.Add(this.About, null);
     this.Quit            = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w2.Add(this.Quit, null);
     this.Preferences            = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("_Preferences"), null, "gtk-preferences");
     this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences");
     w2.Add(this.Preferences, null);
     this.@new = new Gtk.Action("new", null, null, "gtk-new");
     w2.Add(this.@new, null);
     this.open = new Gtk.Action("open", null, null, "gtk-open");
     w2.Add(this.open, null);
     this.startTorrentButton           = new Gtk.Action("startTorrentButton", null, null, "gtk-media-play");
     this.startTorrentButton.Sensitive = false;
     w2.Add(this.startTorrentButton, null);
     this.stopTorrentButton           = new Gtk.Action("stopTorrentButton", null, null, "gtk-media-stop");
     this.stopTorrentButton.Sensitive = false;
     w2.Add(this.stopTorrentButton, null);
     this.removeTorrentButton           = new Gtk.Action("removeTorrentButton", null, null, "gtk-remove");
     this.removeTorrentButton.Sensitive = false;
     w2.Add(this.removeTorrentButton, null);
     this.preferences = new Gtk.Action("preferences", null, null, "gtk-preferences");
     w2.Add(this.preferences, null);
     this.deleteTorrentButton           = new Gtk.Action("deleteTorrentButton", null, null, "gtk-delete");
     this.deleteTorrentButton.Sensitive = false;
     w2.Add(this.deleteTorrentButton, null);
     this.Columns            = new Gtk.Action("Columns", Mono.Unix.Catalog.GetString("Columns"), null, null);
     this.Columns.ShortLabel = Mono.Unix.Catalog.GetString("Columns");
     w2.Add(this.Columns, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name  = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MonoTorrent");
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1      = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Quit'/></menu><menu action='Edit'><menuitem action='Preferences'/></menu><menu action='View'><menuitem action='Columns'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='new'/><toolitem action='open'/><separator/><toolitem action='startTorrentButton'/><toolitem action='stopTorrentButton'/><toolitem action='removeTorrentButton'/><toolitem action='deleteTorrentButton'/><separator/><toolitem action='preferences'/></toolbar></ui>");
     this.toolbar1              = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
     this.toolbar1.Name         = "toolbar1";
     this.toolbar1.ShowArrow    = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hPaned          = new Gtk.HPaned();
     this.hPaned.CanFocus = true;
     this.hPaned.Name     = "hPaned";
     this.hPaned.Position = 145;
     // Container child hPaned.Gtk.Paned+PanedChild
     this.labelViewScrolledWindow                  = new Gtk.ScrolledWindow();
     this.labelViewScrolledWindow.CanFocus         = true;
     this.labelViewScrolledWindow.Name             = "labelViewScrolledWindow";
     this.labelViewScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.labelViewScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.hPaned.Add(this.labelViewScrolledWindow);
     Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hPaned[this.labelViewScrolledWindow]));
     w5.Resize = false;
     // Container child hPaned.Gtk.Paned+PanedChild
     this.vPaned          = new Gtk.VPaned();
     this.vPaned.CanFocus = true;
     this.vPaned.Name     = "vPaned";
     this.vPaned.Position = 160;
     // Container child vPaned.Gtk.Paned+PanedChild
     this.torrentViewScrolledWindow                  = new Gtk.ScrolledWindow();
     this.torrentViewScrolledWindow.CanFocus         = true;
     this.torrentViewScrolledWindow.Name             = "torrentViewScrolledWindow";
     this.torrentViewScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.torrentViewScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.vPaned.Add(this.torrentViewScrolledWindow);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vPaned[this.torrentViewScrolledWindow]));
     w6.Resize = false;
     // Container child vPaned.Gtk.Paned+PanedChild
     this.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 3;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w7 = new Gtk.Viewport();
     w7.Name       = "GtkViewport2";
     w7.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.vbox4             = new Gtk.VBox();
     this.vbox4.Name        = "vbox4";
     this.vbox4.Spacing     = 6;
     this.vbox4.BorderWidth = ((uint)(5));
     // Container child vbox4.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.downloadProgressBarLabel           = new Gtk.Label();
     this.downloadProgressBarLabel.Name      = "downloadProgressBarLabel";
     this.downloadProgressBarLabel.LabelProp = Mono.Unix.Catalog.GetString("Downloaded: ");
     this.hbox3.Add(this.downloadProgressBarLabel);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadProgressBarLabel]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.downloadedProgressBar      = new Gtk.ProgressBar();
     this.downloadedProgressBar.Name = "downloadedProgressBar";
     this.hbox3.Add(this.downloadedProgressBar);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadedProgressBar]));
     w9.Position = 1;
     this.vbox4.Add(this.hbox3);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3]));
     w10.Position = 0;
     w10.Expand   = false;
     w10.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.frame1             = new Gtk.Frame();
     this.frame1.Name        = "frame1";
     this.frame1.ShadowType  = ((Gtk.ShadowType)(0));
     this.frame1.LabelXalign = 0F;
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name        = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox12         = new Gtk.HBox();
     this.hbox12.Name    = "hbox12";
     this.hbox12.Spacing = 6;
     // Container child hbox12.Gtk.Box+BoxChild
     this.elapsedTimeLabel           = new Gtk.Label();
     this.elapsedTimeLabel.Name      = "elapsedTimeLabel";
     this.elapsedTimeLabel.LabelProp = Mono.Unix.Catalog.GetString("Elapsed Time:");
     this.hbox12.Add(this.elapsedTimeLabel);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox12[this.elapsedTimeLabel]));
     w11.Position = 0;
     w11.Expand   = false;
     w11.Fill     = false;
     // Container child hbox12.Gtk.Box+BoxChild
     this.elapsedTimeValueLabel           = new Gtk.Label();
     this.elapsedTimeValueLabel.Name      = "elapsedTimeValueLabel";
     this.elapsedTimeValueLabel.LabelProp = "";
     this.hbox12.Add(this.elapsedTimeValueLabel);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox12[this.elapsedTimeValueLabel]));
     w12.Position = 1;
     w12.Expand   = false;
     w12.Fill     = false;
     this.vbox2.Add(this.hbox12);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox12]));
     w13.Position = 0;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Downloaded:");
     this.hbox2.Add(this.label3);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.label3]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.downloadedValueLabel           = new Gtk.Label();
     this.downloadedValueLabel.Name      = "downloadedValueLabel";
     this.downloadedValueLabel.LabelProp = "";
     this.hbox2.Add(this.downloadedValueLabel);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.downloadedValueLabel]));
     w15.Position = 1;
     w15.Expand   = false;
     w15.Fill     = false;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w16.Position = 1;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox5         = new Gtk.HBox();
     this.hbox5.Name    = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Uploaded:");
     this.hbox5.Add(this.label5);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.label5]));
     w17.Position = 0;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.uploadedValueLabel           = new Gtk.Label();
     this.uploadedValueLabel.Name      = "uploadedValueLabel";
     this.uploadedValueLabel.LabelProp = "";
     this.hbox5.Add(this.uploadedValueLabel);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox5[this.uploadedValueLabel]));
     w18.Position = 1;
     w18.Expand   = false;
     w18.Fill     = false;
     this.vbox2.Add(this.hbox5);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5]));
     w19.Position = 2;
     w19.Expand   = false;
     w19.Fill     = false;
     this.GtkAlignment.Add(this.vbox2);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Transfer</b>");
     this.GtkLabel6.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel6;
     this.hbox1.Add(this.frame1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1]));
     w22.Position = 0;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.frame2             = new Gtk.Frame();
     this.frame2.Name        = "frame2";
     this.frame2.ShadowType  = ((Gtk.ShadowType)(0));
     this.frame2.LabelXalign = 0F;
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment1             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name        = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox6         = new Gtk.HBox();
     this.hbox6.Name    = "hbox6";
     this.hbox6.Spacing = 6;
     // Container child hbox6.Gtk.Box+BoxChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("URL:");
     this.hbox6.Add(this.label8);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox6[this.label8]));
     w23.Position = 0;
     w23.Expand   = false;
     w23.Fill     = false;
     // Container child hbox6.Gtk.Box+BoxChild
     this.trackerUrlValueLabel           = new Gtk.Label();
     this.trackerUrlValueLabel.Name      = "trackerUrlValueLabel";
     this.trackerUrlValueLabel.LabelProp = "";
     this.hbox6.Add(this.trackerUrlValueLabel);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox6[this.trackerUrlValueLabel]));
     w24.Position = 1;
     w24.Expand   = false;
     w24.Fill     = false;
     this.vbox3.Add(this.hbox6);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox6]));
     w25.Position = 0;
     w25.Expand   = false;
     w25.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox7         = new Gtk.HBox();
     this.hbox7.Name    = "hbox7";
     this.hbox7.Spacing = 6;
     // Container child hbox7.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Status:");
     this.hbox7.Add(this.label2);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox7[this.label2]));
     w26.Position = 0;
     w26.Expand   = false;
     w26.Fill     = false;
     // Container child hbox7.Gtk.Box+BoxChild
     this.trackerStatusValueLabel           = new Gtk.Label();
     this.trackerStatusValueLabel.Name      = "trackerStatusValueLabel";
     this.trackerStatusValueLabel.LabelProp = "";
     this.hbox7.Add(this.trackerStatusValueLabel);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox7[this.trackerStatusValueLabel]));
     w27.Position = 1;
     w27.Expand   = false;
     w27.Fill     = false;
     this.vbox3.Add(this.hbox7);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox7]));
     w28.Position = 1;
     w28.Expand   = false;
     w28.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox8         = new Gtk.HBox();
     this.hbox8.Name    = "hbox8";
     this.hbox8.Spacing = 6;
     // Container child hbox8.Gtk.Box+BoxChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Last updated:");
     this.hbox8.Add(this.label4);
     Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox8[this.label4]));
     w29.Position = 0;
     w29.Expand   = false;
     w29.Fill     = false;
     // Container child hbox8.Gtk.Box+BoxChild
     this.updateInValueLabel           = new Gtk.Label();
     this.updateInValueLabel.Name      = "updateInValueLabel";
     this.updateInValueLabel.LabelProp = "";
     this.hbox8.Add(this.updateInValueLabel);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox8[this.updateInValueLabel]));
     w30.Position = 1;
     w30.Expand   = false;
     w30.Fill     = false;
     this.vbox3.Add(this.hbox8);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox8]));
     w31.Position = 2;
     w31.Expand   = false;
     w31.Fill     = false;
     this.GtkAlignment1.Add(this.vbox3);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel7           = new Gtk.Label();
     this.GtkLabel7.Name      = "GtkLabel7";
     this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Tracker</b>");
     this.GtkLabel7.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel7;
     this.hbox1.Add(this.frame2);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame2]));
     w34.Position = 1;
     w34.Expand   = false;
     w34.Fill     = false;
     this.vbox4.Add(this.hbox1);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1]));
     w35.Position = 1;
     w35.Expand   = false;
     w35.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame3             = new Gtk.Frame();
     this.frame3.Name        = "frame3";
     this.frame3.ShadowType  = ((Gtk.ShadowType)(0));
     this.frame3.LabelXalign = 0F;
     // Container child frame3.Gtk.Container+ContainerChild
     this.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Save path:");
     this.hbox4.Add(this.label7);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox4[this.label7]));
     w36.Position = 0;
     w36.Expand   = false;
     w36.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.savePathValueLabel           = new Gtk.Label();
     this.savePathValueLabel.Name      = "savePathValueLabel";
     this.savePathValueLabel.LabelProp = "";
     this.hbox4.Add(this.savePathValueLabel);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox4[this.savePathValueLabel]));
     w37.Position = 1;
     w37.Expand   = false;
     w37.Fill     = false;
     this.vbox5.Add(this.hbox4);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox4]));
     w38.Position = 0;
     w38.Expand   = false;
     w38.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox9         = new Gtk.HBox();
     this.hbox9.Name    = "hbox9";
     this.hbox9.Spacing = 6;
     // Container child hbox9.Gtk.Box+BoxChild
     this.label10           = new Gtk.Label();
     this.label10.Name      = "label10";
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Size:");
     this.hbox9.Add(this.label10);
     Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox9[this.label10]));
     w39.Position = 0;
     w39.Expand   = false;
     w39.Fill     = false;
     // Container child hbox9.Gtk.Box+BoxChild
     this.sizeValueLabel           = new Gtk.Label();
     this.sizeValueLabel.Name      = "sizeValueLabel";
     this.sizeValueLabel.LabelProp = "";
     this.hbox9.Add(this.sizeValueLabel);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox9[this.sizeValueLabel]));
     w40.Position = 1;
     w40.Expand   = false;
     w40.Fill     = false;
     this.vbox5.Add(this.hbox9);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox9]));
     w41.Position = 1;
     w41.Expand   = false;
     w41.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox11         = new Gtk.HBox();
     this.hbox11.Name    = "hbox11";
     this.hbox11.Spacing = 6;
     // Container child hbox11.Gtk.Box+BoxChild
     this.label11           = new Gtk.Label();
     this.label11.Name      = "label11";
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Created on:");
     this.hbox11.Add(this.label11);
     Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox11[this.label11]));
     w42.Position = 0;
     w42.Expand   = false;
     w42.Fill     = false;
     // Container child hbox11.Gtk.Box+BoxChild
     this.createdOnValueLabel           = new Gtk.Label();
     this.createdOnValueLabel.Name      = "createdOnValueLabel";
     this.createdOnValueLabel.LabelProp = "";
     this.hbox11.Add(this.createdOnValueLabel);
     Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox11[this.createdOnValueLabel]));
     w43.Position = 1;
     w43.Expand   = false;
     w43.Fill     = false;
     this.vbox5.Add(this.hbox11);
     Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox11]));
     w44.Position = 2;
     w44.Expand   = false;
     w44.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.hbox10         = new Gtk.HBox();
     this.hbox10.Name    = "hbox10";
     this.hbox10.Spacing = 6;
     // Container child hbox10.Gtk.Box+BoxChild
     this.label12           = new Gtk.Label();
     this.label12.Name      = "label12";
     this.label12.LabelProp = Mono.Unix.Catalog.GetString("Comment:");
     this.hbox10.Add(this.label12);
     Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox10[this.label12]));
     w45.Position = 0;
     w45.Expand   = false;
     w45.Fill     = false;
     // Container child hbox10.Gtk.Box+BoxChild
     this.commentValueLabel           = new Gtk.Label();
     this.commentValueLabel.Name      = "commentValueLabel";
     this.commentValueLabel.LabelProp = "";
     this.hbox10.Add(this.commentValueLabel);
     Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox10[this.commentValueLabel]));
     w46.Position = 2;
     w46.Expand   = false;
     w46.Fill     = false;
     this.vbox5.Add(this.hbox10);
     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox10]));
     w47.Position = 3;
     w47.Expand   = false;
     w47.Fill     = false;
     this.GtkAlignment2.Add(this.vbox5);
     this.frame3.Add(this.GtkAlignment2);
     this.GtkLabel8           = new Gtk.Label();
     this.GtkLabel8.Name      = "GtkLabel8";
     this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>General</b>");
     this.GtkLabel8.UseMarkup = true;
     this.frame3.LabelWidget  = this.GtkLabel8;
     this.vbox4.Add(this.frame3);
     Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3]));
     w50.Position = 2;
     w50.Expand   = false;
     w50.Fill     = false;
     w7.Add(this.vbox4);
     this.scrolledwindow1.Add(w7);
     this.notebook1.Add(this.scrolledwindow1);
     Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow1]));
     w53.TabExpand = false;
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("General");
     this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1);
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.filesScrolledWindow                  = new Gtk.ScrolledWindow();
     this.filesScrolledWindow.CanFocus         = true;
     this.filesScrolledWindow.Name             = "filesScrolledWindow";
     this.filesScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.filesScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.filesScrolledWindow.ShadowType       = ((Gtk.ShadowType)(1));
     this.notebook1.Add(this.filesScrolledWindow);
     Gtk.Notebook.NotebookChild w54 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.filesScrolledWindow]));
     w54.Position  = 1;
     w54.TabExpand = false;
     // Notebook tab
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Files");
     this.notebook1.SetTabLabel(this.filesScrolledWindow, this.label9);
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.peersScrolledWindow                  = new Gtk.ScrolledWindow();
     this.peersScrolledWindow.CanFocus         = true;
     this.peersScrolledWindow.Name             = "peersScrolledWindow";
     this.peersScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.peersScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.peersScrolledWindow.ShadowType       = ((Gtk.ShadowType)(1));
     this.notebook1.Add(this.peersScrolledWindow);
     Gtk.Notebook.NotebookChild w55 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.peersScrolledWindow]));
     w55.Position  = 2;
     w55.TabExpand = false;
     // Notebook tab
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Peers");
     this.notebook1.SetTabLabel(this.peersScrolledWindow, this.label6);
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.scrolledwindow2                  = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus         = true;
     this.scrolledwindow2.Name             = "scrolledwindow2";
     this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w56 = new Gtk.Viewport();
     w56.Name       = "GtkViewport5";
     w56.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport5.Gtk.Container+ContainerChild
     this.hbox13         = new Gtk.HBox();
     this.hbox13.Name    = "hbox13";
     this.hbox13.Spacing = 6;
     // Container child hbox13.Gtk.Box+BoxChild
     this.frame4             = new Gtk.Frame();
     this.frame4.Name        = "frame4";
     this.frame4.ShadowType  = ((Gtk.ShadowType)(0));
     this.frame4.LabelXalign = 0F;
     // Container child frame4.Gtk.Container+ContainerChild
     this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.WidthRequest = 250;
     this.GtkAlignment3.Name         = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding  = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.selectLabelScrolledWindow                  = new Gtk.ScrolledWindow();
     this.selectLabelScrolledWindow.CanFocus         = true;
     this.selectLabelScrolledWindow.Name             = "selectLabelScrolledWindow";
     this.selectLabelScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.selectLabelScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.selectLabelScrolledWindow.ShadowType       = ((Gtk.ShadowType)(1));
     this.GtkAlignment3.Add(this.selectLabelScrolledWindow);
     this.frame4.Add(this.GtkAlignment3);
     this.GtkLabel9           = new Gtk.Label();
     this.GtkLabel9.Name      = "GtkLabel9";
     this.GtkLabel9.LabelProp = Mono.Unix.Catalog.GetString("<b>Set labels</b>");
     this.GtkLabel9.UseMarkup = true;
     this.frame4.LabelWidget  = this.GtkLabel9;
     this.hbox13.Add(this.frame4);
     Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox13[this.frame4]));
     w59.Position = 0;
     w59.Expand   = false;
     w59.Fill     = false;
     // Container child hbox13.Gtk.Box+BoxChild
     this.vbox6         = new Gtk.VBox();
     this.vbox6.Name    = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.frame5             = new Gtk.Frame();
     this.frame5.Name        = "frame5";
     this.frame5.ShadowType  = ((Gtk.ShadowType)(0));
     this.frame5.LabelXalign = 0F;
     // Container child frame5.Gtk.Container+ContainerChild
     this.GtkAlignment4             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name        = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.Gtk.Container+ContainerChild
     this.vbox7         = new Gtk.VBox();
     this.vbox7.Name    = "vbox7";
     this.vbox7.Spacing = 6;
     // Container child vbox7.Gtk.Box+BoxChild
     this.hbox14         = new Gtk.HBox();
     this.hbox14.Name    = "hbox14";
     this.hbox14.Spacing = 6;
     // Container child hbox14.Gtk.Box+BoxChild
     this.label14           = new Gtk.Label();
     this.label14.Name      = "label14";
     this.label14.LabelProp = Mono.Unix.Catalog.GetString("Maximum upload rate:");
     this.hbox14.Add(this.label14);
     Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox14[this.label14]));
     w60.Position = 0;
     w60.Expand   = false;
     w60.Fill     = false;
     // Container child hbox14.Gtk.Box+BoxChild
     this.torrentUploadRateSpinButton          = new Gtk.SpinButton(0, 100, 1);
     this.torrentUploadRateSpinButton.CanFocus = true;
     this.torrentUploadRateSpinButton.Name     = "torrentUploadRateSpinButton";
     this.torrentUploadRateSpinButton.Adjustment.PageIncrement = 10;
     this.torrentUploadRateSpinButton.ClimbRate = 1;
     this.torrentUploadRateSpinButton.Numeric   = true;
     this.hbox14.Add(this.torrentUploadRateSpinButton);
     Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.hbox14[this.torrentUploadRateSpinButton]));
     w61.Position = 1;
     w61.Expand   = false;
     w61.Fill     = false;
     this.vbox7.Add(this.hbox14);
     Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox14]));
     w62.Position = 0;
     w62.Expand   = false;
     w62.Fill     = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.hbox15         = new Gtk.HBox();
     this.hbox15.Name    = "hbox15";
     this.hbox15.Spacing = 6;
     // Container child hbox15.Gtk.Box+BoxChild
     this.label15           = new Gtk.Label();
     this.label15.Name      = "label15";
     this.label15.LabelProp = Mono.Unix.Catalog.GetString("Maximum download rate:");
     this.hbox15.Add(this.label15);
     Gtk.Box.BoxChild w63 = ((Gtk.Box.BoxChild)(this.hbox15[this.label15]));
     w63.Position = 0;
     w63.Expand   = false;
     w63.Fill     = false;
     // Container child hbox15.Gtk.Box+BoxChild
     this.torrentDownloadRateSpinButton          = new Gtk.SpinButton(0, 100, 1);
     this.torrentDownloadRateSpinButton.CanFocus = true;
     this.torrentDownloadRateSpinButton.Name     = "torrentDownloadRateSpinButton";
     this.torrentDownloadRateSpinButton.Adjustment.PageIncrement = 10;
     this.torrentDownloadRateSpinButton.ClimbRate = 1;
     this.torrentDownloadRateSpinButton.Numeric   = true;
     this.hbox15.Add(this.torrentDownloadRateSpinButton);
     Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(this.hbox15[this.torrentDownloadRateSpinButton]));
     w64.Position = 1;
     w64.Expand   = false;
     w64.Fill     = false;
     this.vbox7.Add(this.hbox15);
     Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox15]));
     w65.Position = 1;
     w65.Expand   = false;
     w65.Fill     = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.hbox16         = new Gtk.HBox();
     this.hbox16.Name    = "hbox16";
     this.hbox16.Spacing = 6;
     // Container child hbox16.Gtk.Box+BoxChild
     this.label16           = new Gtk.Label();
     this.label16.Name      = "label16";
     this.label16.LabelProp = Mono.Unix.Catalog.GetString("Maximum connections:");
     this.hbox16.Add(this.label16);
     Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox16[this.label16]));
     w66.Position = 0;
     w66.Expand   = false;
     w66.Fill     = false;
     // Container child hbox16.Gtk.Box+BoxChild
     this.torrentMaxConnectionsSpinButton          = new Gtk.SpinButton(0, 100, 1);
     this.torrentMaxConnectionsSpinButton.CanFocus = true;
     this.torrentMaxConnectionsSpinButton.Name     = "torrentMaxConnectionsSpinButton";
     this.torrentMaxConnectionsSpinButton.Adjustment.PageIncrement = 10;
     this.torrentMaxConnectionsSpinButton.ClimbRate = 1;
     this.torrentMaxConnectionsSpinButton.Numeric   = true;
     this.hbox16.Add(this.torrentMaxConnectionsSpinButton);
     Gtk.Box.BoxChild w67 = ((Gtk.Box.BoxChild)(this.hbox16[this.torrentMaxConnectionsSpinButton]));
     w67.Position = 1;
     w67.Expand   = false;
     w67.Fill     = false;
     this.vbox7.Add(this.hbox16);
     Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox16]));
     w68.Position = 2;
     w68.Expand   = false;
     w68.Fill     = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.hbox17         = new Gtk.HBox();
     this.hbox17.Name    = "hbox17";
     this.hbox17.Spacing = 6;
     // Container child hbox17.Gtk.Box+BoxChild
     this.label17           = new Gtk.Label();
     this.label17.Name      = "label17";
     this.label17.LabelProp = Mono.Unix.Catalog.GetString("Upload slots:");
     this.hbox17.Add(this.label17);
     Gtk.Box.BoxChild w69 = ((Gtk.Box.BoxChild)(this.hbox17[this.label17]));
     w69.Position = 0;
     w69.Expand   = false;
     w69.Fill     = false;
     // Container child hbox17.Gtk.Box+BoxChild
     this.torrentUploadSlotSpinButton          = new Gtk.SpinButton(0, 100, 1);
     this.torrentUploadSlotSpinButton.CanFocus = true;
     this.torrentUploadSlotSpinButton.Name     = "torrentUploadSlotSpinButton";
     this.torrentUploadSlotSpinButton.Adjustment.PageIncrement = 10;
     this.torrentUploadSlotSpinButton.ClimbRate = 1;
     this.torrentUploadSlotSpinButton.Numeric   = true;
     this.hbox17.Add(this.torrentUploadSlotSpinButton);
     Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(this.hbox17[this.torrentUploadSlotSpinButton]));
     w70.Position = 1;
     w70.Expand   = false;
     w70.Fill     = false;
     this.vbox7.Add(this.hbox17);
     Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox17]));
     w71.Position = 3;
     w71.Expand   = false;
     w71.Fill     = false;
     this.GtkAlignment4.Add(this.vbox7);
     this.frame5.Add(this.GtkAlignment4);
     this.GtkLabel10           = new Gtk.Label();
     this.GtkLabel10.Name      = "GtkLabel10";
     this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Bandwidth</b>");
     this.GtkLabel10.UseMarkup = true;
     this.frame5.LabelWidget   = this.GtkLabel10;
     this.vbox6.Add(this.frame5);
     Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5]));
     w74.Position = 0;
     w74.Expand   = false;
     w74.Fill     = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox18         = new Gtk.HBox();
     this.hbox18.Name    = "hbox18";
     this.hbox18.Spacing = 6;
     // Container child hbox18.Gtk.Box+BoxChild
     this.saveTorrentSettingsButton              = new Gtk.Button();
     this.saveTorrentSettingsButton.CanFocus     = true;
     this.saveTorrentSettingsButton.Name         = "saveTorrentSettingsButton";
     this.saveTorrentSettingsButton.UseUnderline = true;
     this.saveTorrentSettingsButton.Label        = Mono.Unix.Catalog.GetString("Save");
     this.hbox18.Add(this.saveTorrentSettingsButton);
     Gtk.Box.BoxChild w75 = ((Gtk.Box.BoxChild)(this.hbox18[this.saveTorrentSettingsButton]));
     w75.Position = 2;
     w75.Expand   = false;
     w75.Fill     = false;
     this.vbox6.Add(this.hbox18);
     Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox18]));
     w76.Position = 1;
     w76.Expand   = false;
     w76.Fill     = false;
     this.hbox13.Add(this.vbox6);
     Gtk.Box.BoxChild w77 = ((Gtk.Box.BoxChild)(this.hbox13[this.vbox6]));
     w77.Position = 1;
     w77.Expand   = false;
     w77.Fill     = false;
     w56.Add(this.hbox13);
     this.scrolledwindow2.Add(w56);
     this.notebook1.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w80 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow2]));
     w80.Position  = 3;
     w80.TabExpand = false;
     // Notebook tab
     this.label13           = new Gtk.Label();
     this.label13.Name      = "label13";
     this.label13.LabelProp = Mono.Unix.Catalog.GetString("Options");
     this.notebook1.SetTabLabel(this.scrolledwindow2, this.label13);
     this.vPaned.Add(this.notebook1);
     this.hPaned.Add(this.vPaned);
     this.vbox1.Add(this.hPaned);
     Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.vbox1[this.hPaned]));
     w83.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar2         = new Gtk.Statusbar();
     this.statusbar2.Name    = "statusbar2";
     this.statusbar2.Spacing = 6;
     // Container child statusbar2.Gtk.Box+BoxChild
     this.statusDownloadLabel           = new Gtk.Label();
     this.statusDownloadLabel.Name      = "statusDownloadLabel";
     this.statusDownloadLabel.LabelProp = Mono.Unix.Catalog.GetString("<small>D: 0.00 kB</small>");
     this.statusDownloadLabel.UseMarkup = true;
     this.statusbar2.Add(this.statusDownloadLabel);
     Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.statusbar2[this.statusDownloadLabel]));
     w84.Position = 1;
     w84.Expand   = false;
     w84.Fill     = false;
     // Container child statusbar2.Gtk.Box+BoxChild
     this.statusUploadLabel           = new Gtk.Label();
     this.statusUploadLabel.Name      = "statusUploadLabel";
     this.statusUploadLabel.LabelProp = Mono.Unix.Catalog.GetString("<small>U: 0.00 kB</small>");
     this.statusUploadLabel.UseMarkup = true;
     this.statusbar2.Add(this.statusUploadLabel);
     Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.statusbar2[this.statusUploadLabel]));
     w85.Position = 2;
     w85.Expand   = false;
     w85.Fill     = false;
     this.vbox1.Add(this.statusbar2);
     Gtk.Box.BoxChild w86 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar2]));
     w86.Position = 3;
     w86.Expand   = false;
     w86.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 762;
     this.DefaultHeight = 559;
     this.Hide();
     this.DeleteEvent                       += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.About.Activated                   += new System.EventHandler(this.OnAboutActivated);
     this.Quit.Activated                    += new System.EventHandler(this.OnQuitActivated);
     this.Preferences.Activated             += new System.EventHandler(this.OnPreferencesActivated);
     [email protected]                    += new System.EventHandler(this.OnNewActivated);
     this.open.Activated                    += new System.EventHandler(this.OnOpenActivated);
     this.startTorrentButton.Activated      += new System.EventHandler(this.OnStartTorrentActivated);
     this.stopTorrentButton.Activated       += new System.EventHandler(this.OnStopTorrentActivated);
     this.removeTorrentButton.Activated     += new System.EventHandler(this.OnRemoveTorrentButtonActivated);
     this.preferences.Activated             += new System.EventHandler(this.OnPreferencesActivated);
     this.deleteTorrentButton.Activated     += new System.EventHandler(this.OnDeleteTorrentButtonActivated);
     this.Columns.Activated                 += new System.EventHandler(this.OnColumnsActivated);
     this.saveTorrentSettingsButton.Clicked += new System.EventHandler(this.OnSaveTorrentSettingsButtonClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget OpenGridServices.Manager.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.Grid = new Gtk.Action("Grid", Mono.Unix.Catalog.GetString("Grid"), null, null);
     this.Grid.HideIfEmpty = false;
     this.Grid.ShortLabel = Mono.Unix.Catalog.GetString("Grid");
     w2.Add(this.Grid, "<Alt><Mod2>g");
     this.User = new Gtk.Action("User", Mono.Unix.Catalog.GetString("User"), null, null);
     this.User.HideIfEmpty = false;
     this.User.ShortLabel = Mono.Unix.Catalog.GetString("User");
     w2.Add(this.User, null);
     this.Asset = new Gtk.Action("Asset", Mono.Unix.Catalog.GetString("Asset"), null, null);
     this.Asset.HideIfEmpty = false;
     this.Asset.ShortLabel = Mono.Unix.Catalog.GetString("Asset");
     w2.Add(this.Asset, null);
     this.Region = new Gtk.Action("Region", Mono.Unix.Catalog.GetString("Region"), null, null);
     this.Region.ShortLabel = Mono.Unix.Catalog.GetString("Region");
     w2.Add(this.Region, null);
     this.Services = new Gtk.Action("Services", Mono.Unix.Catalog.GetString("Services"), null, null);
     this.Services.ShortLabel = Mono.Unix.Catalog.GetString("Services");
     w2.Add(this.Services, null);
     this.ConnectToGridserver = new Gtk.Action("ConnectToGridserver", Mono.Unix.Catalog.GetString("Connect to gridserver..."), null, "gtk-connect");
     this.ConnectToGridserver.HideIfEmpty = false;
     this.ConnectToGridserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to gridserver");
     w2.Add(this.ConnectToGridserver, null);
     this.RestartWholeGrid = new Gtk.Action("RestartWholeGrid", Mono.Unix.Catalog.GetString("Restart whole grid"), null, "gtk-refresh");
     this.RestartWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Restart whole grid");
     w2.Add(this.RestartWholeGrid, null);
     this.ShutdownWholeGrid = new Gtk.Action("ShutdownWholeGrid", Mono.Unix.Catalog.GetString("Shutdown whole grid"), null, "gtk-stop");
     this.ShutdownWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown whole grid");
     w2.Add(this.ShutdownWholeGrid, null);
     this.ExitGridManager = new Gtk.Action("ExitGridManager", Mono.Unix.Catalog.GetString("Exit grid manager"), null, "gtk-close");
     this.ExitGridManager.ShortLabel = Mono.Unix.Catalog.GetString("Exit grid manager");
     w2.Add(this.ExitGridManager, null);
     this.ConnectToUserserver = new Gtk.Action("ConnectToUserserver", Mono.Unix.Catalog.GetString("Connect to userserver"), null, "gtk-connect");
     this.ConnectToUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to userserver");
     w2.Add(this.ConnectToUserserver, null);
     this.AccountManagment = new Gtk.Action("AccountManagment", Mono.Unix.Catalog.GetString("Account managment"), null, "gtk-properties");
     this.AccountManagment.ShortLabel = Mono.Unix.Catalog.GetString("Account managment");
     w2.Add(this.AccountManagment, null);
     this.GlobalNotice = new Gtk.Action("GlobalNotice", Mono.Unix.Catalog.GetString("Global notice"), null, "gtk-network");
     this.GlobalNotice.ShortLabel = Mono.Unix.Catalog.GetString("Global notice");
     w2.Add(this.GlobalNotice, null);
     this.DisableAllLogins = new Gtk.Action("DisableAllLogins", Mono.Unix.Catalog.GetString("Disable all logins"), null, "gtk-no");
     this.DisableAllLogins.ShortLabel = Mono.Unix.Catalog.GetString("Disable all logins");
     w2.Add(this.DisableAllLogins, null);
     this.DisableNonGodUsersOnly = new Gtk.Action("DisableNonGodUsersOnly", Mono.Unix.Catalog.GetString("Disable non-god users only"), null, "gtk-no");
     this.DisableNonGodUsersOnly.ShortLabel = Mono.Unix.Catalog.GetString("Disable non-god users only");
     w2.Add(this.DisableNonGodUsersOnly, null);
     this.ShutdownUserServer = new Gtk.Action("ShutdownUserServer", Mono.Unix.Catalog.GetString("Shutdown user server"), null, "gtk-stop");
     this.ShutdownUserServer.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown user server");
     w2.Add(this.ShutdownUserServer, null);
     this.ShutdownGridserverOnly = new Gtk.Action("ShutdownGridserverOnly", Mono.Unix.Catalog.GetString("Shutdown gridserver only"), null, "gtk-stop");
     this.ShutdownGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown gridserver only");
     w2.Add(this.ShutdownGridserverOnly, null);
     this.RestartGridserverOnly = new Gtk.Action("RestartGridserverOnly", Mono.Unix.Catalog.GetString("Restart gridserver only"), null, "gtk-refresh");
     this.RestartGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Restart gridserver only");
     w2.Add(this.RestartGridserverOnly, null);
     this.DefaultLocalGridUserserver = new Gtk.Action("DefaultLocalGridUserserver", Mono.Unix.Catalog.GetString("Default local grid userserver"), null, null);
     this.DefaultLocalGridUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Default local grid userserver");
     w2.Add(this.DefaultLocalGridUserserver, null);
     this.CustomUserserver = new Gtk.Action("CustomUserserver", Mono.Unix.Catalog.GetString("Custom userserver..."), null, null);
     this.CustomUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Custom userserver");
     w2.Add(this.CustomUserserver, null);
     this.RemoteGridDefaultUserserver = new Gtk.Action("RemoteGridDefaultUserserver", Mono.Unix.Catalog.GetString("Remote grid default userserver..."), null, null);
     this.RemoteGridDefaultUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Remote grid default userserver");
     w2.Add(this.RemoteGridDefaultUserserver, null);
     this.DisconnectFromGridServer = new Gtk.Action("DisconnectFromGridServer", Mono.Unix.Catalog.GetString("Disconnect from grid server"), null, "gtk-disconnect");
     this.DisconnectFromGridServer.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect from grid server");
     this.DisconnectFromGridServer.Visible = false;
     w2.Add(this.DisconnectFromGridServer, null);
     this.UploadAsset = new Gtk.Action("UploadAsset", Mono.Unix.Catalog.GetString("Upload asset"), null, null);
     this.UploadAsset.ShortLabel = Mono.Unix.Catalog.GetString("Upload asset");
     w2.Add(this.UploadAsset, null);
     this.AssetManagement = new Gtk.Action("AssetManagement", Mono.Unix.Catalog.GetString("Asset management"), null, null);
     this.AssetManagement.ShortLabel = Mono.Unix.Catalog.GetString("Asset management");
     w2.Add(this.AssetManagement, null);
     this.ConnectToAssetServer = new Gtk.Action("ConnectToAssetServer", Mono.Unix.Catalog.GetString("Connect to asset server"), null, null);
     this.ConnectToAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Connect to asset server");
     w2.Add(this.ConnectToAssetServer, null);
     this.ConnectToDefaultAssetServerForGrid = new Gtk.Action("ConnectToDefaultAssetServerForGrid", Mono.Unix.Catalog.GetString("Connect to default asset server for grid"), null, null);
     this.ConnectToDefaultAssetServerForGrid.ShortLabel = Mono.Unix.Catalog.GetString("Connect to default asset server for grid");
     w2.Add(this.ConnectToDefaultAssetServerForGrid, null);
     this.DefaultForLocalGrid = new Gtk.Action("DefaultForLocalGrid", Mono.Unix.Catalog.GetString("Default for local grid"), null, null);
     this.DefaultForLocalGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for local grid");
     w2.Add(this.DefaultForLocalGrid, null);
     this.DefaultForRemoteGrid = new Gtk.Action("DefaultForRemoteGrid", Mono.Unix.Catalog.GetString("Default for remote grid..."), null, null);
     this.DefaultForRemoteGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for remote grid...");
     w2.Add(this.DefaultForRemoteGrid, null);
     this.CustomAssetServer = new Gtk.Action("CustomAssetServer", Mono.Unix.Catalog.GetString("Custom asset server..."), null, null);
     this.CustomAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Custom asset server...");
     w2.Add(this.CustomAssetServer, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.WidthRequest = 800;
     this.HeightRequest = 600;
     this.Name = "OpenGridServices.Manager.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Open Grid Services Manager");
     this.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-network", 48, 0);
     // Container child OpenGridServices.Manager.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Grid'><menuitem action='ConnectToGridserver'/><menuitem action='DisconnectFromGridServer'/><separator/><menuitem action='RestartWholeGrid'/><menuitem action='RestartGridserverOnly'/><separator/><menuitem action='ShutdownWholeGrid'/><menuitem action='ShutdownGridserverOnly'/><separator/><menuitem action='ExitGridManager'/></menu><menu action='User'><menu action='ConnectToUserserver'><menuitem action='DefaultLocalGridUserserver'/><menuitem action='CustomUserserver'/><menuitem action='RemoteGridDefaultUserserver'/></menu><separator/><menuitem action='AccountManagment'/><menuitem action='GlobalNotice'/><separator/><menuitem action='DisableAllLogins'/><menuitem action='DisableNonGodUsersOnly'/><separator/><menuitem action='ShutdownUserServer'/></menu><menu action='Asset'><menuitem action='UploadAsset'/><menuitem action='AssetManagement'/><menu action='ConnectToAssetServer'><menuitem action='DefaultForLocalGrid'/><menuitem action='DefaultForRemoteGrid'/><menuitem action='CustomAssetServer'/></menu></menu><menu action='Region'/><menu action='Services'/></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
     this.menubar2.HeightRequest = 25;
     this.menubar2.Name = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     // Container child hbox1.Gtk.Box+BoxChild
     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));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w4 = new Gtk.Viewport();
     w4.Name = "GtkViewport";
     w4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.drawingarea1 = new Gtk.DrawingArea();
     this.drawingarea1.Name = "drawingarea1";
     w4.Add(this.drawingarea1);
     this.scrolledwindow1.Add(w4);
     this.hbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
     w7.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     this.hbox1.Add(this.treeview1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.treeview1]));
     w8.Position = 2;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w9.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 5;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.Add(this.vbox1);
     if (this.Child != null)
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 800;
     this.DefaultHeight = 800;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ConnectToGridserver.Activated += new System.EventHandler(this.ConnectToGridServerMenu);
     this.ExitGridManager.Activated += new System.EventHandler(this.QuitMenu);
     this.ShutdownGridserverOnly.Activated += new System.EventHandler(this.ShutdownGridserverMenu);
     this.RestartGridserverOnly.Activated += new System.EventHandler(this.RestartGridserverMenu);
     this.DisconnectFromGridServer.Activated += new System.EventHandler(this.DisconnectGridServerMenu);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget OpenVP.GtkGui.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.Preset            = new Gtk.Action("Preset", Mono.Unix.Catalog.GetString("_Preset"), null, null);
     this.Preset.ShortLabel = Mono.Unix.Catalog.GetString("_Preset");
     w1.Add(this.Preset, null);
     this.@new            = new Gtk.Action("new", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
     [email protected] = Mono.Unix.Catalog.GetString("_New");
     w1.Add(this.@new, null);
     this.open            = new Gtk.Action("open", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
     this.open.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
     w1.Add(this.open, null);
     this.save            = new Gtk.Action("save", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
     this.save.Sensitive  = false;
     this.save.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
     w1.Add(this.save, null);
     this.saveAs            = new Gtk.Action("saveAs", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
     this.saveAs.Sensitive  = false;
     this.saveAs.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
     w1.Add(this.saveAs, null);
     this.quit            = new Gtk.Action("quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w1.Add(this.quit, null);
     this.LinearPreset            = new Gtk.Action("LinearPreset", Mono.Unix.Catalog.GetString("_Linear preset"), null, null);
     this.LinearPreset.ShortLabel = Mono.Unix.Catalog.GetString("_Linear preset");
     w1.Add(this.LinearPreset, null);
     this.Options            = new Gtk.Action("Options", Mono.Unix.Catalog.GetString("_Options"), null, null);
     this.Options.ShortLabel = Mono.Unix.Catalog.GetString("_Options");
     w1.Add(this.Options, null);
     this.WaitForDataSliceToDraw            = new Gtk.ToggleAction("WaitForDataSliceToDraw", Mono.Unix.Catalog.GetString("_Wait for data slice to draw"), null, null);
     this.WaitForDataSliceToDraw.Active     = true;
     this.WaitForDataSliceToDraw.ShortLabel = Mono.Unix.Catalog.GetString("_Wait for data slice to draw");
     w1.Add(this.WaitForDataSliceToDraw, null);
     this.AllowSlicesToBeSkipped            = new Gtk.ToggleAction("AllowSlicesToBeSkipped", Mono.Unix.Catalog.GetString("_Allow slices to be skipped"), null, null);
     this.AllowSlicesToBeSkipped.ShortLabel = Mono.Unix.Catalog.GetString("_Allow slices to be skipped");
     w1.Add(this.AllowSlicesToBeSkipped, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "OpenVP.GtkGui.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Open Visualization Platform");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child OpenVP.GtkGui.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='Preset' action='Preset'><menu name='new' action='new'><menuitem name='LinearPreset' action='LinearPreset'/></menu><menuitem name='open' action='open'/><menuitem name='save' action='save'/><menuitem name='saveAs' action='saveAs'/><separator/><menuitem name='quit' action='quit'/></menu><menu name='Options' action='Options'><menuitem name='WaitForDataSliceToDraw' action='WaitForDataSliceToDraw'/><menuitem name='AllowSlicesToBeSkipped' action='AllowSlicesToBeSkipped'/></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.PresetPane      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.PresetPane.Name = "PresetPane";
     this.vbox1.Add(this.PresetPane);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.PresetPane]));
     w3.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.StatusBar         = new Gtk.Statusbar();
     this.StatusBar.Name    = "StatusBar";
     this.StatusBar.Spacing = 6;
     this.vbox1.Add(this.StatusBar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.StatusBar]));
     w4.Position = 2;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 530;
     this.DefaultHeight = 395;
     this.Show();
     this.DeleteEvent                    += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.open.Activated                 += new System.EventHandler(this.OnOpenActivated);
     this.save.Activated                 += new System.EventHandler(this.OnSaveActivated);
     this.saveAs.Activated               += new System.EventHandler(this.OnSaveAsActivated);
     this.quit.Activated                 += new System.EventHandler(this.OnQuitActivated);
     this.LinearPreset.Activated         += new System.EventHandler(this.OnLinearPresetActivated);
     this.WaitForDataSliceToDraw.Toggled += new System.EventHandler(this.OnWaitForDataSliceToDrawToggled);
     this.AllowSlicesToBeSkipped.Toggled += new System.EventHandler(this.OnAllowSlicesToBeSkippedToggled);
 }
 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);
 }
Example #35
0
        private void PopulateActionGroups()
        {
            ///
            /// Global Actions
            ///
            main_window_actions.Add(new Gtk.ActionEntry [] {
                new Gtk.ActionEntry("FileMenuAction", null,
                                    Catalog.GetString("_File"), null, null, null),

                new Gtk.ActionEntry("NewNoteAction", Gtk.Stock.New,
                                    Catalog.GetString("_New"), "<Control>N",
                                    Catalog.GetString("Create a new note"), null),

                new Gtk.ActionEntry("OpenNoteAction", Gtk.Stock.Open,
                                    Catalog.GetString("_Open..."), "<Control>O",
                                    Catalog.GetString("Open the selected note"), null),

                new Gtk.ActionEntry("DeleteNoteAction", Gtk.Stock.Delete,
                                    Catalog.GetString("_Delete"), "Delete",
                                    Catalog.GetString("Delete the selected note"), null),

                new Gtk.ActionEntry("CloseWindowAction", Gtk.Stock.Close,
                                    Catalog.GetString("_Close"), "<Control>W",
                                    Catalog.GetString("Close this window"), null),

                new Gtk.ActionEntry("QuitTomboyAction", Gtk.Stock.Quit,
                                    Catalog.GetString("_Quit"), "<Control>Q",
                                    Catalog.GetString("Quit Tomboy"), null),

                new Gtk.ActionEntry("EditMenuAction", null,
                                    Catalog.GetString("_Edit"), null, null, null),

                new Gtk.ActionEntry("ShowPreferencesAction", Gtk.Stock.Preferences,
                                    Catalog.GetString("_Preferences"), null,
                                    Catalog.GetString("Tomboy Preferences"), null),

                new Gtk.ActionEntry("HelpMenuAction", null,
                                    Catalog.GetString("_Help"), null, null, null),

                new Gtk.ActionEntry("ShowHelpAction", Gtk.Stock.Help,
                                    Catalog.GetString("_Contents"), "F1",
                                    Catalog.GetString("Tomboy Help"), null),

                new Gtk.ActionEntry("ShowAboutAction", Gtk.Stock.About,
                                    Catalog.GetString("_About"), null,
                                    Catalog.GetString("About Tomboy"), null),

                new Gtk.ActionEntry("TrayIconMenuAction", null,
                                    Catalog.GetString("TrayIcon"), null, null, null),

                new Gtk.ActionEntry("TrayNewNoteAction", Gtk.Stock.New,
                                    Catalog.GetString("Create _New Note"), null,
                                    Catalog.GetString("Create a new note"), null),

                new Gtk.ActionEntry("ShowSearchAllNotesAction", Gtk.Stock.Find,
                                    Catalog.GetString("_Search All Notes"), null,
                                    Catalog.GetString("Open the Search All Notes window"), null),

                new Gtk.ActionEntry("NoteSynchronizationAction", null,
                                    Catalog.GetString("S_ynchronize Notes"), null,
                                    Catalog.GetString("Start synchronizing notes"), null)
            });

            main_window_actions.GetAction("OpenNoteAction").Sensitive   = false;
            main_window_actions.GetAction("DeleteNoteAction").Sensitive = false;

            ui.InsertActionGroup(main_window_actions, 0);
        }
Example #36
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.XBMControlAction            = new Gtk.Action("XBMControlAction", Mono.Unix.Catalog.GetString("XBMControl"), null, null);
     this.XBMControlAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMControl");
     w1.Add(this.XBMControlAction, null);
     this.QuitAction            = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-disconnect");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w1.Add(this.QuitAction, null);
     this.XBMCAction            = new Gtk.Action("XBMCAction", Mono.Unix.Catalog.GetString("XBMC"), null, null);
     this.XBMCAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMC");
     w1.Add(this.XBMCAction, null);
     this.PlaylistAction            = new Gtk.Action("PlaylistAction", Mono.Unix.Catalog.GetString("Playlist"), null, null);
     this.PlaylistAction.ShortLabel = Mono.Unix.Catalog.GetString("Playlist");
     w1.Add(this.PlaylistAction, 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.UpdateMusicLibraryAction            = new Gtk.Action("UpdateMusicLibraryAction", Mono.Unix.Catalog.GetString("Update music library"), null, null);
     this.UpdateMusicLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library");
     w1.Add(this.UpdateMusicLibraryAction, null);
     this.UpdateVideoLibraryAction            = new Gtk.Action("UpdateVideoLibraryAction", Mono.Unix.Catalog.GetString("Update video library"), null, null);
     this.UpdateVideoLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library");
     w1.Add(this.UpdateVideoLibraryAction, null);
     this.UpdateLibraryAction            = new Gtk.Action("UpdateLibraryAction", Mono.Unix.Catalog.GetString("Update Library"), null, null);
     this.UpdateLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Library");
     w1.Add(this.UpdateLibraryAction, null);
     this.MusicAction            = new Gtk.Action("MusicAction", Mono.Unix.Catalog.GetString("Music"), null, "gtk-harddisk");
     this.MusicAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library");
     w1.Add(this.MusicAction, null);
     this.VideoAction            = new Gtk.Action("VideoAction", Mono.Unix.Catalog.GetString("Video"), null, "gtk-harddisk");
     this.VideoAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library");
     w1.Add(this.VideoAction, null);
     this.RestartAction            = new Gtk.Action("RestartAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-refresh");
     this.RestartAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart");
     w1.Add(this.RestartAction, null);
     this.RebootAction            = new Gtk.Action("RebootAction", Mono.Unix.Catalog.GetString("Reboot"), null, "gtk-refresh");
     this.RebootAction.ShortLabel = Mono.Unix.Catalog.GetString("Reboot");
     w1.Add(this.RebootAction, null);
     this.ShutdownAction            = new Gtk.Action("ShutdownAction", Mono.Unix.Catalog.GetString("Shutdown"), null, "gtk-quit");
     this.ShutdownAction.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown");
     w1.Add(this.ShutdownAction, null);
     this.ConfigurationAction            = new Gtk.Action("ConfigurationAction", Mono.Unix.Catalog.GetString("Configuration"), null, "gtk-edit");
     this.ConfigurationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences");
     w1.Add(this.ConfigurationAction, null);
     this.clearAction = new Gtk.Action("clearAction", null, Mono.Unix.Catalog.GetString("Clear playlist"), "gtk-clear");
     w1.Add(this.clearAction, null);
     this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
     w1.Add(this.openAction, null);
     this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
     w1.Add(this.saveAction, null);
     this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as");
     w1.Add(this.saveAsAction, null);
     this.aRefreshPlaylist = new Gtk.Action("aRefreshPlaylist", null, null, "gtk-refresh");
     w1.Add(this.aRefreshPlaylist, null);
     this.aRemoveSelected = new Gtk.Action("aRemoveSelected", null, Mono.Unix.Catalog.GetString("Remove selected item"), "gtk-remove");
     w1.Add(this.aRemoveSelected, null);
     this.aPlaySelected = new Gtk.Action("aPlaySelected", null, Mono.Unix.Catalog.GetString("Play selected item"), "gtk-media-play");
     w1.Add(this.aPlaySelected, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest   = 900;
     this.HeightRequest  = 600;
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("XBMControl Evo");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     this.Resizable      = false;
     this.AllowGrow      = false;
     this.DefaultWidth   = 800;
     this.DefaultHeight  = 600;
     // 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='XBMControlAction' action='XBMControlAction'><menuitem name='ConfigurationAction' action='ConfigurationAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='XBMCAction' action='XBMCAction'><menu name='UpdateLibraryAction' action='UpdateLibraryAction'><menuitem name='MusicAction' action='MusicAction'/><menuitem name='VideoAction' action='VideoAction'/></menu><menuitem name='RestartAction' action='RestartAction'/><menuitem name='RebootAction' action='RebootAction'/><menuitem name='ShutdownAction' action='ShutdownAction'/></menu><menu name='PlaylistAction' action='PlaylistAction'/><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.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 300;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.nbBrowser = new Gtk.Notebook();
     this.nbBrowser.WidthRequest = 300;
     this.nbBrowser.CanFocus     = true;
     this.nbBrowser.Name         = "nbBrowser";
     this.nbBrowser.CurrentPage  = 0;
     // Container child nbBrowser.Gtk.Notebook+NotebookChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cbShareType = Gtk.ComboBox.NewText();
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Music"));
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Video"));
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Pictures"));
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Files"));
     this.cbShareType.Name   = "cbShareType";
     this.cbShareType.Active = 0;
     this.vbox3.Add(this.cbShareType);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbShareType]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox3.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.tvShareBrowser          = new Gtk.TreeView();
     this.tvShareBrowser.CanFocus = true;
     this.tvShareBrowser.Name     = "tvShareBrowser";
     this.GtkScrolledWindow.Add(this.tvShareBrowser);
     this.vbox3.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow]));
     w5.Position = 1;
     this.nbBrowser.Add(this.vbox3);
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Shares");
     this.nbBrowser.SetTabLabel(this.vbox3, this.label2);
     this.label2.ShowAll();
     this.hpaned1.Add(this.nbBrowser);
     Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbBrowser]));
     w7.Resize = false;
     w7.Shrink = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.nbDataContainer             = new Gtk.Notebook();
     this.nbDataContainer.CanFocus    = true;
     this.nbDataContainer.Name        = "nbDataContainer";
     this.nbDataContainer.CurrentPage = 0;
     this.nbDataContainer.ShowBorder  = false;
     this.nbDataContainer.Scrollable  = true;
     // Container child nbDataContainer.Gtk.Notebook+NotebookChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w8 = new Gtk.Viewport();
     w8.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.fixedNowPlaying           = new Gtk.Fixed();
     this.fixedNowPlaying.Name      = "fixedNowPlaying";
     this.fixedNowPlaying.HasWindow = false;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.imgNowPlaying = new Gtk.Image();
     this.imgNowPlaying.WidthRequest  = 300;
     this.imgNowPlaying.HeightRequest = 300;
     this.imgNowPlaying.Name          = "imgNowPlaying";
     this.fixedNowPlaying.Add(this.imgNowPlaying);
     Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.imgNowPlaying]));
     w9.X = 20;
     w9.Y = 145;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lArtist = new Gtk.Label();
     this.lArtist.WidthRequest = 555;
     this.lArtist.Name         = "lArtist";
     this.fixedNowPlaying.Add(this.lArtist);
     Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lArtist]));
     w10.X = 10;
     w10.Y = 10;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lSong = new Gtk.Label();
     this.lSong.WidthRequest = 555;
     this.lSong.Name         = "lSong";
     this.fixedNowPlaying.Add(this.lSong);
     Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lSong]));
     w11.X = 10;
     w11.Y = 34;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lAlbum = new Gtk.Label();
     this.lAlbum.WidthRequest = 555;
     this.lAlbum.Name         = "lAlbum";
     this.fixedNowPlaying.Add(this.lAlbum);
     Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lAlbum]));
     w12.X = 10;
     w12.Y = 70;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lGenre = new Gtk.Label();
     this.lGenre.WidthRequest = 155;
     this.lGenre.Name         = "lGenre";
     this.fixedNowPlaying.Add(this.lGenre);
     Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lGenre]));
     w13.X = 410;
     w13.Y = 98;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lProgress = new Gtk.Label();
     this.lProgress.WidthRequest = 150;
     this.lProgress.Name         = "lProgress";
     this.fixedNowPlaying.Add(this.lProgress);
     Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lProgress]));
     w14.X = 353;
     w14.Y = 430;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lDuration = new Gtk.Label();
     this.lDuration.WidthRequest = 60;
     this.lDuration.Name         = "lDuration";
     this.fixedNowPlaying.Add(this.lDuration);
     Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lDuration]));
     w15.X = 502;
     w15.Y = 430;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lYear = new Gtk.Label();
     this.lYear.WidthRequest = 155;
     this.lYear.Name         = "lYear";
     this.fixedNowPlaying.Add(this.lYear);
     Gtk.Fixed.FixedChild w16 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lYear]));
     w16.X = 410;
     w16.Y = 84;
     w8.Add(this.fixedNowPlaying);
     this.GtkScrolledWindow1.Add(w8);
     this.nbDataContainer.Add(this.GtkScrolledWindow1);
     // Notebook tab
     this.labelMediaInfo           = new Gtk.Label();
     this.labelMediaInfo.Name      = "labelMediaInfo";
     this.labelMediaInfo.LabelProp = Mono.Unix.Catalog.GetString("Playing Now");
     this.nbDataContainer.SetTabLabel(this.GtkScrolledWindow1, this.labelMediaInfo);
     this.labelMediaInfo.ShowAll();
     // Container child nbDataContainer.Gtk.Notebook+NotebookChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.cbPlaylistType = Gtk.ComboBox.NewText();
     this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Music"));
     this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Video"));
     this.cbPlaylistType.Name   = "cbPlaylistType";
     this.cbPlaylistType.Active = 0;
     this.vbox2.Add(this.cbPlaylistType);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.cbPlaylistType]));
     w20.Position = 0;
     w20.Expand   = false;
     w20.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.tvPlaylist          = new Gtk.TreeView();
     this.tvPlaylist.CanFocus = true;
     this.tvPlaylist.Name     = "tvPlaylist";
     this.GtkScrolledWindow2.Add(this.tvPlaylist);
     this.vbox2.Add(this.GtkScrolledWindow2);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow2]));
     w22.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='aRefreshPlaylist' action='aRefreshPlaylist'/><toolitem name='aRemoveSelected' action='aRemoveSelected'/><toolitem name='aPlaySelected' action='aPlaySelected'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.TooltipMarkup = "Refresh playlist";
     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 w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w23.Position = 2;
     w23.Expand   = false;
     w23.Fill     = false;
     this.nbDataContainer.Add(this.vbox2);
     Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.nbDataContainer[this.vbox2]));
     w24.Position = 1;
     // Notebook tab
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Playlist");
     this.nbDataContainer.SetTabLabel(this.vbox2, this.label3);
     this.label3.ShowAll();
     // Notebook tab
     Gtk.Label w25 = new Gtk.Label();
     w25.Visible = true;
     this.nbDataContainer.Add(w25);
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Configuration");
     this.nbDataContainer.SetTabLabel(w25, this.label4);
     this.label4.ShowAll();
     this.hpaned1.Add(this.nbDataContainer);
     Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbDataContainer]));
     w26.Resize = false;
     w26.Shrink = false;
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w27.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.fixed1 = new Gtk.Fixed();
     this.fixed1.HeightRequest = 60;
     this.fixed1.Name          = "fixed1";
     this.fixed1.HasWindow     = false;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hsVolume = new Gtk.HScale(null);
     this.hsVolume.TooltipMarkup            = "Volume";
     this.hsVolume.WidthRequest             = 120;
     this.hsVolume.CanFocus                 = true;
     this.hsVolume.Name                     = "hsVolume";
     this.hsVolume.Adjustment.Upper         = 100;
     this.hsVolume.Adjustment.PageIncrement = 10;
     this.hsVolume.Adjustment.StepIncrement = 1;
     this.hsVolume.Adjustment.Value         = 51.8987341772152;
     this.hsVolume.DrawValue                = false;
     this.hsVolume.Digits                   = 0;
     this.hsVolume.ValuePos                 = ((Gtk.PositionType)(2));
     this.fixed1.Add(this.hsVolume);
     Gtk.Fixed.FixedChild w28 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsVolume]));
     w28.X = 730;
     w28.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hsProgress = new Gtk.HScale(null);
     this.hsProgress.TooltipMarkup            = "Progress";
     this.hsProgress.WidthRequest             = 420;
     this.hsProgress.CanFocus                 = true;
     this.hsProgress.Name                     = "hsProgress";
     this.hsProgress.Adjustment.Upper         = 100;
     this.hsProgress.Adjustment.PageIncrement = 10;
     this.hsProgress.Adjustment.StepIncrement = 1;
     this.hsProgress.DrawValue                = false;
     this.hsProgress.Digits                   = 0;
     this.hsProgress.ValuePos                 = ((Gtk.PositionType)(2));
     this.fixed1.Add(this.hsProgress);
     Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsProgress]));
     w29.X = 300;
     w29.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.tbMute = new Gtk.ToggleButton();
     this.tbMute.TooltipMarkup = "Toggle Mute";
     this.tbMute.WidthRequest  = 32;
     this.tbMute.HeightRequest = 32;
     this.tbMute.CanFocus      = true;
     this.tbMute.Name          = "tbMute";
     this.tbMute.UseUnderline  = true;
     // Container child tbMute.Gtk.Container+ContainerChild
     Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w31 = new Gtk.HBox();
     w31.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w32 = new Gtk.Image();
     w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume-mute", Gtk.IconSize.Button, 20);
     w31.Add(w32);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w34 = new Gtk.Label();
     w31.Add(w34);
     w30.Add(w31);
     this.tbMute.Add(w30);
     this.fixed1.Add(this.tbMute);
     Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbMute]));
     w38.X = 850;
     w38.Y = 8;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bPrevious = new Gtk.Button();
     this.bPrevious.TooltipMarkup = "Previous";
     this.bPrevious.WidthRequest  = 35;
     this.bPrevious.HeightRequest = 35;
     this.bPrevious.CanFocus      = true;
     this.bPrevious.Name          = "bPrevious";
     this.bPrevious.UseUnderline  = true;
     // Container child bPrevious.Gtk.Container+ContainerChild
     Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w40 = new Gtk.HBox();
     w40.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w41 = new Gtk.Image();
     w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.LargeToolbar, 24);
     w40.Add(w41);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w43 = new Gtk.Label();
     w40.Add(w43);
     w39.Add(w40);
     this.bPrevious.Add(w39);
     this.fixed1.Add(this.bPrevious);
     Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPrevious]));
     w47.X = 14;
     w47.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.tbPlay = new Gtk.ToggleButton();
     this.tbPlay.TooltipMarkup = "Play";
     this.tbPlay.WidthRequest  = 35;
     this.tbPlay.HeightRequest = 35;
     this.tbPlay.CanFocus      = true;
     this.tbPlay.Name          = "tbPlay";
     this.tbPlay.UseUnderline  = true;
     // Container child tbPlay.Gtk.Container+ContainerChild
     Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w49 = new Gtk.HBox();
     w49.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w50 = new Gtk.Image();
     w50.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.LargeToolbar, 24);
     w49.Add(w50);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w52 = new Gtk.Label();
     w49.Add(w52);
     w48.Add(w49);
     this.tbPlay.Add(w48);
     this.fixed1.Add(this.tbPlay);
     Gtk.Fixed.FixedChild w56 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbPlay]));
     w56.X = 46;
     w56.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.tbStop = new Gtk.ToggleButton();
     this.tbStop.TooltipMarkup = "Stop";
     this.tbStop.WidthRequest  = 35;
     this.tbStop.HeightRequest = 35;
     this.tbStop.CanFocus      = true;
     this.tbStop.Name          = "tbStop";
     this.tbStop.UseUnderline  = true;
     // Container child tbStop.Gtk.Container+ContainerChild
     Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w58 = new Gtk.HBox();
     w58.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w59 = new Gtk.Image();
     w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.LargeToolbar, 24);
     w58.Add(w59);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w61 = new Gtk.Label();
     w58.Add(w61);
     w57.Add(w58);
     this.tbStop.Add(w57);
     this.fixed1.Add(this.tbStop);
     Gtk.Fixed.FixedChild w65 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbStop]));
     w65.X = 78;
     w65.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bNext = new Gtk.Button();
     this.bNext.TooltipMarkup = "Next";
     this.bNext.WidthRequest  = 35;
     this.bNext.HeightRequest = 35;
     this.bNext.CanFocus      = true;
     this.bNext.Name          = "bNext";
     this.bNext.UseUnderline  = true;
     // Container child bNext.Gtk.Container+ContainerChild
     Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w67 = new Gtk.HBox();
     w67.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w68 = new Gtk.Image();
     w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.LargeToolbar, 24);
     w67.Add(w68);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w70 = new Gtk.Label();
     w67.Add(w70);
     w66.Add(w67);
     this.bNext.Add(w66);
     this.fixed1.Add(this.bNext);
     Gtk.Fixed.FixedChild w74 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bNext]));
     w74.X = 110;
     w74.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bRepeat = new Gtk.Button();
     this.bRepeat.TooltipMarkup = "Toggle Repeat Modes";
     this.bRepeat.WidthRequest  = 28;
     this.bRepeat.HeightRequest = 28;
     this.bRepeat.CanFocus      = true;
     this.bRepeat.Name          = "bRepeat";
     this.bRepeat.UseUnderline  = true;
     // Container child bRepeat.Gtk.Container+ContainerChild
     Gtk.Alignment w75 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w76 = new Gtk.HBox();
     w76.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w77 = new Gtk.Image();
     w77.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-redo", Gtk.IconSize.Menu, 16);
     w76.Add(w77);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w79 = new Gtk.Label();
     w76.Add(w79);
     w75.Add(w76);
     this.bRepeat.Add(w75);
     this.fixed1.Add(this.bRepeat);
     Gtk.Fixed.FixedChild w83 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bRepeat]));
     w83.X = 160;
     w83.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bShuffle = new Gtk.Button();
     this.bShuffle.TooltipMarkup = "Toggle Shuffel Mode";
     this.bShuffle.WidthRequest  = 28;
     this.bShuffle.HeightRequest = 28;
     this.bShuffle.CanFocus      = true;
     this.bShuffle.Name          = "bShuffle";
     this.bShuffle.UseUnderline  = true;
     // Container child bShuffle.Gtk.Container+ContainerChild
     Gtk.Alignment w84 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w85 = new Gtk.HBox();
     w85.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w86 = new Gtk.Image();
     w86.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_chart-toggle-legend", Gtk.IconSize.Menu, 16);
     w85.Add(w86);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w88 = new Gtk.Label();
     w85.Add(w88);
     w84.Add(w85);
     this.bShuffle.Add(w84);
     this.fixed1.Add(this.bShuffle);
     Gtk.Fixed.FixedChild w92 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bShuffle]));
     w92.X = 185;
     w92.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bPartyMode = new Gtk.Button();
     this.bPartyMode.TooltipMarkup = "Toggle Party Mode";
     this.bPartyMode.WidthRequest  = 28;
     this.bPartyMode.HeightRequest = 28;
     this.bPartyMode.CanFocus      = true;
     this.bPartyMode.Name          = "bPartyMode";
     this.bPartyMode.UseUnderline  = true;
     // Container child bPartyMode.Gtk.Container+ContainerChild
     Gtk.Alignment w93 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w94 = new Gtk.HBox();
     w94.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w95 = new Gtk.Image();
     w95.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_filters", Gtk.IconSize.Menu, 16);
     w94.Add(w95);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w97 = new Gtk.Label();
     w94.Add(w97);
     w93.Add(w94);
     this.bPartyMode.Add(w93);
     this.fixed1.Add(this.bPartyMode);
     Gtk.Fixed.FixedChild w101 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPartyMode]));
     w101.X = 210;
     w101.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.imgLoading = new Gtk.Image();
     this.imgLoading.TooltipMarkup = "Loading data...";
     this.imgLoading.Name          = "imgLoading";
     this.imgLoading.Pixbuf        = Stetic.IconLoader.LoadIcon(this, "gtk-jump-to", Gtk.IconSize.LargeToolbar, 24);
     this.fixed1.Add(this.imgLoading);
     Gtk.Fixed.FixedChild w102 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.imgLoading]));
     w102.X = 255;
     w102.Y = 13;
     this.vbox1.Add(this.fixed1);
     Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox1[this.fixed1]));
     w103.Position = 2;
     w103.Expand   = false;
     w103.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.DeleteEvent                       += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.QuitAction.Activated              += new System.EventHandler(this.OnExit);
     this.MusicAction.Activated             += new System.EventHandler(this.click_UpdateMusicLibrary);
     this.VideoAction.Activated             += new System.EventHandler(this.click_UpdateVideoLibrary);
     this.clearAction.Activated             += new System.EventHandler(this.aClearPlaylist_click);
     this.aRefreshPlaylist.Activated        += new System.EventHandler(this.aRefreshPlaylist_activated);
     this.aRemoveSelected.Activated         += new System.EventHandler(this.aRemoveSelected_activated);
     this.aPlaySelected.Activated           += new System.EventHandler(this.aPlaySelected_activated);
     this.cbShareType.Changed               += new System.EventHandler(this.cbShareBrowser_changed);
     this.tvShareBrowser.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvShareBrowser_release);
     this.cbPlaylistType.Changed            += new System.EventHandler(this.cbPlaylistType_changed);
     this.tvPlaylist.ButtonReleaseEvent     += new Gtk.ButtonReleaseEventHandler(this.tvPlaylist_buttonRelease);
     this.hsVolume.ValueChanged             += new System.EventHandler(this.hsVolume_valueChanged);
     this.hsProgress.ChangeValue            += new Gtk.ChangeValueHandler(this.hsProgress_changeValue);
     this.tbMute.Released                   += new System.EventHandler(this.tbMute_released);
     this.bPrevious.Released                += new System.EventHandler(this.bPrevious_released);
     this.tbPlay.Released                   += new System.EventHandler(this.tbPlay_released);
     this.tbStop.Released                   += new System.EventHandler(this.tbStop_released);
     this.bNext.Released                    += new System.EventHandler(this.bNext_released);
     this.bRepeat.Activated                 += new System.EventHandler(this.bRepeat_click);
     this.bShuffle.Released                 += new System.EventHandler(this.bShuffle_release);
     this.bPartyMode.Released               += new System.EventHandler(this.bPartyMode_released);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget LunarEclipse.View.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w1.Add(this.FileAction, null);
     this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Abrir"), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Abrir");
     w1.Add(this.OpenAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Nuevo"), null, "gtk-new");
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Nuevo");
     w1.Add(this.NewAction, null);
     this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Guardar"), null, "gtk-save");
     this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Guardar");
     w1.Add(this.SaveAction, null);
     this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Guardar _como"), null, "gtk-save-as");
     this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Guardar _como");
     w1.Add(this.SaveAsAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Salir"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Salir");
     w1.Add(this.QuitAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit");
     w1.Add(this.EditAction, null);
     this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("_Tools"), null, null);
     this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Tools");
     w1.Add(this.ToolsAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w1.Add(this.HelpAction, null);
     this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo");
     this.UndoAction.Sensitive = false;
     this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer");
     w1.Add(this.UndoAction, "<Control>z");
     this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo");
     this.RedoAction.Sensitive = false;
     this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer");
     w1.Add(this.RedoAction, "<Control>y");
     this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cor_tar"), null, "gtk-cut");
     this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cor_tar");
     w1.Add(this.CutAction, null);
     this.CopiarAction = new Gtk.Action("CopiarAction", Mono.Unix.Catalog.GetString("_Copiar"), null, "gtk-copy");
     this.CopiarAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copiar");
     w1.Add(this.CopiarAction, null);
     this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Pegar"), null, "gtk-paste");
     this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pegar");
     w1.Add(this.PasteAction, null);
     this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Borrar"), null, "gtk-delete");
     this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Borrar");
     w1.Add(this.DeleteAction, "<Mod2>Delete");
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("Acerca _de"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("Acerca _de");
     w1.Add(this.AboutAction, null);
     this.SelectionToolAction = new Gtk.RadioAction("SelectionToolAction", Mono.Unix.Catalog.GetString("_Selection Tool"), null, "selection-tool", 0);
     this.SelectionToolAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.SelectionToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Selection Tool");
     w1.Add(this.SelectionToolAction, null);
     this.RectangleToolAction = new Gtk.RadioAction("RectangleToolAction", Mono.Unix.Catalog.GetString("_Rectangle Tool"), null, "rectangle-tool", 0);
     this.RectangleToolAction.Group = this.SelectionToolAction.Group;
     this.RectangleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rectangle Tool");
     w1.Add(this.RectangleToolAction, null);
     this.SquareToolAction = new Gtk.RadioAction("SquareToolAction", Mono.Unix.Catalog.GetString("S_quare Tool"), null, "square-tool", 0);
     this.SquareToolAction.Group = this.RectangleToolAction.Group;
     this.SquareToolAction.ShortLabel = Mono.Unix.Catalog.GetString("S_quare Tool");
     w1.Add(this.SquareToolAction, null);
     this.EllipseToolAction = new Gtk.RadioAction("EllipseToolAction", Mono.Unix.Catalog.GetString("_Ellipse Tool"), null, "ellipse-tool", 0);
     this.EllipseToolAction.Group = this.RectangleToolAction.Group;
     this.EllipseToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Ellipse Tool");
     w1.Add(this.EllipseToolAction, null);
     this.CircleToolAction = new Gtk.RadioAction("CircleToolAction", Mono.Unix.Catalog.GetString("_Circle Tool"), null, "circle-tool", 0);
     this.CircleToolAction.Group = this.EllipseToolAction.Group;
     this.CircleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Circle Tool");
     w1.Add(this.CircleToolAction, null);
     this.PathToolAction = new Gtk.RadioAction("PathToolAction", Mono.Unix.Catalog.GetString("_Path Tool"), null, "path-tool", 0);
     this.PathToolAction.Group = this.CircleToolAction.Group;
     this.PathToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Path Tool");
     w1.Add(this.PathToolAction, null);
     this.TextToolAction = new Gtk.RadioAction("TextToolAction", Mono.Unix.Catalog.GetString("_Text Tool"), null, "text-tool", 0);
     this.TextToolAction.Group = this.CircleToolAction.Group;
     this.TextToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Text Tool");
     w1.Add(this.TextToolAction, null);
     this.ImageToolAction = new Gtk.RadioAction("ImageToolAction", Mono.Unix.Catalog.GetString("Image Tool"), null, "image-tool", 0);
     this.ImageToolAction.Group = this.CircleToolAction.Group;
     this.ImageToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Image Tool");
     w1.Add(this.ImageToolAction, null);
     this.AnimationAction = new Gtk.Action("AnimationAction", Mono.Unix.Catalog.GetString("_Animation"), null, null);
     this.AnimationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Animation");
     w1.Add(this.AnimationAction, null);
     this.RecordAction = new Gtk.Action("RecordAction", Mono.Unix.Catalog.GetString("_Grabar"), null, "gtk-media-record");
     this.RecordAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grabar");
     w1.Add(this.RecordAction, null);
     this.ReproducirAction = new Gtk.Action("ReproducirAction", Mono.Unix.Catalog.GetString("_Reproducir"), null, "gtk-media-play");
     this.ReproducirAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reproducir");
     w1.Add(this.ReproducirAction, null);
     this.StopAction = new Gtk.Action("StopAction", Mono.Unix.Catalog.GetString("_Detener"), null, "gtk-media-stop");
     this.StopAction.ShortLabel = Mono.Unix.Catalog.GetString("_Detener");
     w1.Add(this.StopAction, null);
     this.LineToolAction = new Gtk.RadioAction("LineToolAction", Mono.Unix.Catalog.GetString("_Line Tool"), null, "line-tool", 0);
     this.LineToolAction.Group = this.CircleToolAction.Group;
     this.LineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Line Tool");
     w1.Add(this.LineToolAction, null);
     this.DrawingAction = new Gtk.Action("DrawingAction", Mono.Unix.Catalog.GetString("Drawing"), null, null);
     this.DrawingAction.ShortLabel = Mono.Unix.Catalog.GetString("Drawing");
     w1.Add(this.DrawingAction, null);
     this.CleanAction = new Gtk.Action("CleanAction", Mono.Unix.Catalog.GetString("_Limpiar"), null, "gtk-clear");
     this.CleanAction.ShortLabel = Mono.Unix.Catalog.GetString("_Limpiar");
     w1.Add(this.CleanAction, null);
     this.PolylineToolAction = new Gtk.RadioAction("PolylineToolAction", Mono.Unix.Catalog.GetString("Polyline Tool"), null, "polyline-tool", 0);
     this.PolylineToolAction.Group = this.CircleToolAction.Group;
     this.PolylineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Polyline Tool");
     w1.Add(this.PolylineToolAction, null);
     this.PenToolAction = new Gtk.RadioAction("PenToolAction", Mono.Unix.Catalog.GetString("P_en Tool"), null, "pen-tool", 0);
     this.PenToolAction.Group = this.CircleToolAction.Group;
     this.PenToolAction.ShortLabel = Mono.Unix.Catalog.GetString("P_en Tool");
     w1.Add(this.PenToolAction, null);
     this.debug1 = new Gtk.Action("debug1", null, Mono.Unix.Catalog.GetString("Debug"), "gtk-dialog-warning");
     w1.Add(this.debug1, null);
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Fi_gures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Fi_gure");
     w1.Add(this.FiguresAction, null);
     this.OrderAction = new Gtk.Action("OrderAction", Mono.Unix.Catalog.GetString("Order"), null, null);
     this.OrderAction.ShortLabel = Mono.Unix.Catalog.GetString("Order");
     w1.Add(this.OrderAction, null);
     this.AlignAction = new Gtk.Action("AlignAction", Mono.Unix.Catalog.GetString("_Align"), null, null);
     this.AlignAction.ShortLabel = Mono.Unix.Catalog.GetString("_Align");
     w1.Add(this.AlignAction, null);
     this.BringToFrontAction = new Gtk.Action("BringToFrontAction", Mono.Unix.Catalog.GetString("Bring to _Front"), null, "gtk-goto-top");
     this.BringToFrontAction.Sensitive = false;
     this.BringToFrontAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring to _Front");
     w1.Add(this.BringToFrontAction, null);
     this.SendToBackAction = new Gtk.Action("SendToBackAction", Mono.Unix.Catalog.GetString("Send to _Back"), null, "gtk-goto-bottom");
     this.SendToBackAction.Sensitive = false;
     this.SendToBackAction.ShortLabel = Mono.Unix.Catalog.GetString("Send to _Back");
     w1.Add(this.SendToBackAction, null);
     this.BringForwardsAction = new Gtk.Action("BringForwardsAction", Mono.Unix.Catalog.GetString("Bring Forwards"), null, "gtk-go-up");
     this.BringForwardsAction.Sensitive = false;
     this.BringForwardsAction.ShortLabel = Mono.Unix.Catalog.GetString("Send Forwards");
     w1.Add(this.BringForwardsAction, null);
     this.SendBackwarsAction = new Gtk.Action("SendBackwarsAction", Mono.Unix.Catalog.GetString("Send Backwars"), null, "gtk-go-down");
     this.SendBackwarsAction.Sensitive = false;
     this.SendBackwarsAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring Backwars");
     w1.Add(this.SendBackwarsAction, null);
     this.LeftAction = new Gtk.Action("LeftAction", Mono.Unix.Catalog.GetString("Left"), null, null);
     this.LeftAction.ShortLabel = Mono.Unix.Catalog.GetString("Left");
     w1.Add(this.LeftAction, null);
     this.HorizontalCenterAction = new Gtk.Action("HorizontalCenterAction", Mono.Unix.Catalog.GetString("Horizontal Center"), null, null);
     this.HorizontalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Center");
     w1.Add(this.HorizontalCenterAction, null);
     this.RightAction = new Gtk.Action("RightAction", Mono.Unix.Catalog.GetString("Right"), null, null);
     this.RightAction.ShortLabel = Mono.Unix.Catalog.GetString("Right");
     w1.Add(this.RightAction, null);
     this.TopAction = new Gtk.Action("TopAction", Mono.Unix.Catalog.GetString("Top"), null, null);
     this.TopAction.ShortLabel = Mono.Unix.Catalog.GetString("Top");
     w1.Add(this.TopAction, null);
     this.VerticalCenterAction = new Gtk.Action("VerticalCenterAction", Mono.Unix.Catalog.GetString("Vertical Center"), null, null);
     this.VerticalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Middle");
     w1.Add(this.VerticalCenterAction, null);
     this.BottomAction = new Gtk.Action("BottomAction", Mono.Unix.Catalog.GetString("Bottom"), null, null);
     this.BottomAction.ShortLabel = Mono.Unix.Catalog.GetString("Bottom");
     w1.Add(this.BottomAction, null);
     this.debug2 = new Gtk.Action("debug2", null, Mono.Unix.Catalog.GetString("Debug2"), "gtk-dialog-error");
     w1.Add(this.debug2, null);
     this.CloneAction = new Gtk.Action("CloneAction", Mono.Unix.Catalog.GetString("Cl_one"), null, null);
     this.CloneAction.ShortLabel = Mono.Unix.Catalog.GetString("Clone");
     w1.Add(this.CloneAction, null);
     this.SelectAllAction = new Gtk.Action("SelectAllAction", Mono.Unix.Catalog.GetString("_Select All"), null, null);
     this.SelectAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Select All");
     w1.Add(this.SelectAllAction, "<Control><Mod2>a");
     this.ClearSelectionAction = new Gtk.Action("ClearSelectionAction", Mono.Unix.Catalog.GetString("Clear S_election"), null, null);
     this.ClearSelectionAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear S_election");
     w1.Add(this.ClearSelectionAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "LunarEclipse.View.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Lunar Eclipse");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 800;
     // Container child LunarEclipse.View.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/><separator/><menuitem name='CutAction' action='CutAction'/><menuitem name='CopiarAction' action='CopiarAction'/><menuitem name='PasteAction' action='PasteAction'/><menuitem name='CloneAction' action='CloneAction'/><menuitem name='DeleteAction' action='DeleteAction'/><separator/><menuitem name='SelectAllAction' action='SelectAllAction'/><menuitem name='ClearSelectionAction' action='ClearSelectionAction'/></menu><menu name='DrawingAction' action='DrawingAction'><menuitem name='CleanAction' action='CleanAction'/></menu><menu name='FiguresAction' action='FiguresAction'><menu name='OrderAction' action='OrderAction'><menuitem name='BringToFrontAction' action='BringToFrontAction'/><menuitem name='BringForwardsAction' action='BringForwardsAction'/><menuitem name='SendToBackAction' action='SendToBackAction'/><menuitem name='SendBackwarsAction' action='SendBackwarsAction'/></menu><menu name='AlignAction' action='AlignAction'><menuitem name='LeftAction' action='LeftAction'/><menuitem name='HorizontalCenterAction' action='HorizontalCenterAction'/><menuitem name='RightAction' action='RightAction'/><separator/><menuitem name='TopAction' action='TopAction'/><menuitem name='VerticalCenterAction' action='VerticalCenterAction'/><menuitem name='BottomAction' action='BottomAction'/></menu></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='SelectionToolAction' action='SelectionToolAction'/><menuitem name='RectangleToolAction' action='RectangleToolAction'/><menuitem name='SquareToolAction' action='SquareToolAction'/><menuitem name='EllipseToolAction' action='EllipseToolAction'/><menuitem name='CircleToolAction' action='CircleToolAction'/><menuitem name='LineToolAction' action='LineToolAction'/><menuitem name='PolylineToolAction' action='PolylineToolAction'/><menuitem name='PenToolAction' action='PenToolAction'/><menuitem name='PathToolAction' action='PathToolAction'/><menuitem name='TextToolAction' action='TextToolAction'/><menuitem name='ImageToolAction' action='ImageToolAction'/></menu><menu name='AnimationAction' action='AnimationAction'><menuitem name='StopAction' action='StopAction'/><menuitem name='ReproducirAction' action='ReproducirAction'/><menuitem name='RecordAction' action='RecordAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='NewAction' action='NewAction'/><toolitem name='OpenAction' action='OpenAction'/><toolitem name='SaveAction' action='SaveAction'/><separator/><toolitem name='UndoAction' action='UndoAction'/><toolitem name='RedoAction' action='RedoAction'/><separator/><toolitem name='CutAction' action='CutAction'/><toolitem name='CopiarAction' action='CopiarAction'/><toolitem name='PasteAction' action='PasteAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     this.notebook.TabPos = ((Gtk.PositionType)(3));
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar2'><toolitem name='SelectionToolAction' action='SelectionToolAction'/><toolitem name='SquareToolAction' action='SquareToolAction'/><toolitem name='RectangleToolAction' action='RectangleToolAction'/><toolitem name='CircleToolAction' action='CircleToolAction'/><toolitem name='EllipseToolAction' action='EllipseToolAction'/><toolitem name='LineToolAction' action='LineToolAction'/><toolitem name='PolylineToolAction' action='PolylineToolAction'/><toolitem name='PathToolAction' action='PathToolAction'/><toolitem name='PenToolAction' action='PenToolAction'/><toolitem name='TextToolAction' action='TextToolAction'/><separator/><toolitem name='CleanAction' action='CleanAction'/><toolitem name='debug1' action='debug1'/><toolitem name='debug2' action='debug2'/></toolbar></ui>");
     this.toolbar2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2")));
     this.toolbar2.Name = "toolbar2";
     this.toolbar2.Orientation = ((Gtk.Orientation)(1));
     this.toolbar2.ShowArrow = false;
     this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.hbox2.Add(this.toolbar2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.toolbar2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 842;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(0));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(0));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w5 = new Gtk.Viewport();
     w5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.moonlightwidget = new LunarEclipse.View.MoonlightWidget();
     this.moonlightwidget.Events = ((Gdk.EventMask)(256));
     this.moonlightwidget.Name = "moonlightwidget";
     this.moonlightwidget.Height = 800;
     this.moonlightwidget.Width = 800;
     w5.Add(this.moonlightwidget);
     this.scrolledwindow1.Add(w5);
     this.vbox3.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1]));
     w8.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Zoom:");
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w9.Position = 0;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.zoomScale = new Gtk.HScale(null);
     this.zoomScale.CanFocus = true;
     this.zoomScale.Name = "zoomScale";
     this.zoomScale.Adjustment.Upper = 500;
     this.zoomScale.Adjustment.PageIncrement = 10;
     this.zoomScale.Adjustment.StepIncrement = 1;
     this.zoomScale.Adjustment.Value = 100;
     this.zoomScale.DrawValue = true;
     this.zoomScale.Digits = 0;
     this.zoomScale.ValuePos = ((Gtk.PositionType)(2));
     this.hbox3.Add(this.zoomScale);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.zoomScale]));
     w10.Position = 1;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     this.hpaned1.Add(this.vbox3);
     Gtk.Paned.PanedChild w12 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox3]));
     w12.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.propertypanel = new LunarEclipse.View.PropertyPanel();
     this.propertypanel.Events = ((Gdk.EventMask)(256));
     this.propertypanel.Name = "propertypanel";
     this.hpaned1.Add(this.propertypanel);
     Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.propertypanel]));
     w13.Resize = false;
     this.vbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1]));
     w14.Position = 0;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w15.Position = 1;
     this.notebook.Add(this.hbox2);
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Design");
     this.notebook.SetTabLabel(this.hbox2, this.label2);
     this.label2.ShowAll();
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w17 = new Gtk.Viewport();
     w17.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.xaml_textview = new Gtk.TextView();
     this.xaml_textview.CanFocus = true;
     this.xaml_textview.Name = "xaml_textview";
     w17.Add(this.xaml_textview);
     this.scrolledwindow2.Add(w17);
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w20.Position = 1;
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Xaml Code");
     this.notebook.SetTabLabel(this.scrolledwindow2, this.label1);
     this.label1.ShowAll();
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w21.Position = 2;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultHeight = 729;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
     this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
     this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated);
     this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
     this.CutAction.Activated += new System.EventHandler(this.OnCutActionActivated);
     this.CopiarAction.Activated += new System.EventHandler(this.OnCopyActionActivated);
     this.PasteAction.Activated += new System.EventHandler(this.OnPasteActionActivated);
     this.DeleteAction.Activated += new System.EventHandler(this.OnDeleteActionActivated);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.SelectionToolAction.Activated += new System.EventHandler(this.OnSelectionToolActionActivated);
     this.RectangleToolAction.Activated += new System.EventHandler(this.OnRectangleToolActionActivated);
     this.SquareToolAction.Activated += new System.EventHandler(this.OnSquareToolActionActivated);
     this.EllipseToolAction.Activated += new System.EventHandler(this.OnEllipseToolActionActivated);
     this.CircleToolAction.Activated += new System.EventHandler(this.OnCircleToolActionActivated);
     this.PathToolAction.Activated += new System.EventHandler(this.OnPathToolActionActivated);
     this.TextToolAction.Activated += new System.EventHandler(this.OnTextToolActionActivated);
     this.ImageToolAction.Activated += new System.EventHandler(this.OnImageToolActionActivated);
     this.LineToolAction.Activated += new System.EventHandler(this.OnLineToolActionActivated);
     this.CleanAction.Activated += new System.EventHandler(this.OnLimpiarActionActivated);
     this.PolylineToolAction.Activated += new System.EventHandler(this.OnPolylineToolActionActivated);
     this.PenToolAction.Activated += new System.EventHandler(this.OnPenToolActionActivated);
     this.debug1.Activated += new System.EventHandler(this.OnDebug1Activated);
     this.BringToFrontAction.Activated += new System.EventHandler(this.OnBringToFrontActionActivated);
     this.SendToBackAction.Activated += new System.EventHandler(this.OnSendToBackActionActivated);
     this.BringForwardsAction.Activated += new System.EventHandler(this.OnBringForwardsActionActivated);
     this.SendBackwarsAction.Activated += new System.EventHandler(this.OnSendBackwarsActionActivated);
     this.LeftAction.Activated += new System.EventHandler(this.OnLeftActionActivated);
     this.HorizontalCenterAction.Activated += new System.EventHandler(this.OnHorizontalCenterActionActivated);
     this.RightAction.Activated += new System.EventHandler(this.OnRightActionActivated);
     this.TopAction.Activated += new System.EventHandler(this.OnTopActionActivated);
     this.VerticalCenterAction.Activated += new System.EventHandler(this.OnVerticalCenterActionActivated);
     this.BottomAction.Activated += new System.EventHandler(this.OnBottomActionActivated);
     this.debug2.Activated += new System.EventHandler(this.OnDebug2Activated);
     this.CloneAction.Activated += new System.EventHandler(this.OnCloneActionActivated);
     this.SelectAllAction.Activated += new System.EventHandler(this.OnSelectAllActionActivated);
     this.ClearSelectionAction.Activated += new System.EventHandler(this.OnClearSelectionActionActivated);
     this.notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebookSwitchPage);
     this.zoomScale.ValueChanged += new System.EventHandler(this.OnZoomScaleValueChanged);
 }
Example #38
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.File            = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.File, null);
     this.Exit            = new Gtk.Action("Exit", Mono.Unix.Catalog.GetString("Exit"), null, null);
     this.Exit.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit, null);
     this.Run            = new Gtk.Action("Run", Mono.Unix.Catalog.GetString("Run"), null, null);
     this.Run.ShortLabel = Mono.Unix.Catalog.GetString("Run");
     w2.Add(this.Run, null);
     this.MotionModel            = new Gtk.Action("MotionModel", Mono.Unix.Catalog.GetString("Motion Model"), null, null);
     this.MotionModel.ShortLabel = Mono.Unix.Catalog.GetString("Motion Model");
     w2.Add(this.MotionModel, null);
     this.SingleStereoRayModel            = new Gtk.Action("SingleStereoRayModel", Mono.Unix.Catalog.GetString("Single Stereo Ray Model"), null, null);
     this.SingleStereoRayModel.ShortLabel = Mono.Unix.Catalog.GetString("Single Stereo Ray Model");
     w2.Add(this.SingleStereoRayModel, null);
     this.StereoRaysAtVariousRanges            = new Gtk.Action("StereoRaysAtVariousRanges", Mono.Unix.Catalog.GetString("Stereo Rays at various ranges"), null, null);
     this.StereoRaysAtVariousRanges.ShortLabel = Mono.Unix.Catalog.GetString("Stereo Rays at various ranges");
     w2.Add(this.StereoRaysAtVariousRanges, null);
     this.GaussianFunction            = new Gtk.Action("GaussianFunction", Mono.Unix.Catalog.GetString("Gaussian Function"), null, null);
     this.GaussianFunction.ShortLabel = Mono.Unix.Catalog.GetString("Gaussian Function");
     w2.Add(this.GaussianFunction, null);
     this.SensorModelLookupGraphs            = new Gtk.Action("SensorModelLookupGraphs", Mono.Unix.Catalog.GetString("Sensor Model lookup graphs"), null, null);
     this.SensorModelLookupGraphs.ShortLabel = Mono.Unix.Catalog.GetString("Sensor Model lookup graphs");
     w2.Add(this.SensorModelLookupGraphs, null);
     this.PathPlanner            = new Gtk.Action("PathPlanner", Mono.Unix.Catalog.GetString("Path Planner"), null, null);
     this.PathPlanner.ShortLabel = Mono.Unix.Catalog.GetString("Path Planner");
     w2.Add(this.PathPlanner, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Sentience test programs");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='Run'><menuitem action='MotionModel'/><menuitem action='SingleStereoRayModel'/><menuitem action='StereoRaysAtVariousRanges'/><menuitem action='GaussianFunction'/><menuitem action='SensorModelLookupGraphs'/><menuitem action='PathPlanner'/></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.imgOutput      = new Gtk.Image();
     this.imgOutput.Name = "imgOutput";
     this.vbox1.Add(this.imgOutput);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.imgOutput]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 622;
     this.DefaultHeight = 485;
     this.Show();
     this.DeleteEvent                         += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.MotionModel.Activated               += new System.EventHandler(this.OnMotionModelActivated);
     this.SingleStereoRayModel.Activated      += new System.EventHandler(this.OnSingleStereoRayModelActivated);
     this.StereoRaysAtVariousRanges.Activated += new System.EventHandler(this.OnStereoRaysAtVariousRangesActivated);
     this.GaussianFunction.Activated          += new System.EventHandler(this.OnGaussianFunctionActivated);
     this.SensorModelLookupGraphs.Activated   += new System.EventHandler(this.OnSensorModelLookupGraphsActivated);
     this.PathPlanner.Activated               += new System.EventHandler(this.OnPathPlannerActivated);
 }
 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);
 }
 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);
         }
     }
 }
Example #41
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();
     // Widget MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.Options            = new Gtk.Action("Options", Mono.Unix.Catalog.GetString("Options"), null, "gtk-preferences");
     this.Options.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.Options, null);
     this.AddFolder            = new Gtk.Action("AddFolder", Mono.Unix.Catalog.GetString("Add Folder"), null, "gtk-open");
     this.AddFolder.ShortLabel = Mono.Unix.Catalog.GetString("Add Folder");
     w2.Add(this.AddFolder, null);
     this.NewCollection            = new Gtk.Action("NewCollection", Mono.Unix.Catalog.GetString("New Collection"), null, "gtk-new");
     this.NewCollection.ShortLabel = Mono.Unix.Catalog.GetString("New Collection");
     w2.Add(this.NewCollection, null);
     this.Preferences            = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-preferences");
     this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("Options");
     w2.Add(this.Preferences, null);
     this.Exit1            = new Gtk.Action("Exit1", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit");
     this.Exit1.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit1, null);
     this.Update            = new Gtk.Action("Update", Mono.Unix.Catalog.GetString("Update"), null, "gtk-dialog-warning");
     this.Update.ShortLabel = Mono.Unix.Catalog.GetString("Update");
     w2.Add(this.Update, null);
     this.Exit2            = new Gtk.ToggleAction("Exit2", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit");
     this.Exit2.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
     w2.Add(this.Exit2, null);
     this.AddFile            = new Gtk.Action("AddFile", Mono.Unix.Catalog.GetString("Add File"), null, "gtk-add");
     this.AddFile.ShortLabel = Mono.Unix.Catalog.GetString("Add File");
     w2.Add(this.AddFile, 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.About3            = new Gtk.Action("About3", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
     this.About3.ShortLabel = Mono.Unix.Catalog.GetString("_About");
     w2.Add(this.About3, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.WidthRequest   = 360;
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Mp3 Player");
     this.Icon           = Stetic.IconLoader.LoadIcon("stock_headphones", 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable      = false;
     this.AllowGrow      = false;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.MainFixedWindow = new Gtk.Fixed();
     this.MainFixedWindow.WidthRequest  = 0;
     this.MainFixedWindow.HeightRequest = 640;
     this.MainFixedWindow.Name          = "MainFixedWindow";
     this.MainFixedWindow.HasWindow     = false;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.bottomStatusBar = new Gtk.Statusbar();
     this.bottomStatusBar.WidthRequest  = 363;
     this.bottomStatusBar.HeightRequest = 17;
     this.bottomStatusBar.Name          = "bottomStatusBar";
     this.bottomStatusBar.Spacing       = 6;
     this.MainFixedWindow.Add(this.bottomStatusBar);
     Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.bottomStatusBar]));
     w3.X = 1;
     w3.Y = 624;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     w1.AddUiFromString("<ui><menubar name='menubar'><menu action='Options'><menuitem action='NewCollection'/><menuitem action='AddFolder'/><menuitem action='AddFile'/><menuitem action='Preferences'/><menuitem action='Exit1'/></menu><menu action='About'><menuitem action='About3'/></menu></menubar></ui>");
     this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar")));
     this.menubar.WidthRequest = 370;
     this.menubar.HasDefault   = true;
     this.menubar.CanFocus     = true;
     this.menubar.Name         = "menubar";
     this.MainFixedWindow.Add(this.menubar);
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.musicButtonBox         = new Gtk.HBox();
     this.musicButtonBox.Name    = "musicButtonBox";
     this.musicButtonBox.Spacing = 6;
     // Container child musicButtonBox.Gtk.Box+BoxChild
     this.playButton              = new Gtk.Button();
     this.playButton.CanFocus     = true;
     this.playButton.Name         = "playButton";
     this.playButton.UseUnderline = true;
     // Container child playButton.Gtk.Container+ContainerChild
     Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w5.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w6 = new Gtk.HBox();
     w6.Name    = "GtkHBox";
     w6.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w7 = new Gtk.Image();
     w7.Name   = "image35";
     w7.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-play", 16);
     w6.Add(w7);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w9 = new Gtk.Label();
     w9.Name      = "GtkLabel";
     w9.LabelProp = "";
     w6.Add(w9);
     w5.Add(w6);
     this.playButton.Add(w5);
     this.musicButtonBox.Add(this.playButton);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.playButton]));
     w13.Position = 0;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child musicButtonBox.Gtk.Box+BoxChild
     this.stopButton              = new Gtk.Button();
     this.stopButton.CanFocus     = true;
     this.stopButton.Name         = "stopButton";
     this.stopButton.UseUnderline = true;
     // Container child stopButton.Gtk.Container+ContainerChild
     Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w14.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w15 = new Gtk.HBox();
     w15.Name    = "GtkHBox";
     w15.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w16 = new Gtk.Image();
     w16.Name   = "image36";
     w16.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-stop", 16);
     w15.Add(w16);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w18 = new Gtk.Label();
     w18.Name      = "GtkLabel";
     w18.LabelProp = "";
     w15.Add(w18);
     w14.Add(w15);
     this.stopButton.Add(w14);
     this.musicButtonBox.Add(this.stopButton);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.stopButton]));
     w22.Position = 1;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child musicButtonBox.Gtk.Box+BoxChild
     this.previousButton              = new Gtk.Button();
     this.previousButton.CanFocus     = true;
     this.previousButton.Name         = "previousButton";
     this.previousButton.UseUnderline = true;
     // Container child previousButton.Gtk.Container+ContainerChild
     Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w23.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w24 = new Gtk.HBox();
     w24.Name    = "GtkHBox";
     w24.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w25 = new Gtk.Image();
     w25.Name   = "image37";
     w25.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-prev", 16);
     w24.Add(w25);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w27 = new Gtk.Label();
     w27.Name      = "GtkLabel";
     w27.LabelProp = "";
     w24.Add(w27);
     w23.Add(w24);
     this.previousButton.Add(w23);
     this.musicButtonBox.Add(this.previousButton);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.previousButton]));
     w31.Position = 2;
     w31.Expand   = false;
     w31.Fill     = false;
     // Container child musicButtonBox.Gtk.Box+BoxChild
     this.nextButton              = new Gtk.Button();
     this.nextButton.CanFocus     = true;
     this.nextButton.Name         = "nextButton";
     this.nextButton.UseUnderline = true;
     // Container child nextButton.Gtk.Container+ContainerChild
     Gtk.Alignment w32 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w32.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w33 = new Gtk.HBox();
     w33.Name    = "GtkHBox";
     w33.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w34 = new Gtk.Image();
     w34.Name   = "image38";
     w34.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-next", 16);
     w33.Add(w34);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w36 = new Gtk.Label();
     w36.Name      = "GtkLabel";
     w36.LabelProp = "";
     w33.Add(w36);
     w32.Add(w33);
     this.nextButton.Add(w32);
     this.musicButtonBox.Add(this.nextButton);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.nextButton]));
     w40.Position = 3;
     w40.Expand   = false;
     w40.Fill     = false;
     // Container child musicButtonBox.Gtk.Box+BoxChild
     this.rewindButton              = new Gtk.Button();
     this.rewindButton.CanFocus     = true;
     this.rewindButton.Name         = "rewindButton";
     this.rewindButton.UseUnderline = true;
     // Container child rewindButton.Gtk.Container+ContainerChild
     Gtk.Alignment w41 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w41.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w42 = new Gtk.HBox();
     w42.Name    = "GtkHBox";
     w42.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w43 = new Gtk.Image();
     w43.Name   = "image39";
     w43.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-rew", 16);
     w42.Add(w43);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w45 = new Gtk.Label();
     w45.Name      = "GtkLabel";
     w45.LabelProp = "";
     w42.Add(w45);
     w41.Add(w42);
     this.rewindButton.Add(w41);
     this.musicButtonBox.Add(this.rewindButton);
     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.rewindButton]));
     w49.Position = 4;
     w49.Expand   = false;
     w49.Fill     = false;
     // Container child musicButtonBox.Gtk.Box+BoxChild
     this.fastfoward              = new Gtk.Button();
     this.fastfoward.CanFocus     = true;
     this.fastfoward.Name         = "fastfoward";
     this.fastfoward.UseUnderline = true;
     // Container child fastfoward.Gtk.Container+ContainerChild
     Gtk.Alignment w50 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w50.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w51 = new Gtk.HBox();
     w51.Name    = "GtkHBox";
     w51.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w52 = new Gtk.Image();
     w52.Name   = "image40";
     w52.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-fwd", 16);
     w51.Add(w52);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w54 = new Gtk.Label();
     w54.Name      = "GtkLabel";
     w54.LabelProp = "";
     w51.Add(w54);
     w50.Add(w51);
     this.fastfoward.Add(w50);
     this.musicButtonBox.Add(this.fastfoward);
     Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.fastfoward]));
     w58.Position = 5;
     w58.Expand   = false;
     w58.Fill     = false;
     this.MainFixedWindow.Add(this.musicButtonBox);
     Gtk.Fixed.FixedChild w59 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.musicButtonBox]));
     w59.X = 127;
     w59.Y = 120;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.songProgressBar = new Gtk.ProgressBar();
     this.songProgressBar.WidthRequest = 199;
     this.songProgressBar.Name         = "songProgressBar";
     this.songProgressBar.Text         = Mono.Unix.Catalog.GetString("00:00 / 00:00");
     this.MainFixedWindow.Add(this.songProgressBar);
     Gtk.Fixed.FixedChild w60 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.songProgressBar]));
     w60.X = 132;
     w60.Y = 90;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.volumeScale = new Gtk.HScale(null);
     this.volumeScale.WidthRequest             = 80;
     this.volumeScale.CanFocus                 = true;
     this.volumeScale.Name                     = "volumeScale";
     this.volumeScale.Adjustment.Upper         = 1;
     this.volumeScale.Adjustment.PageIncrement = 0.5;
     this.volumeScale.Adjustment.StepIncrement = 0.1;
     this.volumeScale.Adjustment.Value         = 1;
     this.volumeScale.DrawValue                = false;
     this.volumeScale.Digits                   = 0;
     this.volumeScale.ValuePos                 = ((Gtk.PositionType)(2));
     this.MainFixedWindow.Add(this.volumeScale);
     Gtk.Fixed.FixedChild w61 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeScale]));
     w61.X = 3;
     w61.Y = 126;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.muteButton              = new Gtk.Button();
     this.muteButton.CanFocus     = true;
     this.muteButton.Name         = "muteButton";
     this.muteButton.UseUnderline = true;
     // Container child muteButton.Gtk.Container+ContainerChild
     Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w62.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w63 = new Gtk.HBox();
     w63.Name    = "GtkHBox";
     w63.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w64 = new Gtk.Image();
     w64.Name   = "image41";
     w64.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cancel", 16);
     w63.Add(w64);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w66 = new Gtk.Label();
     w66.Name      = "GtkLabel";
     w66.LabelProp = "";
     w63.Add(w66);
     w62.Add(w63);
     this.muteButton.Add(w62);
     this.MainFixedWindow.Add(this.muteButton);
     Gtk.Fixed.FixedChild w70 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.muteButton]));
     w70.X = 90;
     w70.Y = 120;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.volumeButton              = new Gtk.Button();
     this.volumeButton.CanFocus     = true;
     this.volumeButton.Name         = "volumeButton";
     this.volumeButton.UseUnderline = true;
     // Container child volumeButton.Gtk.Container+ContainerChild
     Gtk.Alignment w71 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w71.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w72 = new Gtk.HBox();
     w72.Name    = "GtkHBox";
     w72.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w73 = new Gtk.Image();
     w73.Name   = "image42";
     w73.Pixbuf = Stetic.IconLoader.LoadIcon("stock_volume", 16);
     w72.Add(w73);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w75 = new Gtk.Label();
     w75.Name      = "GtkLabel";
     w75.LabelProp = "";
     w72.Add(w75);
     w71.Add(w72);
     this.volumeButton.Add(w71);
     this.MainFixedWindow.Add(this.volumeButton);
     Gtk.Fixed.FixedChild w79 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeButton]));
     w79.X = 90;
     w79.Y = 120;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.npSong           = new Gtk.Label();
     this.npSong.Name      = "npSong";
     this.npSong.LabelProp = Mono.Unix.Catalog.GetString("Stopped");
     this.npSong.UseMarkup = true;
     this.MainFixedWindow.Add(this.npSong);
     Gtk.Fixed.FixedChild w80 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npSong]));
     w80.X = 115;
     w80.Y = 35;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.npByFrom = new Gtk.Label();
     this.npByFrom.WidthRequest = 231;
     this.npByFrom.Name         = "npByFrom";
     this.npByFrom.LabelProp    = Mono.Unix.Catalog.GetString("       ");
     this.npByFrom.UseMarkup    = true;
     this.npByFrom.Wrap         = true;
     this.MainFixedWindow.Add(this.npByFrom);
     Gtk.Fixed.FixedChild w81 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npByFrom]));
     w81.X = 121;
     w81.Y = 49;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.albumCoverImage        = new Gtk.Image();
     this.albumCoverImage.Name   = "albumCoverImage";
     this.albumCoverImage.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cdrom", 48);
     this.MainFixedWindow.Add(this.albumCoverImage);
     Gtk.Fixed.FixedChild w82 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.albumCoverImage]));
     w82.X = 24;
     w82.Y = 62;
     // Container child MainFixedWindow.Gtk.Fixed+FixedChild
     this.tabbedNotebook             = new Gtk.Notebook();
     this.tabbedNotebook.CanFocus    = true;
     this.tabbedNotebook.Name        = "tabbedNotebook";
     this.tabbedNotebook.CurrentPage = 1;
     this.tabbedNotebook.Scrollable  = true;
     // Container child tabbedNotebook.Gtk.Notebook+NotebookChild
     this.searchVertBox         = new Gtk.VBox();
     this.searchVertBox.Name    = "searchVertBox";
     this.searchVertBox.Spacing = 6;
     // Container child searchVertBox.Gtk.Box+BoxChild
     this.searchTopHorBox             = new Gtk.HBox();
     this.searchTopHorBox.Name        = "searchTopHorBox";
     this.searchTopHorBox.Spacing     = 6;
     this.searchTopHorBox.BorderWidth = ((uint)(4));
     // Container child searchTopHorBox.Gtk.Box+BoxChild
     this.searchSelectionType = Gtk.ComboBox.NewText();
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Song"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Artist"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Album"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Track #"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Year"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Genre"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Filename"));
     this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("All Fields"));
     this.searchSelectionType.WidthRequest = 75;
     this.searchSelectionType.Name         = "searchSelectionType";
     this.searchSelectionType.Active       = 7;
     this.searchTopHorBox.Add(this.searchSelectionType);
     Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchSelectionType]));
     w83.Position = 0;
     w83.Expand   = false;
     w83.Fill     = false;
     // Container child searchTopHorBox.Gtk.Box+BoxChild
     this.searchEntry = new Gtk.Entry();
     this.searchEntry.WidthRequest  = 246;
     this.searchEntry.HeightRequest = 23;
     this.searchEntry.HasDefault    = true;
     this.searchEntry.CanFocus      = true;
     this.searchEntry.Name          = "searchEntry";
     this.searchEntry.IsEditable    = true;
     this.searchEntry.InvisibleChar = '●';
     this.searchTopHorBox.Add(this.searchEntry);
     Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchEntry]));
     w84.Position = 1;
     this.searchVertBox.Add(this.searchTopHorBox);
     Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchTopHorBox]));
     w85.Position = 0;
     w85.Expand   = false;
     w85.Fill     = false;
     // Container child searchVertBox.Gtk.Box+BoxChild
     this.searchList = new Gtk.ScrolledWindow();
     this.searchList.WidthRequest     = 329;
     this.searchList.HeightRequest    = 358;
     this.searchList.CanFocus         = true;
     this.searchList.Name             = "searchList";
     this.searchList.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.searchList.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child searchList.Gtk.Container+ContainerChild
     this.songListTree             = new Gtk.TreeView();
     this.songListTree.CanFocus    = true;
     this.songListTree.Name        = "songListTree";
     this.songListTree.Reorderable = true;
     this.searchList.Add(this.songListTree);
     this.searchVertBox.Add(this.searchList);
     Gtk.Box.BoxChild w87 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchList]));
     w87.Position = 1;
     // Container child searchVertBox.Gtk.Box+BoxChild
     this.searchBottomHorizonalBox             = new Gtk.HBox();
     this.searchBottomHorizonalBox.Name        = "searchBottomHorizonalBox";
     this.searchBottomHorizonalBox.Spacing     = 6;
     this.searchBottomHorizonalBox.BorderWidth = ((uint)(2));
     // Container child searchBottomHorizonalBox.Gtk.Box+BoxChild
     this.searchAddButton              = new Gtk.Button();
     this.searchAddButton.CanFocus     = true;
     this.searchAddButton.Name         = "searchAddButton";
     this.searchAddButton.UseUnderline = true;
     // Container child searchAddButton.Gtk.Container+ContainerChild
     Gtk.Alignment w88 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w88.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w89 = new Gtk.HBox();
     w89.Name    = "GtkHBox";
     w89.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w90 = new Gtk.Image();
     w90.Name   = "image43";
     w90.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-add", 16);
     w89.Add(w90);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w92 = new Gtk.Label();
     w92.Name         = "GtkLabel";
     w92.LabelProp    = Mono.Unix.Catalog.GetString("Add");
     w92.UseUnderline = true;
     w89.Add(w92);
     w88.Add(w89);
     this.searchAddButton.Add(w88);
     this.searchBottomHorizonalBox.Add(this.searchAddButton);
     Gtk.Box.BoxChild w96 = ((Gtk.Box.BoxChild)(this.searchBottomHorizonalBox[this.searchAddButton]));
     w96.Position = 2;
     w96.Expand   = false;
     w96.Fill     = false;
     this.searchVertBox.Add(this.searchBottomHorizonalBox);
     Gtk.Box.BoxChild w97 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchBottomHorizonalBox]));
     w97.Position = 2;
     w97.Expand   = false;
     w97.Fill     = false;
     this.tabbedNotebook.Add(this.searchVertBox);
     Gtk.Notebook.NotebookChild w98 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.searchVertBox]));
     w98.TabExpand = false;
     // Notebook tab
     this.searchMainLabel = new Gtk.Label();
     this.searchMainLabel.WidthRequest = 100;
     this.searchMainLabel.Name         = "searchMainLabel";
     this.searchMainLabel.LabelProp    = Mono.Unix.Catalog.GetString("Collection");
     this.tabbedNotebook.SetTabLabel(this.searchVertBox, this.searchMainLabel);
     // Container child tabbedNotebook.Gtk.Notebook+NotebookChild
     this.queueVertBox             = new Gtk.VBox();
     this.queueVertBox.Name        = "queueVertBox";
     this.queueVertBox.Spacing     = 9;
     this.queueVertBox.BorderWidth = ((uint)(3));
     // Container child queueVertBox.Gtk.Box+BoxChild
     this.queueScrolledList                  = new Gtk.ScrolledWindow();
     this.queueScrolledList.CanFocus         = true;
     this.queueScrolledList.Name             = "queueScrolledList";
     this.queueScrolledList.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.queueScrolledList.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.queueScrolledList.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child queueScrolledList.Gtk.Container+ContainerChild
     this.queueTreeView          = new Gtk.TreeView();
     this.queueTreeView.CanFocus = true;
     this.queueTreeView.Name     = "queueTreeView";
     this.queueScrolledList.Add(this.queueTreeView);
     this.queueVertBox.Add(this.queueScrolledList);
     Gtk.Box.BoxChild w100 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueScrolledList]));
     w100.Position = 0;
     // Container child queueVertBox.Gtk.Box+BoxChild
     this.queueBottomHorBox         = new Gtk.HBox();
     this.queueBottomHorBox.Name    = "queueBottomHorBox";
     this.queueBottomHorBox.Spacing = 6;
     // Container child queueBottomHorBox.Gtk.Box+BoxChild
     this.queueNewPlaylist          = new Gtk.Button();
     this.queueNewPlaylist.CanFocus = true;
     this.queueNewPlaylist.Name     = "queueNewPlaylist";
     // Container child queueNewPlaylist.Gtk.Container+ContainerChild
     Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w101.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w102 = new Gtk.HBox();
     w102.Name    = "GtkHBox";
     w102.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w103 = new Gtk.Image();
     w103.Name   = "image44";
     w103.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16);
     w102.Add(w103);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w105 = new Gtk.Label();
     w105.Name      = "GtkLabel";
     w105.LabelProp = "";
     w102.Add(w105);
     w101.Add(w102);
     this.queueNewPlaylist.Add(w101);
     this.queueBottomHorBox.Add(this.queueNewPlaylist);
     Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueNewPlaylist]));
     w109.Position = 0;
     w109.Expand   = false;
     w109.Fill     = false;
     // Container child queueBottomHorBox.Gtk.Box+BoxChild
     this.queueDeleteButton              = new Gtk.Button();
     this.queueDeleteButton.CanFocus     = true;
     this.queueDeleteButton.Name         = "queueDeleteButton";
     this.queueDeleteButton.UseUnderline = true;
     // Container child queueDeleteButton.Gtk.Container+ContainerChild
     Gtk.Alignment w110 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w110.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w111 = new Gtk.HBox();
     w111.Name    = "GtkHBox";
     w111.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w112 = new Gtk.Image();
     w112.Name   = "image45";
     w112.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16);
     w111.Add(w112);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w114 = new Gtk.Label();
     w114.Name      = "GtkLabel";
     w114.LabelProp = "";
     w111.Add(w114);
     w110.Add(w111);
     this.queueDeleteButton.Add(w110);
     this.queueBottomHorBox.Add(this.queueDeleteButton);
     Gtk.Box.BoxChild w118 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueDeleteButton]));
     w118.Position = 1;
     w118.Expand   = false;
     w118.Fill     = false;
     // Container child queueBottomHorBox.Gtk.Box+BoxChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Playlist Name");
     this.queueBottomHorBox.Add(this.label4);
     Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.label4]));
     w119.Position = 2;
     w119.Expand   = false;
     w119.Fill     = false;
     // Container child queueBottomHorBox.Gtk.Box+BoxChild
     this.queueEntryBox = new Gtk.Entry();
     this.queueEntryBox.WidthRequest  = 3;
     this.queueEntryBox.CanFocus      = true;
     this.queueEntryBox.Name          = "queueEntryBox";
     this.queueEntryBox.IsEditable    = true;
     this.queueEntryBox.InvisibleChar = '●';
     this.queueBottomHorBox.Add(this.queueEntryBox);
     Gtk.Box.BoxChild w120 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueEntryBox]));
     w120.Position = 3;
     // Container child queueBottomHorBox.Gtk.Box+BoxChild
     this.queueSaveButton              = new Gtk.Button();
     this.queueSaveButton.CanFocus     = true;
     this.queueSaveButton.Name         = "queueSaveButton";
     this.queueSaveButton.UseUnderline = true;
     this.queueSaveButton.Label        = Mono.Unix.Catalog.GetString("Save");
     this.queueBottomHorBox.Add(this.queueSaveButton);
     Gtk.Box.BoxChild w121 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueSaveButton]));
     w121.Position = 4;
     w121.Expand   = false;
     w121.Fill     = false;
     this.queueVertBox.Add(this.queueBottomHorBox);
     Gtk.Box.BoxChild w122 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueBottomHorBox]));
     w122.Position = 1;
     w122.Expand   = false;
     w122.Fill     = false;
     this.tabbedNotebook.Add(this.queueVertBox);
     Gtk.Notebook.NotebookChild w123 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.queueVertBox]));
     w123.Position  = 1;
     w123.TabExpand = false;
     // Notebook tab
     this.queueMainLabel = new Gtk.Label();
     this.queueMainLabel.WidthRequest = 100;
     this.queueMainLabel.Name         = "queueMainLabel";
     this.queueMainLabel.LabelProp    = Mono.Unix.Catalog.GetString("Current Songs");
     this.tabbedNotebook.SetTabLabel(this.queueVertBox, this.queueMainLabel);
     // Container child tabbedNotebook.Gtk.Notebook+NotebookChild
     this.playlistVertBox             = new Gtk.VBox();
     this.playlistVertBox.Name        = "playlistVertBox";
     this.playlistVertBox.Spacing     = 6;
     this.playlistVertBox.BorderWidth = ((uint)(3));
     // Container child playlistVertBox.Gtk.Box+BoxChild
     this.playListScrolledWindow                  = new Gtk.ScrolledWindow();
     this.playListScrolledWindow.CanFocus         = true;
     this.playListScrolledWindow.Name             = "playListScrolledWindow";
     this.playListScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.playListScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.playListScrolledWindow.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child playListScrolledWindow.Gtk.Container+ContainerChild
     this.playListTreeView          = new Gtk.TreeView();
     this.playListTreeView.CanFocus = true;
     this.playListTreeView.Name     = "playListTreeView";
     this.playListScrolledWindow.Add(this.playListTreeView);
     this.playlistVertBox.Add(this.playListScrolledWindow);
     Gtk.Box.BoxChild w125 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListScrolledWindow]));
     w125.Position = 0;
     // Container child playlistVertBox.Gtk.Box+BoxChild
     this.playListBottomBox         = new Gtk.HBox();
     this.playListBottomBox.Name    = "playListBottomBox";
     this.playListBottomBox.Spacing = 6;
     // Container child playListBottomBox.Gtk.Box+BoxChild
     this.playListNewButton              = new Gtk.Button();
     this.playListNewButton.CanFocus     = true;
     this.playListNewButton.Name         = "playListNewButton";
     this.playListNewButton.UseUnderline = true;
     // Container child playListNewButton.Gtk.Container+ContainerChild
     Gtk.Alignment w126 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w126.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w127 = new Gtk.HBox();
     w127.Name    = "GtkHBox";
     w127.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w128 = new Gtk.Image();
     w128.Name   = "image46";
     w128.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16);
     w127.Add(w128);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w130 = new Gtk.Label();
     w130.Name         = "GtkLabel";
     w130.LabelProp    = Mono.Unix.Catalog.GetString("New");
     w130.UseUnderline = true;
     w127.Add(w130);
     w126.Add(w127);
     this.playListNewButton.Add(w126);
     this.playListBottomBox.Add(this.playListNewButton);
     Gtk.Box.BoxChild w134 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListNewButton]));
     w134.Position = 0;
     w134.Expand   = false;
     w134.Fill     = false;
     // Container child playListBottomBox.Gtk.Box+BoxChild
     this.playListLoadButton              = new Gtk.Button();
     this.playListLoadButton.CanFocus     = true;
     this.playListLoadButton.Name         = "playListLoadButton";
     this.playListLoadButton.UseUnderline = true;
     // Container child playListLoadButton.Gtk.Container+ContainerChild
     Gtk.Alignment w135 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w135.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w136 = new Gtk.HBox();
     w136.Name    = "GtkHBox";
     w136.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w137 = new Gtk.Image();
     w137.Name   = "image47";
     w137.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-directory", 16);
     w136.Add(w137);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w139 = new Gtk.Label();
     w139.Name         = "GtkLabel";
     w139.LabelProp    = Mono.Unix.Catalog.GetString("Load");
     w139.UseUnderline = true;
     w136.Add(w139);
     w135.Add(w136);
     this.playListLoadButton.Add(w135);
     this.playListBottomBox.Add(this.playListLoadButton);
     Gtk.Box.BoxChild w143 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListLoadButton]));
     w143.Position = 1;
     w143.Expand   = false;
     w143.Fill     = false;
     // Container child playListBottomBox.Gtk.Box+BoxChild
     this.playlistRenameButton              = new Gtk.Button();
     this.playlistRenameButton.CanFocus     = true;
     this.playlistRenameButton.Name         = "playlistRenameButton";
     this.playlistRenameButton.UseUnderline = true;
     // Container child playlistRenameButton.Gtk.Container+ContainerChild
     Gtk.Alignment w144 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w144.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w145 = new Gtk.HBox();
     w145.Name    = "GtkHBox";
     w145.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w146 = new Gtk.Image();
     w146.Name   = "image48";
     w146.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-edit", 16);
     w145.Add(w146);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w148 = new Gtk.Label();
     w148.Name         = "GtkLabel";
     w148.LabelProp    = Mono.Unix.Catalog.GetString("Edit");
     w148.UseUnderline = true;
     w145.Add(w148);
     w144.Add(w145);
     this.playlistRenameButton.Add(w144);
     this.playListBottomBox.Add(this.playlistRenameButton);
     Gtk.Box.BoxChild w152 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playlistRenameButton]));
     w152.Position = 2;
     w152.Expand   = false;
     w152.Fill     = false;
     // Container child playListBottomBox.Gtk.Box+BoxChild
     this.playListDeleteButton              = new Gtk.Button();
     this.playListDeleteButton.CanFocus     = true;
     this.playListDeleteButton.Name         = "playListDeleteButton";
     this.playListDeleteButton.UseUnderline = true;
     // Container child playListDeleteButton.Gtk.Container+ContainerChild
     Gtk.Alignment w153 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w153.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w154 = new Gtk.HBox();
     w154.Name    = "GtkHBox";
     w154.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w155 = new Gtk.Image();
     w155.Name   = "image49";
     w155.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16);
     w154.Add(w155);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w157 = new Gtk.Label();
     w157.Name         = "GtkLabel";
     w157.LabelProp    = Mono.Unix.Catalog.GetString("Delete");
     w157.UseUnderline = true;
     w154.Add(w157);
     w153.Add(w154);
     this.playListDeleteButton.Add(w153);
     this.playListBottomBox.Add(this.playListDeleteButton);
     Gtk.Box.BoxChild w161 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListDeleteButton]));
     w161.Position = 3;
     w161.Expand   = false;
     w161.Fill     = false;
     this.playlistVertBox.Add(this.playListBottomBox);
     Gtk.Box.BoxChild w162 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListBottomBox]));
     w162.PackType = ((Gtk.PackType)(1));
     w162.Position = 1;
     w162.Expand   = false;
     w162.Fill     = false;
     this.tabbedNotebook.Add(this.playlistVertBox);
     Gtk.Notebook.NotebookChild w163 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.playlistVertBox]));
     w163.Position  = 2;
     w163.TabExpand = false;
     // Notebook tab
     this.playListMainLabel = new Gtk.Label();
     this.playListMainLabel.WidthRequest = 100;
     this.playListMainLabel.Name         = "playListMainLabel";
     this.playListMainLabel.LabelProp    = Mono.Unix.Catalog.GetString("Playlists");
     this.tabbedNotebook.SetTabLabel(this.playlistVertBox, this.playListMainLabel);
     this.MainFixedWindow.Add(this.tabbedNotebook);
     Gtk.Fixed.FixedChild w164 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.tabbedNotebook]));
     w164.X = 10;
     w164.Y = 159;
     this.Add(this.MainFixedWindow);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 562;
     this.DefaultHeight = 662;
     this.muteButton.Hide();
     this.Show();
     this.DeleteEvent                  += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AddFolder.Activated          += new System.EventHandler(this.OnAddFolderActivated);
     this.NewCollection.Activated      += new System.EventHandler(this.OnNewCollectionActivated);
     this.Preferences.Activated        += new System.EventHandler(this.OnPreferencesActivated);
     this.Exit1.Activated              += new System.EventHandler(this.OnExit1Activated);
     this.AddFile.Activated            += new System.EventHandler(this.OnAddFileActivated);
     this.About3.Activated             += new System.EventHandler(this.OnAbout3Activated);
     this.playButton.Clicked           += new System.EventHandler(this.OnPlayButtonClicked);
     this.stopButton.Clicked           += new System.EventHandler(this.OnStopButtonClicked);
     this.previousButton.Clicked       += new System.EventHandler(this.OnPreviousButtonClicked);
     this.nextButton.Clicked           += new System.EventHandler(this.OnNextButtonClicked);
     this.rewindButton.Clicked         += new System.EventHandler(this.OnRewindClicked);
     this.fastfoward.Clicked           += new System.EventHandler(this.OnFastfowardClicked);
     this.volumeScale.ValueChanged     += new System.EventHandler(this.OnVolumeScaleValueChanged);
     this.muteButton.Clicked           += new System.EventHandler(this.OnMuteButtonClicked);
     this.volumeButton.Clicked         += new System.EventHandler(this.OnVolumeButtonClicked);
     this.searchAddButton.Clicked      += new System.EventHandler(this.OnSearchAddButtonClicked);
     this.queueNewPlaylist.Clicked     += new System.EventHandler(this.OnQueueNewPlaylistClicked);
     this.queueDeleteButton.Clicked    += new System.EventHandler(this.OnQueueDeleteButtonClicked);
     this.queueSaveButton.Clicked      += new System.EventHandler(this.OnQueueSaveButtonClicked);
     this.playListNewButton.Clicked    += new System.EventHandler(this.OnPlayListNewButtonClicked);
     this.playListLoadButton.Clicked   += new System.EventHandler(this.OnPlayListLoadButtonClicked);
     this.playListDeleteButton.Clicked += new System.EventHandler(this.OnPlayListDeleteButtonClicked);
 }
Example #43
0
		public static void Initialize ()
		{
			// NOTE: static constructor should get called if this
			// is the first reference to SyncManager

			///
			/// Add a "Synchronize Notes" to Tomboy's Main Menu
			///
			Gtk.ActionGroup action_group = new Gtk.ActionGroup ("Sync");
			action_group.Add (new Gtk.ActionEntry [] {
				new Gtk.ActionEntry ("ToolsMenuAction", null,
				Catalog.GetString ("_Tools"), null, null, null),
				new Gtk.ActionEntry ("SyncNotesAction", null,
				Catalog.GetString ("Synchronize Notes"), null, null,
				delegate {
					Tomboy.ActionManager ["NoteSynchronizationAction"].Activate ();
				})
			});

			Tomboy.ActionManager.UI.AddUiFromString (@"
			                <ui>
			                <menubar name='MainWindowMenubar'>
			                <placeholder name='MainWindowMenuPlaceholder'>
			                <menu name='ToolsMenu' action='ToolsMenuAction'>
			                <menuitem name='SyncNotes' action='SyncNotesAction' />
			                </menu>
			                </placeholder>
			                </menubar>
			                </ui>
			                ");

			Tomboy.ActionManager.UI.InsertActionGroup (action_group, 0);

			// Initialize all the SyncServiceAddins
			SyncServiceAddin [] addins = Tomboy.DefaultNoteManager.AddinManager.GetSyncServiceAddins ();
			foreach (SyncServiceAddin addin in addins) {
				try {
					addin.Initialize ();
				} catch (Exception e) {
					Logger.Debug ("Error calling {0}.Initialize (): {1}\n{2}",
					              addin.Id, e.Message, e.StackTrace);

					// TODO: Call something like AddinManager.Disable (addin)
				}
			}

			Preferences.SettingChanged += Preferences_SettingChanged;
			NoteMgr.NoteSaved += (n) => HandleNoteSavedOrDeleted ();
			NoteMgr.NoteDeleted += (o, n) => HandleNoteSavedOrDeleted ();

			// Update sync item based on configuration.
			UpdateSyncAction ();
		}
Example #44
0
        /// <summary>
        /// Called when Tomboy has started up and is nearly 100% initialized.
        /// </summary>
        public override void Initialize()
        {
            // Gets names from subclass.
            SetNames();

            //Listens for command line args
            Tomboy.DefaultNoteManager.CommandLine.AddinCmdLineArgsDetected += new AddinCommandLineEventHandler(ParseArgs);

            /*Adds "Export All Notes/Notebook To ***" to Tomboy's Main Menu */

            if (am.FindActionByName("NoteExportAll" + export_file_suffix + "Action") == null)
            {
                am.MainWindowActions.Add(new Gtk.ActionEntry [] {
                    new Gtk.ActionEntry("NoteExportAll" + export_file_suffix + "Action", null,
                                        String.Format(Catalog.GetString("Export All Notes to {0}"), export_type_pretty_name), null,
                                        String.Format(Catalog.GetString("Start exporting notes to {0}"), export_type_pretty_name), null)
                });
                am.MainWindowActions.Add(new Gtk.ActionEntry [] {
                    new Gtk.ActionEntry("NoteExportNotebook" + export_file_suffix + "Action", null,
                                        String.Format(Catalog.GetString("Export selected notebook to {0}"), export_type_pretty_name), null,
                                        String.Format(Catalog.GetString("Start exporting notebook to {0}"), export_type_pretty_name), null)
                });

                action_group = new Gtk.ActionGroup("Export");
                action_group.Add(new Gtk.ActionEntry [] {
                    new Gtk.ActionEntry("ToolsMenuAction", null,
                                        Catalog.GetString("_Tools"), null, null, null),

                    new Gtk.ActionEntry("ExportMenuAction", Gtk.Stock.New,
                                        Catalog.GetString("Export"), null,
                                        Catalog.GetString("Export your notes."), null),

                    new Gtk.ActionEntry("ExportAllNotes" + export_file_suffix + "Action", null,
                                        String.Format(Catalog.GetString("Export All Notes To {0}"), export_type_pretty_name), null, null,
                                        delegate {
                        am ["NoteExportAll" + export_file_suffix + "Action"].Activate();
                    }),
                    new Gtk.ActionEntry("ExportNotebook" + export_file_suffix + "Action", null,
                                        String.Format(Catalog.GetString("Export Selected Notebook To {0}"), export_type_pretty_name), null, null,
                                        delegate {
                        am ["NoteExportNotebook" + export_file_suffix + "Action"].Activate();
                    })
                });

                action_group_id = am.UI.AddUiFromString(String.Format(@"
				                <ui>
				                <menubar name='MainWindowMenubar'>
				                <placeholder name='MainWindowMenuPlaceholder'>
				                <menu name='ToolsMenu' action='ToolsMenuAction'>
				                <menu name='ExportMenu' action='ExportMenuAction'>
				                <menuitem name='ExportAllNotes{0}' action='ExportAllNotes{0}Action' />
				                <menuitem name='ExportNotebook{0}' action='ExportNotebook{0}Action' />
				                </menu>
				                </menu>
				                </placeholder>
				                </menubar>
				                </ui>
				                "                , export_file_suffix)
                                                        );

                am.UI.InsertActionGroup(action_group, 0);

                am ["NoteExportAll" + export_file_suffix + "Action"].Activated      += ExportAllButtonClicked;
                am ["NoteExportNotebook" + export_file_suffix + "Action"].Activated += ExportNotebookButtonClicked;

                initialized = true;
            }
        }
Example #45
0
 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);
 }
Example #46
0
 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.OpenLocationAction            = new Gtk.Action("OpenLocationAction", Mono.Unix.Catalog.GetString("Open Location"), null, null);
     this.OpenLocationAction.ShortLabel = Mono.Unix.Catalog.GetString("Open Location");
     w1.Add(this.OpenLocationAction, 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.AboutAction            = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null);
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction, 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, null);
     this.HelpAction1            = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction1, null);
     this.OpenLocationAction1            = new Gtk.Action("OpenLocationAction1", Mono.Unix.Catalog.GetString("Open Location"), null, null);
     this.OpenLocationAction1.ShortLabel = Mono.Unix.Catalog.GetString("Open Location");
     w1.Add(this.OpenLocationAction1, null);
     this.AboutAction1            = new Gtk.Action("AboutAction1", Mono.Unix.Catalog.GetString("About"), null, null);
     this.AboutAction1.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction1, null);
     this.Action = new Gtk.Action("Action", null, null, null);
     w1.Add(this.Action, null);
     this.FileAction2            = new Gtk.Action("FileAction2", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction2.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction2, null);
     this.OpenLocationAction2            = new Gtk.Action("OpenLocationAction2", Mono.Unix.Catalog.GetString("Open Location"), null, null);
     this.OpenLocationAction2.ShortLabel = Mono.Unix.Catalog.GetString("Open Location");
     w1.Add(this.OpenLocationAction2, null);
     this.HelpAction2            = new Gtk.Action("HelpAction2", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction2.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction2, null);
     this.AboutAction2            = new Gtk.Action("AboutAction2", Mono.Unix.Catalog.GetString("About"), null, null);
     this.AboutAction2.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction2, 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.SortByAction            = new Gtk.Action("SortByAction", Mono.Unix.Catalog.GetString("Sort by"), null, null);
     this.SortByAction.ShortLabel = Mono.Unix.Catalog.GetString("Sort by");
     w1.Add(this.SortByAction, null);
     this.NameAction            = new Gtk.Action("NameAction", Mono.Unix.Catalog.GetString("Name"), null, null);
     this.NameAction.ShortLabel = Mono.Unix.Catalog.GetString("Name");
     w1.Add(this.NameAction, null);
     this.TypeAction            = new Gtk.Action("TypeAction", Mono.Unix.Catalog.GetString("Type"), null, null);
     this.TypeAction.ShortLabel = Mono.Unix.Catalog.GetString("Type");
     w1.Add(this.TypeAction, null);
     this.DateAction            = new Gtk.Action("DateAction", Mono.Unix.Catalog.GetString("Date"), null, null);
     this.DateAction.ShortLabel = Mono.Unix.Catalog.GetString("Date");
     w1.Add(this.DateAction, 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.VSyncEnabledAction            = new Gtk.ToggleAction("VSyncEnabledAction", Mono.Unix.Catalog.GetString("VSync Enabled"), null, null);
     this.VSyncEnabledAction.Active     = true;
     this.VSyncEnabledAction.ShortLabel = Mono.Unix.Catalog.GetString("VSync Enabled");
     w1.Add(this.VSyncEnabledAction, null);
     this.VertigoEnabledAction            = new Gtk.ToggleAction("VertigoEnabledAction", Mono.Unix.Catalog.GetString("Vertigo Enabled"), null, null);
     this.VertigoEnabledAction.Active     = true;
     this.VertigoEnabledAction.ShortLabel = Mono.Unix.Catalog.GetString("Vertigo Enabled");
     w1.Add(this.VertigoEnabledAction, null);
     this.ShowDetailsAction            = new Gtk.ToggleAction("ShowDetailsAction", Mono.Unix.Catalog.GetString("Show Details"), null, null);
     this.ShowDetailsAction.Active     = true;
     this.ShowDetailsAction.ShortLabel = Mono.Unix.Catalog.GetString("Show Details");
     w1.Add(this.ShowDetailsAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Glomp");
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "gtk-directory", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth   = 1024;
     this.DefaultHeight  = 600;
     // 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='menubar4'><menu name='FileAction2' action='FileAction2'><menuitem name='OpenLocationAction2' action='OpenLocationAction2'/></menu><menu name='ViewAction' action='ViewAction'><menu name='SortByAction' action='SortByAction'><menuitem name='NameAction' action='NameAction'/><menuitem name='TypeAction' action='TypeAction'/><menuitem name='DateAction' action='DateAction'/></menu><menu name='OptionsAction' action='OptionsAction'><menuitem name='VSyncEnabledAction' action='VSyncEnabledAction'/><menuitem name='VertigoEnabledAction' action='VertigoEnabledAction'/></menu><menuitem name='ShowDetailsAction' action='ShowDetailsAction'/></menu><menu name='HelpAction2' action='HelpAction2'><menuitem name='AboutAction2' action='AboutAction2'/></menu></menubar></ui>");
     this.menubar4      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar4")));
     this.menubar4.Name = "menubar4";
     this.vbox1.Add(this.menubar4);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar4]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.entry4                  = new Gtk.Entry();
     this.entry4.CanFocus         = true;
     this.entry4.Name             = "entry4";
     this.entry4.IsEditable       = true;
     this.entry4.ActivatesDefault = true;
     this.entry4.InvisibleChar    = '•';
     this.vbox1.Add(this.entry4);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.entry4]));
     w3.Position = 1;
     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.glwidget1                = new Gtk.GLWidget();
     this.glwidget1.CanDefault     = true;
     this.glwidget1.CanFocus       = true;
     this.glwidget1.Events         = ((Gdk.EventMask)(768));
     this.glwidget1.Name           = "glwidget1";
     this.glwidget1.SingleBuffer   = false;
     this.glwidget1.ColorBPP       = 32;
     this.glwidget1.AccumulatorBPP = 0;
     this.glwidget1.DepthBPP       = 16;
     this.glwidget1.StencilBPP     = 0;
     this.glwidget1.Samples        = 0;
     this.glwidget1.Stereo         = false;
     this.glwidget1.GlVersionMajor = 3;
     this.glwidget1.GlVersionMinor = 0;
     this.hbox1.Add(this.glwidget1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.glwidget1]));
     w4.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.detailsBox             = new Gtk.VBox();
     this.detailsBox.Name        = "detailsBox";
     this.detailsBox.Spacing     = 6;
     this.detailsBox.BorderWidth = ((uint)(10));
     // Container child detailsBox.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(12)), ((uint)(3)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.detailEntryName               = new Gtk.Entry();
     this.detailEntryName.CanFocus      = true;
     this.detailEntryName.Name          = "detailEntryName";
     this.detailEntryName.IsEditable    = true;
     this.detailEntryName.WidthChars    = 30;
     this.detailEntryName.InvisibleChar = '•';
     this.table1.Add(this.detailEntryName);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.detailEntryName]));
     w5.LeftAttach  = ((uint)(2));
     w5.RightAttach = ((uint)(3));
     w5.XOptions    = ((Gtk.AttachOptions)(4));
     w5.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelAccessed                = new Gtk.Label();
     this.detailLabelAccessed.Name           = "detailLabelAccessed";
     this.detailLabelAccessed.Xalign         = 0F;
     this.detailLabelAccessed.LabelProp      = Mono.Unix.Catalog.GetString("Accessed:");
     this.detailLabelAccessed.SingleLineMode = true;
     this.table1.Add(this.detailLabelAccessed);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelAccessed]));
     w6.TopAttach    = ((uint)(8));
     w6.BottomAttach = ((uint)(9));
     w6.XOptions     = ((Gtk.AttachOptions)(4));
     w6.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelContents                = new Gtk.Label();
     this.detailLabelContents.Name           = "detailLabelContents";
     this.detailLabelContents.Xalign         = 0F;
     this.detailLabelContents.LabelProp      = Mono.Unix.Catalog.GetString("Contents:");
     this.detailLabelContents.SingleLineMode = true;
     this.table1.Add(this.detailLabelContents);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelContents]));
     w7.TopAttach    = ((uint)(5));
     w7.BottomAttach = ((uint)(6));
     w7.XOptions     = ((Gtk.AttachOptions)(4));
     w7.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelGroup                = new Gtk.Label();
     this.detailLabelGroup.Name           = "detailLabelGroup";
     this.detailLabelGroup.Xalign         = 0F;
     this.detailLabelGroup.LabelProp      = Mono.Unix.Catalog.GetString("Group:");
     this.detailLabelGroup.SingleLineMode = true;
     this.table1.Add(this.detailLabelGroup);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelGroup]));
     w8.TopAttach    = ((uint)(11));
     w8.BottomAttach = ((uint)(12));
     w8.XOptions     = ((Gtk.AttachOptions)(4));
     w8.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelModified                = new Gtk.Label();
     this.detailLabelModified.Name           = "detailLabelModified";
     this.detailLabelModified.Xalign         = 0F;
     this.detailLabelModified.LabelProp      = Mono.Unix.Catalog.GetString("Modified:");
     this.detailLabelModified.SingleLineMode = true;
     this.table1.Add(this.detailLabelModified);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelModified]));
     w9.TopAttach    = ((uint)(7));
     w9.BottomAttach = ((uint)(8));
     w9.XOptions     = ((Gtk.AttachOptions)(4));
     w9.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelName                = new Gtk.Label();
     this.detailLabelName.Name           = "detailLabelName";
     this.detailLabelName.Xalign         = 0F;
     this.detailLabelName.LabelProp      = Mono.Unix.Catalog.GetString("Name:");
     this.detailLabelName.SingleLineMode = true;
     this.table1.Add(this.detailLabelName);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelName]));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelOwner                = new Gtk.Label();
     this.detailLabelOwner.Name           = "detailLabelOwner";
     this.detailLabelOwner.Xalign         = 0F;
     this.detailLabelOwner.LabelProp      = Mono.Unix.Catalog.GetString("Owner:");
     this.detailLabelOwner.SingleLineMode = true;
     this.table1.Add(this.detailLabelOwner);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelOwner]));
     w11.TopAttach    = ((uint)(10));
     w11.BottomAttach = ((uint)(11));
     w11.XOptions     = ((Gtk.AttachOptions)(4));
     w11.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelSize                = new Gtk.Label();
     this.detailLabelSize.Name           = "detailLabelSize";
     this.detailLabelSize.Xalign         = 0F;
     this.detailLabelSize.LabelProp      = Mono.Unix.Catalog.GetString("Size:");
     this.detailLabelSize.SingleLineMode = true;
     this.table1.Add(this.detailLabelSize);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelSize]));
     w12.TopAttach    = ((uint)(3));
     w12.BottomAttach = ((uint)(4));
     w12.XOptions     = ((Gtk.AttachOptions)(4));
     w12.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelSpace                = new Gtk.Label();
     this.detailLabelSpace.Name           = "detailLabelSpace";
     this.detailLabelSpace.Xalign         = 0F;
     this.detailLabelSpace.LabelProp      = Mono.Unix.Catalog.GetString("Space:");
     this.detailLabelSpace.SingleLineMode = true;
     this.table1.Add(this.detailLabelSpace);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelSpace]));
     w13.TopAttach    = ((uint)(4));
     w13.BottomAttach = ((uint)(5));
     w13.XOptions     = ((Gtk.AttachOptions)(4));
     w13.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailLabelType                = new Gtk.Label();
     this.detailLabelType.Name           = "detailLabelType";
     this.detailLabelType.Xalign         = 0F;
     this.detailLabelType.LabelProp      = Mono.Unix.Catalog.GetString("Type:");
     this.detailLabelType.SingleLineMode = true;
     this.table1.Add(this.detailLabelType);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.detailLabelType]));
     w14.TopAttach    = ((uint)(1));
     w14.BottomAttach = ((uint)(2));
     w14.XOptions     = ((Gtk.AttachOptions)(4));
     w14.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueAccessed        = new Gtk.Label();
     this.detailValueAccessed.Name   = "detailValueAccessed";
     this.detailValueAccessed.Xalign = 0F;
     this.table1.Add(this.detailValueAccessed);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.detailValueAccessed]));
     w15.TopAttach    = ((uint)(8));
     w15.BottomAttach = ((uint)(9));
     w15.LeftAttach   = ((uint)(2));
     w15.RightAttach  = ((uint)(3));
     w15.XOptions     = ((Gtk.AttachOptions)(4));
     w15.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueContents               = new Gtk.Label();
     this.detailValueContents.Name          = "detailValueContents";
     this.detailValueContents.Xalign        = 0F;
     this.detailValueContents.MaxWidthChars = 30;
     this.table1.Add(this.detailValueContents);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.detailValueContents]));
     w16.TopAttach    = ((uint)(5));
     w16.BottomAttach = ((uint)(6));
     w16.LeftAttach   = ((uint)(2));
     w16.RightAttach  = ((uint)(3));
     w16.XOptions     = ((Gtk.AttachOptions)(4));
     w16.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueGroup        = new Gtk.Label();
     this.detailValueGroup.Name   = "detailValueGroup";
     this.detailValueGroup.Xalign = 0F;
     this.table1.Add(this.detailValueGroup);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.detailValueGroup]));
     w17.TopAttach    = ((uint)(11));
     w17.BottomAttach = ((uint)(12));
     w17.LeftAttach   = ((uint)(2));
     w17.RightAttach  = ((uint)(3));
     w17.XOptions     = ((Gtk.AttachOptions)(4));
     w17.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueModified        = new Gtk.Label();
     this.detailValueModified.Name   = "detailValueModified";
     this.detailValueModified.Xalign = 0F;
     this.table1.Add(this.detailValueModified);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.detailValueModified]));
     w18.TopAttach    = ((uint)(7));
     w18.BottomAttach = ((uint)(8));
     w18.LeftAttach   = ((uint)(2));
     w18.RightAttach  = ((uint)(3));
     w18.XOptions     = ((Gtk.AttachOptions)(4));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueOwner        = new Gtk.Label();
     this.detailValueOwner.Name   = "detailValueOwner";
     this.detailValueOwner.Xalign = 0F;
     this.table1.Add(this.detailValueOwner);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.detailValueOwner]));
     w19.TopAttach    = ((uint)(10));
     w19.BottomAttach = ((uint)(11));
     w19.LeftAttach   = ((uint)(2));
     w19.RightAttach  = ((uint)(3));
     w19.XOptions     = ((Gtk.AttachOptions)(4));
     w19.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueSize        = new Gtk.Label();
     this.detailValueSize.Name   = "detailValueSize";
     this.detailValueSize.Xalign = 0F;
     this.table1.Add(this.detailValueSize);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.detailValueSize]));
     w20.TopAttach    = ((uint)(3));
     w20.BottomAttach = ((uint)(4));
     w20.LeftAttach   = ((uint)(2));
     w20.RightAttach  = ((uint)(3));
     w20.XOptions     = ((Gtk.AttachOptions)(4));
     w20.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueSpace               = new Gtk.Label();
     this.detailValueSpace.Name          = "detailValueSpace";
     this.detailValueSpace.Xalign        = 0F;
     this.detailValueSpace.MaxWidthChars = 30;
     this.table1.Add(this.detailValueSpace);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.detailValueSpace]));
     w21.TopAttach    = ((uint)(4));
     w21.BottomAttach = ((uint)(5));
     w21.LeftAttach   = ((uint)(2));
     w21.RightAttach  = ((uint)(3));
     w21.XOptions     = ((Gtk.AttachOptions)(4));
     w21.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.detailValueType               = new Gtk.Label();
     this.detailValueType.Name          = "detailValueType";
     this.detailValueType.Xalign        = 0F;
     this.detailValueType.MaxWidthChars = 30;
     this.table1.Add(this.detailValueType);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.detailValueType]));
     w22.TopAttach    = ((uint)(1));
     w22.BottomAttach = ((uint)(2));
     w22.LeftAttach   = ((uint)(2));
     w22.RightAttach  = ((uint)(3));
     w22.XOptions     = ((Gtk.AttachOptions)(4));
     w22.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.fixed2 = new Gtk.Fixed();
     this.fixed2.HeightRequest = 10;
     this.fixed2.Name          = "fixed2";
     this.fixed2.HasWindow     = false;
     this.table1.Add(this.fixed2);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.fixed2]));
     w23.TopAttach    = ((uint)(2));
     w23.BottomAttach = ((uint)(3));
     w23.LeftAttach   = ((uint)(1));
     w23.RightAttach  = ((uint)(2));
     w23.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.fixed3 = new Gtk.Fixed();
     this.fixed3.HeightRequest = 10;
     this.fixed3.Name          = "fixed3";
     this.fixed3.HasWindow     = false;
     this.table1.Add(this.fixed3);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.fixed3]));
     w24.TopAttach    = ((uint)(6));
     w24.BottomAttach = ((uint)(7));
     w24.LeftAttach   = ((uint)(1));
     w24.RightAttach  = ((uint)(2));
     w24.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.fixed4 = new Gtk.Fixed();
     this.fixed4.HeightRequest = 10;
     this.fixed4.Name          = "fixed4";
     this.fixed4.HasWindow     = false;
     this.table1.Add(this.fixed4);
     Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.fixed4]));
     w25.TopAttach    = ((uint)(9));
     w25.BottomAttach = ((uint)(10));
     w25.LeftAttach   = ((uint)(1));
     w25.RightAttach  = ((uint)(2));
     w25.YOptions     = ((Gtk.AttachOptions)(4));
     this.detailsBox.Add(this.table1);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.detailsBox[this.table1]));
     w26.Position = 0;
     w26.Expand   = false;
     w26.Fill     = false;
     // Container child detailsBox.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.detailsBox.Add(this.hseparator1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.detailsBox[this.hseparator1]));
     w27.Position = 1;
     w27.Expand   = false;
     w27.Fill     = false;
     w27.Padding  = ((uint)(10));
     // Container child detailsBox.Gtk.Box+BoxChild
     this.fixed1           = new Gtk.Fixed();
     this.fixed1.Name      = "fixed1";
     this.fixed1.HasWindow = false;
     this.detailsBox.Add(this.fixed1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.detailsBox[this.fixed1]));
     w28.Position = 2;
     // Container child detailsBox.Gtk.Box+BoxChild
     this.permissionsLabel              = new Gtk.Label();
     this.permissionsLabel.Name         = "permissionsLabel";
     this.permissionsLabel.LabelProp    = Mono.Unix.Catalog.GetString("<b>Permissions</b>");
     this.permissionsLabel.UseMarkup    = true;
     this.permissionsLabel.UseUnderline = true;
     this.detailsBox.Add(this.permissionsLabel);
     Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.detailsBox[this.permissionsLabel]));
     w29.Position = 3;
     w29.Expand   = false;
     w29.Fill     = false;
     // Container child detailsBox.Gtk.Box+BoxChild
     this.alignment2               = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.alignment2.Name          = "alignment2";
     this.alignment2.LeftPadding   = ((uint)(40));
     this.alignment2.BottomPadding = ((uint)(1));
     // Container child alignment2.Gtk.Container+ContainerChild
     this.table4               = new Gtk.Table(((uint)(4)), ((uint)(4)), true);
     this.table4.Name          = "table4";
     this.table4.RowSpacing    = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckGR               = new Gtk.CheckButton();
     this.permissionCheckGR.CanFocus      = true;
     this.permissionCheckGR.Name          = "permissionCheckGR";
     this.permissionCheckGR.Label         = "";
     this.permissionCheckGR.DrawIndicator = true;
     this.permissionCheckGR.UseUnderline  = true;
     this.permissionCheckGR.Xalign        = 0F;
     this.permissionCheckGR.Yalign        = 0F;
     this.table4.Add(this.permissionCheckGR);
     Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckGR]));
     w30.TopAttach    = ((uint)(2));
     w30.BottomAttach = ((uint)(3));
     w30.LeftAttach   = ((uint)(1));
     w30.RightAttach  = ((uint)(2));
     w30.XOptions     = ((Gtk.AttachOptions)(0));
     w30.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckGW               = new Gtk.CheckButton();
     this.permissionCheckGW.CanFocus      = true;
     this.permissionCheckGW.Name          = "permissionCheckGW";
     this.permissionCheckGW.Label         = "";
     this.permissionCheckGW.DrawIndicator = true;
     this.permissionCheckGW.UseUnderline  = true;
     this.permissionCheckGW.Xalign        = 0F;
     this.permissionCheckGW.Yalign        = 0F;
     this.table4.Add(this.permissionCheckGW);
     Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckGW]));
     w31.TopAttach    = ((uint)(2));
     w31.BottomAttach = ((uint)(3));
     w31.LeftAttach   = ((uint)(2));
     w31.RightAttach  = ((uint)(3));
     w31.XOptions     = ((Gtk.AttachOptions)(0));
     w31.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckGX               = new Gtk.CheckButton();
     this.permissionCheckGX.CanFocus      = true;
     this.permissionCheckGX.Name          = "permissionCheckGX";
     this.permissionCheckGX.Label         = "";
     this.permissionCheckGX.DrawIndicator = true;
     this.permissionCheckGX.UseUnderline  = true;
     this.permissionCheckGX.Xalign        = 0F;
     this.permissionCheckGX.Yalign        = 0F;
     this.table4.Add(this.permissionCheckGX);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckGX]));
     w32.TopAttach    = ((uint)(2));
     w32.BottomAttach = ((uint)(3));
     w32.LeftAttach   = ((uint)(3));
     w32.RightAttach  = ((uint)(4));
     w32.XOptions     = ((Gtk.AttachOptions)(0));
     w32.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckOR               = new Gtk.CheckButton();
     this.permissionCheckOR.CanFocus      = true;
     this.permissionCheckOR.Name          = "permissionCheckOR";
     this.permissionCheckOR.Label         = "";
     this.permissionCheckOR.DrawIndicator = true;
     this.permissionCheckOR.UseUnderline  = true;
     this.permissionCheckOR.Xalign        = 0F;
     this.permissionCheckOR.Yalign        = 0F;
     this.table4.Add(this.permissionCheckOR);
     Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckOR]));
     w33.TopAttach    = ((uint)(1));
     w33.BottomAttach = ((uint)(2));
     w33.LeftAttach   = ((uint)(1));
     w33.RightAttach  = ((uint)(2));
     w33.XOptions     = ((Gtk.AttachOptions)(0));
     w33.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckOW               = new Gtk.CheckButton();
     this.permissionCheckOW.CanFocus      = true;
     this.permissionCheckOW.Name          = "permissionCheckOW";
     this.permissionCheckOW.Label         = "";
     this.permissionCheckOW.DrawIndicator = true;
     this.permissionCheckOW.UseUnderline  = true;
     this.permissionCheckOW.Xalign        = 0F;
     this.permissionCheckOW.Yalign        = 0F;
     this.table4.Add(this.permissionCheckOW);
     Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckOW]));
     w34.TopAttach    = ((uint)(1));
     w34.BottomAttach = ((uint)(2));
     w34.LeftAttach   = ((uint)(2));
     w34.RightAttach  = ((uint)(3));
     w34.XOptions     = ((Gtk.AttachOptions)(0));
     w34.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckOX               = new Gtk.CheckButton();
     this.permissionCheckOX.CanFocus      = true;
     this.permissionCheckOX.Name          = "permissionCheckOX";
     this.permissionCheckOX.Label         = "";
     this.permissionCheckOX.DrawIndicator = true;
     this.permissionCheckOX.UseUnderline  = true;
     this.permissionCheckOX.Xalign        = 0F;
     this.permissionCheckOX.Yalign        = 0F;
     this.table4.Add(this.permissionCheckOX);
     Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckOX]));
     w35.TopAttach    = ((uint)(1));
     w35.BottomAttach = ((uint)(2));
     w35.LeftAttach   = ((uint)(3));
     w35.RightAttach  = ((uint)(4));
     w35.XOptions     = ((Gtk.AttachOptions)(0));
     w35.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckUR               = new Gtk.CheckButton();
     this.permissionCheckUR.CanFocus      = true;
     this.permissionCheckUR.Name          = "permissionCheckUR";
     this.permissionCheckUR.Label         = "";
     this.permissionCheckUR.DrawIndicator = true;
     this.permissionCheckUR.UseUnderline  = true;
     this.permissionCheckUR.Xalign        = 0F;
     this.permissionCheckUR.Yalign        = 0F;
     this.table4.Add(this.permissionCheckUR);
     Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckUR]));
     w36.TopAttach    = ((uint)(3));
     w36.BottomAttach = ((uint)(4));
     w36.LeftAttach   = ((uint)(1));
     w36.RightAttach  = ((uint)(2));
     w36.XOptions     = ((Gtk.AttachOptions)(0));
     w36.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckUW               = new Gtk.CheckButton();
     this.permissionCheckUW.CanFocus      = true;
     this.permissionCheckUW.Name          = "permissionCheckUW";
     this.permissionCheckUW.Label         = "";
     this.permissionCheckUW.DrawIndicator = true;
     this.permissionCheckUW.UseUnderline  = true;
     this.permissionCheckUW.Xalign        = 0F;
     this.permissionCheckUW.Yalign        = 0F;
     this.table4.Add(this.permissionCheckUW);
     Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckUW]));
     w37.TopAttach    = ((uint)(3));
     w37.BottomAttach = ((uint)(4));
     w37.LeftAttach   = ((uint)(2));
     w37.RightAttach  = ((uint)(3));
     w37.XOptions     = ((Gtk.AttachOptions)(0));
     w37.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionCheckUX               = new Gtk.CheckButton();
     this.permissionCheckUX.CanFocus      = true;
     this.permissionCheckUX.Name          = "permissionCheckUX";
     this.permissionCheckUX.Label         = "";
     this.permissionCheckUX.DrawIndicator = true;
     this.permissionCheckUX.UseUnderline  = true;
     this.permissionCheckUX.Xalign        = 0F;
     this.permissionCheckUX.Yalign        = 0F;
     this.table4.Add(this.permissionCheckUX);
     Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table4[this.permissionCheckUX]));
     w38.TopAttach    = ((uint)(3));
     w38.BottomAttach = ((uint)(4));
     w38.LeftAttach   = ((uint)(3));
     w38.RightAttach  = ((uint)(4));
     w38.XOptions     = ((Gtk.AttachOptions)(0));
     w38.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionLabelExecute           = new Gtk.Label();
     this.permissionLabelExecute.Name      = "permissionLabelExecute";
     this.permissionLabelExecute.LabelProp = Mono.Unix.Catalog.GetString("Users");
     this.table4.Add(this.permissionLabelExecute);
     Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelExecute]));
     w39.TopAttach    = ((uint)(3));
     w39.BottomAttach = ((uint)(4));
     w39.XOptions     = ((Gtk.AttachOptions)(4));
     w39.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionLabelGroup           = new Gtk.Label();
     this.permissionLabelGroup.Name      = "permissionLabelGroup";
     this.permissionLabelGroup.LabelProp = Mono.Unix.Catalog.GetString("Write");
     this.table4.Add(this.permissionLabelGroup);
     Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelGroup]));
     w40.LeftAttach  = ((uint)(2));
     w40.RightAttach = ((uint)(3));
     w40.XOptions    = ((Gtk.AttachOptions)(4));
     w40.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionLabelOwner           = new Gtk.Label();
     this.permissionLabelOwner.Name      = "permissionLabelOwner";
     this.permissionLabelOwner.LabelProp = Mono.Unix.Catalog.GetString("Read");
     this.table4.Add(this.permissionLabelOwner);
     Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelOwner]));
     w41.LeftAttach  = ((uint)(1));
     w41.RightAttach = ((uint)(2));
     w41.XOptions    = ((Gtk.AttachOptions)(4));
     w41.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionLabelRead           = new Gtk.Label();
     this.permissionLabelRead.Name      = "permissionLabelRead";
     this.permissionLabelRead.LabelProp = Mono.Unix.Catalog.GetString("Owner");
     this.table4.Add(this.permissionLabelRead);
     Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelRead]));
     w42.TopAttach    = ((uint)(1));
     w42.BottomAttach = ((uint)(2));
     w42.XOptions     = ((Gtk.AttachOptions)(4));
     w42.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionLabelUser           = new Gtk.Label();
     this.permissionLabelUser.Name      = "permissionLabelUser";
     this.permissionLabelUser.LabelProp = Mono.Unix.Catalog.GetString("Execute");
     this.table4.Add(this.permissionLabelUser);
     Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelUser]));
     w43.LeftAttach  = ((uint)(3));
     w43.RightAttach = ((uint)(4));
     w43.XOptions    = ((Gtk.AttachOptions)(4));
     w43.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.permissionLabelWrite           = new Gtk.Label();
     this.permissionLabelWrite.Name      = "permissionLabelWrite";
     this.permissionLabelWrite.LabelProp = Mono.Unix.Catalog.GetString("Group");
     this.table4.Add(this.permissionLabelWrite);
     Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table4[this.permissionLabelWrite]));
     w44.TopAttach    = ((uint)(2));
     w44.BottomAttach = ((uint)(3));
     w44.XOptions     = ((Gtk.AttachOptions)(4));
     w44.YOptions     = ((Gtk.AttachOptions)(4));
     this.alignment2.Add(this.table4);
     this.detailsBox.Add(this.alignment2);
     Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.detailsBox[this.alignment2]));
     w46.Position = 4;
     w46.Expand   = false;
     this.hbox1.Add(this.detailsBox);
     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox1[this.detailsBox]));
     w47.Position = 1;
     w47.Expand   = false;
     w47.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w48.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.findEntry               = new Gtk.Entry();
     this.findEntry.CanFocus      = true;
     this.findEntry.Name          = "findEntry";
     this.findEntry.IsEditable    = true;
     this.findEntry.InvisibleChar = '•';
     this.vbox1.Add(this.findEntry);
     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox1[this.findEntry]));
     w49.Position = 3;
     w49.Expand   = false;
     w49.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar6         = new Gtk.Statusbar();
     this.statusbar6.Name    = "statusbar6";
     this.statusbar6.Spacing = 6;
     this.vbox1.Add(this.statusbar6);
     Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar6]));
     w50.Position = 4;
     w50.Expand   = false;
     w50.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.glwidget1.HasDefault = true;
     this.findEntry.Hide();
     this.Show();
     this.DeleteEvent                  += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AboutAction2.Activated       += new System.EventHandler(this.OnAboutActivated);
     this.NameAction.Activated         += new System.EventHandler(this.OnNameSortActivated);
     this.TypeAction.Activated         += new System.EventHandler(this.OnTypeSortActivated);
     this.DateAction.Activated         += new System.EventHandler(this.OnDateSortActivated);
     this.VSyncEnabledAction.Toggled   += new System.EventHandler(this.OnVsyncToggle);
     this.VertigoEnabledAction.Toggled += new System.EventHandler(this.OnHeightColourToggle);
     this.ShowDetailsAction.Toggled    += new System.EventHandler(this.OnDetailsVisibleToggled);
     this.entry4.Changed               += new System.EventHandler(this.OnPathChanged);
     this.glwidget1.RenderFrame        += new System.EventHandler(this.OnGlwidgetRenderFrame);
     this.glwidget1.SizeAllocated      += new Gtk.SizeAllocatedHandler(this.OnWidgetResize);
     this.glwidget1.KeyPressEvent      += new Gtk.KeyPressEventHandler(this.OnKeyPress);
     this.glwidget1.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.OnWidgetClick);
     this.detailEntryName.Activated    += new System.EventHandler(this.OnNewNameEntered);
     this.permissionCheckUX.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckUW.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckUR.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckOX.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckOW.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckOR.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckGX.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckGW.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.permissionCheckGR.Toggled    += new System.EventHandler(this.OnPermissionsToggle);
     this.findEntry.FocusOutEvent      += new Gtk.FocusOutEventHandler(this.OnFindLoseFocus);
     this.findEntry.Changed            += new System.EventHandler(this.OnSearchTextChanged);
     this.findEntry.KeyPressEvent      += new Gtk.KeyPressEventHandler(this.OnFindKeyPress);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Embroidr.UI.MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.FileAction            = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.FileAction, null);
     this.findAction = new Gtk.Action("findAction", null, null, "gtk-find");
     w2.Add(this.findAction, null);
     this.FindAction            = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null);
     this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find");
     w2.Add(this.FindAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "Embroidr.UI.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Embroidr");
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(2));
     // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild
     this.vbox1      = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>");
     this.menubar2      = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/></toolbar></ui>");
     this.toolbar3              = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3")));
     this.toolbar3.Name         = "toolbar3";
     this.toolbar3.ShowArrow    = false;
     this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar3);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned2          = new Gtk.HPaned();
     this.hpaned2.CanFocus = true;
     this.hpaned2.Name     = "hpaned2";
     this.hpaned2.Position = 160;
     // Container child hpaned2.Gtk.Paned+PanedChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.treeview1                  = new Gtk.TreeView();
     this.treeview1.CanFocus         = true;
     this.treeview1.Name             = "treeview1";
     this.treeview1.HeadersClickable = true;
     this.GtkScrolledWindow1.Add(this.treeview1);
     this.vbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1]));
     w6.Position = 0;
     this.hpaned2.Add(this.vbox2);
     Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2]));
     w7.Resize = false;
     // Container child hpaned2.Gtk.Paned+PanedChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.nodeview1                  = new Gtk.NodeView();
     this.nodeview1.CanFocus         = true;
     this.nodeview1.Name             = "nodeview1";
     this.nodeview1.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.nodeview1);
     this.hpaned2.Add(this.GtkScrolledWindow);
     this.vbox1.Add(this.hpaned2);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2]));
     w10.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1         = new Gtk.Statusbar();
     this.statusbar1.Name    = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w11.Position = 3;
     w11.Expand   = false;
     w11.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 699;
     this.DefaultHeight = 638;
     this.Show();
     this.DeleteEvent          += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated);
 }
Example #48
0
 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 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);
 }
Example #50
0
 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 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);
         }
     }
 }
Example #52
0
 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.AddCounterAction            = new Gtk.Action("AddCounterAction", Mono.Unix.Catalog.GetString("_Add counter"), null, "gtk-add");
     this.AddCounterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add performance counter");
     w1.Add(this.AddCounterAction, 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, 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.quitAction = new Gtk.Action("quitAction", null, null, "gtk-quit");
     w1.Add(this.quitAction, null);
     this.addAction = new Gtk.Action("addAction", null, Mono.Unix.Catalog.GetString("Add a new counter"), "gtk-add");
     w1.Add(this.addAction, null);
     this.preferencesAction = new Gtk.Action("preferencesAction", null, Mono.Unix.Catalog.GetString("Preferences"), "gtk-preferences");
     w1.Add(this.preferencesAction, null);
     this.stopAction = new Gtk.Action("stopAction", null, null, "gtk-stop");
     w1.Add(this.stopAction, null);
     this.ClearAction            = new Gtk.Action("ClearAction", Mono.Unix.Catalog.GetString("_Clear"), Mono.Unix.Catalog.GetString("Remove all the counters"), "gtk-clear");
     this.ClearAction.ShortLabel = Mono.Unix.Catalog.GetString("_Clear");
     w1.Add(this.ClearAction, null);
     this.mediaPauseAction = new Gtk.Action("mediaPauseAction", null, Mono.Unix.Catalog.GetString("Stop ccollecting samples"), "gtk-media-pause");
     w1.Add(this.mediaPauseAction, null);
     this.mediaPlayAction = new Gtk.Action("mediaPlayAction", null, Mono.Unix.Catalog.GetString("Start collecting samples"), "gtk-media-play");
     w1.Add(this.mediaPlayAction, null);
     this.SaveAsAction            = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
     this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
     w1.Add(this.SaveAsAction, null);
     this.AddCounterSetAction            = new Gtk.Action("AddCounterSetAction", Mono.Unix.Catalog.GetString("Add counter set"), null, "gtk-add");
     this.AddCounterSetAction.ShortLabel = Mono.Unix.Catalog.GetString("Add counter set");
     w1.Add(this.AddCounterSetAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Mono Perf Monitor");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.table1               = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='AddCounterAction' action='AddCounterAction'/><menuitem name='AddCounterSetAction' action='AddCounterSetAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='HelpAction1' action='HelpAction1'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.table1.Add(this.menubar1);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.menubar1]));
     w2.RightAttach = ((uint)(3));
     w2.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w3 = new Gtk.Viewport();
     w3.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.graph_vbox         = new Gtk.VBox();
     this.graph_vbox.Name    = "graph_vbox";
     this.graph_vbox.Spacing = 6;
     w3.Add(this.graph_vbox);
     this.scrolledwindow1.Add(w3);
     this.table1.Add(this.scrolledwindow1);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.scrolledwindow1]));
     w6.TopAttach    = ((uint)(2));
     w6.BottomAttach = ((uint)(3));
     w6.RightAttach  = ((uint)(3));
     w6.XOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='quitAction' action='quitAction'/><toolitem name='AddCounterAction' action='AddCounterAction'/><toolitem name='ClearAction' action='ClearAction'/><toolitem name='mediaPauseAction' action='mediaPauseAction'/><toolitem name='mediaPlayAction' action='mediaPlayAction'/><toolitem name='preferencesAction' action='preferencesAction'/></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.table1.Add(this.toolbar1);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.toolbar1]));
     w7.TopAttach    = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.RightAttach  = ((uint)(3));
     w7.YOptions     = ((Gtk.AttachOptions)(4));
     this.Add(this.table1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 533;
     this.DefaultHeight = 436;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AddCounterAction.Activated    += new System.EventHandler(this.AddCounter);
     this.QuitAction.Activated          += new System.EventHandler(this.OnQuit);
     this.quitAction.Activated          += new System.EventHandler(this.OnQuit);
     this.preferencesAction.Activated   += new System.EventHandler(this.OnPreferences);
     this.ClearAction.Activated         += new System.EventHandler(this.OnClear);
     this.mediaPauseAction.Activated    += new System.EventHandler(this.OnPause);
     this.mediaPlayAction.Activated     += new System.EventHandler(this.OnPlay);
     this.SaveAsAction.Activated        += new System.EventHandler(this.OnSaveAs);
     this.AddCounterSetAction.Activated += new System.EventHandler(this.OnAddSet);
 }
Example #53
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "MainWindow"))
     {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget MainWindow
         cobj.Title = "GNFOViewer";
         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, "<Alt>f");
         Gtk.Action w4 = new Gtk.Action("Tools", "_Tools", null, null);
         w4.ShortLabel     = "_Tools";
         bindings["Tools"] = w4;
         w2.Add(w4, "<Alt>t");
         Gtk.Action w5 = new Gtk.Action("Open", "Open", null, "gtk-open");
         w5.ShortLabel    = "Open";
         bindings["Open"] = w5;
         w2.Add(w5, "<Control>o");
         Gtk.Action w6 = new Gtk.Action("Quit", "Quit", null, "gtk-quit");
         w6.ShortLabel    = "Quit";
         bindings["Quit"] = w6;
         w2.Add(w6, "<Control>q");
         Gtk.Action w7 = new Gtk.Action("Invert", "Invert", null, "gtk-refresh");
         w7.ShortLabel      = "Invert";
         bindings["Invert"] = w7;
         w2.Add(w7, "<Control>i");
         w1.InsertActionGroup(w2, 0);
         cobj.AddAccelGroup(w1.AccelGroup);
         cobj.Icon           = Gtk.IconTheme.Default.LoadIcon("stock_smiley-26", 16, 0);
         cobj.WindowPosition = ((Gtk.WindowPosition)(3));
         cobj.DefaultWidth   = 640;
         cobj.DefaultHeight  = 480;
         cobj.Events         = ((Gdk.EventMask)(0));
         cobj.Name           = "MainWindow";
         // Container child 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='menubar1'><menu action='File'><menuitem action='Open'/><menuitem action='Quit'/></menu><menu action='Tools'><menuitem action='Invert'/></menu></menubar></ui>");
         Gtk.MenuBar w9 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
         w9.Events            = ((Gdk.EventMask)(0));
         w9.Name              = "menubar1";
         bindings["menubar1"] = 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
         Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow();
         w11.VscrollbarPolicy = ((Gtk.PolicyType)(1));
         w11.HscrollbarPolicy = ((Gtk.PolicyType)(1));
         w11.CanFocus         = true;
         w11.Events           = ((Gdk.EventMask)(0));
         w11.Name             = "scrolledwindow1";
         // Container child scrolledwindow1.Gtk.Container+ContainerChild
         Gtk.TextView w12 = new Gtk.TextView();
         w12.CursorVisible     = false;
         w12.Editable          = false;
         w12.CanFocus          = true;
         w12.Events            = ((Gdk.EventMask)(0));
         w12.Name              = "textview1";
         bindings["textview1"] = w12;
         w11.Add(w12);
         bindings["scrolledwindow1"] = w11;
         w8.Add(w11);
         Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(w8[w11]));
         w14.Position      = 1;
         bindings["vbox1"] = w8;
         cobj.Add(w8);
         bindings["MainWindow"] = cobj;
         w9.Show();
         w12.Show();
         w11.Show();
         w8.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, "OnOpenActivated")));
         w6.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnQuitActivated")));
         w7.Activated     += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnInvertActivated")));
     }
     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 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);
 }
        void IExtensionService.Initialize()
        {
            Marshaller.Init ();
            has_karaoke = Marshaller.CheckGstPlugin ("audiokaraoke");
            Hyena.Log.Debug ("[Karaoke] GstPlugin audiokaraoke" + (has_karaoke ? "" : " not") + " found");
            if (!has_karaoke) {
                Hyena.Log.Warning ("[Karaoke] audiokaraoke is not available, please install gstreamer-good-plugins");
                return;
            }

            action_service = ServiceManager.Get<InterfaceActionService> ();
            actions = new Gtk.ActionGroup ("Karaoke");

            actions.Add (new Gtk.ActionEntry[] { new Gtk.ActionEntry ("KaraokeAction", null,
                             AddinManager.CurrentLocalizer.GetString ("_Karaoke"), null, null, null),
                             new Gtk.ActionEntry ("KaraokeConfigureAction", Gtk.Stock.Properties,
                                 AddinManager.CurrentLocalizer.GetString ("_Configure"), null,
                                 AddinManager.CurrentLocalizer.GetString ("Configure the Karaoke extension"), OnConfigure) });

            Gdk.Pixbuf icon = new Gdk.Pixbuf (System.Reflection.Assembly.GetExecutingAssembly ()
                                              .GetManifestResourceStream ("microphone.png"));

            Gtk.IconSet iconset = new Gtk.IconSet (icon);
            Gtk.IconFactory iconfactory = new Gtk.IconFactory ();
            iconfactory.Add ("microphone", iconset);
            iconfactory.AddDefault ();

            actions.Add (new Gtk.ToggleActionEntry[] { new Gtk.ToggleActionEntry ("KaraokeEnableAction", "microphone",
                             AddinManager.CurrentLocalizer.GetString ("_Activate Karaoke mode"), null,
                             AddinManager.CurrentLocalizer.GetString ("Activate Karaoke mode"),
                             OnActivateKaraoke, karaoke_enabled) });

            action_service.UIManager.InsertActionGroup (actions, 0);
            ui_menu_id = action_service.UIManager.AddUiFromResource ("KaraokeMenu.xml");
            ui_button_id = action_service.UIManager.AddUiFromResource ("KaraokeButton.xml");
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget OpenGridServices.Manager.MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.Grid             = new Gtk.Action("Grid", Mono.Unix.Catalog.GetString("Grid"), null, null);
     this.Grid.HideIfEmpty = false;
     this.Grid.ShortLabel  = Mono.Unix.Catalog.GetString("Grid");
     w2.Add(this.Grid, "<Alt><Mod2>g");
     this.User             = new Gtk.Action("User", Mono.Unix.Catalog.GetString("User"), null, null);
     this.User.HideIfEmpty = false;
     this.User.ShortLabel  = Mono.Unix.Catalog.GetString("User");
     w2.Add(this.User, null);
     this.Asset             = new Gtk.Action("Asset", Mono.Unix.Catalog.GetString("Asset"), null, null);
     this.Asset.HideIfEmpty = false;
     this.Asset.ShortLabel  = Mono.Unix.Catalog.GetString("Asset");
     w2.Add(this.Asset, null);
     this.Region            = new Gtk.Action("Region", Mono.Unix.Catalog.GetString("Region"), null, null);
     this.Region.ShortLabel = Mono.Unix.Catalog.GetString("Region");
     w2.Add(this.Region, null);
     this.Services            = new Gtk.Action("Services", Mono.Unix.Catalog.GetString("Services"), null, null);
     this.Services.ShortLabel = Mono.Unix.Catalog.GetString("Services");
     w2.Add(this.Services, null);
     this.ConnectToGridserver             = new Gtk.Action("ConnectToGridserver", Mono.Unix.Catalog.GetString("Connect to gridserver..."), null, "gtk-connect");
     this.ConnectToGridserver.HideIfEmpty = false;
     this.ConnectToGridserver.ShortLabel  = Mono.Unix.Catalog.GetString("Connect to gridserver");
     w2.Add(this.ConnectToGridserver, null);
     this.RestartWholeGrid            = new Gtk.Action("RestartWholeGrid", Mono.Unix.Catalog.GetString("Restart whole grid"), null, "gtk-refresh");
     this.RestartWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Restart whole grid");
     w2.Add(this.RestartWholeGrid, null);
     this.ShutdownWholeGrid            = new Gtk.Action("ShutdownWholeGrid", Mono.Unix.Catalog.GetString("Shutdown whole grid"), null, "gtk-stop");
     this.ShutdownWholeGrid.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown whole grid");
     w2.Add(this.ShutdownWholeGrid, null);
     this.ExitGridManager            = new Gtk.Action("ExitGridManager", Mono.Unix.Catalog.GetString("Exit grid manager"), null, "gtk-close");
     this.ExitGridManager.ShortLabel = Mono.Unix.Catalog.GetString("Exit grid manager");
     w2.Add(this.ExitGridManager, null);
     this.ConnectToUserserver            = new Gtk.Action("ConnectToUserserver", Mono.Unix.Catalog.GetString("Connect to userserver"), null, "gtk-connect");
     this.ConnectToUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Connect to userserver");
     w2.Add(this.ConnectToUserserver, null);
     this.AccountManagment            = new Gtk.Action("AccountManagment", Mono.Unix.Catalog.GetString("Account managment"), null, "gtk-properties");
     this.AccountManagment.ShortLabel = Mono.Unix.Catalog.GetString("Account managment");
     w2.Add(this.AccountManagment, null);
     this.GlobalNotice            = new Gtk.Action("GlobalNotice", Mono.Unix.Catalog.GetString("Global notice"), null, "gtk-network");
     this.GlobalNotice.ShortLabel = Mono.Unix.Catalog.GetString("Global notice");
     w2.Add(this.GlobalNotice, null);
     this.DisableAllLogins            = new Gtk.Action("DisableAllLogins", Mono.Unix.Catalog.GetString("Disable all logins"), null, "gtk-no");
     this.DisableAllLogins.ShortLabel = Mono.Unix.Catalog.GetString("Disable all logins");
     w2.Add(this.DisableAllLogins, null);
     this.DisableNonGodUsersOnly            = new Gtk.Action("DisableNonGodUsersOnly", Mono.Unix.Catalog.GetString("Disable non-god users only"), null, "gtk-no");
     this.DisableNonGodUsersOnly.ShortLabel = Mono.Unix.Catalog.GetString("Disable non-god users only");
     w2.Add(this.DisableNonGodUsersOnly, null);
     this.ShutdownUserServer            = new Gtk.Action("ShutdownUserServer", Mono.Unix.Catalog.GetString("Shutdown user server"), null, "gtk-stop");
     this.ShutdownUserServer.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown user server");
     w2.Add(this.ShutdownUserServer, null);
     this.ShutdownGridserverOnly            = new Gtk.Action("ShutdownGridserverOnly", Mono.Unix.Catalog.GetString("Shutdown gridserver only"), null, "gtk-stop");
     this.ShutdownGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown gridserver only");
     w2.Add(this.ShutdownGridserverOnly, null);
     this.RestartGridserverOnly            = new Gtk.Action("RestartGridserverOnly", Mono.Unix.Catalog.GetString("Restart gridserver only"), null, "gtk-refresh");
     this.RestartGridserverOnly.ShortLabel = Mono.Unix.Catalog.GetString("Restart gridserver only");
     w2.Add(this.RestartGridserverOnly, null);
     this.DefaultLocalGridUserserver            = new Gtk.Action("DefaultLocalGridUserserver", Mono.Unix.Catalog.GetString("Default local grid userserver"), null, null);
     this.DefaultLocalGridUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Default local grid userserver");
     w2.Add(this.DefaultLocalGridUserserver, null);
     this.CustomUserserver            = new Gtk.Action("CustomUserserver", Mono.Unix.Catalog.GetString("Custom userserver..."), null, null);
     this.CustomUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Custom userserver");
     w2.Add(this.CustomUserserver, null);
     this.RemoteGridDefaultUserserver            = new Gtk.Action("RemoteGridDefaultUserserver", Mono.Unix.Catalog.GetString("Remote grid default userserver..."), null, null);
     this.RemoteGridDefaultUserserver.ShortLabel = Mono.Unix.Catalog.GetString("Remote grid default userserver");
     w2.Add(this.RemoteGridDefaultUserserver, null);
     this.DisconnectFromGridServer            = new Gtk.Action("DisconnectFromGridServer", Mono.Unix.Catalog.GetString("Disconnect from grid server"), null, "gtk-disconnect");
     this.DisconnectFromGridServer.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect from grid server");
     this.DisconnectFromGridServer.Visible    = false;
     w2.Add(this.DisconnectFromGridServer, null);
     this.UploadAsset            = new Gtk.Action("UploadAsset", Mono.Unix.Catalog.GetString("Upload asset"), null, null);
     this.UploadAsset.ShortLabel = Mono.Unix.Catalog.GetString("Upload asset");
     w2.Add(this.UploadAsset, null);
     this.AssetManagement            = new Gtk.Action("AssetManagement", Mono.Unix.Catalog.GetString("Asset management"), null, null);
     this.AssetManagement.ShortLabel = Mono.Unix.Catalog.GetString("Asset management");
     w2.Add(this.AssetManagement, null);
     this.ConnectToAssetServer            = new Gtk.Action("ConnectToAssetServer", Mono.Unix.Catalog.GetString("Connect to asset server"), null, null);
     this.ConnectToAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Connect to asset server");
     w2.Add(this.ConnectToAssetServer, null);
     this.ConnectToDefaultAssetServerForGrid            = new Gtk.Action("ConnectToDefaultAssetServerForGrid", Mono.Unix.Catalog.GetString("Connect to default asset server for grid"), null, null);
     this.ConnectToDefaultAssetServerForGrid.ShortLabel = Mono.Unix.Catalog.GetString("Connect to default asset server for grid");
     w2.Add(this.ConnectToDefaultAssetServerForGrid, null);
     this.DefaultForLocalGrid            = new Gtk.Action("DefaultForLocalGrid", Mono.Unix.Catalog.GetString("Default for local grid"), null, null);
     this.DefaultForLocalGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for local grid");
     w2.Add(this.DefaultForLocalGrid, null);
     this.DefaultForRemoteGrid            = new Gtk.Action("DefaultForRemoteGrid", Mono.Unix.Catalog.GetString("Default for remote grid..."), null, null);
     this.DefaultForRemoteGrid.ShortLabel = Mono.Unix.Catalog.GetString("Default for remote grid...");
     w2.Add(this.DefaultForRemoteGrid, null);
     this.CustomAssetServer            = new Gtk.Action("CustomAssetServer", Mono.Unix.Catalog.GetString("Custom asset server..."), null, null);
     this.CustomAssetServer.ShortLabel = Mono.Unix.Catalog.GetString("Custom asset server...");
     w2.Add(this.CustomAssetServer, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.WidthRequest  = 800;
     this.HeightRequest = 600;
     this.Name          = "OpenGridServices.Manager.MainWindow";
     this.Title         = Mono.Unix.Catalog.GetString("Open Grid Services Manager");
     this.Icon          = Gtk.IconTheme.Default.LoadIcon("gtk-network", 48, 0);
     // Container child OpenGridServices.Manager.MainWindow.Gtk.Container+ContainerChild
     this.vbox1      = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Grid'><menuitem action='ConnectToGridserver'/><menuitem action='DisconnectFromGridServer'/><separator/><menuitem action='RestartWholeGrid'/><menuitem action='RestartGridserverOnly'/><separator/><menuitem action='ShutdownWholeGrid'/><menuitem action='ShutdownGridserverOnly'/><separator/><menuitem action='ExitGridManager'/></menu><menu action='User'><menu action='ConnectToUserserver'><menuitem action='DefaultLocalGridUserserver'/><menuitem action='CustomUserserver'/><menuitem action='RemoteGridDefaultUserserver'/></menu><separator/><menuitem action='AccountManagment'/><menuitem action='GlobalNotice'/><separator/><menuitem action='DisableAllLogins'/><menuitem action='DisableNonGodUsersOnly'/><separator/><menuitem action='ShutdownUserServer'/></menu><menu action='Asset'><menuitem action='UploadAsset'/><menuitem action='AssetManagement'/><menu action='ConnectToAssetServer'><menuitem action='DefaultForLocalGrid'/><menuitem action='DefaultForRemoteGrid'/><menuitem action='CustomAssetServer'/></menu></menu><menu action='Region'/><menu action='Services'/></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
     this.menubar2.HeightRequest = 25;
     this.menubar2.Name          = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1      = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     // Container child hbox1.Gtk.Box+BoxChild
     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));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w4 = new Gtk.Viewport();
     w4.Name       = "GtkViewport";
     w4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.drawingarea1      = new Gtk.DrawingArea();
     this.drawingarea1.Name = "drawingarea1";
     w4.Add(this.drawingarea1);
     this.scrolledwindow1.Add(w4);
     this.hbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
     w7.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.treeview1          = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name     = "treeview1";
     this.hbox1.Add(this.treeview1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.treeview1]));
     w8.Position = 2;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w9.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1         = new Gtk.Statusbar();
     this.statusbar1.Name    = "statusbar1";
     this.statusbar1.Spacing = 5;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 2;
     w10.Expand   = false;
     w10.Fill     = false;
     this.Add(this.vbox1);
     if (this.Child != null)
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 800;
     this.DefaultHeight = 800;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.ConnectToGridserver.Activated      += new System.EventHandler(this.ConnectToGridServerMenu);
     this.ExitGridManager.Activated          += new System.EventHandler(this.QuitMenu);
     this.ShutdownGridserverOnly.Activated   += new System.EventHandler(this.ShutdownGridserverMenu);
     this.RestartGridserverOnly.Activated    += new System.EventHandler(this.RestartGridserverMenu);
     this.DisconnectFromGridServer.Activated += new System.EventHandler(this.DisconnectGridServerMenu);
 }
Example #57
0
 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);
         }
     }
 }
Example #58
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);
 }
 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);
 }
Example #60
0
 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);
 }