Пример #1
0
        public WindowView(Main _view, Controller.Window _ctl)
        {
            View = _view;
            Window = _ctl;
            Homogeneous = false;
            Spacing = 0;
            BorderWidth = 0;
            var topLevelBox = new Gtk.VBox();
            topLevelBox.Homogeneous = false;
            topLevelBox.Spacing = 0;
            topLevelBox.BorderWidth = 0;
            textView = new WindowTextView(Window);
            scroll = new Gtk.ScrolledWindow {
                HscrollbarPolicy = Gtk.PolicyType.Automatic,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            scroll.Add(textView);
            Window.CursorMovedByCommand.Add(i =>
            {
                textView.ScrollToIter(i.GtkIter, 0, false, 0, 0);
            });
            topLevelBox.PackStart(scroll, true, true, 0);
            status = new Gtk.Statusbar();
            status.HasResizeGrip = false;
            status.Push(StatusbarMode, Window.CurrentMode.GetName());
            Window.CurrentMode.Event.Changed += m =>
            {
                status.Pop(StatusbarMode);
                status.Push(StatusbarMode, Window.CurrentMode.GetName());
            };
            Window.Model.Changed += m =>
            {
                textView.Buffer = m;
            };
            topLevelBox.PackStart(status, false, false, 0);

            // Wrap the topLevelBox with borders on the left and right
            var hlBox = new Gtk.DrawingArea();
            NormalColor = hlBox.Style.Background(Gtk.StateType.Normal);
            hlBox.WidthRequest = 10;
            var borderBox = new Gtk.HBox();
            borderBox.Homogeneous = false;
            borderBox.Spacing = 0;
            borderBox.BorderWidth = 0;
            borderBox.PackStart(hlBox, false, false, 0);
            borderBox.PackStart(topLevelBox, true, true, 0);

            textView.FocusInEvent += (object o, Gtk.FocusInEventArgs args) =>
            {
                Window.Controller.FocusedWindow.Value = Window;
                hlBox.ModifyBg(Gtk.StateType.Normal, HighlightColor);
            };

            textView.FocusOutEvent += (object o, Gtk.FocusOutEventArgs args) =>
            {
                hlBox.ModifyBg(Gtk.StateType.Normal, NormalColor);
            };

            Add(borderBox);
        }
Пример #2
0
        public static void InstallStatusbarMenuHints(Gtk.Statusbar bar, Gnome.UIInfo uiinfo)
        {
            IntPtr native_uiinfo = GLib.Marshaller.StructureToPtrAlloc(uiinfo);

            gnome_app_install_statusbar_menu_hints(bar == null ? IntPtr.Zero : bar.Handle, native_uiinfo);
            uiinfo = Gnome.UIInfo.New(native_uiinfo);
            Marshal.FreeHGlobal(native_uiinfo);
        }
Пример #3
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.WebBrowser
     this.WidthRequest   = 800;
     this.HeightRequest  = 500;
     this.Name           = "ocmgtk.WebBrowser";
     this.Title          = Mono.Unix.Catalog.GetString("WebBrowser");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child ocmgtk.WebBrowser.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserScroll            = new Gtk.ScrolledWindow();
     this.browserScroll.CanFocus   = true;
     this.browserScroll.Name       = "browserScroll";
     this.browserScroll.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox2.Add(this.browserScroll);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserScroll]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserStatus         = new Gtk.Statusbar();
     this.browserStatus.Name    = "browserStatus";
     this.browserStatus.Spacing = 6;
     // Container child browserStatus.Gtk.Box+BoxChild
     this.browserProgress = new Gtk.ProgressBar();
     this.browserProgress.WidthRequest = 150;
     this.browserProgress.Name         = "browserProgress";
     this.browserStatus.Add(this.browserProgress);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.browserStatus[this.browserProgress]));
     w2.Position = 2;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox2.Add(this.browserStatus);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserStatus]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 812;
     this.DefaultHeight = 627;
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.WebBrowser
     this.WidthRequest = 800;
     this.HeightRequest = 500;
     this.Name = "ocmgtk.WebBrowser";
     this.Title = Mono.Unix.Catalog.GetString("WebBrowser");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child ocmgtk.WebBrowser.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserScroll = new Gtk.ScrolledWindow();
     this.browserScroll.CanFocus = true;
     this.browserScroll.Name = "browserScroll";
     this.browserScroll.ShadowType = ((Gtk.ShadowType)(1));
     this.vbox2.Add(this.browserScroll);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserScroll]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.browserStatus = new Gtk.Statusbar();
     this.browserStatus.Name = "browserStatus";
     this.browserStatus.Spacing = 6;
     // Container child browserStatus.Gtk.Box+BoxChild
     this.browserProgress = new Gtk.ProgressBar();
     this.browserProgress.WidthRequest = 150;
     this.browserProgress.Name = "browserProgress";
     this.browserStatus.Add(this.browserProgress);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.browserStatus[this.browserProgress]));
     w2.Position = 2;
     w2.Expand = false;
     w2.Fill = false;
     this.vbox2.Add(this.browserStatus);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserStatus]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 812;
     this.DefaultHeight = 627;
     this.Show();
 }
Пример #5
0
        protected override void OnElementChanged(ElementChangedEventArgs <StatusBar> e)
        {
            if (Control == null)
            {
                _stackContextId = new Stack <uint>();
                _statusBar      = new Gtk.Statusbar();
                Add(_statusBar);
                _statusBar.ShowAll();

                SetNativeControl(this);
            }

            if (e.NewElement != null)
            {
                UpdateHasResizeGrip();
                UpdateTextColor();
                UpdateHasBorder();

                Element.Popped += OnPopped;
                Element.Pushed += OnPushed;
            }

            base.OnElementChanged(e);
        }
Пример #6
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();
     // Widget Scielo.PDF2Scielo.MarkerWindow
     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.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.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.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, "gnome-stock-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w2.Add(this.About, null);
     this.Markup = new Gtk.Action("Markup", Mono.Unix.Catalog.GetString("_Markup"), null, "gtk-convert");
     this.Markup.Sensitive = false;
     this.Markup.ShortLabel = Mono.Unix.Catalog.GetString("_Markup");
     w2.Add(this.Markup, "<Control><Mod2>m");
     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);
     this.SaveAs = new Gtk.Action("SaveAs", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
     this.SaveAs.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
     w2.Add(this.SaveAs, null);
     this.Normalize = new Gtk.Action("Normalize", Mono.Unix.Catalog.GetString("_Normalize"), null, "gtk-execute");
     this.Normalize.Sensitive = false;
     this.Normalize.ShortLabel = Mono.Unix.Catalog.GetString("_Normalize");
     w2.Add(this.Normalize, "<Control><Mod2>n");
     this.Preview = new Gtk.Action("Preview", Mono.Unix.Catalog.GetString("_Preview"), null, "gtk-print-preview");
     this.Preview.Sensitive = false;
     this.Preview.ShortLabel = Mono.Unix.Catalog.GetString("_Preview");
     w2.Add(this.Preview, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "Scielo.PDF2Scielo.MarkerWindow";
     this.Title = Mono.Unix.Catalog.GetString("Marcador Automatico PDF2Scielo");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Scielo.PDF2Scielo.MarkerWindow.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='Open'/><separator/><menuitem action='Save'/><menuitem action='SaveAs'/><separator/><menuitem action='Quit'/></menu><menu action='Tools'><menuitem action='Normalize'/><menuitem action='Markup'/><menuitem action='Preview'/></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='Open'/><separator/><toolitem action='Normalize'/><toolitem action='Markup'/><separator/><toolitem action='Preview'/></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.vpaned1 = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name = "vpaned1";
     this.vpaned1.Position = 272;
     // Container child vpaned1.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.textview = new Gtk.TextView();
     this.textview.CanFocus = true;
     this.textview.Name = "textview";
     this.scrolledwindow1.Add(this.textview);
     this.vpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.scrolledwindow1]));
     w6.Resize = false;
     w6.Shrink = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     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
     w1.AddUiFromString("<ui><toolbar name='toolbar2'/></ui>");
     this.toolbar2 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar2")));
     this.toolbar2.Name = "toolbar2";
     this.toolbar2.ShowArrow = false;
     this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(3));
     this.toolbar2.IconSize = ((Gtk.IconSize)(4));
     this.vbox2.Add(this.toolbar2);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar2]));
     w7.Position = 0;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     this.treeview1.HeadersClickable = true;
     this.scrolledwindow2.Add(this.treeview1);
     this.vbox2.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2]));
     w9.Position = 1;
     this.GtkAlignment.Add(this.vbox2);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Messages</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel3;
     this.vpaned1.Add(this.frame1);
     Gtk.Paned.PanedChild w12 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.frame1]));
     w12.Resize = false;
     this.vbox1.Add(this.vpaned1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.vpaned1]));
     w13.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 w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w14.Position = 3;
     w14.Expand = false;
     w14.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 614;
     this.DefaultHeight = 414;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Open.Activated += new System.EventHandler(this.OnOpenActivated);
     this.Quit.Activated += new System.EventHandler(this.OnQuitActivated);
     this.About.Activated += new System.EventHandler(this.OnAboutActivated);
     this.Markup.Activated += new System.EventHandler(this.OnMarkupActivated);
     this.Normalize.Activated += new System.EventHandler(this.OnNormalizeActivated);
     this.Preview.Activated += new System.EventHandler(this.OnPreviewActivated);
 }
Пример #8
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);
 }
Пример #9
0
        public MainWindow() : base("Smuxi")
        {
            // restore window size / position
            int width, heigth;

            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null)
            {
                width = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"];
            }
            else
            {
                width = 800;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null)
            {
                heigth = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"];
            }
            else
            {
                heigth = 600;
            }
            if (width < -1 || heigth < -1)
            {
                width  = -1;
                heigth = -1;
            }
            if (width == -1 && heigth == -1)
            {
                SetDefaultSize(800, 600);
                Maximize();
            }
            else if (width == 0 && heigth == 0)
            {
                // HACK: map 0/0 to default size as it crashes on Windows :/
                SetDefaultSize(800, 600);
            }
            else
            {
                SetDefaultSize(width, heigth);
            }

            int x, y;

            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null)
            {
                x = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"];
            }
            else
            {
                x = 0;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null)
            {
                y = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"];
            }
            else
            {
                y = 0;
            }
            if (x < 0 || y < 0)
            {
                x = 0;
                y = 0;
            }
            if (x == 0 && y == 0)
            {
                SetPosition(Gtk.WindowPosition.Center);
            }
            else
            {
                Move(x, y);
            }

            DeleteEvent      += OnDeleteEvent;
            FocusInEvent     += OnFocusInEvent;
            FocusOutEvent    += OnFocusOutEvent;
            WindowStateEvent += OnWindowStateEvent;

            Gtk.AccelGroup agrp = new Gtk.AccelGroup();
            Gtk.AccelKey   akey;
            AddAccelGroup(agrp);

            // Menu
            _MenuBar = new Gtk.MenuBar();
            Gtk.Menu          menu;
            Gtk.MenuItem      item;
            Gtk.ImageMenuItem image_item;

            // Menu - File
            menu         = new Gtk.Menu();
            item         = new Gtk.MenuItem(_("_File"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            item            = new Gtk.ImageMenuItem(Gtk.Stock.Preferences, agrp);
            item.Activated += new EventHandler(_OnPreferencesButtonClicked);
            menu.Append(item);

            menu.Append(new Gtk.SeparatorMenuItem());

            item            = new Gtk.ImageMenuItem(Gtk.Stock.Quit, agrp);
            item.Activated += new EventHandler(_OnQuitButtonClicked);
            menu.Append(item);

            // Menu - Server
            menu         = new Gtk.Menu();
            item         = new Gtk.MenuItem(_("_Server"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            image_item            = new Gtk.ImageMenuItem(_("_Quick Connect"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.Connect, Gtk.IconSize.Menu);
            image_item.Activated += OnServerQuickConnectButtonClicked;
            menu.Append(image_item);

            menu.Append(new Gtk.SeparatorMenuItem());

            image_item            = new Gtk.ImageMenuItem(Gtk.Stock.Add, agrp);
            image_item.Activated += OnServerAddButtonClicked;
            menu.Append(image_item);

            image_item            = new Gtk.ImageMenuItem(_("_Manage"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.Edit, Gtk.IconSize.Menu);
            image_item.Activated += OnServerManageServersButtonClicked;
            menu.Append(image_item);

            // Menu - Chat
            menu         = new Gtk.Menu();
            item         = new Gtk.MenuItem(_("_Chat"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            _OpenChatMenuItem            = new Gtk.ImageMenuItem(_("Open / Join Chat"));
            _OpenChatMenuItem.Image      = new Gtk.Image(Gtk.Stock.Open, Gtk.IconSize.Menu);
            _OpenChatMenuItem.Activated += OnChatOpenChatButtonClicked;
            _OpenChatMenuItem.Sensitive  = false;
            menu.Append(_OpenChatMenuItem);

            _FindGroupChatMenuItem            = new Gtk.ImageMenuItem(_("_Find Group Chat"));
            _FindGroupChatMenuItem.Image      = new Gtk.Image(Gtk.Stock.Find, Gtk.IconSize.Menu);
            _FindGroupChatMenuItem.Activated += OnChatFindGroupChatButtonClicked;
            _FindGroupChatMenuItem.Sensitive  = false;
            menu.Append(_FindGroupChatMenuItem);

            image_item            = new Gtk.ImageMenuItem(_("C_lear All Activity"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.Clear, Gtk.IconSize.Menu);
            image_item.Activated += OnChatClearAllActivityButtonClicked;
            menu.Append(image_item);

            menu.Append(new Gtk.SeparatorMenuItem());

            image_item            = new Gtk.ImageMenuItem(_("_Next Chat"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.GoForward, Gtk.IconSize.Menu);
            image_item.Activated += OnNextChatMenuItemActivated;
            akey            = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.AccelMods  = Gdk.ModifierType.ControlMask;
            akey.Key        = Gdk.Key.Page_Down;
            image_item.AddAccelerator("activate", agrp, akey);
            menu.Append(image_item);

            image_item            = new Gtk.ImageMenuItem(_("_Previous Chat"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.GoBack, Gtk.IconSize.Menu);
            image_item.Activated += OnPreviousChatMenuItemActivated;
            akey            = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.AccelMods  = Gdk.ModifierType.ControlMask;
            akey.Key        = Gdk.Key.Page_Up;
            image_item.AddAccelerator("activate", agrp, akey);
            menu.Append(image_item);

            menu.Append(new Gtk.SeparatorMenuItem());

            /*
             * // TODO: make a radio item for each chat hotkey
             * Gtk.RadioMenuItem radio_item;
             * radio_item = new Gtk.RadioMenuItem();
             * radio_item = new Gtk.RadioMenuItem(radio_item);
             * radio_item = new Gtk.RadioMenuItem(radio_item);
             *
             * menu.Append(new Gtk.SeparatorMenuItem());
             */

            /*
             * image_item = new Gtk.ImageMenuItem(Gtk.Stock.Find, agrp);
             * image_item.Activated += OnFindChatMenuItemActivated;
             * menu.Append(image_item);
             *
             * item = new Gtk.MenuItem(_("Find _Next"));
             * item.Activated += OnFindNextChatMenuItemActivated;
             * akey = new Gtk.AccelKey();
             * akey.AccelFlags = Gtk.AccelFlags.Visible;
             * akey.AccelMods = Gdk.ModifierType.ControlMask;
             * akey.Key = Gdk.Key.G;
             * item.AddAccelerator("activate", agrp, akey);
             * menu.Append(item);
             *
             * item = new Gtk.MenuItem(_("Find _Previous"));
             * item.Activated += OnFindPreviousChatMenuItemActivated;
             * akey = new Gtk.AccelKey();
             * akey.AccelFlags = Gtk.AccelFlags.Visible;
             * akey.AccelMods = Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask;
             * akey.Key = Gdk.Key.G;
             * item.AddAccelerator("activate", agrp, akey);
             * menu.Append(item);
             */

            // ROFL: the empty code statement below is needed to keep stupid
            // gettext away from using all the commented code from above as
            // translator comment
            ;
            _OpenLogChatMenuItem       = new Gtk.ImageMenuItem(_("Open Log"));
            _OpenLogChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Open,
                                                       Gtk.IconSize.Menu);
            _OpenLogChatMenuItem.Activated += OnOpenLogChatMenuItemActivated;
            _OpenLogChatMenuItem.Sensitive  = false;
            _OpenLogChatMenuItem.NoShowAll  = true;
            menu.Append(_OpenLogChatMenuItem);

            _CloseChatMenuItem            = new Gtk.ImageMenuItem(Gtk.Stock.Close, agrp);
            _CloseChatMenuItem.Activated += OnCloseChatMenuItemActivated;
            menu.Append(_CloseChatMenuItem);

            // Menu - Engine
            menu         = new Gtk.Menu();
            item         = new Gtk.MenuItem(_("_Engine"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            item            = new Gtk.MenuItem(_("_Use Local Engine"));
            item.Activated += new EventHandler(_OnUseLocalEngineButtonClicked);
            menu.Append(item);

            menu.Append(new Gtk.SeparatorMenuItem());

            image_item            = new Gtk.ImageMenuItem(_("_Add Remote Engine"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.Add, Gtk.IconSize.Menu);
            image_item.Activated += new EventHandler(_OnAddRemoteEngineButtonClicked);
            menu.Append(image_item);

            image_item            = new Gtk.ImageMenuItem(_("_Switch Remote Engine"));
            image_item.Image      = new Gtk.Image(Gtk.Stock.Refresh, Gtk.IconSize.Menu);
            image_item.Activated += new EventHandler(_OnSwitchRemoteEngineButtonClicked);
            menu.Append(image_item);

            // Menu - View
            menu         = new Gtk.Menu();
            item         = new Gtk.MenuItem(_("_View"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            item            = new Gtk.CheckMenuItem(_("_Caret Mode"));
            item.Activated += new EventHandler(_OnCaretModeButtonClicked);
            akey            = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.Key        = Gdk.Key.F7;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            item            = new Gtk.CheckMenuItem(_("_Browse Mode"));
            item.Activated += delegate {
                try {
                    _Notebook.IsBrowseModeEnabled = !_Notebook.IsBrowseModeEnabled;
                } catch (Exception ex) {
                    Frontend.ShowException(this, ex);
                }
            };
            akey            = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.Key        = Gdk.Key.F8;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            _ShowMenuBarItem            = new Gtk.CheckMenuItem(_("Show _Menubar"));
            _ShowMenuBarItem.Active     = true;
            _ShowMenuBarItem.Activated += delegate {
                try {
                    _MenuBar.Visible = !_MenuBar.Visible;
                } catch (Exception ex) {
                    Frontend.ShowException(this, ex);
                }
            };
            menu.Append(_ShowMenuBarItem);

            item            = new Gtk.ImageMenuItem(Gtk.Stock.Fullscreen, agrp);
            item.Activated += delegate {
                try {
                    IsFullscreen = !IsFullscreen;
                } catch (Exception ex) {
                    Frontend.ShowException(this, ex);
                }
            };
            akey            = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.Key        = Gdk.Key.F11;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            // Menu - Help
            menu         = new Gtk.Menu();
            item         = new Gtk.MenuItem(_("_Help"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            image_item            = new Gtk.ImageMenuItem(Gtk.Stock.About, agrp);
            image_item.Activated += new EventHandler(_OnAboutButtonClicked);
            menu.Append(image_item);

            // TODO: network treeview
            _Notebook             = new Notebook();
            _Notebook.SwitchPage += OnNotebookSwitchPage;

            _ChatViewManager = new ChatViewManager(_Notebook, null);
            Assembly asm = Assembly.GetExecutingAssembly();

            _ChatViewManager.Load(asm);
            _ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location),
                                     "smuxi-frontend-gnome-*.dll");
            _ChatViewManager.ChatAdded   += OnChatViewManagerChatAdded;
            _ChatViewManager.ChatSynced  += OnChatViewManagerChatSynced;
            _ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved;

#if GTK_SHARP_2_10
            _StatusIconManager = new StatusIconManager(this, _ChatViewManager);
#endif
#if INDICATE_SHARP
            _IndicateManager = new IndicateManager(this, _ChatViewManager);
#endif
#if NOTIFY_SHARP
            _NotifyManager = new NotifyManager(this, _ChatViewManager);
#endif
#if IPC_DBUS
            _NetworkManager = new NetworkManager(_ChatViewManager);
#endif

            _UI = new GnomeUI(_ChatViewManager);

            // HACK: Frontend.FrontendConfig out of scope
            _EngineManager = new EngineManager(Frontend.FrontendConfig, _UI);

            _Entry = new Entry(_ChatViewManager);

            _ProgressBar          = new Gtk.ProgressBar();
            _ProgressBar.BarStyle = Gtk.ProgressBarStyle.Continuous;

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(_MenuBar, false, false, 0);
            vbox.PackStart(_Notebook, true, true, 0);
            vbox.PackStart(_Entry, false, false, 0);

            _NetworkStatusbar = new Gtk.Statusbar();
            _NetworkStatusbar.WidthRequest  = 300;
            _NetworkStatusbar.HasResizeGrip = false;

            _Statusbar = new Gtk.Statusbar();
            _Statusbar.HasResizeGrip = false;

            Gtk.HBox status_bar_hbox = new Gtk.HBox();
            status_bar_hbox.Homogeneous = true;
            status_bar_hbox.PackStart(_NetworkStatusbar, false, true, 0);
            status_bar_hbox.PackStart(_Statusbar, true, true, 0);

            Gtk.HBox status_hbox = new Gtk.HBox();
            status_hbox.PackStart(status_bar_hbox);
            status_hbox.PackStart(_ProgressBar, false, false, 0);

            vbox.PackStart(status_hbox, false, false, 0);
            Add(vbox);
        }
Пример #10
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);
 }
Пример #11
0
        private Atk.Object GetAccessible(BasicWidgetType type, string text, object preWidget, bool real, bool embeddedImage)
        {
            Atk.Object     accessible = null;
            Gtk.Widget     widget     = null;
            Gtk.Adjustment adj        = new Gtk.Adjustment(50, 0, 100, 1, 10, 20);
            switch (type)
            {
            case BasicWidgetType.Label:
                widget = new Gtk.Label();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealLabel();
                }
                ((Gtk.Label)widget).Text = text;
                break;

            case BasicWidgetType.NormalButton:
                widget = new Gtk.Button();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealButton(embeddedImage);
                }
                ((Gtk.Button)widget).Label = text;
                break;

            case BasicWidgetType.Window:
                widget = new Gtk.Window(text);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealWindow();
                }
                break;

            case BasicWidgetType.CheckBox:
                widget = new Gtk.CheckButton();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealCheckBox(embeddedImage);
                }
                ((Gtk.CheckButton)widget).Label = text;
                break;

            case BasicWidgetType.RadioButton:
                if (!real)
                {
                    throw new NotSupportedException("We cannot use non-real radio buttons because of some wierd behaviour");
                }

                widget = GailTestApp.MainClass.GiveMeARealRadioButton(embeddedImage);
                RunInGuiThread(delegate {
                    ((Gtk.CheckButton)widget).Label = text;
                });
                break;

            case BasicWidgetType.StatusBar:
                widget = new Gtk.Statusbar();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealStatusbar();
                }
                ((Gtk.Statusbar)widget).Push(0, text);
                break;

            case BasicWidgetType.TextBoxEntry:
                if (!real)
                {
                    throw new NotSupportedException();
                }

                widget = GailTestApp.MainClass.GiveMeARealEntry(true);
                RunInGuiThread(delegate {
                    ((Gtk.Entry)widget).Text = text;
                });
                break;

            case BasicWidgetType.RichTextBox:
            case BasicWidgetType.TextBoxView:
                if (!real)
                {
                    throw new NotSupportedException();
                }

                widget = GailTestApp.MainClass.GiveMeARealTextView();
                RunInGuiThread(delegate {
                    ((Gtk.TextView)widget).Buffer.Text = text;
                });
                break;

            case BasicWidgetType.PasswordCharTextBoxEntry:
                if (!real)
                {
                    throw new NotSupportedException();
                }

                widget = GailTestApp.MainClass.GiveMeARealEntry(false);
                RunInGuiThread(delegate {
                    ((Gtk.Entry)widget).Text = text;
                });
                break;

            case BasicWidgetType.HScrollBar:
                widget = new Gtk.HScrollbar(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealHScrollbar();
                }
                break;

            case BasicWidgetType.VScrollBar:
                widget = new Gtk.VScrollbar(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealVScrollbar();
                }
                break;

            case BasicWidgetType.ProgressBar:
                widget = new Gtk.ProgressBar(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealProgressBar();
                }
                break;

            case BasicWidgetType.Spinner:
                widget = new Gtk.SpinButton(adj, 1, 2);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealSpinButton();
                }
                break;

            case BasicWidgetType.PictureBox:
                widget = new Gtk.Image();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealImage(embeddedImage);
                }
                break;

            case BasicWidgetType.ListView:
            case BasicWidgetType.TreeView:
                Gtk.TreeStore store       = null;
                List <string> columnNames = new List <String> ();
                XmlDocument   xml         = new XmlDocument();
                xml.LoadXml(text);
                foreach (XmlElement th in xml.GetElementsByTagName("th"))
                {
                    foreach (XmlElement td in th.GetElementsByTagName("td"))
                    {
                        columnNames.Add(td.InnerText);
                    }
                }
                if (columnNames.Count == 0)
                {
                    columnNames.Add(string.Empty);
                }
                if (columnNames.Count == 1)
                {
                    store = new Gtk.TreeStore(typeof(string));
                }
                else if (columnNames.Count == 2)
                {
                    store = new Gtk.TreeStore(typeof(string), typeof(string));
                }
                else if (columnNames.Count == 3)
                {
                    store = new Gtk.TreeStore(typeof(string), typeof(string), typeof(string));
                }
                else
                {
                    Assert.Fail("This test only supports 1-3 columns; got " + columnNames.Count);
                }
                Gtk.TreeIter[] iters = new Gtk.TreeIter [8];
                XmlElement     root  = xml.DocumentElement;
                for (XmlNode node = root.FirstChild; node != null; node = node.NextSibling)
                {
                    if (node.Name == "tr")
                    {
                        AddToTreeStore(store, iters, 0, node);
                    }
                }
                widget = new Gtk.TreeView(store);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealTreeView();
                    RunInGuiThread(delegate {
                        ((Gtk.TreeView)widget).Model = store;
                    });
                }

                RunInGuiThread(delegate {
                    Gtk.TreeView treeView = (Gtk.TreeView)widget;
                    int i;
                    for (i = treeView.Columns.Length - 1; i >= 0; i--)
                    {
                        treeView.RemoveColumn(treeView.Columns [i]);
                    }
                    i = 0;
                    foreach (string columnName in columnNames)
                    {
                        Gtk.TreeViewColumn col = new Gtk.TreeViewColumn();
                        col.Title = columnName;
                        treeView.AppendColumn(col);
                        Gtk.CellRendererText cell = new Gtk.CellRendererText();
                        col.PackStart(cell, true);
                        col.AddAttribute(cell, "text", i++);
                    }
                    ((Gtk.TreeView)widget).HeadersClickable = text.Contains("<th>");
                    ((Gtk.TreeView)widget).HeadersVisible   = ((Gtk.TreeView)widget).HeadersClickable;
                });
                break;

            case BasicWidgetType.ContainerPanel:
                widget = new Gtk.Frame();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealFrame();
                }
                break;

            case BasicWidgetType.HSplitContainer:
                widget = new Gtk.HPaned();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealHPaned();
                }
                break;

            case BasicWidgetType.VTrackBar:
                widget = new Gtk.VScale(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealVScale();
                }
                break;

            case BasicWidgetType.ComboBoxDropDownEntry:
            case BasicWidgetType.ComboBoxDropDownList:
            case BasicWidgetType.ComboBoxSimple:
                throw new NotSupportedException("You have to use the GetObject overload that receives a name array");

            default:
                throw new NotImplementedException("The widget finder backend still hasn't got support for " +
                                                  type.ToString());
            }

            accessible            = widget.Accessible;
            mappings [accessible] = widget;

            return(accessible);
        }
Пример #12
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // 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.image1 = new Gtk.Image();
     this.image1.Name = "image1";
     this.image1.Pixbuf = Gdk.Pixbuf.LoadFromResource("SpacewarArena.Gtk.logo.jpg");
     this.vbox1.Add(this.image1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.image1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook1 = new Gtk.Notebook();
     this.notebook1.CanFocus = true;
     this.notebook1.Name = "notebook1";
     this.notebook1.CurrentPage = 4;
     // Notebook tab
     Gtk.Label w2 = new Gtk.Label();
     w2.Visible = true;
     this.notebook1.Add(w2);
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(w2, this.label1);
     this.label1.ShowAll();
     // Notebook tab
     Gtk.Label w3 = new Gtk.Label();
     w3.Visible = true;
     this.notebook1.Add(w3);
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2");
     this.notebook1.SetTabLabel(w3, this.label2);
     this.label2.ShowAll();
     // Notebook tab
     Gtk.Label w4 = new Gtk.Label();
     w4.Visible = true;
     this.notebook1.Add(w4);
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("page3");
     this.notebook1.SetTabLabel(w4, this.label3);
     this.label3.ShowAll();
     // Notebook tab
     Gtk.Label w5 = new Gtk.Label();
     w5.Visible = true;
     this.notebook1.Add(w5);
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("page4");
     this.notebook1.SetTabLabel(w5, this.label4);
     this.label4.ShowAll();
     // Notebook tab
     Gtk.Label w6 = new Gtk.Label();
     w6.Visible = true;
     this.notebook1.Add(w6);
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("page5");
     this.notebook1.SetTabLabel(w6, this.label5);
     this.label5.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     w7.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 w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w8.Position = 2;
     w8.Expand = false;
     w8.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 642;
     this.DefaultHeight = 503;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Пример #13
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.connectAction = new Gtk.ToggleAction("connectAction", null, Mono.Unix.Catalog.GetString("Connect to server"), "gtk-connect");
     w1.Add(this.connectAction, null);
     this.SSLAction = new Gtk.ToggleAction("SSLAction", Mono.Unix.Catalog.GetString("SSL"), Mono.Unix.Catalog.GetString("Enable SSL for connection"), "gtk-dialog-authentication");
     this.SSLAction.ShortLabel = Mono.Unix.Catalog.GetString("SSL");
     w1.Add(this.SSLAction, null);
     this.quitAction = new Gtk.Action("quitAction", null, null, "gtk-quit");
     w1.Add(this.quitAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Login");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     // 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><toolbar name='toolbar1'><toolitem name='connectAction' action='connectAction'/><toolitem name='SSLAction' action='SSLAction'/><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.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     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;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Username");
     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.xid = new Gtk.Entry();
     this.xid.CanFocus = true;
     this.xid.Name = "xid";
     this.xid.IsEditable = true;
     this.xid.InvisibleChar = '●';
     this.hbox1.Add(this.xid);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.xid]));
     w4.Position = 1;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.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.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.hbox2.Add(this.label2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2]));
     w6.Position = 0;
     w6.Expand = false;
     w6.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.password = new Gtk.Entry();
     this.password.CanFocus = true;
     this.password.Name = "password";
     this.password.IsEditable = true;
     this.password.InvisibleChar = '●';
     this.hbox2.Add(this.password);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.password]));
     w7.Position = 1;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w8.Position = 2;
     w8.Expand = false;
     w8.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w9.Position = 3;
     w9.Expand = false;
     w9.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 162;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.connectAction.Toggled += new System.EventHandler(this.OnConnect);
     this.SSLAction.Toggled += new System.EventHandler(this.OnSSL);
     this.quitAction.Activated += new System.EventHandler(this.OnQuit);
 }
Пример #14
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);
 }
Пример #15
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "sink.help")) {
         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
         // Widget sink.help
         cobj.Title = "help";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.HasSeparator = false;
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "sink.help";
         // Internal child sink.help.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.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 1F);
         w3.TopPadding = ((uint)(15));
         w3.BottomPadding = ((uint)(15));
         w3.Events = ((Gdk.EventMask)(0));
         w3.Name = "alignment1";
         // Container child alignment1.Gtk.Container+ContainerChild
         Gtk.HBox w4 = new Gtk.HBox();
         w4.Spacing = 15;
         w4.Events = ((Gdk.EventMask)(0));
         w4.Name = "hbox3";
         // Container child hbox3.Gtk.Box+BoxChild
         Gtk.Image w5 = new Gtk.Image();
         w5.Pixbuf = new Gdk.Pixbuf("sink.bmp");
         w5.Events = ((Gdk.EventMask)(0));
         w5.Name = "image5";
         bindings["image5"] = w5;
         w4.Add(w5);
         Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w4[w5]));
         w6.Position = 0;
         w6.Expand = false;
         w6.Fill = false;
         // Container child hbox3.Gtk.Box+BoxChild
         Gtk.Label w7 = new Gtk.Label();
         w7.LabelProp = "SINK";
         w7.UseUnderline = true;
         w7.Events = ((Gdk.EventMask)(0));
         w7.Name = "label4";
         bindings["label4"] = w7;
         w4.Add(w7);
         Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w4[w7]));
         w8.Position = 1;
         w8.Expand = false;
         w8.Fill = false;
         bindings["hbox3"] = w4;
         w3.Add(w4);
         bindings["alignment1"] = w3;
         w2.Add(w3);
         Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w2[w3]));
         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)(2));
         w11.CanFocus = true;
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "scrolledwindow1";
         // Container child scrolledwindow1.Gtk.Container+ContainerChild
         Gtk.Viewport w12 = new Gtk.Viewport();
         w12.ShadowType = ((Gtk.ShadowType)(0));
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "GtkViewport";
         // Container child GtkViewport.Gtk.Container+ContainerChild
         Gtk.ScrolledWindow w13 = new Gtk.ScrolledWindow();
         w13.VscrollbarPolicy = ((Gtk.PolicyType)(1));
         w13.HscrollbarPolicy = ((Gtk.PolicyType)(1));
         w13.CanFocus = true;
         w13.Events = ((Gdk.EventMask)(0));
         w13.Name = "scrolledwindow2";
         // Container child scrolledwindow2.Gtk.Container+ContainerChild
         Gtk.TextView w14 = new Gtk.TextView();
         w14.Buffer.Text = "Introduction\r\n\r\nCellular automaton consist of an infinite number of cells, which have a finite number of states. These states change depending on the state of their neighbours.  Each cell has the same rule for updating.\r\n\r\nSink\r\n\r\nIn this program, the cells can have two states: 0 or 1. This state depends on the state of their neighbours and the place where the cell is. \r\n\r\nThese are the default update rules:\r\n\r\n.  If both the cell and path are 1, and the cell has eight neighbours, the cell becomes 0. \r\n.  If the cell is 1, path is 0 and the cell has more than three neighbours, the cell changes to 0.\r\n.  If both the cell and path are 0, and the cell has more than three neighbours, the cell changes to 1.\r\n.  If the cell is 0, path is 1 and the cell has more than two neighbours, the cell becomes 1.\r\n\r\nThe user can change all the parameters of the program in the configuration menu.\r\n";
         w14.WrapMode = ((Gtk.WrapMode)(2));
         w14.Editable = false;
         w14.CanFocus = true;
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "textview1";
         bindings["textview1"] = w14;
         w13.Add(w14);
         bindings["scrolledwindow2"] = w13;
         w12.Add(w13);
         bindings["GtkViewport"] = w12;
         w11.Add(w12);
         bindings["scrolledwindow1"] = w11;
         w2.Add(w11);
         Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w2[w11]));
         w18.Position = 1;
         bindings["vbox1"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w1[w2]));
         w19.Position = 0;
         bindings["dialog_VBox"] = w1;
         // Internal child sink.help.ActionArea
         Gtk.HButtonBox w20 = cobj.ActionArea;
         w20.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
         w20.Spacing = 6;
         w20.BorderWidth = ((uint)(5));
         w20.Events = ((Gdk.EventMask)(256));
         w20.Name = "sink.help_ActionArea";
         // Container child sink.help_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w21 = new Gtk.Button();
         w21.CanFocus = true;
         w21.Events = ((Gdk.EventMask)(0));
         w21.Name = "button3";
         w21.CanDefault = true;
         w21.Label = "OK";
         bindings["button3"] = w21;
         cobj.AddActionWidget(w21, 0);
         Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w20[w21]));
         w22.Expand = false;
         w22.Fill = false;
         bindings["sink.help_ActionArea"] = w20;
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 449;
         bindings["sink.help"] = cobj;
         w5.Show();
         w7.Show();
         w4.Show();
         w3.Show();
         w14.Show();
         w13.Show();
         w12.Show();
         w11.Show();
         w2.Show();
         w1.Show();
         w21.Show();
         w20.Show();
         cobj.Show();
         w21.Released += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnButton3Released")));
     }
     else {
         if ((id == "sink.sinkgtk")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget sink.sinkgtk
             cobj.Title = "sinkgtk";
             Gtk.UIManager w1 = new Gtk.UIManager();
             Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
             Gtk.Action w3 = new Gtk.Action("Simulation", "Simulation", null, null);
             w3.ShortLabel = "Start";
             bindings["Simulation"] = w3;
             w2.Add(w3, null);
             Gtk.Action w4 = new Gtk.Action("NewSimulation", "New simulation", null, "gtk-media-play");
             w4.ShortLabel = "New simulation";
             bindings["NewSimulation"] = w4;
             w2.Add(w4, null);
             Gtk.ToggleAction w5 = new Gtk.ToggleAction("PauseSimulation", "Pause simulation", null, "gtk-media-pause");
             w5.ShortLabel = "Pause simulation";
             bindings["PauseSimulation"] = w5;
             w2.Add(w5, null);
             Gtk.Action w6 = new Gtk.Action("StopSimulation", "Stop simulation", null, "gtk-media-stop");
             w6.ShortLabel = "Stop simulation";
             bindings["StopSimulation"] = w6;
             w2.Add(w6, null);
             Gtk.Action w7 = new Gtk.Action("Exit", "Exit", null, "gtk-close");
             w7.ShortLabel = "Exit";
             bindings["Exit"] = w7;
             w2.Add(w7, null);
             Gtk.Action w8 = new Gtk.Action("Configuration", "Configuration", null, null);
             w8.ShortLabel = "Configuration";
             bindings["Configuration"] = w8;
             w2.Add(w8, null);
             Gtk.Action w9 = new Gtk.Action("IntroVariables", "Intro variables", null, "gtk-properties");
             w9.ShortLabel = "Intro variables";
             bindings["IntroVariables"] = w9;
             w2.Add(w9, null);
             Gtk.Action w10 = new Gtk.Action("Help", "Help", null, null);
             w10.ShortLabel = "Help";
             bindings["Help"] = w10;
             w2.Add(w10, null);
             Gtk.Action w11 = new Gtk.Action("Help1", "Help", null, "gtk-help");
             w11.ShortLabel = "Help";
             bindings["Help1"] = w11;
             w2.Add(w11, null);
             Gtk.Action w12 = new Gtk.Action("AboutAuthors", "About Authors", null, "gtk-info");
             w12.ShortLabel = "About Authors";
             bindings["AboutAuthors"] = w12;
             w2.Add(w12, null);
             w1.InsertActionGroup(w2, 0);
             cobj.AddAccelGroup(w1.AccelGroup);
             cobj.Icon = Gtk.IconTheme.Default.LoadIcon("stock_internet", 16, 0);
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.Events = ((Gdk.EventMask)(0));
             cobj.Name = "sink.sinkgtk";
             // Container child sink.sinkgtk.Gtk.Container+ContainerChild
             Gtk.VBox w13 = new Gtk.VBox();
             w13.Events = ((Gdk.EventMask)(0));
             w13.Name = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='Simulation'><menuitem action='NewSimulation'/><menuitem action='PauseSimulation'/><menuitem action='StopSimulation'/><menuitem action='Exit'/></menu><menu action='Configuration'><menuitem action='IntroVariables'/></menu><menu action='Help'><menuitem action='Help1'/><menuitem action='AboutAuthors'/></menu></menubar></ui>");
             Gtk.MenuBar w14 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
             w14.Events = ((Gdk.EventMask)(0));
             w14.Name = "menubar1";
             bindings["menubar1"] = w14;
             w13.Add(w14);
             Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w13[w14]));
             w15.Position = 0;
             w15.Expand = false;
             w15.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.Statusbar w16 = new Gtk.Statusbar();
             w16.Events = ((Gdk.EventMask)(0));
             w16.Name = "statusbar1";
             bindings["statusbar1"] = w16;
             w13.Add(w16);
             Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w13[w16]));
             w17.Position = 1;
             w17.Expand = false;
             w17.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.DrawingArea w18 = new Gtk.DrawingArea();
             w18.Events = ((Gdk.EventMask)(0));
             w18.Name = "drawingarea1";
             bindings["drawingarea1"] = w18;
             w13.Add(w18);
             Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w13[w18]));
             w19.Position = 2;
             bindings["vbox1"] = w13;
             cobj.Add(w13);
             cobj.DefaultWidth = 500;
             cobj.DefaultHeight = 300;
             bindings["sink.sinkgtk"] = cobj;
             w14.Show();
             w16.Show();
             w18.Show();
             w13.Show();
             cobj.Show();
             cobj.Removed += ((Gtk.RemovedHandler)(System.Delegate.CreateDelegate(typeof(Gtk.RemovedHandler), cobj, "OnRemoved")));
             w4.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewSimulationActivated")));
             w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnPauseSimulationActivated")));
             w6.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnStopSimulationActivated")));
             w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnExitActivated")));
             w9.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnIntroVariablesActivated")));
             w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnHelp1Activated")));
             w12.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAboutAuthorsActivated")));
             w18.ExposeEvent += ((Gtk.ExposeEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.ExposeEventHandler), cobj, "OnDrawingarea1ExposeEvent")));
         }
         else {
             if ((id == "sink.configuration")) {
                 Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                 // Widget sink.configuration
                 cobj.Title = "configuration";
                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                 cobj.HasSeparator = false;
                 cobj.Events = ((Gdk.EventMask)(256));
                 cobj.Name = "sink.configuration";
                 // Internal child sink.configuration.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.Table w3 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
                 w3.Events = ((Gdk.EventMask)(0));
                 w3.Name = "table1";
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.Label w4 = new Gtk.Label();
                 w4.LabelProp = "Max cicles";
                 w4.Events = ((Gdk.EventMask)(0));
                 w4.Name = "label1";
                 bindings["label1"] = w4;
                 w3.Add(w4);
                 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(w3[w4]));
                 w5.YOptions = ((Gtk.AttachOptions)(4));
                 w5.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.Label w6 = new Gtk.Label();
                 w6.LabelProp = "Population";
                 w6.Events = ((Gdk.EventMask)(0));
                 w6.Name = "label3";
                 bindings["label3"] = w6;
                 w3.Add(w6);
                 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(w3[w6]));
                 w7.BottomAttach = ((uint)(2));
                 w7.TopAttach = ((uint)(1));
                 w7.YOptions = ((Gtk.AttachOptions)(4));
                 w7.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.Label w8 = new Gtk.Label();
                 w8.LabelProp = "Mortality";
                 w8.Events = ((Gdk.EventMask)(0));
                 w8.Name = "label4";
                 bindings["label4"] = w8;
                 w3.Add(w8);
                 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(w3[w8]));
                 w9.BottomAttach = ((uint)(3));
                 w9.TopAttach = ((uint)(2));
                 w9.YOptions = ((Gtk.AttachOptions)(4));
                 w9.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.Label w10 = new Gtk.Label();
                 w10.LabelProp = "Patch";
                 w10.Events = ((Gdk.EventMask)(0));
                 w10.Name = "label5";
                 bindings["label5"] = w10;
                 w3.Add(w10);
                 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(w3[w10]));
                 w11.BottomAttach = ((uint)(4));
                 w11.TopAttach = ((uint)(3));
                 w11.YOptions = ((Gtk.AttachOptions)(4));
                 w11.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.HScale w12 = new Gtk.HScale(null);
                 w12.Digits = 0;
                 w12.Adjustment.Upper = 100000;
                 w12.Adjustment.PageIncrement = 100;
                 w12.Adjustment.StepIncrement = 10;
                 w12.DrawValue = true;
                 w12.Adjustment.Value = 99900;
                 w12.ValuePos = ((Gtk.PositionType)(2));
                 w12.CanFocus = true;
                 w12.Events = ((Gdk.EventMask)(0));
                 w12.Name = "hscale1";
                 bindings["hscale1"] = w12;
                 w3.Add(w12);
                 Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(w3[w12]));
                 w13.LeftAttach = ((uint)(1));
                 w13.RightAttach = ((uint)(2));
                 w13.YOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.HScale w14 = new Gtk.HScale(null);
                 w14.Digits = 0;
                 w14.Adjustment.Upper = 5000;
                 w14.Adjustment.PageIncrement = 10;
                 w14.Adjustment.StepIncrement = 1;
                 w14.DrawValue = true;
                 w14.ValuePos = ((Gtk.PositionType)(2));
                 w14.CanFocus = true;
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "hscale2";
                 bindings["hscale2"] = w14;
                 w3.Add(w14);
                 Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(w3[w14]));
                 w15.BottomAttach = ((uint)(2));
                 w15.LeftAttach = ((uint)(1));
                 w15.RightAttach = ((uint)(2));
                 w15.TopAttach = ((uint)(1));
                 w15.YOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.HScale w16 = new Gtk.HScale(null);
                 w16.Digits = 0;
                 w16.Adjustment.Upper = 10000;
                 w16.Adjustment.PageIncrement = 10;
                 w16.Adjustment.StepIncrement = 1;
                 w16.DrawValue = true;
                 w16.ValuePos = ((Gtk.PositionType)(2));
                 w16.CanFocus = true;
                 w16.Events = ((Gdk.EventMask)(0));
                 w16.Name = "hscale3";
                 bindings["hscale3"] = w16;
                 w3.Add(w16);
                 Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(w3[w16]));
                 w17.BottomAttach = ((uint)(3));
                 w17.LeftAttach = ((uint)(1));
                 w17.RightAttach = ((uint)(2));
                 w17.TopAttach = ((uint)(2));
                 w17.YOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.HScale w18 = new Gtk.HScale(null);
                 w18.Digits = 0;
                 w18.Adjustment.Upper = 1000;
                 w18.Adjustment.PageIncrement = 10;
                 w18.Adjustment.StepIncrement = 1;
                 w18.DrawValue = true;
                 w18.ValuePos = ((Gtk.PositionType)(2));
                 w18.CanFocus = true;
                 w18.Events = ((Gdk.EventMask)(0));
                 w18.Name = "hscale4";
                 bindings["hscale4"] = w18;
                 w3.Add(w18);
                 Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(w3[w18]));
                 w19.BottomAttach = ((uint)(4));
                 w19.LeftAttach = ((uint)(1));
                 w19.RightAttach = ((uint)(2));
                 w19.TopAttach = ((uint)(3));
                 w19.YOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.HScale w20 = new Gtk.HScale(null);
                 w20.Digits = 0;
                 w20.Adjustment.Upper = 300;
                 w20.Adjustment.PageIncrement = 10;
                 w20.Adjustment.StepIncrement = 1;
                 w20.DrawValue = true;
                 w20.Adjustment.Value = 60;
                 w20.ValuePos = ((Gtk.PositionType)(2));
                 w20.CanFocus = true;
                 w20.Events = ((Gdk.EventMask)(0));
                 w20.Name = "hscale5";
                 bindings["hscale5"] = w20;
                 w3.Add(w20);
                 Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(w3[w20]));
                 w21.BottomAttach = ((uint)(5));
                 w21.LeftAttach = ((uint)(1));
                 w21.RightAttach = ((uint)(2));
                 w21.TopAttach = ((uint)(4));
                 w21.YOptions = ((Gtk.AttachOptions)(4));
                 // Container child table1.Gtk.Table+TableChild
                 Gtk.Label w22 = new Gtk.Label();
                 w22.LabelProp = "Size ";
                 w22.Events = ((Gdk.EventMask)(0));
                 w22.Name = "label7";
                 bindings["label7"] = w22;
                 w3.Add(w22);
                 Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(w3[w22]));
                 w23.BottomAttach = ((uint)(5));
                 w23.TopAttach = ((uint)(4));
                 w23.YOptions = ((Gtk.AttachOptions)(4));
                 w23.XOptions = ((Gtk.AttachOptions)(4));
                 bindings["table1"] = w3;
                 w2.Add(w3);
                 Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(w2[w3]));
                 w24.Position = 0;
                 w24.Expand = false;
                 w24.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.Frame w25 = new Gtk.Frame();
                 w25.ShadowType = ((Gtk.ShadowType)(0));
                 w25.LabelXalign = 0F;
                 w25.Events = ((Gdk.EventMask)(0));
                 w25.Name = "frame2";
                 // Container child frame2.Gtk.Container+ContainerChild
                 Gtk.Alignment w26 = new Gtk.Alignment(0F, 0F, 1F, 1F);
                 w26.LeftPadding = ((uint)(12));
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.Table w27 = new Gtk.Table(((uint)(6)), ((uint)(3)), false);
                 w27.Events = ((Gdk.EventMask)(0));
                 w27.Name = "table2";
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w28 = new Gtk.Label();
                 w28.LabelProp = "     Cell changes to 1 if:";
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "label16";
                 bindings["label16"] = w28;
                 w27.Add(w28);
                 Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(w27[w28]));
                 w29.BottomAttach = ((uint)(4));
                 w29.LeftAttach = ((uint)(1));
                 w29.RightAttach = ((uint)(2));
                 w29.TopAttach = ((uint)(3));
                 w29.YOptions = ((Gtk.AttachOptions)(4));
                 w29.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w30 = new Gtk.Label();
                 w30.LabelProp = "                       Cell changes to 0 if:                 ";
                 w30.Events = ((Gdk.EventMask)(0));
                 w30.Name = "label2";
                 bindings["label2"] = w30;
                 w27.Add(w30);
                 Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(w27[w30]));
                 w31.LeftAttach = ((uint)(1));
                 w31.RightAttach = ((uint)(2));
                 w31.YOptions = ((Gtk.AttachOptions)(4));
                 w31.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w32 = new Gtk.Label();
                 w32.LabelProp = "If neighborhood is >=   ";
                 w32.Events = ((Gdk.EventMask)(0));
                 w32.Name = "label15";
                 bindings["label15"] = w32;
                 w27.Add(w32);
                 Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(w27[w32]));
                 w33.BottomAttach = ((uint)(2));
                 w33.TopAttach = ((uint)(1));
                 w33.YOptions = ((Gtk.AttachOptions)(4));
                 w33.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w34 = new Gtk.Label();
                 w34.LabelProp = "If neighborhood is >=   ";
                 w34.Events = ((Gdk.EventMask)(0));
                 w34.Name = "label11";
                 bindings["label11"] = w34;
                 w27.Add(w34);
                 Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(w27[w34]));
                 w35.BottomAttach = ((uint)(3));
                 w35.TopAttach = ((uint)(2));
                 w35.YOptions = ((Gtk.AttachOptions)(4));
                 w35.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w36 = new Gtk.Label();
                 w36.LabelProp = "If neighborhood is >=";
                 w36.Events = ((Gdk.EventMask)(0));
                 w36.Name = "label13";
                 bindings["label13"] = w36;
                 w27.Add(w36);
                 Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(w27[w36]));
                 w37.BottomAttach = ((uint)(5));
                 w37.TopAttach = ((uint)(4));
                 w37.YOptions = ((Gtk.AttachOptions)(4));
                 w37.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w38 = new Gtk.Label();
                 w38.LabelProp = "If neighborhood is >=";
                 w38.Events = ((Gdk.EventMask)(0));
                 w38.Name = "label14";
                 bindings["label14"] = w38;
                 w27.Add(w38);
                 Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(w27[w38]));
                 w39.BottomAttach = ((uint)(6));
                 w39.TopAttach = ((uint)(5));
                 w39.YOptions = ((Gtk.AttachOptions)(4));
                 w39.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w40 = new Gtk.Label();
                 w40.LabelProp = "and habitat = 1;  Or ...";
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "label6";
                 bindings["label6"] = w40;
                 w27.Add(w40);
                 Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(w27[w40]));
                 w41.BottomAttach = ((uint)(2));
                 w41.LeftAttach = ((uint)(2));
                 w41.RightAttach = ((uint)(3));
                 w41.TopAttach = ((uint)(1));
                 w41.YOptions = ((Gtk.AttachOptions)(4));
                 w41.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w42 = new Gtk.Label();
                 w42.LabelProp = "and habitat = 0; ";
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "label12";
                 bindings["label12"] = w42;
                 w27.Add(w42);
                 Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(w27[w42]));
                 w43.BottomAttach = ((uint)(3));
                 w43.LeftAttach = ((uint)(2));
                 w43.RightAttach = ((uint)(3));
                 w43.TopAttach = ((uint)(2));
                 w43.YOptions = ((Gtk.AttachOptions)(4));
                 w43.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w44 = new Gtk.Label();
                 w44.LabelProp = "and habitat = 1; Or...";
                 w44.Events = ((Gdk.EventMask)(0));
                 w44.Name = "label9";
                 bindings["label9"] = w44;
                 w27.Add(w44);
                 Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(w27[w44]));
                 w45.BottomAttach = ((uint)(5));
                 w45.LeftAttach = ((uint)(2));
                 w45.RightAttach = ((uint)(3));
                 w45.TopAttach = ((uint)(4));
                 w45.YOptions = ((Gtk.AttachOptions)(4));
                 w45.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.Label w46 = new Gtk.Label();
                 w46.LabelProp = "and habitat = 0;";
                 w46.Events = ((Gdk.EventMask)(0));
                 w46.Name = "label10";
                 bindings["label10"] = w46;
                 w27.Add(w46);
                 Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(w27[w46]));
                 w47.BottomAttach = ((uint)(6));
                 w47.LeftAttach = ((uint)(2));
                 w47.RightAttach = ((uint)(3));
                 w47.TopAttach = ((uint)(5));
                 w47.YOptions = ((Gtk.AttachOptions)(4));
                 w47.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.HScale w48 = new Gtk.HScale(null);
                 w48.Digits = 0;
                 w48.Adjustment.Upper = 8;
                 w48.Adjustment.PageIncrement = 1;
                 w48.Adjustment.StepIncrement = 1;
                 w48.DrawValue = true;
                 w48.Adjustment.Value = 8;
                 w48.ValuePos = ((Gtk.PositionType)(2));
                 w48.CanFocus = true;
                 w48.Events = ((Gdk.EventMask)(0));
                 w48.Name = "hscale7";
                 bindings["hscale7"] = w48;
                 w27.Add(w48);
                 Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(w27[w48]));
                 w49.BottomAttach = ((uint)(2));
                 w49.LeftAttach = ((uint)(1));
                 w49.RightAttach = ((uint)(2));
                 w49.TopAttach = ((uint)(1));
                 w49.YOptions = ((Gtk.AttachOptions)(4));
                 w49.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.HScale w50 = new Gtk.HScale(null);
                 w50.Digits = 0;
                 w50.Adjustment.Upper = 8;
                 w50.Adjustment.PageIncrement = 1;
                 w50.Adjustment.StepIncrement = 1;
                 w50.DrawValue = true;
                 w50.ValuePos = ((Gtk.PositionType)(2));
                 w50.CanFocus = true;
                 w50.Events = ((Gdk.EventMask)(0));
                 w50.Name = "hscale8";
                 bindings["hscale8"] = w50;
                 w27.Add(w50);
                 Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(w27[w50]));
                 w51.BottomAttach = ((uint)(3));
                 w51.LeftAttach = ((uint)(1));
                 w51.RightAttach = ((uint)(2));
                 w51.TopAttach = ((uint)(2));
                 w51.YOptions = ((Gtk.AttachOptions)(4));
                 w51.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.HScale w52 = new Gtk.HScale(null);
                 w52.Digits = 0;
                 w52.Adjustment.Upper = 8;
                 w52.Adjustment.PageIncrement = 1;
                 w52.Adjustment.StepIncrement = 1;
                 w52.DrawValue = true;
                 w52.Adjustment.Value = 8;
                 w52.ValuePos = ((Gtk.PositionType)(2));
                 w52.CanFocus = true;
                 w52.Events = ((Gdk.EventMask)(0));
                 w52.Name = "hscale9";
                 bindings["hscale9"] = w52;
                 w27.Add(w52);
                 Gtk.Table.TableChild w53 = ((Gtk.Table.TableChild)(w27[w52]));
                 w53.BottomAttach = ((uint)(5));
                 w53.LeftAttach = ((uint)(1));
                 w53.RightAttach = ((uint)(2));
                 w53.TopAttach = ((uint)(4));
                 w53.YOptions = ((Gtk.AttachOptions)(4));
                 w53.XOptions = ((Gtk.AttachOptions)(4));
                 // Container child table2.Gtk.Table+TableChild
                 Gtk.HScale w54 = new Gtk.HScale(null);
                 w54.Digits = 0;
                 w54.Adjustment.Upper = 8;
                 w54.Adjustment.PageIncrement = 1;
                 w54.Adjustment.StepIncrement = 1;
                 w54.DrawValue = true;
                 w54.Adjustment.Value = 3;
                 w54.ValuePos = ((Gtk.PositionType)(2));
                 w54.CanFocus = true;
                 w54.Events = ((Gdk.EventMask)(0));
                 w54.Name = "hscale10";
                 bindings["hscale10"] = w54;
                 w27.Add(w54);
                 Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(w27[w54]));
                 w55.BottomAttach = ((uint)(6));
                 w55.LeftAttach = ((uint)(1));
                 w55.RightAttach = ((uint)(2));
                 w55.TopAttach = ((uint)(5));
                 w55.YOptions = ((Gtk.AttachOptions)(4));
                 w55.XOptions = ((Gtk.AttachOptions)(4));
                 bindings["table2"] = w27;
                 w26.Add(w27);
                 bindings["GtkAlignment"] = w26;
                 w25.Add(w26);
                 Gtk.Label w58 = new Gtk.Label();
                 w58.LabelProp = "<b>Internal variables:</b>";
                 w58.UseMarkup = true;
                 w58.Events = ((Gdk.EventMask)(256));
                 w58.Name = "GtkLabel1";
                 bindings["GtkLabel1"] = w58;
                 w25.LabelWidget = w58;
                 bindings["frame2"] = w25;
                 w2.Add(w25);
                 Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w2[w25]));
                 w59.Position = 1;
                 w59.Expand = false;
                 w59.Fill = false;
                 bindings["vbox1"] = w2;
                 w1.Add(w2);
                 Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w1[w2]));
                 w60.Position = 0;
                 w60.Expand = false;
                 w60.Fill = false;
                 bindings["dialog_VBox"] = w1;
                 // Internal child sink.configuration.ActionArea
                 Gtk.HButtonBox w61 = cobj.ActionArea;
                 w61.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                 w61.Spacing = 6;
                 w61.BorderWidth = ((uint)(5));
                 w61.Events = ((Gdk.EventMask)(256));
                 w61.Name = "sink.configuration_ActionArea";
                 // Container child sink.configuration_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w62 = new Gtk.Button();
                 w62.CanFocus = true;
                 w62.Events = ((Gdk.EventMask)(0));
                 w62.Name = "button1";
                 w62.CanDefault = true;
                 w62.Label = "Save";
                 bindings["button1"] = w62;
                 cobj.AddActionWidget(w62, 0);
                 Gtk.ButtonBox.ButtonBoxChild w63 = ((Gtk.ButtonBox.ButtonBoxChild)(w61[w62]));
                 w63.Expand = false;
                 w63.Fill = false;
                 bindings["sink.configuration_ActionArea"] = w61;
                 cobj.DefaultWidth = 609;
                 cobj.DefaultHeight = 484;
                 bindings["sink.configuration"] = cobj;
                 w4.Show();
                 w6.Show();
                 w8.Show();
                 w10.Show();
                 w12.Show();
                 w14.Show();
                 w16.Show();
                 w18.Show();
                 w20.Show();
                 w22.Show();
                 w3.Show();
                 w28.Show();
                 w30.Show();
                 w32.Show();
                 w34.Show();
                 w36.Show();
                 w38.Show();
                 w40.Show();
                 w42.Show();
                 w44.Show();
                 w46.Show();
                 w48.Show();
                 w50.Show();
                 w52.Show();
                 w54.Show();
                 w27.Show();
                 w26.Show();
                 w58.Show();
                 w25.Show();
                 w2.Show();
                 w1.Show();
                 w62.Show();
                 w61.Show();
                 cobj.Show();
                 w62.Released += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnButton1Released")));
             }
         }
     }
     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.OCMMainWindow
     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.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.FilterAction = new Gtk.Action("FilterAction", Mono.Unix.Catalog.GetString("F_ilter"), null, null);
     this.FilterAction.ShortLabel = Mono.Unix.Catalog.GetString("F_ilter");
     w1.Add(this.FilterAction, null);
     this.GoAction = new Gtk.Action("GoAction", Mono.Unix.Catalog.GetString("_Go"), null, null);
     this.GoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Go");
     w1.Add(this.GoAction, null);
     this.BookmarksAction = new Gtk.Action("BookmarksAction", Mono.Unix.Catalog.GetString("_Bookmarks"), null, null);
     this.BookmarksAction.ShortLabel = Mono.Unix.Catalog.GetString("_Bookmarks");
     w1.Add(this.BookmarksAction, null);
     this.CacheAction = new Gtk.Action("CacheAction", Mono.Unix.Catalog.GetString("_Cache"), null, null);
     this.CacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_Cache");
     w1.Add(this.CacheAction, null);
     this.WebAction = new Gtk.Action("WebAction", Mono.Unix.Catalog.GetString("_Web"), null, null);
     this.WebAction.ShortLabel = Mono.Unix.Catalog.GetString("_Web");
     w1.Add(this.WebAction, null);
     this.GPSAction = new Gtk.Action("GPSAction", Mono.Unix.Catalog.GetString("G_PS"), null, null);
     this.GPSAction.ShortLabel = Mono.Unix.Catalog.GetString("G_PS");
     w1.Add(this.GPSAction, 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.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 Database..."), null, "gtk-open");
     this.openAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open Database...");
     w1.Add(this.openAction, null);
     this.CompactDatabaseAction = new Gtk.Action("CompactDatabaseAction", Mono.Unix.Catalog.GetString("_Compact Database"), null, null);
     this.CompactDatabaseAction.ShortLabel = Mono.Unix.Catalog.GetString("_Compact Database");
     w1.Add(this.CompactDatabaseAction, 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.NewDatabaseAction = new Gtk.Action("NewDatabaseAction", Mono.Unix.Catalog.GetString("_New Database..."), null, null);
     this.NewDatabaseAction.ShortLabel = Mono.Unix.Catalog.GetString("_New Database...");
     w1.Add(this.NewDatabaseAction, "<Control><Mod2>n");
     this.NewCacheAction = new Gtk.Action("NewCacheAction", Mono.Unix.Catalog.GetString("New _Cache..."), null, null);
     this.NewCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("New _Cache...");
     w1.Add(this.NewCacheAction, null);
     this.ShowNearbyCachesAction = new Gtk.ToggleAction("ShowNearbyCachesAction", Mono.Unix.Catalog.GetString("_Show Nearby Caches"), null, null);
     this.ShowNearbyCachesAction.Active = true;
     this.ShowNearbyCachesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Show Nearby Caches");
     w1.Add(this.ShowNearbyCachesAction, null);
     this.ChildWaypointsAction = new Gtk.Action("ChildWaypointsAction", Mono.Unix.Catalog.GetString("_Child Waypoints"), null, null);
     this.ChildWaypointsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Child Waypoints");
     w1.Add(this.ChildWaypointsAction, null);
     this.FieldNotesAction = new Gtk.Action("FieldNotesAction", Mono.Unix.Catalog.GetString("_Field Notes..."), null, null);
     this.FieldNotesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Field Notes...");
     w1.Add(this.FieldNotesAction, null);
     this.SelectedCacheOnlyAction = new Gtk.RadioAction("SelectedCacheOnlyAction", Mono.Unix.Catalog.GetString("Selected Cache Only"), null, null, 0);
     this.SelectedCacheOnlyAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.SelectedCacheOnlyAction.ShortLabel = Mono.Unix.Catalog.GetString("Selected Cache Only");
     w1.Add(this.SelectedCacheOnlyAction, null);
     this.AllWaypointsAction = new Gtk.RadioAction("AllWaypointsAction", Mono.Unix.Catalog.GetString("All Waypoints"), null, null, 0);
     this.AllWaypointsAction.Group = this.SelectedCacheOnlyAction.Group;
     this.AllWaypointsAction.ShortLabel = Mono.Unix.Catalog.GetString("All Waypoints");
     w1.Add(this.AllWaypointsAction, null);
     this.printAction = new Gtk.Action("printAction", Mono.Unix.Catalog.GetString("_Print"), null, "gtk-print");
     this.printAction.ShortLabel = Mono.Unix.Catalog.GetString("_Print");
     w1.Add(this.printAction, "<Control><Mod2>p");
     this.LocationsAction = new Gtk.Action("LocationsAction", Mono.Unix.Catalog.GetString("_Locations"), null, null);
     this.LocationsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Locations");
     w1.Add(this.LocationsAction, null);
     this.AddLocationAction = new Gtk.Action("AddLocationAction", Mono.Unix.Catalog.GetString("_Add Location..."), null, null);
     this.AddLocationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add Location...");
     w1.Add(this.AddLocationAction, null);
     this.DeleteLocationAction = new Gtk.Action("DeleteLocationAction", Mono.Unix.Catalog.GetString("_Delete Location..."), null, null);
     this.DeleteLocationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Manage Locations...");
     w1.Add(this.DeleteLocationAction, null);
     this.PanToCentreAction = new Gtk.Action("PanToCentreAction", Mono.Unix.Catalog.GetString("_Pan to Centre"), null, null);
     this.PanToCentreAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pan Map to Centre");
     w1.Add(this.PanToCentreAction, "<Shift><Alt><Mod2>Home");
     this.PanToSelectedCacheAction = new Gtk.Action("PanToSelectedCacheAction", Mono.Unix.Catalog.GetString("Pan to _Selected Cache"), null, null);
     this.PanToSelectedCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("Pan Map to _Selected Cache");
     w1.Add(this.PanToSelectedCacheAction, null);
     this.ZoomToSelectedCacheAction = new Gtk.Action("ZoomToSelectedCacheAction", Mono.Unix.Catalog.GetString("_Zoom to Selected Cache"), null, null);
     this.ZoomToSelectedCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_Zoom Map to Selected Cache");
     w1.Add(this.ZoomToSelectedCacheAction, null);
     this.AdvancedFiltersAction = new Gtk.Action("AdvancedFiltersAction", Mono.Unix.Catalog.GetString("_Advanced Filters..."), null, null);
     this.AdvancedFiltersAction.ShortLabel = Mono.Unix.Catalog.GetString("_Advanced Filters...");
     w1.Add(this.AdvancedFiltersAction, "<Control><Mod2>f");
     this.CombinationFilterAction = new Gtk.Action("CombinationFilterAction", Mono.Unix.Catalog.GetString("C_ombination Filter..."), null, null);
     this.CombinationFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("C_ombination Filter...");
     w1.Add(this.CombinationFilterAction, "<Control><Alt><Mod2>c");
     this.ClearAdvancedFiltersAction = new Gtk.Action("ClearAdvancedFiltersAction", Mono.Unix.Catalog.GetString("_Clear Advanced Filters..."), null, null);
     this.ClearAdvancedFiltersAction.Sensitive = false;
     this.ClearAdvancedFiltersAction.ShortLabel = Mono.Unix.Catalog.GetString("_Clear Advanced Filters...");
     w1.Add(this.ClearAdvancedFiltersAction, null);
     this.ClearComboFilterAction = new Gtk.Action("ClearComboFilterAction", Mono.Unix.Catalog.GetString("C_lear Combo Filter"), null, null);
     this.ClearComboFilterAction.Sensitive = false;
     this.ClearComboFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("C_lear Combo Filter");
     w1.Add(this.ClearComboFilterAction, null);
     this.ClearAllFiltersAction = new Gtk.Action("ClearAllFiltersAction", Mono.Unix.Catalog.GetString("Clear _All Filters"), null, null);
     this.ClearAllFiltersAction.Sensitive = false;
     this.ClearAllFiltersAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear _All Filters");
     w1.Add(this.ClearAllFiltersAction, null);
     this.QuickFilterAction = new Gtk.Action("QuickFilterAction", Mono.Unix.Catalog.GetString("_Quick Filter"), null, null);
     this.QuickFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quick Filter");
     w1.Add(this.QuickFilterAction, null);
     this.OCMWikiAction = new Gtk.Action("OCMWikiAction", Mono.Unix.Catalog.GetString("_OCM Wiki..."), null, null);
     this.OCMWikiAction.ShortLabel = Mono.Unix.Catalog.GetString("_OCM Wiki...");
     w1.Add(this.OCMWikiAction, null);
     this.OCMForumsAction = new Gtk.Action("OCMForumsAction", Mono.Unix.Catalog.GetString("OCM _Forums..."), null, null);
     this.OCMForumsAction.ShortLabel = Mono.Unix.Catalog.GetString("OCM _Forums...");
     w1.Add(this.OCMForumsAction, 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.ChangeHistoryAction = new Gtk.Action("ChangeHistoryAction", Mono.Unix.Catalog.GetString("_Change History..."), null, null);
     this.ChangeHistoryAction.ShortLabel = Mono.Unix.Catalog.GetString("_Change History...");
     w1.Add(this.ChangeHistoryAction, null);
     this.CheckForUpdatesAction = new Gtk.Action("CheckForUpdatesAction", Mono.Unix.Catalog.GetString("Check For _Updates..."), null, null);
     this.CheckForUpdatesAction.ShortLabel = Mono.Unix.Catalog.GetString("Check For _Updates...");
     w1.Add(this.CheckForUpdatesAction, null);
     this.OCMHomePageAction = new Gtk.Action("OCMHomePageAction", Mono.Unix.Catalog.GetString("_OCM Home Page..."), null, null);
     this.OCMHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_OCM Home Page...");
     w1.Add(this.OCMHomePageAction, null);
     this.GeocachingComAction = new Gtk.Action("GeocachingComAction", Mono.Unix.Catalog.GetString("_Geocaching.com"), null, null);
     this.GeocachingComAction.ShortLabel = Mono.Unix.Catalog.GetString("_Geocaching.com");
     w1.Add(this.GeocachingComAction, null);
     this.TerracachingComAction = new Gtk.Action("TerracachingComAction", Mono.Unix.Catalog.GetString("_Terracaching.com"), null, null);
     this.TerracachingComAction.ShortLabel = Mono.Unix.Catalog.GetString("_Terracaching.com");
     w1.Add(this.TerracachingComAction, null);
     this.OpencachingAction = new Gtk.Action("OpencachingAction", Mono.Unix.Catalog.GetString("O_pencaching"), null, null);
     this.OpencachingAction.ShortLabel = Mono.Unix.Catalog.GetString("O_pencaching");
     w1.Add(this.OpencachingAction, null);
     this.GPSBabelHomePageAction = new Gtk.Action("GPSBabelHomePageAction", Mono.Unix.Catalog.GetString("G_PSBabel Home Page..."), null, null);
     this.GPSBabelHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("G_PSBabel Home Page...");
     w1.Add(this.GPSBabelHomePageAction, null);
     this.GPSDHomePageAction = new Gtk.Action("GPSDHomePageAction", Mono.Unix.Catalog.GetString("GPS_D Home Page..."), null, null);
     this.GPSDHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("GPS_D Home Page...");
     w1.Add(this.GPSDHomePageAction, null);
     this.HomePageAction = new Gtk.Action("HomePageAction", Mono.Unix.Catalog.GetString("_Home Page..."), null, null);
     this.HomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_Home Page...");
     w1.Add(this.HomePageAction, null);
     this.ViewMyProfileAction = new Gtk.Action("ViewMyProfileAction", Mono.Unix.Catalog.GetString("_View My Profile..."), null, null);
     this.ViewMyProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_View My Profile...");
     w1.Add(this.ViewMyProfileAction, null);
     this.MyAccountDetailsAction = new Gtk.Action("MyAccountDetailsAction", Mono.Unix.Catalog.GetString("_My Account Details..."), null, null);
     this.MyAccountDetailsAction.ShortLabel = Mono.Unix.Catalog.GetString("_My Account Details...");
     w1.Add(this.MyAccountDetailsAction, null);
     this.CreatePocketQueriesAction = new Gtk.Action("CreatePocketQueriesAction", Mono.Unix.Catalog.GetString("_Create Pocket Queries..."), null, null);
     this.CreatePocketQueriesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Create Pocket Queries...");
     w1.Add(this.CreatePocketQueriesAction, null);
     this.StatisticsAction = new Gtk.Action("StatisticsAction", Mono.Unix.Catalog.GetString("_Statistics..."), null, null);
     this.StatisticsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Statistics...");
     w1.Add(this.StatisticsAction, null);
     this.FindACacheAction = new Gtk.Action("FindACacheAction", Mono.Unix.Catalog.GetString("_Find a Cache..."), null, null);
     this.FindACacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_Find a Cache...");
     w1.Add(this.FindACacheAction, null);
     this.TCHomePageAction = new Gtk.Action("TCHomePageAction", Mono.Unix.Catalog.GetString("_Home Page..."), null, null);
     this.TCHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_Home Page...");
     w1.Add(this.TCHomePageAction, null);
     this.ToDoListAction = new Gtk.Action("ToDoListAction", Mono.Unix.Catalog.GetString("To _Do List"), null, null);
     this.ToDoListAction.ShortLabel = Mono.Unix.Catalog.GetString("To _Do List");
     w1.Add(this.ToDoListAction, null);
     this.TraditionalAction = new Gtk.Action("TraditionalAction", Mono.Unix.Catalog.GetString("_Traditional..."), null, null);
     this.TraditionalAction.ShortLabel = Mono.Unix.Catalog.GetString("_Traditional...");
     w1.Add(this.TraditionalAction, null);
     this.LocationlessAction = new Gtk.Action("LocationlessAction", Mono.Unix.Catalog.GetString("_Locationless..."), null, null);
     this.LocationlessAction.ShortLabel = Mono.Unix.Catalog.GetString("_Locationless...");
     w1.Add(this.LocationlessAction, null);
     this.ListOfCountrySitesAction = new Gtk.Action("ListOfCountrySitesAction", Mono.Unix.Catalog.GetString("_List Of Country Sites"), null, null);
     this.ListOfCountrySitesAction.ShortLabel = Mono.Unix.Catalog.GetString("_List Of Country Sites");
     w1.Add(this.ListOfCountrySitesAction, null);
     this.NavicacheComAction = new Gtk.Action("NavicacheComAction", Mono.Unix.Catalog.GetString("_Navicache.com"), null, null);
     this.NavicacheComAction.ShortLabel = Mono.Unix.Catalog.GetString("_Navicache.com");
     w1.Add(this.NavicacheComAction, null);
     this.NVHomePageAction = new Gtk.Action("NVHomePageAction", Mono.Unix.Catalog.GetString("_Home Page..."), null, null);
     this.NVHomePageAction.ShortLabel = Mono.Unix.Catalog.GetString("_Home Page...");
     w1.Add(this.NVHomePageAction, null);
     this.MyNavicacheAction = new Gtk.Action("MyNavicacheAction", Mono.Unix.Catalog.GetString("_My Navicache..."), null, null);
     this.MyNavicacheAction.ShortLabel = Mono.Unix.Catalog.GetString("_My Navicache...");
     w1.Add(this.MyNavicacheAction, null);
     this.MarkAction = new Gtk.Action("MarkAction", Mono.Unix.Catalog.GetString("_Mark"), null, null);
     this.MarkAction.ShortLabel = Mono.Unix.Catalog.GetString("_Mark");
     w1.Add(this.MarkAction, null);
     this.AddChildWaypointAction = new Gtk.Action("AddChildWaypointAction", Mono.Unix.Catalog.GetString("Add Child _Waypoint..."), null, null);
     this.AddChildWaypointAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Child _Waypoint...");
     w1.Add(this.AddChildWaypointAction, "<Control><Mod2>w");
     this.CorrectedCoordinatesAction = new Gtk.Action("CorrectedCoordinatesAction", Mono.Unix.Catalog.GetString("_Corrected Coordinates..."), null, null);
     this.CorrectedCoordinatesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Corrected Coordinates...");
     w1.Add(this.CorrectedCoordinatesAction, "<Control><Mod2>r");
     this.ViewOnlineAction = new Gtk.Action("ViewOnlineAction", Mono.Unix.Catalog.GetString("_View Online..."), null, null);
     this.ViewOnlineAction.ShortLabel = Mono.Unix.Catalog.GetString("_View Online...");
     w1.Add(this.ViewOnlineAction, null);
     this.SetSelectedCacheAsCentreAction = new Gtk.Action("SetSelectedCacheAsCentreAction", Mono.Unix.Catalog.GetString("_Set Selected Cache As Centre"), null, null);
     this.SetSelectedCacheAsCentreAction.ShortLabel = Mono.Unix.Catalog.GetString("_Set Selected Cache As Centre");
     w1.Add(this.SetSelectedCacheAsCentreAction, null);
     this.ModifyCacheAction = new Gtk.Action("ModifyCacheAction", Mono.Unix.Catalog.GetString("M_odify Cache"), null, null);
     this.ModifyCacheAction.ShortLabel = Mono.Unix.Catalog.GetString("M_odify Cache");
     w1.Add(this.ModifyCacheAction, "<Control><Mod2>m");
     this.MarkFoundAction = new Gtk.Action("MarkFoundAction", Mono.Unix.Catalog.GetString("Mark _Found"), null, null);
     this.MarkFoundAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Found");
     w1.Add(this.MarkFoundAction, null);
     this.MarkFirstToFindAction = new Gtk.Action("MarkFirstToFindAction", Mono.Unix.Catalog.GetString("Mark F_irst To Find"), null, null);
     this.MarkFirstToFindAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark F_irst To Find");
     w1.Add(this.MarkFirstToFindAction, null);
     this.MarkDidNotFindAction = new Gtk.Action("MarkDidNotFindAction", Mono.Unix.Catalog.GetString("Mark Did _Not Find"), null, null);
     this.MarkDidNotFindAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark Did _Not Find");
     w1.Add(this.MarkDidNotFindAction, null);
     this.MarkUnfoundAction = new Gtk.Action("MarkUnfoundAction", Mono.Unix.Catalog.GetString("Mark _Unfound"), null, null);
     this.MarkUnfoundAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Unfound");
     w1.Add(this.MarkUnfoundAction, null);
     this.MarkDisabledAction = new Gtk.Action("MarkDisabledAction", Mono.Unix.Catalog.GetString("Mark _Disabled"), null, null);
     this.MarkDisabledAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Disabled");
     w1.Add(this.MarkDisabledAction, null);
     this.MarkArchivedAction = new Gtk.Action("MarkArchivedAction", Mono.Unix.Catalog.GetString("Mark _Archived"), null, null);
     this.MarkArchivedAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark _Archived");
     w1.Add(this.MarkArchivedAction, null);
     this.MarkAvailableAction = new Gtk.Action("MarkAvailableAction", Mono.Unix.Catalog.GetString("Mark A_vailable"), null, null);
     this.MarkAvailableAction.ShortLabel = Mono.Unix.Catalog.GetString("Mark A_vailable");
     w1.Add(this.MarkAvailableAction, null);
     this.BookmarkListAction = new Gtk.Action("BookmarkListAction", Mono.Unix.Catalog.GetString("Bookmark _List"), null, null);
     this.BookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("Bookmark _List");
     w1.Add(this.BookmarkListAction, null);
     this.AddAllUnfilteredCachesToAction = new Gtk.Action("AddAllUnfilteredCachesToAction", Mono.Unix.Catalog.GetString("_Add All Unfiltered Caches to"), null, null);
     this.AddAllUnfilteredCachesToAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add All Unfiltered Caches to");
     w1.Add(this.AddAllUnfilteredCachesToAction, null);
     this.AddSelectedCacheToAction = new Gtk.Action("AddSelectedCacheToAction", Mono.Unix.Catalog.GetString("Add _Selected Cache to"), null, null);
     this.AddSelectedCacheToAction.Sensitive = false;
     this.AddSelectedCacheToAction.ShortLabel = Mono.Unix.Catalog.GetString("Add _Selected Cache to");
     w1.Add(this.AddSelectedCacheToAction, null);
     this.RemoveSelectedCacheFromBookmarkListAction = new Gtk.Action("RemoveSelectedCacheFromBookmarkListAction", Mono.Unix.Catalog.GetString("_Remove Selected Cache from Bookmark List"), null, null);
     this.RemoveSelectedCacheFromBookmarkListAction.Sensitive = false;
     this.RemoveSelectedCacheFromBookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("_Remove Selected Cache from Bookmark List");
     w1.Add(this.RemoveSelectedCacheFromBookmarkListAction, null);
     this.CreateBookmarkListAction = new Gtk.Action("CreateBookmarkListAction", Mono.Unix.Catalog.GetString("_Create Bookmark List..."), null, null);
     this.CreateBookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("_Create Bookmark List");
     w1.Add(this.CreateBookmarkListAction, null);
     this.DeleteBookmarkListAction = new Gtk.Action("DeleteBookmarkListAction", Mono.Unix.Catalog.GetString("_Delete Bookmark List..."), null, null);
     this.DeleteBookmarkListAction.ShortLabel = Mono.Unix.Catalog.GetString("_Manage Bookmark Lists...");
     w1.Add(this.DeleteBookmarkListAction, null);
     this.ZoomToCentreAction = new Gtk.Action("ZoomToCentreAction", Mono.Unix.Catalog.GetString("Zoom to _Centre"), null, null);
     this.ZoomToCentreAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom to _Centre");
     w1.Add(this.ZoomToCentreAction, "<Alt><Mod2>Home");
     this.ImportGPXLocZipAction = new Gtk.Action("ImportGPXLocZipAction", Mono.Unix.Catalog.GetString("_Import GPX/Loc/Zip..."), null, null);
     this.ImportGPXLocZipAction.ShortLabel = Mono.Unix.Catalog.GetString("_Import GPX/Loc/Zip...");
     w1.Add(this.ImportGPXLocZipAction, null);
     this.ImportDirectoryAction = new Gtk.Action("ImportDirectoryAction", Mono.Unix.Catalog.GetString("_Import Directory..."), null, null);
     this.ImportDirectoryAction.ShortLabel = Mono.Unix.Catalog.GetString("_Import Directory...");
     w1.Add(this.ImportDirectoryAction, null);
     this.SaveCurrentViewAsQuickFilterAction = new Gtk.Action("SaveCurrentViewAsQuickFilterAction", Mono.Unix.Catalog.GetString("_Save Current View as QuickFilter..."), null, null);
     this.SaveCurrentViewAsQuickFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save Current View as QuickFilter...");
     w1.Add(this.SaveCurrentViewAsQuickFilterAction, null);
     this.DeleteQuickFilterAction = new Gtk.Action("DeleteQuickFilterAction", Mono.Unix.Catalog.GetString("_Delete Quick Filter..."), null, null);
     this.DeleteQuickFilterAction.ShortLabel = Mono.Unix.Catalog.GetString("_Delete Quick Filter...");
     w1.Add(this.DeleteQuickFilterAction, null);
     this.ExportAction = new Gtk.Action("ExportAction", Mono.Unix.Catalog.GetString("_Export"), null, null);
     this.ExportAction.ShortLabel = Mono.Unix.Catalog.GetString("_Export");
     w1.Add(this.ExportAction, null);
     this.ExportGPXAction = new Gtk.Action("ExportGPXAction", Mono.Unix.Catalog.GetString("_Export GPX..."), null, null);
     this.ExportGPXAction.ShortLabel = Mono.Unix.Catalog.GetString("_Export GPX...");
     w1.Add(this.ExportGPXAction, "<Control><Mod2>s");
     this.ExportFindsGPXAction = new Gtk.Action("ExportFindsGPXAction", Mono.Unix.Catalog.GetString("Export _Finds GPX..."), null, null);
     this.ExportFindsGPXAction.ShortLabel = Mono.Unix.Catalog.GetString("Export _Finds GPX...");
     w1.Add(this.ExportFindsGPXAction, null);
     this.ExportGarminPOIFileAction = new Gtk.Action("ExportGarminPOIFileAction", Mono.Unix.Catalog.GetString("Export _Garmin POI File..."), null, null);
     this.ExportGarminPOIFileAction.ShortLabel = Mono.Unix.Catalog.GetString("Export _Garmin POI File...");
     w1.Add(this.ExportGarminPOIFileAction, null);
     this.CopyToAction = new Gtk.Action("CopyToAction", Mono.Unix.Catalog.GetString("_Copy To..."), null, null);
     this.CopyToAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copy To...");
     w1.Add(this.CopyToAction, null);
     this.MoveToAction = new Gtk.Action("MoveToAction", Mono.Unix.Catalog.GetString("_Move To..."), null, null);
     this.MoveToAction.ShortLabel = Mono.Unix.Catalog.GetString("_Move To...");
     w1.Add(this.MoveToAction, null);
     this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Delete..."), null, null);
     this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Delete...");
     w1.Add(this.DeleteAction, null);
     this.DeleteAllAction = new Gtk.Action("DeleteAllAction", Mono.Unix.Catalog.GetString("Delete _All..."), null, null);
     this.DeleteAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Delete _All...");
     w1.Add(this.DeleteAllAction, null);
     this.DeselectAction = new Gtk.Action("DeselectAction", Mono.Unix.Catalog.GetString("De_select"), null, null);
     this.DeselectAction.ShortLabel = Mono.Unix.Catalog.GetString("De_select");
     w1.Add(this.DeselectAction, null);
     this.PreferencesAction = new Gtk.Action("PreferencesAction", Mono.Unix.Catalog.GetString("_Preferences..."), null, null);
     this.PreferencesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences...");
     w1.Add(this.PreferencesAction, null);
     this.TransferCachesToLastUsedAction = new Gtk.Action("TransferCachesToLastUsedAction", Mono.Unix.Catalog.GetString("Transfer _Caches to Last Used..."), null, null);
     this.TransferCachesToLastUsedAction.Sensitive = false;
     this.TransferCachesToLastUsedAction.ShortLabel = Mono.Unix.Catalog.GetString("Transfer _Caches to Last Used...");
     w1.Add(this.TransferCachesToLastUsedAction, "<Control><Mod2>t");
     this.ReceiveFieldNotesFromLastUsedAction = new Gtk.Action("ReceiveFieldNotesFromLastUsedAction", Mono.Unix.Catalog.GetString("Receive _Field Notes from Last Used..."), null, null);
     this.ReceiveFieldNotesFromLastUsedAction.Sensitive = false;
     this.ReceiveFieldNotesFromLastUsedAction.ShortLabel = Mono.Unix.Catalog.GetString("Receive _Field Notes from Last Used...");
     w1.Add(this.ReceiveFieldNotesFromLastUsedAction, "<Control><Alt><Mod2>r");
     this.TransferCachesAction = new Gtk.Action("TransferCachesAction", Mono.Unix.Catalog.GetString("_Transfer Caches..."), null, null);
     this.TransferCachesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Transfer Caches...");
     w1.Add(this.TransferCachesAction, null);
     this.ReceiveFieldNotesAction = new Gtk.Action("ReceiveFieldNotesAction", Mono.Unix.Catalog.GetString("_Receive Field Notes..."), null, null);
     this.ReceiveFieldNotesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Receive Field Notes...");
     w1.Add(this.ReceiveFieldNotesAction, null);
     this.AddGPSProfileAction = new Gtk.Action("AddGPSProfileAction", Mono.Unix.Catalog.GetString("_Add GPS Profile..."), null, null);
     this.AddGPSProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add GPS Profile...");
     w1.Add(this.AddGPSProfileAction, null);
     this.EditGPSProfileAction = new Gtk.Action("EditGPSProfileAction", Mono.Unix.Catalog.GetString("_Edit GPS Profile..."), null, null);
     this.EditGPSProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit GPS Profile...");
     w1.Add(this.EditGPSProfileAction, null);
     this.DeleteGPSProfileAction = new Gtk.Action("DeleteGPSProfileAction", Mono.Unix.Catalog.GetString("_Delete GPS Profile..."), null, null);
     this.DeleteGPSProfileAction.ShortLabel = Mono.Unix.Catalog.GetString("_Delete GPS Profile...");
     w1.Add(this.DeleteGPSProfileAction, null);
     this.ViewAllInQLandkarteGTAction = new Gtk.Action("ViewAllInQLandkarteGTAction", Mono.Unix.Catalog.GetString("_View All in QLandkarte GT..."), null, null);
     this.ViewAllInQLandkarteGTAction.ShortLabel = Mono.Unix.Catalog.GetString("_View All in QLandkarte GT...");
     w1.Add(this.ViewAllInQLandkarteGTAction, null);
     this.ViewSelectedCacheInQLandkarteGTAction = new Gtk.Action("ViewSelectedCacheInQLandkarteGTAction", Mono.Unix.Catalog.GetString("View _Selected Cache in QLandkarte GT..."), null, null);
     this.ViewSelectedCacheInQLandkarteGTAction.ShortLabel = Mono.Unix.Catalog.GetString("View _Selected Cache in QLandkarte GT...");
     w1.Add(this.ViewSelectedCacheInQLandkarteGTAction, null);
     this.ExternalToolsAction = new Gtk.Action("ExternalToolsAction", Mono.Unix.Catalog.GetString("_External Tools"), null, null);
     this.ExternalToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_External Tools");
     w1.Add(this.ExternalToolsAction, null);
     this.ConfigureExternalToolsAction = new Gtk.Action("ConfigureExternalToolsAction", Mono.Unix.Catalog.GetString("_Configure External Tools"), null, null);
     this.ConfigureExternalToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Configure External Tools");
     w1.Add(this.ConfigureExternalToolsAction, null);
     this.LogFindAction = new Gtk.Action("LogFindAction", Mono.Unix.Catalog.GetString("_Log Find..."), null, null);
     this.LogFindAction.ShortLabel = Mono.Unix.Catalog.GetString("_Log Find...");
     w1.Add(this.LogFindAction, null);
     this.LogToFieldNotesFileAction = new Gtk.ToggleAction("LogToFieldNotesFileAction", Mono.Unix.Catalog.GetString("Log to _Field Notes File"), null, null);
     this.LogToFieldNotesFileAction.ShortLabel = Mono.Unix.Catalog.GetString("Log to _Field Notes File");
     w1.Add(this.LogToFieldNotesFileAction, null);
     this.FullScreenAction = new Gtk.ToggleAction("FullScreenAction", Mono.Unix.Catalog.GetString("Full _Screen"), null, null);
     this.FullScreenAction.ShortLabel = Mono.Unix.Catalog.GetString("Full _Screen");
     w1.Add(this.FullScreenAction, "<Mod2>F11");
     this.GrabImagesAction = new Gtk.Action("GrabImagesAction", Mono.Unix.Catalog.GetString("_Grab Images..."), null, null);
     this.GrabImagesAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grab Images...");
     w1.Add(this.GrabImagesAction, null);
     this.MapPopupsAction = new Gtk.ToggleAction("MapPopupsAction", Mono.Unix.Catalog.GetString("_Map Popups"), null, null);
     this.MapPopupsAction.Active = true;
     this.MapPopupsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Map Popups");
     w1.Add(this.MapPopupsAction, null);
     this.DatabaseCleanupAssistantAction = new Gtk.Action("DatabaseCleanupAssistantAction", Mono.Unix.Catalog.GetString("Database Cleanup Assistant..."), null, null);
     this.DatabaseCleanupAssistantAction.ShortLabel = Mono.Unix.Catalog.GetString("Database Cleanup Assistant...");
     w1.Add(this.DatabaseCleanupAssistantAction, null);
     this.ReduceNumberOfLogsAction = new Gtk.Action("ReduceNumberOfLogsAction", Mono.Unix.Catalog.GetString("_Reduce Number of Logs..."), null, null);
     this.ReduceNumberOfLogsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reduce Number of Logs...");
     w1.Add(this.ReduceNumberOfLogsAction, null);
     this.GrabAllImagesAction = new Gtk.Action("GrabAllImagesAction", Mono.Unix.Catalog.GetString("Grab All Images..."), null, null);
     this.GrabAllImagesAction.ShortLabel = Mono.Unix.Catalog.GetString("Grab All Images...");
     w1.Add(this.GrabAllImagesAction, null);
     this.GrabImagesAction1 = new Gtk.Action("GrabImagesAction1", Mono.Unix.Catalog.GetString("Grab Images..."), null, null);
     this.GrabImagesAction1.ShortLabel = Mono.Unix.Catalog.GetString("Grab Images...");
     w1.Add(this.GrabImagesAction1, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "ocmgtk.OCMMainWindow";
     this.Title = Mono.Unix.Catalog.GetString("OCM");
     this.Icon = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.OCMLogoSmall.svg");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child ocmgtk.OCMMainWindow.Gtk.Container+ContainerChild
     this.mainWindowContents = new Gtk.VBox();
     this.mainWindowContents.Name = "mainWindowContents";
     this.mainWindowContents.Spacing = 6;
     // Container child mainWindowContents.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='mainMenuBar'><menu name='FileAction' action='FileAction'><menu name='NewAction' action='NewAction'><menuitem name='NewDatabaseAction' action='NewDatabaseAction'/><menuitem name='NewCacheAction' action='NewCacheAction'/></menu><menuitem name='openAction' action='openAction'/><menuitem name='CompactDatabaseAction' action='CompactDatabaseAction'/><separator/><menuitem name='ImportGPXLocZipAction' action='ImportGPXLocZipAction'/><menuitem name='ImportDirectoryAction' action='ImportDirectoryAction'/><separator/><menu name='ExportAction' action='ExportAction'><menuitem name='ExportGPXAction' action='ExportGPXAction'/><menuitem name='ExportFindsGPXAction' action='ExportFindsGPXAction'/><menuitem name='ExportGarminPOIFileAction' action='ExportGarminPOIFileAction'/></menu><separator/><menuitem name='printAction' action='printAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='CopyToAction' action='CopyToAction'/><menuitem name='MoveToAction' action='MoveToAction'/><separator/><menuitem name='DeleteAction' action='DeleteAction'/><menuitem name='DeleteAllAction' action='DeleteAllAction'/><separator/><menuitem name='GrabImagesAction1' action='GrabImagesAction1'/><menuitem name='GrabAllImagesAction' action='GrabAllImagesAction'/><separator/><menuitem name='DeselectAction' action='DeselectAction'/><separator/><menuitem name='PreferencesAction' action='PreferencesAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='ShowNearbyCachesAction' action='ShowNearbyCachesAction'/><menu name='ChildWaypointsAction' action='ChildWaypointsAction'><menuitem name='SelectedCacheOnlyAction' action='SelectedCacheOnlyAction'/><menuitem name='AllWaypointsAction' action='AllWaypointsAction'/></menu><menuitem name='MapPopupsAction' action='MapPopupsAction'/><separator/><menuitem name='FieldNotesAction' action='FieldNotesAction'/><menuitem name='FullScreenAction' action='FullScreenAction'/></menu><menu name='FilterAction' action='FilterAction'><menuitem name='QuickFilterAction' action='QuickFilterAction'/><menuitem name='AdvancedFiltersAction' action='AdvancedFiltersAction'/><menuitem name='CombinationFilterAction' action='CombinationFilterAction'/><separator/><menuitem name='ClearAdvancedFiltersAction' action='ClearAdvancedFiltersAction'/><menuitem name='ClearComboFilterAction' action='ClearComboFilterAction'/><menuitem name='ClearAllFiltersAction' action='ClearAllFiltersAction'/><separator/><menuitem name='SaveCurrentViewAsQuickFilterAction' action='SaveCurrentViewAsQuickFilterAction'/><menuitem name='DeleteQuickFilterAction' action='DeleteQuickFilterAction'/></menu><menu name='GoAction' action='GoAction'><menu name='LocationsAction' action='LocationsAction'/><menuitem name='AddLocationAction' action='AddLocationAction'/><menuitem name='DeleteLocationAction' action='DeleteLocationAction'/><separator/><menuitem name='PanToCentreAction' action='PanToCentreAction'/><menuitem name='PanToSelectedCacheAction' action='PanToSelectedCacheAction'/><menuitem name='ZoomToCentreAction' action='ZoomToCentreAction'/><menuitem name='ZoomToSelectedCacheAction' action='ZoomToSelectedCacheAction'/></menu><menu name='BookmarksAction' action='BookmarksAction'><menu name='BookmarkListAction' action='BookmarkListAction'/><menu name='AddAllUnfilteredCachesToAction' action='AddAllUnfilteredCachesToAction'/><menuitem name='AddSelectedCacheToAction' action='AddSelectedCacheToAction'/><menuitem name='RemoveSelectedCacheFromBookmarkListAction' action='RemoveSelectedCacheFromBookmarkListAction'/><separator/><menuitem name='CreateBookmarkListAction' action='CreateBookmarkListAction'/><menuitem name='DeleteBookmarkListAction' action='DeleteBookmarkListAction'/></menu><menu name='CacheAction' action='CacheAction'><menuitem name='LogFindAction' action='LogFindAction'/><menuitem name='LogToFieldNotesFileAction' action='LogToFieldNotesFileAction'/><separator/><menu name='MarkAction' action='MarkAction'><menuitem name='MarkFoundAction' action='MarkFoundAction'/><menuitem name='MarkFirstToFindAction' action='MarkFirstToFindAction'/><menuitem name='MarkDidNotFindAction' action='MarkDidNotFindAction'/><menuitem name='MarkUnfoundAction' action='MarkUnfoundAction'/><menuitem name='MarkDisabledAction' action='MarkDisabledAction'/><menuitem name='MarkArchivedAction' action='MarkArchivedAction'/><menuitem name='MarkAvailableAction' action='MarkAvailableAction'/></menu><menuitem name='AddChildWaypointAction' action='AddChildWaypointAction'/><menuitem name='CorrectedCoordinatesAction' action='CorrectedCoordinatesAction'/><separator/><menuitem name='ViewOnlineAction' action='ViewOnlineAction'/><separator/><menuitem name='SetSelectedCacheAsCentreAction' action='SetSelectedCacheAsCentreAction'/><menuitem name='ModifyCacheAction' action='ModifyCacheAction'/><menuitem name='ReduceNumberOfLogsAction' action='ReduceNumberOfLogsAction'/></menu><menu name='WebAction' action='WebAction'><menuitem name='OCMHomePageAction' action='OCMHomePageAction'/><separator/><menu name='GeocachingComAction' action='GeocachingComAction'><menuitem name='HomePageAction' action='HomePageAction'/><menuitem name='ViewMyProfileAction' action='ViewMyProfileAction'/><menuitem name='MyAccountDetailsAction' action='MyAccountDetailsAction'/><menuitem name='CreatePocketQueriesAction' action='CreatePocketQueriesAction'/><menuitem name='StatisticsAction' action='StatisticsAction'/><separator/><menuitem name='FindACacheAction' action='FindACacheAction'/></menu><menu name='TerracachingComAction' action='TerracachingComAction'><menuitem name='TCHomePageAction' action='TCHomePageAction'/><menu name='ToDoListAction' action='ToDoListAction'><menuitem name='TraditionalAction' action='TraditionalAction'/><menuitem name='LocationlessAction' action='LocationlessAction'/></menu></menu><menu name='NavicacheComAction' action='NavicacheComAction'><menuitem name='NVHomePageAction' action='NVHomePageAction'/><menuitem name='MyNavicacheAction' action='MyNavicacheAction'/></menu><menu name='OpencachingAction' action='OpencachingAction'><menuitem name='ListOfCountrySitesAction' action='ListOfCountrySitesAction'/></menu><menuitem name='GPSBabelHomePageAction' action='GPSBabelHomePageAction'/><menuitem name='GPSDHomePageAction' action='GPSDHomePageAction'/></menu><menu name='GPSAction' action='GPSAction'><menuitem name='TransferCachesToLastUsedAction' action='TransferCachesToLastUsedAction'/><menuitem name='ReceiveFieldNotesFromLastUsedAction' action='ReceiveFieldNotesFromLastUsedAction'/><separator/><menu name='TransferCachesAction' action='TransferCachesAction'/><menu name='ReceiveFieldNotesAction' action='ReceiveFieldNotesAction'/><separator/><menuitem name='AddGPSProfileAction' action='AddGPSProfileAction'/><menu name='EditGPSProfileAction' action='EditGPSProfileAction'/><menuitem name='DeleteGPSProfileAction' action='DeleteGPSProfileAction'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='ViewAllInQLandkarteGTAction' action='ViewAllInQLandkarteGTAction'/><menuitem name='ViewSelectedCacheInQLandkarteGTAction' action='ViewSelectedCacheInQLandkarteGTAction'/><separator/><menu name='ExternalToolsAction' action='ExternalToolsAction'/><menuitem name='ConfigureExternalToolsAction' action='ConfigureExternalToolsAction'/><separator/><menuitem name='DatabaseCleanupAssistantAction' action='DatabaseCleanupAssistantAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='OCMWikiAction' action='OCMWikiAction'/><menuitem name='OCMForumsAction' action='OCMForumsAction'/><separator/><menuitem name='AboutAction' action='AboutAction'/><menuitem name='ChangeHistoryAction' action='ChangeHistoryAction'/><menuitem name='CheckForUpdatesAction' action='CheckForUpdatesAction'/></menu></menubar></ui>");
     this.mainMenuBar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/mainMenuBar")));
     this.mainMenuBar.Name = "mainMenuBar";
     this.mainWindowContents.Add(this.mainMenuBar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mainWindowContents[this.mainMenuBar]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child mainWindowContents.Gtk.Box+BoxChild
     this.mainHPane = new Gtk.HPaned();
     this.mainHPane.CanFocus = true;
     this.mainHPane.Name = "mainHPane";
     this.mainHPane.Position = 300;
     // Container child mainHPane.Gtk.Paned+PanedChild
     this.cacheList = new ocmgtk.CacheListWidget();
     this.cacheList.Events = ((Gdk.EventMask)(256));
     this.cacheList.Name = "cacheList";
     this.cacheList.DisabledOrArchived = 0;
     this.cacheList.MineCount = 0;
     this.cacheList.VisibleCount = 0;
     this.cacheList.FoundCount = 0;
     this.mainHPane.Add(this.cacheList);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.mainHPane[this.cacheList]));
     w3.Resize = false;
     // Container child mainHPane.Gtk.Paned+PanedChild
     this.mainVPane = new Gtk.VPaned();
     this.mainVPane.CanFocus = true;
     this.mainVPane.Name = "mainVPane";
     this.mainVPane.Position = 385;
     // Container child mainVPane.Gtk.Paned+PanedChild
     this.ocmCacheInfo = new ocmgtk.CacheInfoWidget();
     this.ocmCacheInfo.Events = ((Gdk.EventMask)(256));
     this.ocmCacheInfo.Name = "ocmCacheInfo";
     this.mainVPane.Add(this.ocmCacheInfo);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.mainVPane[this.ocmCacheInfo]));
     w4.Resize = false;
     // Container child mainVPane.Gtk.Paned+PanedChild
     this.mapVBOX = new Gtk.VBox();
     this.mapVBOX.Name = "mapVBOX";
     // Container child mapVBOX.Gtk.Box+BoxChild
     this.hbox14 = new Gtk.HBox();
     this.hbox14.Name = "hbox14";
     // Container child hbox14.Gtk.Box+BoxChild
     this.spacerLabel = new Gtk.Label();
     this.spacerLabel.Name = "spacerLabel";
     this.hbox14.Add(this.spacerLabel);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox14[this.spacerLabel]));
     w5.Position = 0;
     // Container child hbox14.Gtk.Box+BoxChild
     this.minButton = new Gtk.Button();
     this.minButton.CanFocus = true;
     this.minButton.Name = "minButton";
     this.minButton.FocusOnClick = false;
     this.minButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child minButton.Gtk.Container+ContainerChild
     this.image250 = new Gtk.Image();
     this.image250.Name = "image250";
     this.image250.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.minicon.svg");
     this.minButton.Add(this.image250);
     this.minButton.Label = null;
     this.hbox14.Add(this.minButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox14[this.minButton]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbox14.Gtk.Box+BoxChild
     this.mapDownButton = new Gtk.Button();
     this.mapDownButton.CanFocus = true;
     this.mapDownButton.Name = "mapDownButton";
     this.mapDownButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child mapDownButton.Gtk.Container+ContainerChild
     this.image38 = new Gtk.Image();
     this.image38.Name = "image38";
     this.image38.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.down_icon.svg");
     this.mapDownButton.Add(this.image38);
     this.mapDownButton.Label = null;
     this.hbox14.Add(this.mapDownButton);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox14[this.mapDownButton]));
     w9.Position = 2;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox14.Gtk.Box+BoxChild
     this.restoreButton = new Gtk.Button();
     this.restoreButton.CanFocus = true;
     this.restoreButton.Name = "restoreButton";
     this.restoreButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child restoreButton.Gtk.Container+ContainerChild
     this.image31 = new Gtk.Image();
     this.image31.Name = "image31";
     this.image31.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.restore.svg");
     this.restoreButton.Add(this.image31);
     this.restoreButton.Label = null;
     this.hbox14.Add(this.restoreButton);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox14[this.restoreButton]));
     w11.Position = 3;
     w11.Expand = false;
     w11.Fill = false;
     // Container child hbox14.Gtk.Box+BoxChild
     this.mapUpButton = new Gtk.Button();
     this.mapUpButton.CanFocus = true;
     this.mapUpButton.Name = "mapUpButton";
     this.mapUpButton.FocusOnClick = false;
     this.mapUpButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child mapUpButton.Gtk.Container+ContainerChild
     this.image37 = new Gtk.Image();
     this.image37.Name = "image37";
     this.image37.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.up_icon.svg");
     this.mapUpButton.Add(this.image37);
     this.mapUpButton.Label = null;
     this.hbox14.Add(this.mapUpButton);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox14[this.mapUpButton]));
     w13.Position = 4;
     w13.Expand = false;
     w13.Fill = false;
     this.mapVBOX.Add(this.hbox14);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.mapVBOX[this.hbox14]));
     w14.Position = 1;
     w14.Expand = false;
     w14.Fill = false;
     // Container child mapVBOX.Gtk.Box+BoxChild
     this.ocmMapWidget = new ocmgtk.MapWidget();
     this.ocmMapWidget.Events = ((Gdk.EventMask)(256));
     this.ocmMapWidget.Name = "ocmMapWidget";
     this.ocmMapWidget.ShowNearby = false;
     this.ocmMapWidget.ShowAllChildren = false;
     this.mapVBOX.Add(this.ocmMapWidget);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.mapVBOX[this.ocmMapWidget]));
     w15.Position = 2;
     this.mainVPane.Add(this.mapVBOX);
     this.mainHPane.Add(this.mainVPane);
     this.mainWindowContents.Add(this.mainHPane);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.mainWindowContents[this.mainHPane]));
     w18.Position = 1;
     // Container child mainWindowContents.Gtk.Box+BoxChild
     this.mainStatusBar = new Gtk.Statusbar();
     this.mainStatusBar.Name = "mainStatusBar";
     this.mainStatusBar.Spacing = 6;
     // Container child mainStatusBar.Gtk.Box+BoxChild
     this.LocationLabel = new Gtk.Label();
     this.LocationLabel.Name = "LocationLabel";
     this.LocationLabel.Xalign = 1F;
     this.LocationLabel.LabelProp = "<location>";
     this.mainStatusBar.Add(this.LocationLabel);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.mainStatusBar[this.LocationLabel]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     // Container child mainStatusBar.Gtk.Box+BoxChild
     this.statusProgressBar = new Gtk.ProgressBar();
     this.statusProgressBar.WidthRequest = 150;
     this.statusProgressBar.HeightRequest = 5;
     this.statusProgressBar.Name = "statusProgressBar";
     this.mainStatusBar.Add(this.statusProgressBar);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.mainStatusBar[this.statusProgressBar]));
     w20.PackType = ((Gtk.PackType)(1));
     w20.Position = 2;
     w20.Expand = false;
     this.mainWindowContents.Add(this.mainStatusBar);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.mainWindowContents[this.mainStatusBar]));
     w21.Position = 2;
     w21.Expand = false;
     w21.Fill = false;
     this.Add(this.mainWindowContents);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 1061;
     this.DefaultHeight = 574;
     this.statusProgressBar.Hide();
     this.Hide();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteWindow);
     this.SizeAllocated += new Gtk.SizeAllocatedHandler(this.OnResizeWindow);
     this.openAction.Activated += new System.EventHandler(this.OnOpenDatabase);
     this.CompactDatabaseAction.Activated += new System.EventHandler(this.OnCompactDatabase);
     this.quitAction.Activated += new System.EventHandler(this.OnQuit);
     this.NewDatabaseAction.Activated += new System.EventHandler(this.OnNewDatabase);
     this.NewCacheAction.Activated += new System.EventHandler(this.OnNewCache);
     this.ShowNearbyCachesAction.Toggled += new System.EventHandler(this.OnToggleShowNearby);
     this.FieldNotesAction.Activated += new System.EventHandler(this.OnViewFieldNotes);
     this.SelectedCacheOnlyAction.Toggled += new System.EventHandler(this.OnToggleSelectedCache);
     this.printAction.Activated += new System.EventHandler(this.OnPrintCache);
     this.AddLocationAction.Activated += new System.EventHandler(this.OnAddLocation);
     this.DeleteLocationAction.Activated += new System.EventHandler(this.OnDeleteLocation);
     this.PanToCentreAction.Activated += new System.EventHandler(this.OnPanToCentre);
     this.PanToSelectedCacheAction.Activated += new System.EventHandler(this.OnPanToSelected);
     this.ZoomToSelectedCacheAction.Activated += new System.EventHandler(this.OnZoomToSelected);
     this.AdvancedFiltersAction.Activated += new System.EventHandler(this.OnAdvancedFiltersClick);
     this.CombinationFilterAction.Activated += new System.EventHandler(this.OnCombinationClick);
     this.ClearAdvancedFiltersAction.Activated += new System.EventHandler(this.OnClearAdvanced);
     this.ClearComboFilterAction.Activated += new System.EventHandler(this.OnClearCombo);
     this.ClearAllFiltersAction.Activated += new System.EventHandler(this.OnClearAll);
     this.OCMWikiAction.Activated += new System.EventHandler(this.OnWikiClick);
     this.OCMForumsAction.Activated += new System.EventHandler(this.OnForumsClick);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutClick);
     this.ChangeHistoryAction.Activated += new System.EventHandler(this.OnChangeHistoryClick);
     this.CheckForUpdatesAction.Activated += new System.EventHandler(this.OnCheckUpdatesClick);
     this.OCMHomePageAction.Activated += new System.EventHandler(this.OnOCMHomeClick);
     this.GPSBabelHomePageAction.Activated += new System.EventHandler(this.OnGPSBabelClick);
     this.GPSDHomePageAction.Activated += new System.EventHandler(this.OnGPSDClick);
     this.HomePageAction.Activated += new System.EventHandler(this.OnGCHomeClick);
     this.ViewMyProfileAction.Activated += new System.EventHandler(this.OnGCProfileClick);
     this.MyAccountDetailsAction.Activated += new System.EventHandler(this.OnGCAccountClick);
     this.CreatePocketQueriesAction.Activated += new System.EventHandler(this.OnGCPocketQueryClick);
     this.StatisticsAction.Activated += new System.EventHandler(this.OnGCStatsClick);
     this.FindACacheAction.Activated += new System.EventHandler(this.OnGCFindClick);
     this.TCHomePageAction.Activated += new System.EventHandler(this.OnTCHomePageClick);
     this.TraditionalAction.Activated += new System.EventHandler(this.OnTCTraditionalClick);
     this.LocationlessAction.Activated += new System.EventHandler(this.OnTCLocationlessClick);
     this.ListOfCountrySitesAction.Activated += new System.EventHandler(this.OnOCCountryList);
     this.NVHomePageAction.Activated += new System.EventHandler(this.OnNaviHome);
     this.MyNavicacheAction.Activated += new System.EventHandler(this.OnMyNavi);
     this.AddChildWaypointAction.Activated += new System.EventHandler(this.OnAddChildWaypoint);
     this.CorrectedCoordinatesAction.Activated += new System.EventHandler(this.OnAddCorrectedCoordinate);
     this.ViewOnlineAction.Activated += new System.EventHandler(this.OnViewOnlineClick);
     this.SetSelectedCacheAsCentreAction.Activated += new System.EventHandler(this.OnSetSelectedAsCentreClick);
     this.ModifyCacheAction.Activated += new System.EventHandler(this.OnModifyCache);
     this.MarkFoundAction.Activated += new System.EventHandler(this.OnMarkFound);
     this.MarkFirstToFindAction.Activated += new System.EventHandler(this.OnMarkFTF);
     this.MarkDidNotFindAction.Activated += new System.EventHandler(this.OnMarkDNF);
     this.MarkUnfoundAction.Activated += new System.EventHandler(this.OnMarkUnfound);
     this.MarkDisabledAction.Activated += new System.EventHandler(this.OnMarkDisabled);
     this.MarkArchivedAction.Activated += new System.EventHandler(this.OnMarkArchived);
     this.MarkAvailableAction.Activated += new System.EventHandler(this.OnMarkAvailable);
     this.RemoveSelectedCacheFromBookmarkListAction.Activated += new System.EventHandler(this.OnRemoveFromList);
     this.CreateBookmarkListAction.Activated += new System.EventHandler(this.OnCreateBookmarkList);
     this.DeleteBookmarkListAction.Activated += new System.EventHandler(this.OnDeleteBookmarkList);
     this.ZoomToCentreAction.Activated += new System.EventHandler(this.OnZoomToCentre);
     this.ImportGPXLocZipAction.Activated += new System.EventHandler(this.OnImportGPX);
     this.ImportDirectoryAction.Activated += new System.EventHandler(this.OnImportDirectory);
     this.SaveCurrentViewAsQuickFilterAction.Activated += new System.EventHandler(this.OnSaveQuickFilter);
     this.DeleteQuickFilterAction.Activated += new System.EventHandler(this.OnDeleteQuickFilter);
     this.ExportGPXAction.Activated += new System.EventHandler(this.OnExportGPX);
     this.ExportFindsGPXAction.Activated += new System.EventHandler(this.OnMyFindsClick);
     this.ExportGarminPOIFileAction.Activated += new System.EventHandler(this.OnExportPOI);
     this.CopyToAction.Activated += new System.EventHandler(this.OnCopy);
     this.MoveToAction.Activated += new System.EventHandler(this.OnMove);
     this.DeleteAction.Activated += new System.EventHandler(this.OnDelete);
     this.DeleteAllAction.Activated += new System.EventHandler(this.OnDeleteAll);
     this.DeselectAction.Activated += new System.EventHandler(this.OnDeselect);
     this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferences);
     this.TransferCachesToLastUsedAction.Activated += new System.EventHandler(this.OnTransferLast);
     this.ReceiveFieldNotesFromLastUsedAction.Activated += new System.EventHandler(this.OnReceiveLast);
     this.AddGPSProfileAction.Activated += new System.EventHandler(this.OnAddProfile);
     this.DeleteGPSProfileAction.Activated += new System.EventHandler(this.OnDeleteProfile);
     this.ViewAllInQLandkarteGTAction.Activated += new System.EventHandler(this.OnViewInQLGT);
     this.ViewSelectedCacheInQLandkarteGTAction.Activated += new System.EventHandler(this.OnViewSelectedInQLGT);
     this.ConfigureExternalToolsAction.Activated += new System.EventHandler(this.OnConfigure);
     this.LogFindAction.Activated += new System.EventHandler(this.OnLogFind);
     this.LogToFieldNotesFileAction.Activated += new System.EventHandler(this.OnLogToFile);
     this.FullScreenAction.Toggled += new System.EventHandler(this.OnFullToggle);
     this.GrabImagesAction.Activated += new System.EventHandler(this.OnGrabImages);
     this.MapPopupsAction.Toggled += new System.EventHandler(this.OnMapPopupToggle);
     this.DatabaseCleanupAssistantAction.Activated += new System.EventHandler(this.OnCleanup);
     this.ReduceNumberOfLogsAction.Activated += new System.EventHandler(this.OnReduceLogs);
     this.GrabAllImagesAction.Activated += new System.EventHandler(this.OnGrabAllImages);
     this.GrabImagesAction1.Activated += new System.EventHandler(this.OnGrabImages);
     this.minButton.Clicked += new System.EventHandler(this.OnMinClick);
     this.mapDownButton.Clicked += new System.EventHandler(this.OnDownClick);
     this.restoreButton.Clicked += new System.EventHandler(this.OnRestoreClick);
     this.mapUpButton.Clicked += new System.EventHandler(this.OnUpClick);
 }
Пример #17
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget Monoxide.MainWindow
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.refresh = new Gtk.Action("refresh", null, null, "gtk-refresh");
     w2.Add(this.refresh, null);
     this.File            = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w2.Add(this.File, null);
     this.Quit            = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w2.Add(this.Quit, null);
     this.Tools            = new Gtk.Action("Tools", Mono.Unix.Catalog.GetString("_Tools"), null, null);
     this.Tools.ShortLabel = Mono.Unix.Catalog.GetString("_Tools");
     w2.Add(this.Tools, null);
     this.AddinManagerAction            = new Gtk.Action("AddinManagerAction", Mono.Unix.Catalog.GetString("Addin Manager..."), null, "AddinManager");
     this.AddinManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("Addin Manager...");
     w2.Add(this.AddinManagerAction, null);
     this.View            = new Gtk.Action("View", Mono.Unix.Catalog.GetString("_View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("_View");
     w2.Add(this.View, null);
     this.Open            = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     w2.Add(this.Open, null);
     this.Help            = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.Help.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w2.Add(this.Help, null);
     this.About            = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About..."), null, "gtk-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About...");
     w2.Add(this.About, null);
     this.Save            = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save..."), null, "gtk-save");
     this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save...");
     w2.Add(this.Save, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "Monoxide.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("monoXide 0.2");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Monoxide.MainWindow.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Open'/><menuitem action='Save'/><separator/><menuitem action='Quit'/></menu><menu action='View'><menuitem action='refresh'/></menu><menu action='Tools'><menuitem action='AddinManagerAction'/><separator/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox2.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar'><toolitem action='Open'/><separator/><toolitem action='refresh'/><separator/><toolitem action='AddinManagerAction'/></toolbar></ui>");
     this.toolbar              = ((Gtk.Toolbar)(w1.GetWidget("/toolbar")));
     this.toolbar.Name         = "toolbar";
     this.toolbar.ShowArrow    = false;
     this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar.IconSize     = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 199;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.treeview          = new Gtk.TreeView();
     this.treeview.CanFocus = true;
     this.treeview.Name     = "treeview";
     this.scrolledwindow1.Add(this.treeview);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w6.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.objectExpander          = new Gtk.Expander(null);
     this.objectExpander.CanFocus = true;
     this.objectExpander.Name     = "objectExpander";
     // Container child objectExpander.Gtk.Container+ContainerChild
     this.textview          = new Gtk.TextView();
     this.textview.CanFocus = true;
     this.textview.Name     = "textview";
     this.textview.Editable = false;
     this.objectExpander.Add(this.textview);
     this.objectLabel                = new Gtk.Label();
     this.objectLabel.Name           = "objectLabel";
     this.objectLabel.LabelProp      = Mono.Unix.Catalog.GetString("<empty>");
     this.objectLabel.UseUnderline   = true;
     this.objectExpander.LabelWidget = this.objectLabel;
     this.vbox1.Add(this.objectExpander);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.objectExpander]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook             = new Gtk.Notebook();
     this.notebook.CanFocus    = true;
     this.notebook.Name        = "notebook";
     this.notebook.CurrentPage = 0;
     this.notebook.Scrollable  = true;
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2                  = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus         = true;
     this.scrolledwindow2.Name             = "scrolledwindow2";
     this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.ShadowType       = ((Gtk.ShadowType)(1));
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w9 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w9.TabExpand = false;
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w10.Position = 1;
     this.hpaned1.Add(this.vbox1);
     this.vbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1]));
     w12.Position = 2;
     // Container child vbox2.Gtk.Box+BoxChild
     this.statusbar1         = new Gtk.Statusbar();
     this.statusbar1.Name    = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox2.Add(this.statusbar1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar1]));
     w13.Position = 3;
     w13.Expand   = false;
     w13.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 698;
     this.DefaultHeight = 490;
     this.Show();
     this.refresh.Activated            += new System.EventHandler(this.OnRefreshActivated);
     this.Quit.Activated               += new System.EventHandler(this.OnQuitActivated);
     this.AddinManagerAction.Activated += new System.EventHandler(this.OnAddinManagerActivated);
     this.Open.Activated               += new System.EventHandler(this.OnOpenActivated);
     this.About.Activated              += new System.EventHandler(this.OnAboutActivated);
     this.Save.Activated               += new System.EventHandler(this.OnSaveActivated);
     this.treeview.ButtonPressEvent    += new Gtk.ButtonPressEventHandler(this.OnTreeviewButtonPressEvent);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget 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);
 }
Пример #19
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.XFileAction            = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null);
     this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.XFileAction, null);
     this.GimmeHelpAction            = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null);
     this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.GimmeHelpAction, 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.QuitAction            = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null);
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.QuitAction, null);
     this.SomeEditMenuAction            = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null);
     this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu");
     w1.Add(this.SomeEditMenuAction, 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.Action1 = new Gtk.Action("Action1", null, null, null);
     w1.Add(this.Action1, null);
     this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index");
     w1.Add(this.indexAction, null);
     this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom");
     w1.Add(this.cdromAction, null);
     this.RadioInToolBarTest1Action            = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0);
     this.RadioInToolBarTest1Action.Group      = new GLib.SList(System.IntPtr.Zero);
     this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1");
     w1.Add(this.RadioInToolBarTest1Action, null);
     this.RadioInToolBarTest2Action            = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0);
     this.RadioInToolBarTest2Action.Group      = this.RadioInToolBarTest1Action.Group;
     this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2");
     w1.Add(this.RadioInToolBarTest2Action, 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='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><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='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></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.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 0;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview2          = new Gtk.TreeView();
     this.treeview2.CanFocus = true;
     this.treeview2.Name     = "treeview2";
     this.GtkScrolledWindow.Add(this.treeview2);
     this.hbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow]));
     w5.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(5)), ((uint)(3)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.btnTest1              = new Gtk.Button();
     this.btnTest1.CanFocus     = true;
     this.btnTest1.Name         = "btnTest1";
     this.btnTest1.UseUnderline = true;
     this.btnTest1.Label        = Mono.Unix.Catalog.GetString("hey ya");
     this.table1.Add(this.btnTest1);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1]));
     w6.LeftAttach  = ((uint)(2));
     w6.RightAttach = ((uint)(3));
     w6.XOptions    = ((Gtk.AttachOptions)(4));
     w6.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.btnWithImg              = new Gtk.Button();
     this.btnWithImg.CanFocus     = true;
     this.btnWithImg.Name         = "btnWithImg";
     this.btnWithImg.UseUnderline = true;
     this.btnWithImg.Label        = Mono.Unix.Catalog.GetString("IMG");
     this.table1.Add(this.btnWithImg);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg]));
     w7.TopAttach    = ((uint)(3));
     w7.BottomAttach = ((uint)(4));
     w7.XOptions     = ((Gtk.AttachOptions)(4));
     w7.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.cbeTest = Gtk.ComboBoxEntry.NewText();
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element"));
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element"));
     this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element"));
     this.cbeTest.Name = "cbeTest";
     this.table1.Add(this.cbeTest);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest]));
     w8.TopAttach    = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.LeftAttach   = ((uint)(2));
     w8.RightAttach  = ((uint)(3));
     w8.XOptions     = ((Gtk.AttachOptions)(4));
     w8.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.cbxTest = Gtk.ComboBox.NewText();
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem"));
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem"));
     this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem"));
     this.cbxTest.Name = "cbxTest";
     this.table1.Add(this.cbxTest);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest]));
     w9.TopAttach    = ((uint)(1));
     w9.BottomAttach = ((uint)(2));
     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.checkbutton1               = new Gtk.CheckButton();
     this.checkbutton1.CanFocus      = true;
     this.checkbutton1.Name          = "checkbutton1";
     this.checkbutton1.Label         = Mono.Unix.Catalog.GetString("checkbutton1");
     this.checkbutton1.DrawIndicator = true;
     this.checkbutton1.UseUnderline  = true;
     this.table1.Add(this.checkbutton1);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1]));
     w10.TopAttach    = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.XOptions     = ((Gtk.AttachOptions)(4));
     w10.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.chkTest               = new Gtk.CheckButton();
     this.chkTest.CanFocus      = true;
     this.chkTest.Name          = "chkTest";
     this.chkTest.Label         = Mono.Unix.Catalog.GetString("checkbutton1");
     this.chkTest.DrawIndicator = true;
     this.chkTest.UseUnderline  = true;
     this.table1.Add(this.chkTest);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest]));
     w11.TopAttach    = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.XOptions     = ((Gtk.AttachOptions)(4));
     w11.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.lblTest1           = new Gtk.Label();
     this.lblTest1.Name      = "lblTest1";
     this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label");
     this.table1.Add(this.lblTest1);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1]));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.maskedEntry               = new Gtk.Entry();
     this.maskedEntry.CanFocus      = true;
     this.maskedEntry.Name          = "maskedEntry";
     this.maskedEntry.IsEditable    = true;
     this.maskedEntry.InvisibleChar = '●';
     this.table1.Add(this.maskedEntry);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry]));
     w13.TopAttach    = ((uint)(4));
     w13.BottomAttach = ((uint)(5));
     w13.LeftAttach   = ((uint)(2));
     w13.RightAttach  = ((uint)(3));
     w13.XOptions     = ((Gtk.AttachOptions)(4));
     w13.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radiobutton1               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1"));
     this.radiobutton1.CanFocus      = true;
     this.radiobutton1.Name          = "radiobutton1";
     this.radiobutton1.DrawIndicator = true;
     this.radiobutton1.UseUnderline  = true;
     this.radiobutton1.Group         = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.radiobutton1);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1]));
     w14.TopAttach    = ((uint)(3));
     w14.BottomAttach = ((uint)(4));
     w14.LeftAttach   = ((uint)(1));
     w14.RightAttach  = ((uint)(2));
     w14.XOptions     = ((Gtk.AttachOptions)(4));
     w14.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radiobutton2               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2"));
     this.radiobutton2.CanFocus      = true;
     this.radiobutton2.Name          = "radiobutton2";
     this.radiobutton2.DrawIndicator = true;
     this.radiobutton2.UseUnderline  = true;
     this.radiobutton2.Group         = this.radiobutton1.Group;
     this.table1.Add(this.radiobutton2);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2]));
     w15.TopAttach    = ((uint)(3));
     w15.BottomAttach = ((uint)(4));
     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.radTest1               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0"));
     this.radTest1.CanFocus      = true;
     this.radTest1.Name          = "radTest1";
     this.radTest1.DrawIndicator = true;
     this.radTest1.UseUnderline  = true;
     this.radTest1.Group         = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.radTest1);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1]));
     w16.TopAttach    = ((uint)(2));
     w16.BottomAttach = ((uint)(3));
     w16.LeftAttach   = ((uint)(1));
     w16.RightAttach  = ((uint)(2));
     w16.XOptions     = ((Gtk.AttachOptions)(4));
     w16.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.radTest2               = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1"));
     this.radTest2.CanFocus      = true;
     this.radTest2.Name          = "radTest2";
     this.radTest2.DrawIndicator = true;
     this.radTest2.UseUnderline  = true;
     this.radTest2.Group         = this.radTest1.Group;
     this.table1.Add(this.radTest2);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2]));
     w17.TopAttach    = ((uint)(2));
     w17.BottomAttach = ((uint)(3));
     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.spinbuttonTest1          = new Gtk.SpinButton(0, 100, 1);
     this.spinbuttonTest1.CanFocus = true;
     this.spinbuttonTest1.Name     = "spinbuttonTest1";
     this.spinbuttonTest1.Adjustment.PageIncrement = 10;
     this.spinbuttonTest1.ClimbRate = 1;
     this.spinbuttonTest1.Numeric   = true;
     this.table1.Add(this.spinbuttonTest1);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1]));
     w18.TopAttach    = ((uint)(4));
     w18.BottomAttach = ((uint)(5));
     w18.XOptions     = ((Gtk.AttachOptions)(4));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtEntry               = new Gtk.Entry();
     this.txtEntry.CanFocus      = true;
     this.txtEntry.Name          = "txtEntry";
     this.txtEntry.Text          = Mono.Unix.Catalog.GetString("test text");
     this.txtEntry.IsEditable    = true;
     this.txtEntry.InvisibleChar = '●';
     this.table1.Add(this.txtEntry);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry]));
     w19.LeftAttach  = ((uint)(1));
     w19.RightAttach = ((uint)(2));
     w19.XOptions    = ((Gtk.AttachOptions)(4));
     w19.YOptions    = ((Gtk.AttachOptions)(4));
     this.hbox1.Add(this.table1);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1]));
     w20.Position = 1;
     w20.Expand   = false;
     w20.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vscrollbar1                          = new Gtk.VScrollbar(null);
     this.vscrollbar1.Name                     = "vscrollbar1";
     this.vscrollbar1.Adjustment.Upper         = 100;
     this.vscrollbar1.Adjustment.PageIncrement = 10;
     this.vscrollbar1.Adjustment.PageSize      = 10;
     this.vscrollbar1.Adjustment.StepIncrement = 1;
     this.hbox1.Add(this.vscrollbar1);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1]));
     w21.Position = 2;
     w21.Expand   = false;
     w21.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgTest1      = new Gtk.Image();
     this.imgTest1.Name = "imgTest1";
     this.hbox1.Add(this.imgTest1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1]));
     w22.Position = 3;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.imgTest2      = new Gtk.Image();
     this.imgTest2.Name = "imgTest2";
     this.hbox1.Add(this.imgTest2);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2]));
     w23.Position = 5;
     w23.Expand   = false;
     w23.Fill     = false;
     this.notebook1.Add(this.hbox1);
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(this.hbox1, this.label1);
     this.label1.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.calendar1                = new Gtk.Calendar();
     this.calendar1.CanFocus       = true;
     this.calendar1.Name           = "calendar1";
     this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3));
     this.notebook1.Add(this.calendar1);
     Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1]));
     w25.Position = 1;
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2");
     this.notebook1.SetTabLabel(this.calendar1, this.label2);
     this.label2.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     w26.Position = 2;
     w26.Expand   = false;
     w26.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.progressbar1      = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.vbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1]));
     w27.Position = 3;
     w27.Expand   = false;
     w27.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hscrollbar1                          = new Gtk.HScrollbar(null);
     this.hscrollbar1.Name                     = "hscrollbar1";
     this.hscrollbar1.Adjustment.Upper         = 100;
     this.hscrollbar1.Adjustment.PageIncrement = 10;
     this.hscrollbar1.Adjustment.PageSize      = 10;
     this.hscrollbar1.Adjustment.StepIncrement = 1;
     this.hscrollbar1.Adjustment.Value         = 9.28317766722556;
     this.vbox1.Add(this.hscrollbar1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1]));
     w28.Position = 4;
     w28.Expand   = false;
     w28.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.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 19;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vscale1                          = new Gtk.VScale(null);
     this.vscale1.CanFocus                 = true;
     this.vscale1.Name                     = "vscale1";
     this.vscale1.Adjustment.Upper         = 100;
     this.vscale1.Adjustment.PageIncrement = 10;
     this.vscale1.Adjustment.StepIncrement = 1;
     this.vscale1.DrawValue                = true;
     this.vscale1.Digits                   = 0;
     this.vscale1.ValuePos                 = ((Gtk.PositionType)(2));
     this.hpaned1.Add(this.vscale1);
     Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1]));
     w29.Resize = false;
     // Container child hpaned1.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.nodeview1          = new Gtk.NodeView();
     this.nodeview1.CanFocus = true;
     this.nodeview1.Name     = "nodeview1";
     this.GtkScrolledWindow2.Add(this.nodeview1);
     this.hpaned1.Add(this.GtkScrolledWindow2);
     this.hbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1]));
     w32.Position = 0;
     // Container child hbox2.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.txtViewTest          = new Gtk.TextView();
     this.txtViewTest.CanFocus = true;
     this.txtViewTest.Name     = "txtViewTest";
     this.GtkScrolledWindow1.Add(this.txtViewTest);
     this.hbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1]));
     w34.Position = 1;
     // Container child hbox2.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));
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel13           = new Gtk.Label();
     this.GtkLabel13.Name      = "GtkLabel13";
     this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>");
     this.GtkLabel13.UseMarkup = true;
     this.frame1.LabelWidget   = this.GtkLabel13;
     this.hbox2.Add(this.frame1);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1]));
     w36.Position = 2;
     w36.Expand   = false;
     w36.Fill     = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w37.Position = 5;
     // 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 w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w38.Position = 7;
     w38.Expand   = false;
     w38.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 757;
     this.DefaultHeight = 516;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Пример #20
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // 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.image1        = new Gtk.Image();
     this.image1.Name   = "image1";
     this.image1.Pixbuf = Gdk.Pixbuf.LoadFromResource("SpacewarArena.Gtk.logo.jpg");
     this.vbox1.Add(this.image1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.image1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 4;
     // Notebook tab
     Gtk.Label w2 = new Gtk.Label();
     w2.Visible = true;
     this.notebook1.Add(w2);
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(w2, this.label1);
     this.label1.ShowAll();
     // Notebook tab
     Gtk.Label w3 = new Gtk.Label();
     w3.Visible = true;
     this.notebook1.Add(w3);
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2");
     this.notebook1.SetTabLabel(w3, this.label2);
     this.label2.ShowAll();
     // Notebook tab
     Gtk.Label w4 = new Gtk.Label();
     w4.Visible = true;
     this.notebook1.Add(w4);
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("page3");
     this.notebook1.SetTabLabel(w4, this.label3);
     this.label3.ShowAll();
     // Notebook tab
     Gtk.Label w5 = new Gtk.Label();
     w5.Visible = true;
     this.notebook1.Add(w5);
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("page4");
     this.notebook1.SetTabLabel(w5, this.label4);
     this.label4.ShowAll();
     // Notebook tab
     Gtk.Label w6 = new Gtk.Label();
     w6.Visible = true;
     this.notebook1.Add(w6);
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("page5");
     this.notebook1.SetTabLabel(w6, this.label5);
     this.label5.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     w7.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 w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 642;
     this.DefaultHeight = 503;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
 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();
     // Widget Monodoc.Editor.EditorWindow
     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.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.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open"), Mono.Unix.Catalog.GetString("Open file"), "gtk-open");
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
     w2.Add(this.Open, null);
     this.Save = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save"), Mono.Unix.Catalog.GetString("Save file"), "gtk-save");
     this.Save.Sensitive = false;
     this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
     w2.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");
     w2.Add(this.SaveAs, null);
     this.CloseFile = new Gtk.Action("CloseFile", Mono.Unix.Catalog.GetString("_Close File"), null, "gtk-close");
     this.CloseFile.ShortLabel = Mono.Unix.Catalog.GetString("_Close File");
     w2.Add(this.CloseFile, 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.Cut = new Gtk.Action("Cut", Mono.Unix.Catalog.GetString("Cu_t"), null, "gtk-cut");
     this.Cut.Sensitive = false;
     this.Cut.ShortLabel = Mono.Unix.Catalog.GetString("Cu_t");
     w2.Add(this.Cut, null);
     this.Copy = new Gtk.Action("Copy", Mono.Unix.Catalog.GetString("_Copy"), Mono.Unix.Catalog.GetString("Copy selection"), "gtk-copy");
     this.Copy.ShortLabel = Mono.Unix.Catalog.GetString("_Copy");
     w2.Add(this.Copy, null);
     this.Paste = new Gtk.Action("Paste", Mono.Unix.Catalog.GetString("_Paste"), null, "gtk-paste");
     this.Paste.Sensitive = false;
     this.Paste.ShortLabel = Mono.Unix.Catalog.GetString("_Paste");
     w2.Add(this.Paste, 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.Undo = new Gtk.Action("Undo", Mono.Unix.Catalog.GetString("_Undo"), Mono.Unix.Catalog.GetString("Undo last action"), "gtk-undo");
     this.Undo.Sensitive = false;
     this.Undo.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
     w2.Add(this.Undo, "<Control>z");
     this.Redo = new Gtk.Action("Redo", Mono.Unix.Catalog.GetString("_Redo"), Mono.Unix.Catalog.GetString("Redo last undone action"), "gtk-redo");
     this.Redo.Sensitive = false;
     this.Redo.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
     w2.Add(this.Redo, "<Control>x");
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "Monodoc.Editor.EditorWindow";
     this.Title = Mono.Unix.Catalog.GetString("Monodoc Documentation Editor");
     this.Icon = Gdk.Pixbuf.LoadFromResource("monodoc.png");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Monodoc.Editor.EditorWindow.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='Open'/><separator/><menuitem action='Save'/><menuitem action='SaveAs'/><separator/><menuitem action='CloseFile'/><separator/><menuitem action='Quit'/></menu><menu action='Edit'><menuitem action='Undo'/><menuitem action='Redo'/><separator/><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></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='Open'/><toolitem action='Save'/><separator/><toolitem action='Undo'/><toolitem action='Redo'/><separator/><toolitem action='Cut'/><toolitem action='Copy'/><toolitem action='Paste'/></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.edit_container = new Gtk.VBox();
     this.edit_container.Name = "edit_container";
     this.edit_container.Spacing = 6;
     this.vbox1.Add(this.edit_container);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.edit_container]));
     w5.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.status_bar = new Gtk.Statusbar();
     this.status_bar.Name = "status_bar";
     this.status_bar.Spacing = 6;
     this.status_bar.HasResizeGrip = false;
     // Container child status_bar.Gtk.Box+BoxChild
     this.progress_bar = new Gtk.ProgressBar();
     this.progress_bar.Name = "progress_bar";
     this.status_bar.Add(this.progress_bar);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.status_bar[this.progress_bar]));
     w6.Position = 1;
     this.vbox1.Add(this.status_bar);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.status_bar]));
     w7.Position = 3;
     w7.Expand = false;
     w7.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 740;
     this.DefaultHeight = 537;
     this.progress_bar.Hide();
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Quit.Activated += new System.EventHandler(this.OnQuitActivated);
     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.CloseFile.Activated += new System.EventHandler(this.OnCloseFileActivated);
     this.Copy.Activated += new System.EventHandler(this.OnCopyActivated);
     this.About.Activated += new System.EventHandler(this.OnAboutActivated);
     this.Undo.Activated += new System.EventHandler(this.OnUndoActivated);
     this.Redo.Activated += new System.EventHandler(this.OnRedoActivated);
 }
Пример #23
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HGDGTK.MainWindow
     this.Name = "HGDGTK.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child HGDGTK.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 5;
     this.vbox1.BorderWidth = ((uint)(5));
     // 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.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Now Playing:");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.hbox1.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
     w2.Position = 1;
     // 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.FocusOnClick = false;
     this.button1.Label = Mono.Unix.Catalog.GetString("Crap Song!");
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w3.Position = 2;
     w3.Expand = false;
     w3.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 495;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.filepane = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     this.filepane.Name = "filepane";
     this.filepane.LocalOnly = false;
     this.filepane.SelectMultiple = true;
     this.filepane.DoOverwriteConfirmation = true;
     this.hpaned1.Add(this.filepane);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.filepane]));
     w6.Resize = false;
     // Container child hpaned1.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.playlist = new Gtk.NodeView();
     this.playlist.CanFocus = true;
     this.playlist.Name = "playlist";
     this.GtkScrolledWindow2.Add(this.playlist);
     this.hpaned1.Add(this.GtkScrolledWindow2);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w9.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 w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 3;
     w10.Expand = false;
     w10.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 816;
     this.DefaultHeight = 643;
     this.Show();
     this.playlist.DragEnd += new Gtk.DragEndHandler(this.OnNodeview1DragEnd);
     this.playlist.DragDrop += new Gtk.DragDropHandler(this.OnNodeview1DragDrop);
 }
Пример #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.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     w1.Add(this.OpenAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w1.Add(this.QuitAction, 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.rootBox = new Gtk.VBox();
     this.rootBox.Name = "rootBox";
     this.rootBox.Spacing = 6;
     // Container child rootBox.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar'><menu name='FileAction' action='FileAction'><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu></menubar></ui>");
     this.menubar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar")));
     this.menubar.Name = "menubar";
     this.rootBox.Add(this.menubar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.rootBox[this.menubar]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child rootBox.Gtk.Box+BoxChild
     this.scrolledwindow = new Gtk.ScrolledWindow();
     this.scrolledwindow.CanFocus = true;
     this.scrolledwindow.Name = "scrolledwindow";
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));
     this.rootBox.Add(this.scrolledwindow);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.rootBox[this.scrolledwindow]));
     w3.Position = 1;
     // Container child rootBox.Gtk.Box+BoxChild
     this.statusbar = new Gtk.Statusbar();
     this.statusbar.Name = "statusbar";
     this.statusbar.Spacing = 6;
     // Container child statusbar.Gtk.Box+BoxChild
     this.progressbar = new Gtk.ProgressBar();
     this.progressbar.Name = "progressbar";
     this.statusbar.Add(this.progressbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.statusbar[this.progressbar]));
     w4.Position = 1;
     w4.Expand = false;
     // Container child statusbar.Gtk.Box+BoxChild
     this.cancelButton = new Gtk.Button();
     this.cancelButton.CanFocus = true;
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.UseStock = true;
     this.cancelButton.UseUnderline = true;
     this.cancelButton.Label = "gtk-cancel";
     this.statusbar.Add(this.cancelButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.statusbar[this.cancelButton]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.rootBox.Add(this.statusbar);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.rootBox[this.statusbar]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     this.Add(this.rootBox);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 612;
     this.DefaultHeight = 333;
     this.progressbar.Hide();
     this.cancelButton.Hide();
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.OpenAction.Activated += new System.EventHandler(this.OpenAction_Activated);
     this.QuitAction.Activated += new System.EventHandler(this.QuitAction_Activated);
     this.cancelButton.Clicked += new System.EventHandler(this.cancelButton_Clicked);
 }
 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);
 }
Пример #26
0
        public MainWindow()
            : base("Smuxi")
        {
            // restore window size / position
            int width, heigth;
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null) {
                width  = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"];
            } else {
                width = 800;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null) {
                heigth = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"];
            } else {
                heigth = 600;
            }
            if (width < -1 || heigth < -1) {
                width = -1;
                heigth = -1;
            }
            if (width == -1 && heigth == -1) {
                SetDefaultSize(800, 600);
                Maximize();
            } else if (width == 0 && heigth == 0) {
                // HACK: map 0/0 to default size as it crashes on Windows :/
                SetDefaultSize(800, 600);
            } else {
                SetDefaultSize(width, heigth);
            }

            int x, y;
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null) {
                x = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"];
            } else {
                x = 0;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null) {
                y = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"];
            } else {
                y = 0;
            }
            if (x < 0 || y < 0) {
                x = 0;
                y = 0;
            }
            if (x == 0 && y == 0) {
                SetPosition(Gtk.WindowPosition.Center);
            } else {
                Move(x, y);
            }

            DeleteEvent += OnDeleteEvent;
            FocusInEvent += OnFocusInEvent;
            FocusOutEvent += OnFocusOutEvent;
            WindowStateEvent += OnWindowStateEvent;

            // TODO: network treeview
            Notebook = new Notebook();
            Notebook.SwitchPage += OnNotebookSwitchPage;
            Notebook.FocusInEvent += OnNotebookFocusInEvent;

            ChatViewManager = new ChatViewManager(Notebook, null);
            Assembly asm = Assembly.GetExecutingAssembly();
            ChatViewManager.Load(asm);
            ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location),
                                     "smuxi-frontend-gnome-*.dll");
            ChatViewManager.ChatAdded += OnChatViewManagerChatAdded;
            ChatViewManager.ChatSynced += OnChatViewManagerChatSynced;
            ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved;

            #if GTK_SHARP_2_10
            StatusIconManager = new StatusIconManager(this, ChatViewManager);
            #endif
            #if INDICATE_SHARP
            IndicateManager = new IndicateManager(this, ChatViewManager);
            #endif
            #if NOTIFY_SHARP
            NotifyManager = new NotifyManager(this, ChatViewManager);
            #endif
            #if IPC_DBUS
            NetworkManager = new NetworkManager(ChatViewManager);
            #endif

            UI = new GnomeUI(ChatViewManager);

            // HACK: Frontend.FrontendConfig out of scope
            EngineManager = new EngineManager(Frontend.FrontendConfig, UI);

            Entry = new Entry(ChatViewManager);
            var entryScrolledWindow = new Gtk.ScrolledWindow();
            entryScrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn;
            entryScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            entryScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful heigth
                var layout = Entry.CreatePangoLayout("Qp");
                int lineWidth, lineHeigth;
                layout.GetPixelSize(out lineWidth, out lineHeigth);
                var text = Entry.Text;
                var newLines = text.Count(f => f == '\n');
                // cap to 1-3 lines
                if (text.Length > 0) {
                    newLines++;
                    newLines = Math.Max(newLines, 1);
                    newLines = Math.Min(newLines, 3);
                } else {
                    newLines = 1;
                }
                // use text heigth + a bit extra
                var bestSize = new Gtk.Requisition() {
                    Height = (lineHeigth * newLines) + 5
                };
                args.Requisition = bestSize;
            };
            entryScrolledWindow.Add(Entry);

            ProgressBar = new Gtk.ProgressBar();
            StatusHBox = new Gtk.HBox();

            MenuWidget = new MenuWidget(this, ChatViewManager);

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(MenuWidget, false, false, 0);
            vbox.PackStart(Notebook, true, true, 0);
            vbox.PackStart(entryScrolledWindow, false, false, 0);

            NetworkStatusbar = new Gtk.Statusbar();
            NetworkStatusbar.WidthRequest = 300;
            NetworkStatusbar.HasResizeGrip = false;

            Statusbar = new Gtk.Statusbar();
            Statusbar.HasResizeGrip = false;

            Gtk.HBox status_bar_hbox = new Gtk.HBox();
            status_bar_hbox.Homogeneous = true;
            status_bar_hbox.PackStart(NetworkStatusbar, false, true, 0);
            status_bar_hbox.PackStart(Statusbar, true, true, 0);

            StatusHBox.PackStart(status_bar_hbox);
            StatusHBox.PackStart(ProgressBar, false, false, 0);
            StatusHBox.ShowAll();
            StatusHBox.NoShowAll = true;
            StatusHBox.Visible = (bool) Frontend.FrontendConfig["ShowStatusBar"];

            vbox.PackStart(StatusHBox, false, false, 0);
            Add(vbox);

            if (Frontend.IsMacOSX) {
                IgeMacMenu.GlobalKeyHandlerEnabled = true;
                IgeMacMenu.MenuBar = MenuWidget.MenuBar;
                ShowMenuBar = false;

                var appGroup = IgeMacMenu.AddAppMenuGroup();
                appGroup.AddMenuItem(
                    (Gtk.MenuItem) MenuWidget.PreferencesAction.CreateMenuItem(),
                    _("Preferences")
                );
                IgeMacMenu.QuitMenuItem = (Gtk.MenuItem)
                    MenuWidget.QuitAction.CreateMenuItem();
            }
        }
Пример #27
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);
 }
Пример #28
0
 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);
 }
Пример #29
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget sermon2.lopview
     Gtk.UIManager   w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.TestAction            = new Gtk.Action("TestAction", Mono.Unix.Catalog.GetString("Test"), null, null);
     this.TestAction.ShortLabel = Mono.Unix.Catalog.GetString("Test");
     w2.Add(this.TestAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "sermon2.lopview";
     this.Title          = Mono.Unix.Catalog.GetString("lopview");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child sermon2.lopview.Gtk.Container+ContainerChild
     this.alignment1      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment1.Name = "alignment1";
     // Container child alignment1.Gtk.Container+ContainerChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='TestAction'/></menubar></ui>");
     this.menubar2      = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox3.Add(this.menubar2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.menubar2]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.vpaned3          = new Gtk.VPaned();
     this.vpaned3.CanFocus = true;
     this.vpaned3.Name     = "vpaned3";
     this.vpaned3.Position = 76;
     // Container child vpaned3.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.treeview1                  = new Gtk.TreeView();
     this.treeview1.CanFocus         = true;
     this.treeview1.Name             = "treeview1";
     this.treeview1.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.treeview1);
     this.vpaned3.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.vpaned3[this.GtkScrolledWindow]));
     w5.Resize = false;
     // Container child vpaned3.Gtk.Paned+PanedChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.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.textview1          = new Gtk.TextView();
     this.textview1.CanFocus = true;
     this.textview1.Name     = "textview1";
     this.GtkScrolledWindow1.Add(this.textview1);
     this.hbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1]));
     w7.Position = 0;
     // Container child hbox2.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.textview2          = new Gtk.TextView();
     this.textview2.CanFocus = true;
     this.textview2.Name     = "textview2";
     this.GtkScrolledWindow2.Add(this.textview2);
     this.hbox2.Add(this.GtkScrolledWindow2);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow2]));
     w9.Position = 1;
     this.vpaned3.Add(this.hbox2);
     this.vbox3.Add(this.vpaned3);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.vpaned3]));
     w11.Position = 1;
     // Container child vbox3.Gtk.Box+BoxChild
     this.statusbar3         = new Gtk.Statusbar();
     this.statusbar3.Name    = "statusbar3";
     this.statusbar3.Spacing = 6;
     this.vbox3.Add(this.statusbar3);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.statusbar3]));
     w12.Position = 2;
     w12.Expand   = false;
     w12.Fill     = false;
     this.alignment1.Add(this.vbox3);
     this.Add(this.alignment1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 438;
     this.Show();
 }
 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);
 }
Пример #31
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);
         }
     }
 }
Пример #32
0
 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);
         }
     }
 }
Пример #33
0
        public MainWindow()
            : base("Smuxi")
        {
            // restore window size / position
            int width, heigth;
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null) {
                width  = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"];
            } else {
                width = 800;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null) {
                heigth = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"];
            } else {
                heigth = 600;
            }
            if (width < -1 || heigth < -1) {
                width = -1;
                heigth = -1;
            }
            if (width == -1 && heigth == -1) {
                SetDefaultSize(800, 600);
                Maximize();
            } else if (width == 0 && heigth == 0) {
                // HACK: map 0/0 to default size as it crashes on Windows :/
                SetDefaultSize(800, 600);
            } else {
                SetDefaultSize(width, heigth);
            }

            int x, y;
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null) {
                x = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"];
            } else {
                x = 0;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null) {
                y = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"];
            } else {
                y = 0;
            }
            if (x < 0 || y < 0) {
                x = 0;
                y = 0;
            }
            if (x == 0 && y == 0) {
                SetPosition(Gtk.WindowPosition.Center);
            } else {
                Move(x, y);
            }

            DeleteEvent += OnDeleteEvent;
            FocusInEvent += OnFocusInEvent;
            FocusOutEvent += OnFocusOutEvent;
            WindowStateEvent += OnWindowStateEvent;

            ChatTreeView = new ChatTreeView();

            Notebook = new Notebook();
            Notebook.SwitchPage += OnNotebookSwitchPage;
            Notebook.FocusInEvent += OnNotebookFocusInEvent;

            ChatViewManager = new ChatViewManager(Notebook, ChatTreeView);
            Assembly asm = Assembly.GetExecutingAssembly();
            ChatViewManager.Load(asm);
            ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location),
                                     "smuxi-frontend-gnome-*.dll");
            ChatViewManager.ChatAdded += OnChatViewManagerChatAdded;
            ChatViewManager.ChatSynced += OnChatViewManagerChatSynced;
            ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved;

            #if GTK_SHARP_2_10
            StatusIconManager = new StatusIconManager(this, ChatViewManager);
            #endif
            #if INDICATE_SHARP || MESSAGING_MENU_SHARP
            IndicateManager = new IndicateManager(this, ChatViewManager);
            #endif
            #if NOTIFY_SHARP
            NotifyManager = new NotifyManager(this, ChatViewManager);
            #endif
            #if IPC_DBUS
            NetworkManager = new NetworkManager(ChatViewManager);
            #endif

            UI = new GnomeUI(ChatViewManager);

            // HACK: Frontend.FrontendConfig out of scope
            EngineManager = new EngineManager(Frontend.FrontendConfig, UI);

            Entry = new Entry(ChatViewManager);
            var entryScrolledWindow = new Gtk.ScrolledWindow();
            entryScrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn;
            entryScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            entryScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful heigth
                int lineWidth, lineHeigth;
                using (var layout = Entry.CreatePangoLayout("Qp")) {
                    layout.GetPixelSize(out lineHeigth, out lineHeigth);
                }
                var it = Entry.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (Entry.ForwardDisplayLineEnd(ref it)) {
                    newLines++;
                    // calling ForwardDisplayLineEnd repeatedly stays on the same position
                    // therefor we move one cursor position further
                    it.ForwardCursorPosition();
                }
                newLines = Math.Min(newLines, 3);
                // use text heigth + a bit extra
                var bestSize = new Gtk.Requisition() {
                    Height = (lineHeigth * newLines) + 5
                };
                args.Requisition = bestSize;
            };
            entryScrolledWindow.Add(Entry);

            ProgressBar = new Gtk.ProgressBar();
            StatusHBox = new Gtk.HBox();

            MenuWidget = new MenuWidget(this, ChatViewManager);

            var treeviewScrolledWindow = new Gtk.ScrolledWindow() {
                ShadowType = Gtk.ShadowType.EtchedIn,
                HscrollbarPolicy = Gtk.PolicyType.Never,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            treeviewScrolledWindow.Add(ChatTreeView);
            ChatViewManager.ChatAdded += (sender, e) => {
                treeviewScrolledWindow.CheckResize();
            };

            var notebookPaned = new Gtk.VPaned();
            notebookPaned.Pack1(Notebook, true, false);
            notebookPaned.Pack2(entryScrolledWindow, false, false);

            var treeviewPaned = new Gtk.HPaned();
            treeviewPaned.Pack1(treeviewScrolledWindow, false, false);
            treeviewPaned.Pack2(notebookPaned, true, false);
            TreeViewHPaned = treeviewPaned;

            var entryPaned = new Gtk.VPaned();
            entryPaned.ButtonPressEvent += (sender, e) => {
                // reset entry size on double click
                if (e.Event.Type == Gdk.EventType.TwoButtonPress &&
                    e.Event.Button == 1) {
                    GLib.Timeout.Add(100, delegate {
                        entryPaned.Position = -1;
                        return false;
                    });
                }
            };
            entryPaned.Pack1(treeviewPaned, true, false);

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(MenuWidget, false, false, 0);
            vbox.PackStart(entryPaned, true, true, 0);

            NetworkStatusbar = new Gtk.Statusbar();
            NetworkStatusbar.WidthRequest = 300;
            NetworkStatusbar.HasResizeGrip = false;

            Statusbar = new Gtk.Statusbar();
            Statusbar.HasResizeGrip = false;

            Gtk.HBox status_bar_hbox = new Gtk.HBox();
            status_bar_hbox.Homogeneous = true;
            status_bar_hbox.PackStart(NetworkStatusbar, false, true, 0);
            status_bar_hbox.PackStart(Statusbar, true, true, 0);

            StatusHBox.PackStart(status_bar_hbox);
            StatusHBox.PackStart(ProgressBar, false, false, 0);
            StatusHBox.ShowAll();
            StatusHBox.NoShowAll = true;
            StatusHBox.Visible = (bool) Frontend.FrontendConfig["ShowStatusBar"];

            vbox.PackStart(StatusHBox, false, false, 0);
            Add(vbox);
        }
Пример #34
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);
 }
Пример #35
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", "_File", null, null);
     this.FileAction.ShortLabel = "_File";
     w1.Add(this.FileAction, "<Control><Mod2>f");
     this.OpenAction = new Gtk.Action("OpenAction", "_Open", null, null);
     this.OpenAction.ShortLabel = "_Open";
     w1.Add(this.OpenAction, "<Control><Mod2>o");
     this.ExitAction = new Gtk.Action("ExitAction", "E_xit", null, null);
     this.ExitAction.ShortLabel = "E_xit";
     w1.Add(this.ExitAction, "<Control><Mod2>x");
     this.AboutAction = new Gtk.Action("AboutAction", "_About", null, null);
     this.AboutAction.ShortLabel = "_About";
     w1.Add(this.AboutAction, "<Control><Mod2>a");
     this.OpenAction1 = new Gtk.Action("OpenAction1", "_Open", null, null);
     this.OpenAction1.ShortLabel = "_Open";
     w1.Add(this.OpenAction1, null);
     this.AboutAction1 = new Gtk.Action("AboutAction1", "_About", null, null);
     this.AboutAction1.ShortLabel = "_About";
     w1.Add(this.AboutAction1, "<Control><Mod2>a");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = "PnP";
     this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-justify-center", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 640;
     this.DefaultHeight = 480;
     // 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='MenuBar'><menu name='FileAction' action='FileAction'><menuitem name='OpenAction1' action='OpenAction1'/><menuitem name='ExitAction' action='ExitAction'/></menu><menuitem name='AboutAction1' action='AboutAction1'/></menubar></ui>");
     this.MenuBar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/MenuBar")));
     this.MenuBar.Name = "MenuBar";
     this.vbox1.Add(this.MenuBar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.MenuBar]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.TextView = new Gtk.TextView();
     this.TextView.CanFocus = true;
     this.TextView.Name = "TextView";
     this.TextView.Editable = false;
     this.TextView.CursorVisible = false;
     this.GtkScrolledWindow.Add(this.TextView);
     this.vbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
     w4.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.ButtonHBox = new Gtk.HBox();
     this.ButtonHBox.Name = "ButtonHBox";
     this.ButtonHBox.Homogeneous = true;
     this.ButtonHBox.Spacing = 6;
     // Container child ButtonHBox.Gtk.Box+BoxChild
     this.OpenButton = new Gtk.Button();
     this.OpenButton.CanFocus = true;
     this.OpenButton.Name = "OpenButton";
     this.OpenButton.UseUnderline = true;
     this.OpenButton.Label = "Open";
     this.ButtonHBox.Add(this.OpenButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.ButtonHBox[this.OpenButton]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child ButtonHBox.Gtk.Box+BoxChild
     this.ExecButton = new Gtk.Button();
     this.ExecButton.Sensitive = false;
     this.ExecButton.CanFocus = true;
     this.ExecButton.Name = "ExecButton";
     this.ExecButton.UseUnderline = true;
     this.ExecButton.Label = "Parse";
     this.ButtonHBox.Add(this.ExecButton);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.ButtonHBox[this.ExecButton]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     // Container child ButtonHBox.Gtk.Box+BoxChild
     this.ViewButton = new Gtk.Button();
     this.ViewButton.Sensitive = false;
     this.ViewButton.CanFocus = true;
     this.ViewButton.Name = "ViewButton";
     this.ViewButton.UseUnderline = true;
     this.ViewButton.Label = "View";
     this.ButtonHBox.Add(this.ViewButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.ButtonHBox[this.ViewButton]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     // Container child ButtonHBox.Gtk.Box+BoxChild
     this.ExitButton = new Gtk.Button();
     this.ExitButton.CanFocus = true;
     this.ExitButton.Name = "ExitButton";
     this.ExitButton.UseUnderline = true;
     this.ExitButton.Label = "Exit";
     this.ButtonHBox.Add(this.ExitButton);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.ButtonHBox[this.ExitButton]));
     w8.PackType = ((Gtk.PackType)(1));
     w8.Position = 3;
     w8.Expand = false;
     w8.Fill = false;
     // Container child ButtonHBox.Gtk.Box+BoxChild
     this.SaveButton = new Gtk.Button();
     this.SaveButton.Sensitive = false;
     this.SaveButton.CanFocus = true;
     this.SaveButton.Name = "SaveButton";
     this.SaveButton.UseUnderline = true;
     this.SaveButton.Label = "Save";
     this.ButtonHBox.Add(this.SaveButton);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.ButtonHBox[this.SaveButton]));
     w9.PackType = ((Gtk.PackType)(1));
     w9.Position = 4;
     w9.Expand = false;
     w9.Fill = false;
     this.vbox1.Add(this.ButtonHBox);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.ButtonHBox]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.SBar = new Gtk.Statusbar();
     this.SBar.Name = "SBar";
     this.SBar.Spacing = 6;
     this.vbox1.Add(this.SBar);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.SBar]));
     w11.PackType = ((Gtk.PackType)(1));
     w11.Position = 3;
     w11.Expand = false;
     w11.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.OnOpenClicked);
     this.ExitAction.Activated += new System.EventHandler(this.OnExitClicked);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutClicked);
     this.OpenAction1.Activated += new System.EventHandler(this.OnOpenClicked);
     this.AboutAction1.Activated += new System.EventHandler(this.OnAboutClicked);
     this.OpenButton.Clicked += new System.EventHandler(this.OnOpenButtonClicked);
     this.ExecButton.Clicked += new System.EventHandler(this.OnExecButtonClicked);
     this.ViewButton.Clicked += new System.EventHandler(this.OnViewButtonClicked);
     this.SaveButton.Clicked += new System.EventHandler(this.OnSaveButtonClicked);
     this.ExitButton.Clicked += new System.EventHandler(this.OnExitButtonClicked);
 }
Пример #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.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("_Open..."), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     w1.Add(this.OpenAction, null);
     this.QuitAction            = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w1.Add(this.QuitAction, 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.rootBox         = new Gtk.VBox();
     this.rootBox.Name    = "rootBox";
     this.rootBox.Spacing = 6;
     // Container child rootBox.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar'><menu name='FileAction' action='FileAction'><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu></menubar></ui>");
     this.menubar      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar")));
     this.menubar.Name = "menubar";
     this.rootBox.Add(this.menubar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.rootBox[this.menubar]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child rootBox.Gtk.Box+BoxChild
     this.scrolledwindow            = new Gtk.ScrolledWindow();
     this.scrolledwindow.CanFocus   = true;
     this.scrolledwindow.Name       = "scrolledwindow";
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));
     this.rootBox.Add(this.scrolledwindow);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.rootBox[this.scrolledwindow]));
     w3.Position = 1;
     // Container child rootBox.Gtk.Box+BoxChild
     this.statusbar         = new Gtk.Statusbar();
     this.statusbar.Name    = "statusbar";
     this.statusbar.Spacing = 6;
     // Container child statusbar.Gtk.Box+BoxChild
     this.progressbar      = new Gtk.ProgressBar();
     this.progressbar.Name = "progressbar";
     this.statusbar.Add(this.progressbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.statusbar[this.progressbar]));
     w4.Position = 1;
     w4.Expand   = false;
     // Container child statusbar.Gtk.Box+BoxChild
     this.cancelButton              = new Gtk.Button();
     this.cancelButton.CanFocus     = true;
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.UseStock     = true;
     this.cancelButton.UseUnderline = true;
     this.cancelButton.Label        = "gtk-cancel";
     this.statusbar.Add(this.cancelButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.statusbar[this.cancelButton]));
     w5.Position = 2;
     w5.Expand   = false;
     w5.Fill     = false;
     this.rootBox.Add(this.statusbar);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.rootBox[this.statusbar]));
     w6.Position = 2;
     w6.Expand   = false;
     w6.Fill     = false;
     this.Add(this.rootBox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 612;
     this.DefaultHeight = 333;
     this.progressbar.Hide();
     this.cancelButton.Hide();
     this.Show();
     this.DeleteEvent          += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.OpenAction.Activated += new System.EventHandler(this.OpenAction_Activated);
     this.QuitAction.Activated += new System.EventHandler(this.QuitAction_Activated);
     this.cancelButton.Clicked += new System.EventHandler(this.cancelButton_Clicked);
 }
Пример #37
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget serialmon.MainWindow
     this.Name           = "serialmon.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("serialMon");
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "gtk-zoom-fit", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(3));
     // Container child serialmon.MainWindow.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // 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.textview1                 = new Gtk.TextView();
     this.textview1.CanFocus        = true;
     this.textview1.ExtensionEvents = ((Gdk.ExtensionMode)(1));
     this.textview1.Name            = "textview1";
     this.textview1.Editable        = false;
     this.GtkScrolledWindow.Add(this.textview1);
     this.vbox2.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow]));
     w2.Position = 0;
     // 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.aboutButton              = new Gtk.Button();
     this.aboutButton.CanFocus     = true;
     this.aboutButton.Name         = "aboutButton";
     this.aboutButton.UseUnderline = true;
     this.aboutButton.Label        = Mono.Unix.Catalog.GetString("about");
     this.hbox1.Add(this.aboutButton);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.aboutButton]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.configButton              = new Gtk.Button();
     this.configButton.CanFocus     = true;
     this.configButton.Name         = "configButton";
     this.configButton.UseUnderline = true;
     this.configButton.Label        = Mono.Unix.Catalog.GetString("Config");
     this.hbox1.Add(this.configButton);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.configButton]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.clearButton              = new Gtk.Button();
     this.clearButton.CanFocus     = true;
     this.clearButton.Name         = "clearButton";
     this.clearButton.UseUnderline = true;
     this.clearButton.Label        = Mono.Unix.Catalog.GetString("clear");
     this.hbox1.Add(this.clearButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.clearButton]));
     w5.Position = 2;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.mainButton              = new Gtk.Button();
     this.mainButton.CanFocus     = true;
     this.mainButton.Name         = "mainButton";
     this.mainButton.UseUnderline = true;
     this.mainButton.Label        = Mono.Unix.Catalog.GetString("connect");
     this.hbox1.Add(this.mainButton);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.mainButton]));
     w6.Position = 3;
     w6.Expand   = false;
     w6.Fill     = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.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 w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar2]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 448;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent             += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.textview1.SizeAllocated += new Gtk.SizeAllocatedHandler(this.OnTextview);
     this.aboutButton.Released    += new System.EventHandler(this.OnAboutButtonReleased);
     this.configButton.Released   += new System.EventHandler(this.OnConfigButtonReleased);
     this.clearButton.Released    += new System.EventHandler(this.OnClearButtonReleased);
     this.mainButton.Released     += new System.EventHandler(this.OnMainButtonReleased);
 }
Пример #38
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("(ymt5gui) mt5 to objf");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(3));
     // 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.frame1      = new Gtk.Frame();
     this.frame1.Name = "frame1";
     // 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.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.checkbutton2               = new Gtk.CheckButton();
     this.checkbutton2.CanFocus      = true;
     this.checkbutton2.Name          = "checkbutton2";
     this.checkbutton2.Label         = Mono.Unix.Catalog.GetString("extract all mt5 from directory");
     this.checkbutton2.DrawIndicator = true;
     this.checkbutton2.UseUnderline  = true;
     this.vbox4.Add(this.checkbutton2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton2]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.filechooserbutton1      = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Sélectionner un fichier"), ((Gtk.FileChooserAction)(0)));
     this.filechooserbutton1.Name = "filechooserbutton1";
     this.vbox4.Add(this.filechooserbutton1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox4[this.filechooserbutton1]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.GtkAlignment.Add(this.vbox4);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>M</b>T5 path");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel2;
     this.vbox2.Add(this.frame1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame2      = new Gtk.Frame();
     this.frame2.Name = "frame2";
     // 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.frame4            = new Gtk.Frame();
     this.frame4.Name       = "frame4";
     this.frame4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame4.Gtk.Container+ContainerChild
     this.GtkAlignment3             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name        = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.filechooserbutton2      = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Sélectionner un fichier"), ((Gtk.FileChooserAction)(2)));
     this.filechooserbutton2.Name = "filechooserbutton2";
     this.GtkAlignment3.Add(this.filechooserbutton2);
     this.frame4.Add(this.GtkAlignment3);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("Output path to objf");
     this.GtkLabel6.UseMarkup = true;
     this.frame4.LabelWidget  = this.GtkLabel6;
     this.vbox3.Add(this.frame4);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame4]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.checkbutton1               = new Gtk.CheckButton();
     this.checkbutton1.CanFocus      = true;
     this.checkbutton1.Name          = "checkbutton1";
     this.checkbutton1.Label         = Mono.Unix.Catalog.GetString("do not use triangle strip (obj compatible)");
     this.checkbutton1.Active        = true;
     this.checkbutton1.DrawIndicator = true;
     this.checkbutton1.UseUnderline  = true;
     this.vbox3.Add(this.checkbutton1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.checkbutton1]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     this.GtkAlignment1.Add(this.vbox3);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel5           = new Gtk.Label();
     this.GtkLabel5.Name      = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>O</b>bjf pathes");
     this.GtkLabel5.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel5;
     this.vbox2.Add(this.frame2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame2]));
     w12.Position = 1;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame3      = new Gtk.Frame();
     this.frame3.Name = "frame3";
     // 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.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     button2              = new Gtk.Button();
     button2.CanFocus     = true;
     button2.Name         = "button2";
     button2.UseUnderline = true;
     button2.Label        = Mono.Unix.Catalog.GetString("Generate");
     this.hbox1.Add(button2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[button2]));
     w13.Position = 0;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.vbox5         = new Gtk.VBox();
     this.vbox5.Name    = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     progressbar1      = new Gtk.ProgressBar();
     progressbar1.Name = "progressbar1";
     this.vbox5.Add(progressbar1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(vbox5[progressbar1]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child vbox5.Gtk.Box+BoxChild
     statusbar1         = new Gtk.Statusbar();
     statusbar1.Name    = "statusbar1";
     statusbar1.Spacing = 6;
     this.vbox5.Add(statusbar1);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox5[statusbar1]));
     w15.Position = 1;
     w15.Expand   = false;
     w15.Fill     = false;
     this.vbox1.Add(this.vbox5);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox5]));
     w16.Position = 0;
     w16.Expand   = false;
     w16.Fill     = false;
     this.hbox1.Add(this.vbox1);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
     w17.Position = 1;
     this.GtkAlignment2.Add(this.hbox1);
     this.frame3.Add(this.GtkAlignment2);
     this.GtkLabel10           = new Gtk.Label();
     this.GtkLabel10.Name      = "GtkLabel10";
     this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>M</b>t52objf");
     this.GtkLabel10.UseMarkup = true;
     this.frame3.LabelWidget   = this.GtkLabel10;
     this.vbox2.Add(this.frame3);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame3]));
     w20.Position = 2;
     w20.Expand   = false;
     w20.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 764;
     this.DefaultHeight = 245;
     this.Show();
     this.DeleteEvent          += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.checkbutton2.Toggled += new System.EventHandler(this.onMt5DirectoryToggle);
     button2.Clicked           += new System.EventHandler(this.OnButton2Clicked);
 }
Пример #39
0
 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);
 }
Пример #40
0
        public App() : base("Drag And Drop Complete")
        {
            this.SetDefaultSize(250, 200);
            this.SetPosition(Gtk.WindowPosition.Center);
            this.DeleteEvent += OnTerminated;

            this.isChecked = false;
            this.sBar      = new Gtk.Statusbar();
            sBar.Push((uint)StatusType.NotChecked, "Not checked");
            this.btnDrag = new Gtk.Button("Drag here");
            Gtk.Drag.SourceSet
                (this.btnDrag,
                Gdk.ModifierType.Button1Mask
                | Gdk.ModifierType.Button3Mask,
                null,
                Gdk.DragAction.Copy | Gdk.DragAction.Move);
            this.btnDrag.DragDataGet
                += new Gtk.DragDataGetHandler
                       (HandleSourceDragDataGet);
            this.btnDrag.DragDataDelete
                += new Gtk.DragDataDeleteHandler
                       (HandleSourceDragDataDelete);

            // set drop label as destination
            this.lblDrop = new Gtk.Label("Drop here");
            Gtk.Drag.DestSet(this.lblDrop, 0, null, 0);
            this.lblDrop.DragMotion
                += new Gtk.DragMotionHandler
                       (HandleTargetDragMotion);
            this.lblDrop.DragDrop
                += new Gtk.DragDropHandler
                       (HandleTargetDragDrop);
            this.lblDrop.DragDataReceived
                += new Gtk.DragDataReceivedHandler
                       (this.HandleTargetDragDataReceived);
            this.lblDrop.DragDrop
                += new Gtk.DragDropHandler
                       (this.HandleStatBarDragDrop);
            Gtk.MenuBar  bar  = new Gtk.MenuBar();
            Gtk.MenuItem item = new Gtk.MenuItem("File");
            Gtk.Menu     menu = new Gtk.Menu();
            item.Submenu = menu;
            bar.Append(item);
            // accel key
            Gtk.AccelGroup ag = new Gtk.AccelGroup();
            this.AddAccelGroup(ag);
            item            = new Gtk.MenuItem("Quit");
            item.Activated += OnTerminated;
            item.AddAccelerator
                ("activate", ag, new Gtk.AccelKey
                    (Gdk.Key.Q, Gdk.ModifierType.ControlMask,
                    Gtk.AccelFlags.Visible));
            menu.Append(item);
            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(bar, false, false, 0);
            Gtk.HBox hbox = new Gtk.HBox();
            hbox.PackStart(this.btnDrag, true, true, 0);
            hbox.PackStart(this.lblDrop, true, true, 0);
            vbox.PackStart(hbox, true, true, 0);
            vbox.PackStart(sBar, false, false, 0);
            this.Add(vbox);
            this.ShowAll();
        }
Пример #41
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);
 }
Пример #42
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Embroidr.UI.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w2.Add(this.FileAction, null);
     this.findAction = new Gtk.Action("findAction", null, null, "gtk-find");
     w2.Add(this.findAction, null);
     this.FindAction = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null);
     this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find");
     w2.Add(this.FindAction, null);
     this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
     w2.Add(this.saveAction, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "Embroidr.UI.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Embroidr");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(2));
     // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/><toolitem action='saveAction'/></toolbar></ui>");
     this.toolbar3 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3")));
     this.toolbar3.Name = "toolbar3";
     this.toolbar3.ShowArrow = false;
     this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar3);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned2 = new Gtk.HPaned();
     this.hpaned2.CanFocus = true;
     this.hpaned2.Name = "hpaned2";
     this.hpaned2.Position = 160;
     // Container child hpaned2.Gtk.Paned+PanedChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.pesTree = new Gtk.TreeView();
     this.pesTree.CanFocus = true;
     this.pesTree.Name = "pesTree";
     this.pesTree.HeadersClickable = true;
     this.GtkScrolledWindow1.Add(this.pesTree);
     this.vbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1]));
     w6.Position = 0;
     this.hpaned2.Add(this.vbox2);
     Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2]));
     w7.Resize = false;
     // Container child hpaned2.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.pesView = new Gtk.NodeView();
     this.pesView.CanFocus = true;
     this.pesView.Name = "pesView";
     this.pesView.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.pesView);
     this.hpaned2.Add(this.GtkScrolledWindow);
     this.vbox1.Add(this.hpaned2);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2]));
     w10.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.pixbufSize = new Gtk.HScale(null);
     this.pixbufSize.CanFocus = true;
     this.pixbufSize.Name = "pixbufSize";
     this.pixbufSize.Adjustment.Lower = 16;
     this.pixbufSize.Adjustment.Upper = 255;
     this.pixbufSize.Adjustment.PageIncrement = 10;
     this.pixbufSize.Adjustment.StepIncrement = 1;
     this.pixbufSize.Adjustment.Value = 90;
     this.pixbufSize.DrawValue = true;
     this.pixbufSize.Digits = 0;
     this.pixbufSize.ValuePos = ((Gtk.PositionType)(2));
     this.vbox1.Add(this.pixbufSize);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.pixbufSize]));
     w11.Position = 3;
     w11.Expand = false;
     w11.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w12.Position = 4;
     w12.Expand = false;
     w12.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 699;
     this.DefaultHeight = 638;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated);
     this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
     this.pixbufSize.ValueChanged += new System.EventHandler(this.OnPixbufSizeValueChanged);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(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 MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     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.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'/></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox3.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.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.textview3 = new Gtk.TextView();
     this.textview3.CanFocus = true;
     this.textview3.Name = "textview3";
     this.GtkScrolledWindow.Add(this.textview3);
     this.vbox3.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow]));
     w4.Position = 1;
     this.vbox1.Add(this.vbox3);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox3]));
     w5.Position = 0;
     // 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.textview2 = new Gtk.TextView();
     this.textview2.CanFocus = true;
     this.textview2.Name = "textview2";
     this.GtkScrolledWindow1.Add(this.textview2);
     this.vbox1.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow1]));
     w7.Position = 1;
     // 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.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.hbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.statusbar1]));
     w8.Position = 0;
     // 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("GtkButton");
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w9.Position = 2;
     w9.Expand = false;
     w9.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 747;
     this.DefaultHeight = 476;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Пример #45
0
        public MainWindow()
            : base("Smuxi")
        {
            // restore window size / position
            int width, heigth;
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null) {
                width  = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"];
            } else {
                width = 800;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null) {
                heigth = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"];
            } else {
                heigth = 600;
            }
            if (width == -1 && heigth == -1) {
                SetDefaultSize(800, 600);
                Maximize();
            } else if (width == 0 && heigth == 0) {
                // HACK: map 0/0 to default size as it crashes on Windows :/
                SetDefaultSize(800, 600);
            } else {
                SetDefaultSize(width, heigth);
            }

            int x, y;
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null) {
                x = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"];
            } else {
                x = 0;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null) {
                y = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"];
            } else {
                y = 0;
            }
            if (x == 0 && y == 0) {
                SetPosition(Gtk.WindowPosition.Center);
            } else {
                Move(x, y);
            }

            DeleteEvent += OnDeleteEvent;
            FocusInEvent += OnFocusInEvent;
            FocusOutEvent += OnFocusOutEvent;
            WindowStateEvent += OnWindowStateEvent;

            Gtk.AccelGroup agrp = new Gtk.AccelGroup();
            Gtk.AccelKey   akey;
            AddAccelGroup(agrp);

            // Menu
            _MenuBar = new Gtk.MenuBar();
            Gtk.Menu menu;
            Gtk.MenuItem item;
            Gtk.ImageMenuItem image_item;

            // Menu - File
            menu = new Gtk.Menu();
            item = new Gtk.MenuItem(_("_File"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            item = new Gtk.ImageMenuItem(Gtk.Stock.Preferences, agrp);
            item.Activated += new EventHandler(_OnPreferencesButtonClicked);
            menu.Append(item);

            menu.Append(new Gtk.SeparatorMenuItem());

            item = new Gtk.ImageMenuItem(Gtk.Stock.Quit, agrp);
            item.Activated += new EventHandler(_OnQuitButtonClicked);
            menu.Append(item);

            // Menu - Server
            menu = new Gtk.Menu();
            item = new Gtk.MenuItem(_("_Server"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            image_item = new Gtk.ImageMenuItem(_("_Quick Connect"));
            image_item.Image = new Gtk.Image(Gtk.Stock.Connect, Gtk.IconSize.Menu);
            image_item.Activated += OnServerQuickConnectButtonClicked;
            menu.Append(image_item);

            menu.Append(new Gtk.SeparatorMenuItem());

            image_item = new Gtk.ImageMenuItem(Gtk.Stock.Add, agrp);
            image_item.Activated += OnServerAddButtonClicked;
            menu.Append(image_item);

            image_item = new Gtk.ImageMenuItem(_("_Manage"));
            image_item.Image = new Gtk.Image(Gtk.Stock.Edit, Gtk.IconSize.Menu);
            image_item.Activated += OnServerManageServersButtonClicked;
            menu.Append(image_item);

            // Menu - Chat
            menu = new Gtk.Menu();
            item = new Gtk.MenuItem(_("_Chat"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            _OpenChatMenuItem = new Gtk.ImageMenuItem(_("Open / Join Chat"));
            _OpenChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Open, Gtk.IconSize.Menu);
            _OpenChatMenuItem.Activated += OnChatOpenChatButtonClicked;
            _OpenChatMenuItem.Sensitive = false;
            menu.Append(_OpenChatMenuItem);

            _FindGroupChatMenuItem = new Gtk.ImageMenuItem(_("_Find Group Chat"));
            _FindGroupChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Find, Gtk.IconSize.Menu);
            _FindGroupChatMenuItem.Activated += OnChatFindGroupChatButtonClicked;
            _FindGroupChatMenuItem.Sensitive = false;
            menu.Append(_FindGroupChatMenuItem);

            image_item = new Gtk.ImageMenuItem(_("C_lear All Activity"));
            image_item.Image = new Gtk.Image(Gtk.Stock.Clear, Gtk.IconSize.Menu);
            image_item.Activated += OnChatClearAllActivityButtonClicked;
            menu.Append(image_item);

            menu.Append(new Gtk.SeparatorMenuItem());

            image_item = new Gtk.ImageMenuItem(_("_Next Chat"));
            image_item.Image = new Gtk.Image(Gtk.Stock.GoForward, Gtk.IconSize.Menu);
            image_item.Activated += OnNextChatMenuItemActivated;
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.AccelMods = Gdk.ModifierType.ControlMask;
            akey.Key = Gdk.Key.Page_Down;
            image_item.AddAccelerator("activate", agrp, akey);
            menu.Append(image_item);

            image_item = new Gtk.ImageMenuItem(_("_Previous Chat"));
            image_item.Image = new Gtk.Image(Gtk.Stock.GoBack, Gtk.IconSize.Menu);
            image_item.Activated += OnPreviousChatMenuItemActivated;
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.AccelMods = Gdk.ModifierType.ControlMask;
            akey.Key = Gdk.Key.Page_Up;
            image_item.AddAccelerator("activate", agrp, akey);
            menu.Append(image_item);

            menu.Append(new Gtk.SeparatorMenuItem());

            /*
            // TODO: make a radio item for each chat hotkey
            Gtk.RadioMenuItem radio_item;
            radio_item = new Gtk.RadioMenuItem();
            radio_item = new Gtk.RadioMenuItem(radio_item);
            radio_item = new Gtk.RadioMenuItem(radio_item);

            menu.Append(new Gtk.SeparatorMenuItem());
            */

            /*
            image_item = new Gtk.ImageMenuItem(Gtk.Stock.Find, agrp);
            image_item.Activated += OnFindChatMenuItemActivated;
            menu.Append(image_item);

            item = new Gtk.MenuItem(_("Find _Next"));
            item.Activated += OnFindNextChatMenuItemActivated;
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.AccelMods = Gdk.ModifierType.ControlMask;
            akey.Key = Gdk.Key.G;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            item = new Gtk.MenuItem(_("Find _Previous"));
            item.Activated += OnFindPreviousChatMenuItemActivated;
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.AccelMods = Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask;
            akey.Key = Gdk.Key.G;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);
            */

            // ROFL: the empty code statement below is needed to keep stupid
            // gettext away from using all the commented code from above as
            // translator comment
            ;
            _OpenLogChatMenuItem = new Gtk.ImageMenuItem(_("Open Log"));
            _OpenLogChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Open,
                                                       Gtk.IconSize.Menu);
            _OpenLogChatMenuItem.Activated += OnOpenLogChatMenuItemActivated;
            _OpenLogChatMenuItem.Sensitive = false;
            _OpenLogChatMenuItem.NoShowAll = true;
            menu.Append(_OpenLogChatMenuItem);

            _CloseChatMenuItem = new Gtk.ImageMenuItem(Gtk.Stock.Close, agrp);
            _CloseChatMenuItem.Activated += OnCloseChatMenuItemActivated;
            menu.Append(_CloseChatMenuItem);

            // Menu - Engine
            menu = new Gtk.Menu();
            item = new Gtk.MenuItem(_("_Engine"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            item = new Gtk.MenuItem(_("_Use Local Engine"));
            item.Activated += new EventHandler(_OnUseLocalEngineButtonClicked);
            menu.Append(item);

            menu.Append(new Gtk.SeparatorMenuItem());

            image_item = new Gtk.ImageMenuItem(_("_Add Remote Engine"));
            image_item.Image = new Gtk.Image(Gtk.Stock.Add, Gtk.IconSize.Menu);
            image_item.Activated += new EventHandler(_OnAddRemoteEngineButtonClicked);
            menu.Append(image_item);

            image_item = new Gtk.ImageMenuItem(_("_Switch Remote Engine"));
            image_item.Image = new Gtk.Image(Gtk.Stock.Refresh, Gtk.IconSize.Menu);
            image_item.Activated += new EventHandler(_OnSwitchRemoteEngineButtonClicked);
            menu.Append(image_item);

            // Menu - View
            menu = new Gtk.Menu();
            item = new Gtk.MenuItem(_("_View"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            item = new Gtk.CheckMenuItem(_("_Caret Mode"));
            item.Activated += new EventHandler(_OnCaretModeButtonClicked);
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.Key = Gdk.Key.F7;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            item = new Gtk.CheckMenuItem(_("_Browse Mode"));
            item.Activated += delegate {
                try {
                    _Notebook.IsBrowseModeEnabled = !_Notebook.IsBrowseModeEnabled;
                } catch (Exception ex) {
                    Frontend.ShowException(this, ex);
                }
            };
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.Key = Gdk.Key.F8;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            _ShowMenuBarItem = new Gtk.CheckMenuItem(_("Show _Menubar"));
            _ShowMenuBarItem.Active = true;
            _ShowMenuBarItem.Activated += delegate {
                try {
                    _MenuBar.Visible = !_MenuBar.Visible;
                } catch (Exception ex) {
                    Frontend.ShowException(this, ex);
                }
            };
            menu.Append(_ShowMenuBarItem);

            item = new Gtk.ImageMenuItem(Gtk.Stock.Fullscreen, agrp);
            item.Activated += delegate {
                try {
                    IsFullscreen = !IsFullscreen;
                } catch (Exception ex) {
                    Frontend.ShowException(this, ex);
                }
            };
            akey = new Gtk.AccelKey();
            akey.AccelFlags = Gtk.AccelFlags.Visible;
            akey.Key = Gdk.Key.F11;
            item.AddAccelerator("activate", agrp, akey);
            menu.Append(item);

            // Menu - Help
            menu = new Gtk.Menu();
            item = new Gtk.MenuItem(_("_Help"));
            item.Submenu = menu;
            _MenuBar.Append(item);

            image_item = new Gtk.ImageMenuItem(Gtk.Stock.About, agrp);
            image_item.Activated += new EventHandler(_OnAboutButtonClicked);
            menu.Append(image_item);

            // TODO: network treeview
            _Notebook = new Notebook();
            _Notebook.SwitchPage += OnNotebookSwitchPage;

            _ChatViewManager = new ChatViewManager(_Notebook, null);
            Assembly asm = Assembly.GetExecutingAssembly();
            _ChatViewManager.Load(asm);
            _ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location),
                                     "smuxi-frontend-gnome-*.dll");
            _ChatViewManager.ChatAdded += OnChatViewManagerChatAdded;
            _ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved;

            #if GTK_SHARP_2_10
            _StatusIconManager = new StatusIconManager(this, _ChatViewManager);
            #endif
            #if INDICATE_SHARP
            _IndicateManager = new IndicateManager(this, _ChatViewManager);
            #endif
            #if NOTIFY_SHARP
            _NotifyManager = new NotifyManager(this, _ChatViewManager);
            #endif

            _UI = new GnomeUI(_ChatViewManager);

            // HACK: Frontend.FrontendConfig out of scope
            _EngineManager = new EngineManager(Frontend.FrontendConfig, _UI);

            _Entry = new Entry(_Notebook);

            _ProgressBar = new Gtk.ProgressBar();

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(_MenuBar, false, false, 0);
            vbox.PackStart(_Notebook, true, true, 0);
            vbox.PackStart(_Entry, false, false, 0);

            _NetworkStatusbar = new Gtk.Statusbar();
            _NetworkStatusbar.WidthRequest = 300;
            _NetworkStatusbar.HasResizeGrip = false;

            _Statusbar = new Gtk.Statusbar();
            _Statusbar.HasResizeGrip = false;

            Gtk.HBox status_bar_hbox = new Gtk.HBox();
            status_bar_hbox.Homogeneous = true;
            status_bar_hbox.PackStart(_NetworkStatusbar, false, true, 0);
            status_bar_hbox.PackStart(_Statusbar, true, true, 0);

            Gtk.HBox status_hbox = new Gtk.HBox();
            status_hbox.PackStart(status_bar_hbox);
            status_hbox.PackStart(_ProgressBar, false, false, 0);

            vbox.PackStart(status_hbox, false, false, 0);
            Add(vbox);
        }
Пример #46
0
        public MainWindow() : base("Smuxi")
        {
            // restore window size / position
            int width, heigth;

            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null)
            {
                width = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"];
            }
            else
            {
                width = 800;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null)
            {
                heigth = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"];
            }
            else
            {
                heigth = 600;
            }
            if (width < -1 || heigth < -1)
            {
                width  = -1;
                heigth = -1;
            }
            if (width == -1 && heigth == -1)
            {
                SetDefaultSize(800, 600);
                Maximize();
            }
            else if (width == 0 && heigth == 0)
            {
                // HACK: map 0/0 to default size as it crashes on Windows :/
                SetDefaultSize(800, 600);
            }
            else
            {
                SetDefaultSize(width, heigth);
            }

            int x, y;

            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null)
            {
                x = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"];
            }
            else
            {
                x = 0;
            }
            if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null)
            {
                y = (int)Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"];
            }
            else
            {
                y = 0;
            }
            if (x < 0 || y < 0)
            {
                x = 0;
                y = 0;
            }
            if (x == 0 && y == 0)
            {
                SetPosition(Gtk.WindowPosition.Center);
            }
            else
            {
                Move(x, y);
            }

            DeleteEvent      += OnDeleteEvent;
            FocusInEvent     += OnFocusInEvent;
            FocusOutEvent    += OnFocusOutEvent;
            WindowStateEvent += OnWindowStateEvent;

            ChatTreeView = new ChatTreeView();

            Notebook               = new Notebook();
            Notebook.SwitchPage   += OnNotebookSwitchPage;
            Notebook.FocusInEvent += OnNotebookFocusInEvent;

            ChatViewManager = new ChatViewManager(Notebook, ChatTreeView);
            Assembly asm = Assembly.GetExecutingAssembly();

            ChatViewManager.Load(asm);
            ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location),
                                    "smuxi-frontend-gnome-*.dll");
            ChatViewManager.ChatAdded   += OnChatViewManagerChatAdded;
            ChatViewManager.ChatSynced  += OnChatViewManagerChatSynced;
            ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved;

#if GTK_SHARP_2_10
            StatusIconManager = new StatusIconManager(this, ChatViewManager);
#endif
#if INDICATE_SHARP || MESSAGING_MENU_SHARP
            IndicateManager = new IndicateManager(this, ChatViewManager);
#endif
#if NOTIFY_SHARP
            NotifyManager = new NotifyManager(this, ChatViewManager);
#endif
#if IPC_DBUS
            NetworkManager = new NetworkManager(ChatViewManager);
#endif

            UI = new GnomeUI(ChatViewManager);

            // HACK: Frontend.FrontendConfig out of scope
            EngineManager = new EngineManager(Frontend.FrontendConfig, UI);

            Entry = new Entry(ChatViewManager);
            var entryScrolledWindow = new Gtk.ScrolledWindow();
            entryScrolledWindow.ShadowType       = Gtk.ShadowType.EtchedIn;
            entryScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            entryScrolledWindow.SizeRequested   += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful height
                int lineWidth, lineHeight;
                using (var layout = Entry.CreatePangoLayout("Qp")) {
                    layout.GetPixelSize(out lineWidth, out lineHeight);
                }
                var it       = Entry.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (Entry.ForwardDisplayLineEnd(ref it))
                {
                    newLines++;
                    // calling ForwardDisplayLineEnd repeatedly stays on the same position
                    // therefor we move one cursor position further
                    it.ForwardCursorPosition();
                }
                newLines = Math.Min(newLines, 3);
                // use text heigth + a bit extra
                var bestSize = new Gtk.Requisition()
                {
                    Height = (lineHeight * newLines) + 5
                };
                args.Requisition = bestSize;
            };
            entryScrolledWindow.Add(Entry);

            ProgressBar = new Gtk.ProgressBar();
            StatusHBox  = new Gtk.HBox();

            MenuWidget = new MenuWidget(this, ChatViewManager);

            var treeviewScrolledWindow = new Gtk.ScrolledWindow()
            {
                ShadowType       = Gtk.ShadowType.EtchedIn,
                HscrollbarPolicy = Gtk.PolicyType.Never,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            treeviewScrolledWindow.Add(ChatTreeView);
            ChatViewManager.ChatAdded += (sender, e) => {
                treeviewScrolledWindow.CheckResize();
            };

            var notebookPaned = new Gtk.VPaned();
            notebookPaned.Pack1(Notebook, true, false);
            notebookPaned.Pack2(entryScrolledWindow, false, false);

            var treeviewPaned = new Gtk.HPaned();
            treeviewPaned.Pack1(treeviewScrolledWindow, false, false);
            treeviewPaned.Pack2(notebookPaned, true, false);
            TreeViewHPaned = treeviewPaned;

            var entryPaned = new Gtk.VPaned();
            entryPaned.ButtonPressEvent += (sender, e) => {
                // reset entry size on double click
                if (e.Event.Type == Gdk.EventType.TwoButtonPress &&
                    e.Event.Button == 1)
                {
                    GLib.Timeout.Add(100, delegate {
                        entryPaned.Position = -1;
                        return(false);
                    });
                }
            };
            entryPaned.Pack1(treeviewPaned, true, false);

            Gtk.VBox vbox = new Gtk.VBox();
            vbox.PackStart(MenuWidget, false, false, 0);
            vbox.PackStart(entryPaned, true, true, 0);

            NetworkStatusbar = new Gtk.Statusbar();
            NetworkStatusbar.WidthRequest  = 300;
            NetworkStatusbar.HasResizeGrip = false;

            Statusbar = new Gtk.Statusbar();
            Statusbar.HasResizeGrip = false;

            Gtk.HBox status_bar_hbox = new Gtk.HBox();
            status_bar_hbox.Homogeneous = true;
            status_bar_hbox.PackStart(NetworkStatusbar, false, true, 0);
            status_bar_hbox.PackStart(Statusbar, true, true, 0);

            StatusHBox.PackStart(status_bar_hbox);
            StatusHBox.PackStart(ProgressBar, false, false, 0);
            StatusHBox.ShowAll();
            StatusHBox.NoShowAll = true;
            StatusHBox.Visible   = (bool)Frontend.FrontendConfig["ShowStatusBar"];

            vbox.PackStart(StatusHBox, false, false, 0);
            Add(vbox);
        }
Пример #47
0
 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);
 }
Пример #48
0
        private void Build()
        {
            global::Stetic.Gui.Initialize(this);
            this.menubar2 = new Gtk.MenuBar();
            Gtk.AccelGroup agrp = new Gtk.AccelGroup ( );
            this.AddAccelGroup (agrp);
            ////////////////////// FILE //////////////////////
            FileAction = new Gtk.MenuItem(messages.Localize("[[window-menu-file]]"));
            FileAction.Submenu = this.FileMenu;
            OpenNewConnectionAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-open]]"));
            OpenNewConnectionAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.N, Gdk.ModifierType.ControlMask, Gtk.AccelFlags.Visible));
            OpenNewConnectionAction.Image = new Gtk.Image(Gtk.Stock.Connect, Gtk.IconSize.Menu);
            FileAction.Submenu = this.FileMenu;
            FileMenu.Append(OpenNewConnectionAction);
            FileMenu.Append(new Gtk.SeparatorMenuItem());
            FavoriteNetworksAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-favorite]]"));
            FileMenu.Append(FavoriteNetworksAction);
            FileMenu.Append(new Gtk.SeparatorMenuItem());
            PreferencesAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-conf]]"));
            PreferencesAction.Image = new Gtk.Image(Gtk.Stock.Preferences, Gtk.IconSize.Menu);
            FileMenu.Append(PreferencesAction);
            FileMenu.Append(new Gtk.SeparatorMenuItem());
            ShutDownAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-quit]]"));
            FileMenu.Append(ShutDownAction);
            ////////////////////// TOOLS //////////////////////
            ToolsAction = new Gtk.MenuItem(messages.Localize("[[window-menu-tools]]"));
            ToolsAction.Submenu = ToolsMenu;
            PacketViewerAction = new Gtk.MenuItem(messages.Localize("[[window-menu-viewer]]"));
            PacketViewerAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.P, Gdk.ModifierType.ControlMask, Gtk.AccelFlags.Visible));
            ToolsMenu.Append(PacketViewerAction);
            SmallChatAction = new Gtk.MenuItem(messages.Localize("[[window-menu-chat]]"));
            ToolsMenu.Append(SmallChatAction);
            ToolsMenu.Append(new Gtk.SeparatorMenuItem());
            AttachToMicroChatAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-chat1]]"));
            AttachToMicroChatAction.Image = new Gtk.Image(Gtk.Stock.Add, Gtk.IconSize.Menu);
            AttachToMicroChatAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.M, Gdk.ModifierType.Mod1Mask, Gtk.AccelFlags.Visible));
            ToolsMenu.Append(AttachToMicroChatAction);
            DetachFromMicroChatAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-chat2]]"));
            DetachFromMicroChatAction.Image = new Gtk.Image(Gtk.Stock.Remove, Gtk.IconSize.Menu);
            DetachFromMicroChatAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.D, Gdk.ModifierType.Mod1Mask, Gtk.AccelFlags.Visible));
            ToolsMenu.Append(DetachFromMicroChatAction);
            ////////////////////// MISC //////////////////////
            MiscAction = new Gtk.MenuItem(messages.Localize("[[window-menu-misc]]"));
            MiscAction.Submenu = MiscMenu;
            SearchAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-search]]"));
            SearchAction.Image = new Gtk.Image(Gtk.Stock.Find, Gtk.IconSize.Menu);
            SearchAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.F, Gdk.ModifierType.ControlMask, Gtk.AccelFlags.Visible));
            MiscMenu.Append(SearchAction);
            LoadMoreToScrollbackAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-more]]"));
            LoadMoreToScrollbackAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.U, Gdk.ModifierType.Mod1Mask, Gtk.AccelFlags.Visible));
            MiscMenu.Append(LoadMoreToScrollbackAction);
            MiscMenu.Append(new Gtk.SeparatorMenuItem());
            ConfigurationFileAction = new Gtk.MenuItem(messages.Localize("[[window-menu-cf]]"));
            ////////////////////// SHOW //////////////////////
            ShowAction = new Gtk.MenuItem(messages.Localize("[[window-menu-show]]"));
            ShowAction.Submenu = ShowMenu;
            RootAction = new Gtk.MenuItem(messages.Localize("[[window-menu-root]]"));
            ShowMenu.Append(RootAction);
            HelpAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-help]]"));
            HelpAction.Submenu = HelpMenu;
            MiscMenu.Append(ConfigurationFileAction);
            AboutAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-about]]"));
            AboutAction.Image = new Gtk.Image(Gtk.Stock.About, Gtk.IconSize.Menu);
            ContentsAction = new Gtk.MenuItem(messages.Localize("[[window-menu-contents]]"));
            HelpMenu.Append(AboutAction);
            FavoriteNetworksAction.Sensitive = false;
            ContentsAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.F1, Gdk.ModifierType.None, Gtk.AccelFlags.Visible));
            HelpMenu.Append(ContentsAction);
            menubar2.Add(this.FileAction);
            menubar2.Add(this.ToolsAction);
            menubar2.Add(this.MiscAction);
            this.menubar2.Add(this.ShowAction);
            this.menubar2.Add(this.HelpAction);
            this.Name = "Client.Forms.Main";
            this.Title = "Pidgeon Client";
            this.Icon = global::Gdk.Pixbuf.LoadFromResource("Client.Resources.pigeon_clip_art_hight.ico");
            this.WindowPosition = ((global::Gtk.WindowPosition)(4));
            // Container child Client.Forms.Main.Gtk.Container+ContainerChild
            this.vbox3 = new global::Gtk.VBox();
            this.vbox3.Name = "vbox3";
            this.vbox3.Spacing = 6;
            // Container child vbox3.Gtk.Box+BoxChild
            this.menubar2.Name = "menubar2";
            this.vbox3.Add(this.menubar2);
            global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.menubar2]));
            w2.Position = 0;
            w2.Expand = false;
            w2.Fill = false;
            // Container child vbox3.Gtk.Box+BoxChild
            this.hpaned1 = new global::Gtk.HPaned();
            this.hpaned1.CanFocus = true;
            this.hpaned1.Name = "hpaned1";
            this.hpaned1.Position = 183;
            // Container child hpaned1.Gtk.Paned+PanedChild
            this.pidgeonlist1 = new global::Client.Graphics.PidgeonList();
            this.pidgeonlist1.Events = ((global::Gdk.EventMask)(256));
            this.pidgeonlist1.Name = "pidgeonlist1";

            this.hpaned1.Add(this.pidgeonlist1);
            global::Gtk.Paned.PanedChild w3 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.pidgeonlist1]));
            w3.Resize = false;
            this.vbox3.Add(this.hpaned1);
            global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hpaned1]));
            w4.Position = 1;
            // Container child vbox3.Gtk.Box+BoxChild
            this.toolStrip = new global::Gtk.Statusbar();
            this.toolStrip.Name = "toolStrip";
            this.toolStrip.Spacing = 6;
            // Container child toolStrip.Gtk.Box+BoxChild
            this.toolStripStatusNetwork = new global::Gtk.Label();
            this.toolStripStatusNetwork.Name = "toolStripStatusNetwork";
            this.toolStrip.Add(this.toolStripStatusNetwork);
            global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripStatusNetwork]));
            w5.Position = 0;
            w5.Expand = false;
            w5.Fill = false;
            // Container child toolStrip.Gtk.Box+BoxChild
            this.toolStripStatusChannel = new global::Gtk.Label();
            this.toolStripStatusChannel.Name = "toolStripStatusChannel";
            this.toolStrip.Add(this.toolStripStatusChannel);
            global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripStatusChannel]));
            w6.Position = 1;
            w6.Expand = false;
            w6.Fill = false;
            // Container child toolStrip.Gtk.Box+BoxChild
            this.toolStripInfo = new global::Gtk.Label();
            this.toolStripInfo.Name = "toolStripInfo";
            this.toolStrip.Add(this.toolStripInfo);
            global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripInfo]));
            w7.Position = 3;
            w7.Expand = false;
            w7.Fill = false;
            // Container child toolStrip.Gtk.Box+BoxChild
            this.toolStripProgressBar1 = new global::Gtk.ProgressBar();
            this.toolStripProgressBar1.Name = "toolStripProgressBar1";
            this.toolStrip.Add(this.toolStripProgressBar1);
            global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripProgressBar1]));
            w8.Position = 4;
            this.vbox3.Add(this.toolStrip);
            global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.toolStrip]));
            w9.Position = 2;
            w9.Expand = false;
            w9.Fill = false;
            this.Add(this.vbox3);
            if ((this.Child != null))
            {
                this.Child.ShowAll();
            }
            this.DefaultWidth = 1018;
            this.DefaultHeight = 600;
            this.Show();
            this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.Unshow);
            this.ShutDownAction.Activated += new global::System.EventHandler(this.shutDownToolStripMenuItem_Click);
            this.AboutAction.Activated += new global::System.EventHandler(this.aboutToolStripMenuItem_Click);
            this.OpenNewConnectionAction.Activated += new global::System.EventHandler(this.newConnectionToolStripMenuItem_Click_1);
            this.PreferencesAction.Activated += new global::System.EventHandler(this.preferencesToolStripMenuItem_Click);
            this.PacketViewerAction.Activated += new global::System.EventHandler(this.toolStripMenuItem3_Click);
            this.SmallChatAction.Activated += new global::System.EventHandler(this.taskbarBoxToolStripMenuItem_Click);
            this.AttachToMicroChatAction.Activated += new global::System.EventHandler(this.attachToMicroChatToolStripMenuItem_Click);
            this.DetachFromMicroChatAction.Activated += new global::System.EventHandler(this.detachFromMicroChatToolStripMenuItem_Click);
        }
Пример #49
0
 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);
 }
Пример #50
0
        private void BuildStatusbar()
        {
            this.sbStatus = new Gtk.Statusbar();

            this.lblStatusNumber = new Gtk.Label( "0" );
            this.lblStatusNumber.UseMarkup = true;
            this.sbStatus.PackEnd( this.lblStatusNumber, false, false, 5 );
            this.sbStatus.Push( 0, "Ready" );
        }
Пример #51
0
 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);
 }
Пример #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.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.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.ShuffleAction = new Gtk.Action("ShuffleAction", Mono.Unix.Catalog.GetString("Shuffle"), null, null);
     this.ShuffleAction.ShortLabel = Mono.Unix.Catalog.GetString("Shuffle");
     w1.Add(this.ShuffleAction, null);
     this.RegularShuffleAction = new Gtk.Action("RegularShuffleAction", Mono.Unix.Catalog.GetString("Regular Shuffle"), null, null);
     this.RegularShuffleAction.ShortLabel = Mono.Unix.Catalog.GetString("Regular Shuffle");
     w1.Add(this.RegularShuffleAction, null);
     this.InFaroAction = new Gtk.Action("InFaroAction", Mono.Unix.Catalog.GetString("In Faro"), null, null);
     this.InFaroAction.ShortLabel = Mono.Unix.Catalog.GetString("In Faro");
     w1.Add(this.InFaroAction, null);
     this.OutFaroAction = new Gtk.Action("OutFaroAction", Mono.Unix.Catalog.GetString("Out Faro"), null, null);
     this.OutFaroAction.ShortLabel = Mono.Unix.Catalog.GetString("Out Faro");
     w1.Add(this.OutFaroAction, null);
     this.AntiInFaroAction = new Gtk.Action("AntiInFaroAction", Mono.Unix.Catalog.GetString("Anti In Faro"), null, null);
     this.AntiInFaroAction.ShortLabel = Mono.Unix.Catalog.GetString("Anti In Faro");
     w1.Add(this.AntiInFaroAction, null);
     this.AntiOutFaroAction = new Gtk.Action("AntiOutFaroAction", Mono.Unix.Catalog.GetString("Anti Out Faro"), null, null);
     this.AntiOutFaroAction.ShortLabel = Mono.Unix.Catalog.GetString("Anti Out Faro");
     w1.Add(this.AntiOutFaroAction, null);
     this.NewDeckOrderAction = new Gtk.Action("NewDeckOrderAction", Mono.Unix.Catalog.GetString("New Deck Order"), null, null);
     this.NewDeckOrderAction.ShortLabel = Mono.Unix.Catalog.GetString("New Deck Order");
     w1.Add(this.NewDeckOrderAction, 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 = 3;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='DateiAction' action='DateiAction'><menuitem name='ExitAction' action='ExitAction'/></menu><menu name='ShuffleAction' action='ShuffleAction'><menuitem name='RegularShuffleAction' action='RegularShuffleAction'/><menuitem name='InFaroAction' action='InFaroAction'/><menuitem name='AntiInFaroAction' action='AntiInFaroAction'/><menuitem name='OutFaroAction' action='OutFaroAction'/><menuitem name='AntiOutFaroAction' action='AntiOutFaroAction'/><menuitem name='NewDeckOrderAction' action='NewDeckOrderAction'/></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.cardrow1 = new CardLib.CardRow();
     this.cardrow1.HeightRequest = 108;
     this.cardrow1.Events = ((Gdk.EventMask)(256));
     this.cardrow1.Name = "cardrow1";
     this.vbox1.Add(this.cardrow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.cardrow1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.cardrow2 = new CardLib.CardRow();
     this.cardrow2.HeightRequest = 108;
     this.cardrow2.Events = ((Gdk.EventMask)(256));
     this.cardrow2.Name = "cardrow2";
     this.vbox1.Add(this.cardrow2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.cardrow2]));
     w4.Position = 2;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.cardrow3 = new CardLib.CardRow();
     this.cardrow3.HeightRequest = 108;
     this.cardrow3.Events = ((Gdk.EventMask)(256));
     this.cardrow3.Name = "cardrow3";
     this.vbox1.Add(this.cardrow3);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.cardrow3]));
     w5.Position = 3;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.cardrow4 = new CardLib.CardRow();
     this.cardrow4.HeightRequest = 108;
     this.cardrow4.Events = ((Gdk.EventMask)(256));
     this.cardrow4.Name = "cardrow4";
     this.vbox1.Add(this.cardrow4);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.cardrow4]));
     w6.Position = 4;
     w6.Expand = false;
     w6.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox1.Add(this.statusbar1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w7.PackType = ((Gtk.PackType)(1));
     w7.Position = 5;
     w7.Expand = false;
     w7.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 628;
     this.DefaultHeight = 525;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.RegularShuffleAction.Activated += new System.EventHandler(this.OnRegularShuffleActionActivated);
     this.InFaroAction.Activated += new System.EventHandler(this.OnInFaroActionActivated);
     this.OutFaroAction.Activated += new System.EventHandler(this.OnOutFaroActionActivated);
     this.AntiInFaroAction.Activated += new System.EventHandler(this.OnAntiInFaroActionActivated);
     this.AntiOutFaroAction.Activated += new System.EventHandler(this.OnAntiOutFaroActionActivated);
     this.NewDeckOrderAction.Activated += new System.EventHandler(this.OnNewDeckOrderActionActivated);
     this.cardrow1.OnCardClicked += new CardLib.CardClickedEventHandler(this.OnCardrowCardClicked);
     this.cardrow1.OnCardContextMenu += new CardLib.CardClickedEventHandler(this.OnCardrowContextMenu);
     this.cardrow2.OnCardClicked += new CardLib.CardClickedEventHandler(this.OnCardrowCardClicked);
     this.cardrow2.OnCardContextMenu += new CardLib.CardClickedEventHandler(this.OnCardrowContextMenu);
     this.cardrow3.OnCardClicked += new CardLib.CardClickedEventHandler(this.OnCardrowCardClicked);
     this.cardrow3.OnCardContextMenu += new CardLib.CardClickedEventHandler(this.OnCardrowContextMenu);
     this.cardrow4.OnCardClicked += new CardLib.CardClickedEventHandler(this.OnCardrowCardClicked);
     this.cardrow4.OnCardContextMenu += new CardLib.CardClickedEventHandler(this.OnCardrowContextMenu);
 }
Пример #53
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);
         }
     }
 }
Пример #54
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HGDGTK.MainWindow
     this.Name           = "HGDGTK.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child HGDGTK.MainWindow.Gtk.Container+ContainerChild
     this.vbox1             = new Gtk.VBox();
     this.vbox1.Name        = "vbox1";
     this.vbox1.Spacing     = 5;
     this.vbox1.BorderWidth = ((uint)(5));
     // 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.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Now Playing:");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label2      = new Gtk.Label();
     this.label2.Name = "label2";
     this.hbox1.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
     w2.Position = 1;
     // 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.FocusOnClick = false;
     this.button1.Label        = Mono.Unix.Catalog.GetString("Crap Song!");
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w3.Position = 2;
     w3.Expand   = false;
     w3.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 495;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.filepane                         = new Gtk.FileChooserWidget(((Gtk.FileChooserAction)(0)));
     this.filepane.Name                    = "filepane";
     this.filepane.LocalOnly               = false;
     this.filepane.SelectMultiple          = true;
     this.filepane.DoOverwriteConfirmation = true;
     this.hpaned1.Add(this.filepane);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.filepane]));
     w6.Resize = false;
     // Container child hpaned1.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.playlist          = new Gtk.NodeView();
     this.playlist.CanFocus = true;
     this.playlist.Name     = "playlist";
     this.GtkScrolledWindow2.Add(this.playlist);
     this.hpaned1.Add(this.GtkScrolledWindow2);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w9.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 w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
     w10.PackType = ((Gtk.PackType)(1));
     w10.Position = 3;
     w10.Expand   = false;
     w10.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 816;
     this.DefaultHeight = 643;
     this.Show();
     this.playlist.DragEnd  += new Gtk.DragEndHandler(this.OnNodeview1DragEnd);
     this.playlist.DragDrop += new Gtk.DragDropHandler(this.OnNodeview1DragDrop);
 }
Пример #55
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 Monodoc.Editor.EditorWindow
     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.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.Open            = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open"), Mono.Unix.Catalog.GetString("Open file"), "gtk-open");
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
     w2.Add(this.Open, null);
     this.Save            = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save"), Mono.Unix.Catalog.GetString("Save file"), "gtk-save");
     this.Save.Sensitive  = false;
     this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
     w2.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");
     w2.Add(this.SaveAs, null);
     this.CloseFile            = new Gtk.Action("CloseFile", Mono.Unix.Catalog.GetString("_Close File"), null, "gtk-close");
     this.CloseFile.ShortLabel = Mono.Unix.Catalog.GetString("_Close File");
     w2.Add(this.CloseFile, 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.Cut            = new Gtk.Action("Cut", Mono.Unix.Catalog.GetString("Cu_t"), null, "gtk-cut");
     this.Cut.Sensitive  = false;
     this.Cut.ShortLabel = Mono.Unix.Catalog.GetString("Cu_t");
     w2.Add(this.Cut, null);
     this.Copy            = new Gtk.Action("Copy", Mono.Unix.Catalog.GetString("_Copy"), Mono.Unix.Catalog.GetString("Copy selection"), "gtk-copy");
     this.Copy.ShortLabel = Mono.Unix.Catalog.GetString("_Copy");
     w2.Add(this.Copy, null);
     this.Paste            = new Gtk.Action("Paste", Mono.Unix.Catalog.GetString("_Paste"), null, "gtk-paste");
     this.Paste.Sensitive  = false;
     this.Paste.ShortLabel = Mono.Unix.Catalog.GetString("_Paste");
     w2.Add(this.Paste, 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.Undo            = new Gtk.Action("Undo", Mono.Unix.Catalog.GetString("_Undo"), Mono.Unix.Catalog.GetString("Undo last action"), "gtk-undo");
     this.Undo.Sensitive  = false;
     this.Undo.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
     w2.Add(this.Undo, "<Control>z");
     this.Redo            = new Gtk.Action("Redo", Mono.Unix.Catalog.GetString("_Redo"), Mono.Unix.Catalog.GetString("Redo last undone action"), "gtk-redo");
     this.Redo.Sensitive  = false;
     this.Redo.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
     w2.Add(this.Redo, "<Control>x");
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name           = "Monodoc.Editor.EditorWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Monodoc Documentation Editor");
     this.Icon           = Gdk.Pixbuf.LoadFromResource("monodoc.png");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Monodoc.Editor.EditorWindow.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='Open'/><separator/><menuitem action='Save'/><menuitem action='SaveAs'/><separator/><menuitem action='CloseFile'/><separator/><menuitem action='Quit'/></menu><menu action='Edit'><menuitem action='Undo'/><menuitem action='Redo'/><separator/><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></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='Open'/><toolitem action='Save'/><separator/><toolitem action='Undo'/><toolitem action='Redo'/><separator/><toolitem action='Cut'/><toolitem action='Copy'/><toolitem action='Paste'/></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.edit_container         = new Gtk.VBox();
     this.edit_container.Name    = "edit_container";
     this.edit_container.Spacing = 6;
     this.vbox1.Add(this.edit_container);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.edit_container]));
     w5.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.status_bar               = new Gtk.Statusbar();
     this.status_bar.Name          = "status_bar";
     this.status_bar.Spacing       = 6;
     this.status_bar.HasResizeGrip = false;
     // Container child status_bar.Gtk.Box+BoxChild
     this.progress_bar      = new Gtk.ProgressBar();
     this.progress_bar.Name = "progress_bar";
     this.status_bar.Add(this.progress_bar);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.status_bar[this.progress_bar]));
     w6.Position = 1;
     this.vbox1.Add(this.status_bar);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.status_bar]));
     w7.Position = 3;
     w7.Expand   = false;
     w7.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 740;
     this.DefaultHeight = 537;
     this.progress_bar.Hide();
     this.Show();
     this.DeleteEvent         += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Quit.Activated      += new System.EventHandler(this.OnQuitActivated);
     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.CloseFile.Activated += new System.EventHandler(this.OnCloseFileActivated);
     this.Copy.Activated      += new System.EventHandler(this.OnCopyActivated);
     this.About.Activated     += new System.EventHandler(this.OnAboutActivated);
     this.Undo.Activated      += new System.EventHandler(this.OnUndoActivated);
     this.Redo.Activated      += new System.EventHandler(this.OnRedoActivated);
 }