protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 0;
     this.HeightRequest = 0;
     this.Name = "Mono.Upnp.GtkClient.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.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.list = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox = new Gtk.VBox();
     this.infoBox.Name = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller = new Gtk.Label();
     this.infoFiller.Name = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Beispiel #2
0
		public void Initialize (Orientation dir)
		{
			if (dir == Orientation.Horizontal)
				Widget = new Gtk.HPaned ();
			else
				Widget = new Gtk.VPaned ();
			Widget.Show ();
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Adroit.Gui.ContextView
     Stetic.BinContainer.Attach(this);
     this.Name = "Adroit.Gui.ContextView";
     // Container child Adroit.Gui.ContextView.Gtk.Container+ContainerChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 186;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     w1.Add(this.treeview1);
     this.scrolledwindow1.Add(w1);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w4.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w5 = new Gtk.Viewport();
     w5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.treeview2 = new Gtk.TreeView();
     this.treeview2.CanFocus = true;
     this.treeview2.Name = "treeview2";
     w5.Add(this.treeview2);
     this.scrolledwindow2.Add(w5);
     this.hpaned1.Add(this.scrolledwindow2);
     this.Add(this.hpaned1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.ChatLayout
     Stetic.BinContainer.Attach(this);
     this.Name = "omvviewerlight.ChatLayout";
     // Container child omvviewerlight.ChatLayout.Gtk.Container+ContainerChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 500;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.chatconsole1 = new omvviewerlight.ChatConsole();
     this.chatconsole1.WidthRequest = 600;
     this.chatconsole1.Events = ((Gdk.EventMask)(256));
     this.chatconsole1.Name = "chatconsole1";
     this.hpaned1.Add(this.chatconsole1);
     Gtk.Paned.PanedChild w1 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.chatconsole1]));
     w1.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vpaned1 = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name = "vpaned1";
     this.vpaned1.Position = 275;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.friendslist1 = new omvviewerlight.FriendsList();
     this.friendslist1.Events = ((Gdk.EventMask)(256));
     this.friendslist1.Name = "friendslist1";
     this.vpaned1.Add(this.friendslist1);
     Gtk.Paned.PanedChild w2 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.friendslist1]));
     w2.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.radar1 = new omvviewerlight.Radar();
     this.radar1.Events = ((Gdk.EventMask)(256));
     this.radar1.Name = "radar1";
     this.vpaned1.Add(this.radar1);
     this.hpaned1.Add(this.vpaned1);
     this.Add(this.hpaned1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Profiler.HeapSnapshotExplorer
     Stetic.BinContainer.Attach(this);
     this.Name = "Mono.Profiler.HeapSnapshotExplorer";
     // Container child Mono.Profiler.HeapSnapshotExplorer.Gtk.Container+ContainerChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 124;
     // Container child hpaned1.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.Tree = new Gtk.TreeView();
     this.Tree.CanFocus = true;
     this.Tree.Name = "Tree";
     this.GtkScrolledWindow.Add(this.Tree);
     this.hpaned1.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w2 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.GtkScrolledWindow]));
     w2.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.PerClassStatistics = new Gtk.NodeView();
     this.PerClassStatistics.CanFocus = true;
     this.PerClassStatistics.Name = "PerClassStatistics";
     this.GtkScrolledWindow1.Add(this.PerClassStatistics);
     this.hpaned1.Add(this.GtkScrolledWindow1);
     this.Add(this.hpaned1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.Tree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTreeButtonPress);
     this.PerClassStatistics.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnListButtonPress);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget LunarEclipse.View.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w1.Add(this.FileAction, null);
     this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Abrir"), null, "gtk-open");
     this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Abrir");
     w1.Add(this.OpenAction, null);
     this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Nuevo"), null, "gtk-new");
     this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Nuevo");
     w1.Add(this.NewAction, null);
     this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Guardar"), null, "gtk-save");
     this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Guardar");
     w1.Add(this.SaveAction, null);
     this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Guardar _como"), null, "gtk-save-as");
     this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Guardar _como");
     w1.Add(this.SaveAsAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Salir"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Salir");
     w1.Add(this.QuitAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit");
     w1.Add(this.EditAction, null);
     this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("_Tools"), null, null);
     this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Tools");
     w1.Add(this.ToolsAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w1.Add(this.HelpAction, null);
     this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo");
     this.UndoAction.Sensitive = false;
     this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer");
     w1.Add(this.UndoAction, "<Control>z");
     this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo");
     this.RedoAction.Sensitive = false;
     this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer");
     w1.Add(this.RedoAction, "<Control>y");
     this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cor_tar"), null, "gtk-cut");
     this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cor_tar");
     w1.Add(this.CutAction, null);
     this.CopiarAction = new Gtk.Action("CopiarAction", Mono.Unix.Catalog.GetString("_Copiar"), null, "gtk-copy");
     this.CopiarAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copiar");
     w1.Add(this.CopiarAction, null);
     this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Pegar"), null, "gtk-paste");
     this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pegar");
     w1.Add(this.PasteAction, null);
     this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Borrar"), null, "gtk-delete");
     this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Borrar");
     w1.Add(this.DeleteAction, "<Mod2>Delete");
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("Acerca _de"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("Acerca _de");
     w1.Add(this.AboutAction, null);
     this.SelectionToolAction = new Gtk.RadioAction("SelectionToolAction", Mono.Unix.Catalog.GetString("_Selection Tool"), null, "selection-tool", 0);
     this.SelectionToolAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.SelectionToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Selection Tool");
     w1.Add(this.SelectionToolAction, null);
     this.RectangleToolAction = new Gtk.RadioAction("RectangleToolAction", Mono.Unix.Catalog.GetString("_Rectangle Tool"), null, "rectangle-tool", 0);
     this.RectangleToolAction.Group = this.SelectionToolAction.Group;
     this.RectangleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rectangle Tool");
     w1.Add(this.RectangleToolAction, null);
     this.SquareToolAction = new Gtk.RadioAction("SquareToolAction", Mono.Unix.Catalog.GetString("S_quare Tool"), null, "square-tool", 0);
     this.SquareToolAction.Group = this.RectangleToolAction.Group;
     this.SquareToolAction.ShortLabel = Mono.Unix.Catalog.GetString("S_quare Tool");
     w1.Add(this.SquareToolAction, null);
     this.EllipseToolAction = new Gtk.RadioAction("EllipseToolAction", Mono.Unix.Catalog.GetString("_Ellipse Tool"), null, "ellipse-tool", 0);
     this.EllipseToolAction.Group = this.RectangleToolAction.Group;
     this.EllipseToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Ellipse Tool");
     w1.Add(this.EllipseToolAction, null);
     this.CircleToolAction = new Gtk.RadioAction("CircleToolAction", Mono.Unix.Catalog.GetString("_Circle Tool"), null, "circle-tool", 0);
     this.CircleToolAction.Group = this.EllipseToolAction.Group;
     this.CircleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Circle Tool");
     w1.Add(this.CircleToolAction, null);
     this.PathToolAction = new Gtk.RadioAction("PathToolAction", Mono.Unix.Catalog.GetString("_Path Tool"), null, "path-tool", 0);
     this.PathToolAction.Group = this.CircleToolAction.Group;
     this.PathToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Path Tool");
     w1.Add(this.PathToolAction, null);
     this.TextToolAction = new Gtk.RadioAction("TextToolAction", Mono.Unix.Catalog.GetString("_Text Tool"), null, "text-tool", 0);
     this.TextToolAction.Group = this.CircleToolAction.Group;
     this.TextToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Text Tool");
     w1.Add(this.TextToolAction, null);
     this.ImageToolAction = new Gtk.RadioAction("ImageToolAction", Mono.Unix.Catalog.GetString("Image Tool"), null, "image-tool", 0);
     this.ImageToolAction.Group = this.CircleToolAction.Group;
     this.ImageToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Image Tool");
     w1.Add(this.ImageToolAction, null);
     this.AnimationAction = new Gtk.Action("AnimationAction", Mono.Unix.Catalog.GetString("_Animation"), null, null);
     this.AnimationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Animation");
     w1.Add(this.AnimationAction, null);
     this.RecordAction = new Gtk.Action("RecordAction", Mono.Unix.Catalog.GetString("_Grabar"), null, "gtk-media-record");
     this.RecordAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grabar");
     w1.Add(this.RecordAction, null);
     this.ReproducirAction = new Gtk.Action("ReproducirAction", Mono.Unix.Catalog.GetString("_Reproducir"), null, "gtk-media-play");
     this.ReproducirAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reproducir");
     w1.Add(this.ReproducirAction, null);
     this.StopAction = new Gtk.Action("StopAction", Mono.Unix.Catalog.GetString("_Detener"), null, "gtk-media-stop");
     this.StopAction.ShortLabel = Mono.Unix.Catalog.GetString("_Detener");
     w1.Add(this.StopAction, null);
     this.LineToolAction = new Gtk.RadioAction("LineToolAction", Mono.Unix.Catalog.GetString("_Line Tool"), null, "line-tool", 0);
     this.LineToolAction.Group = this.CircleToolAction.Group;
     this.LineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Line Tool");
     w1.Add(this.LineToolAction, null);
     this.DrawingAction = new Gtk.Action("DrawingAction", Mono.Unix.Catalog.GetString("Drawing"), null, null);
     this.DrawingAction.ShortLabel = Mono.Unix.Catalog.GetString("Drawing");
     w1.Add(this.DrawingAction, null);
     this.CleanAction = new Gtk.Action("CleanAction", Mono.Unix.Catalog.GetString("_Limpiar"), null, "gtk-clear");
     this.CleanAction.ShortLabel = Mono.Unix.Catalog.GetString("_Limpiar");
     w1.Add(this.CleanAction, null);
     this.PolylineToolAction = new Gtk.RadioAction("PolylineToolAction", Mono.Unix.Catalog.GetString("Polyline Tool"), null, "polyline-tool", 0);
     this.PolylineToolAction.Group = this.CircleToolAction.Group;
     this.PolylineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Polyline Tool");
     w1.Add(this.PolylineToolAction, null);
     this.PenToolAction = new Gtk.RadioAction("PenToolAction", Mono.Unix.Catalog.GetString("P_en Tool"), null, "pen-tool", 0);
     this.PenToolAction.Group = this.CircleToolAction.Group;
     this.PenToolAction.ShortLabel = Mono.Unix.Catalog.GetString("P_en Tool");
     w1.Add(this.PenToolAction, null);
     this.debug1 = new Gtk.Action("debug1", null, Mono.Unix.Catalog.GetString("Debug"), "gtk-dialog-warning");
     w1.Add(this.debug1, null);
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Fi_gures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Fi_gure");
     w1.Add(this.FiguresAction, null);
     this.OrderAction = new Gtk.Action("OrderAction", Mono.Unix.Catalog.GetString("Order"), null, null);
     this.OrderAction.ShortLabel = Mono.Unix.Catalog.GetString("Order");
     w1.Add(this.OrderAction, null);
     this.AlignAction = new Gtk.Action("AlignAction", Mono.Unix.Catalog.GetString("_Align"), null, null);
     this.AlignAction.ShortLabel = Mono.Unix.Catalog.GetString("_Align");
     w1.Add(this.AlignAction, null);
     this.BringToFrontAction = new Gtk.Action("BringToFrontAction", Mono.Unix.Catalog.GetString("Bring to _Front"), null, "gtk-goto-top");
     this.BringToFrontAction.Sensitive = false;
     this.BringToFrontAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring to _Front");
     w1.Add(this.BringToFrontAction, null);
     this.SendToBackAction = new Gtk.Action("SendToBackAction", Mono.Unix.Catalog.GetString("Send to _Back"), null, "gtk-goto-bottom");
     this.SendToBackAction.Sensitive = false;
     this.SendToBackAction.ShortLabel = Mono.Unix.Catalog.GetString("Send to _Back");
     w1.Add(this.SendToBackAction, null);
     this.BringForwardsAction = new Gtk.Action("BringForwardsAction", Mono.Unix.Catalog.GetString("Bring Forwards"), null, "gtk-go-up");
     this.BringForwardsAction.Sensitive = false;
     this.BringForwardsAction.ShortLabel = Mono.Unix.Catalog.GetString("Send Forwards");
     w1.Add(this.BringForwardsAction, null);
     this.SendBackwarsAction = new Gtk.Action("SendBackwarsAction", Mono.Unix.Catalog.GetString("Send Backwars"), null, "gtk-go-down");
     this.SendBackwarsAction.Sensitive = false;
     this.SendBackwarsAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring Backwars");
     w1.Add(this.SendBackwarsAction, null);
     this.LeftAction = new Gtk.Action("LeftAction", Mono.Unix.Catalog.GetString("Left"), null, null);
     this.LeftAction.ShortLabel = Mono.Unix.Catalog.GetString("Left");
     w1.Add(this.LeftAction, null);
     this.HorizontalCenterAction = new Gtk.Action("HorizontalCenterAction", Mono.Unix.Catalog.GetString("Horizontal Center"), null, null);
     this.HorizontalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Center");
     w1.Add(this.HorizontalCenterAction, null);
     this.RightAction = new Gtk.Action("RightAction", Mono.Unix.Catalog.GetString("Right"), null, null);
     this.RightAction.ShortLabel = Mono.Unix.Catalog.GetString("Right");
     w1.Add(this.RightAction, null);
     this.TopAction = new Gtk.Action("TopAction", Mono.Unix.Catalog.GetString("Top"), null, null);
     this.TopAction.ShortLabel = Mono.Unix.Catalog.GetString("Top");
     w1.Add(this.TopAction, null);
     this.VerticalCenterAction = new Gtk.Action("VerticalCenterAction", Mono.Unix.Catalog.GetString("Vertical Center"), null, null);
     this.VerticalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Middle");
     w1.Add(this.VerticalCenterAction, null);
     this.BottomAction = new Gtk.Action("BottomAction", Mono.Unix.Catalog.GetString("Bottom"), null, null);
     this.BottomAction.ShortLabel = Mono.Unix.Catalog.GetString("Bottom");
     w1.Add(this.BottomAction, null);
     this.debug2 = new Gtk.Action("debug2", null, Mono.Unix.Catalog.GetString("Debug2"), "gtk-dialog-error");
     w1.Add(this.debug2, null);
     this.CloneAction = new Gtk.Action("CloneAction", Mono.Unix.Catalog.GetString("Cl_one"), null, null);
     this.CloneAction.ShortLabel = Mono.Unix.Catalog.GetString("Clone");
     w1.Add(this.CloneAction, null);
     this.SelectAllAction = new Gtk.Action("SelectAllAction", Mono.Unix.Catalog.GetString("_Select All"), null, null);
     this.SelectAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Select All");
     w1.Add(this.SelectAllAction, "<Control><Mod2>a");
     this.ClearSelectionAction = new Gtk.Action("ClearSelectionAction", Mono.Unix.Catalog.GetString("Clear S_election"), null, null);
     this.ClearSelectionAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear S_election");
     w1.Add(this.ClearSelectionAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "LunarEclipse.View.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Lunar Eclipse");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 800;
     // Container child LunarEclipse.View.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/><separator/><menuitem name='CutAction' action='CutAction'/><menuitem name='CopiarAction' action='CopiarAction'/><menuitem name='PasteAction' action='PasteAction'/><menuitem name='CloneAction' action='CloneAction'/><menuitem name='DeleteAction' action='DeleteAction'/><separator/><menuitem name='SelectAllAction' action='SelectAllAction'/><menuitem name='ClearSelectionAction' action='ClearSelectionAction'/></menu><menu name='DrawingAction' action='DrawingAction'><menuitem name='CleanAction' action='CleanAction'/></menu><menu name='FiguresAction' action='FiguresAction'><menu name='OrderAction' action='OrderAction'><menuitem name='BringToFrontAction' action='BringToFrontAction'/><menuitem name='BringForwardsAction' action='BringForwardsAction'/><menuitem name='SendToBackAction' action='SendToBackAction'/><menuitem name='SendBackwarsAction' action='SendBackwarsAction'/></menu><menu name='AlignAction' action='AlignAction'><menuitem name='LeftAction' action='LeftAction'/><menuitem name='HorizontalCenterAction' action='HorizontalCenterAction'/><menuitem name='RightAction' action='RightAction'/><separator/><menuitem name='TopAction' action='TopAction'/><menuitem name='VerticalCenterAction' action='VerticalCenterAction'/><menuitem name='BottomAction' action='BottomAction'/></menu></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='SelectionToolAction' action='SelectionToolAction'/><menuitem name='RectangleToolAction' action='RectangleToolAction'/><menuitem name='SquareToolAction' action='SquareToolAction'/><menuitem name='EllipseToolAction' action='EllipseToolAction'/><menuitem name='CircleToolAction' action='CircleToolAction'/><menuitem name='LineToolAction' action='LineToolAction'/><menuitem name='PolylineToolAction' action='PolylineToolAction'/><menuitem name='PenToolAction' action='PenToolAction'/><menuitem name='PathToolAction' action='PathToolAction'/><menuitem name='TextToolAction' action='TextToolAction'/><menuitem name='ImageToolAction' action='ImageToolAction'/></menu><menu name='AnimationAction' action='AnimationAction'><menuitem name='StopAction' action='StopAction'/><menuitem name='ReproducirAction' action='ReproducirAction'/><menuitem name='RecordAction' action='RecordAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='NewAction' action='NewAction'/><toolitem name='OpenAction' action='OpenAction'/><toolitem name='SaveAction' action='SaveAction'/><separator/><toolitem name='UndoAction' action='UndoAction'/><toolitem name='RedoAction' action='RedoAction'/><separator/><toolitem name='CutAction' action='CutAction'/><toolitem name='CopiarAction' action='CopiarAction'/><toolitem name='PasteAction' action='PasteAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     this.notebook.TabPos = ((Gtk.PositionType)(3));
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar2'><toolitem name='SelectionToolAction' action='SelectionToolAction'/><toolitem name='SquareToolAction' action='SquareToolAction'/><toolitem name='RectangleToolAction' action='RectangleToolAction'/><toolitem name='CircleToolAction' action='CircleToolAction'/><toolitem name='EllipseToolAction' action='EllipseToolAction'/><toolitem name='LineToolAction' action='LineToolAction'/><toolitem name='PolylineToolAction' action='PolylineToolAction'/><toolitem name='PathToolAction' action='PathToolAction'/><toolitem name='PenToolAction' action='PenToolAction'/><toolitem name='TextToolAction' action='TextToolAction'/><separator/><toolitem name='CleanAction' action='CleanAction'/><toolitem name='debug1' action='debug1'/><toolitem name='debug2' action='debug2'/></toolbar></ui>");
     this.toolbar2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2")));
     this.toolbar2.Name = "toolbar2";
     this.toolbar2.Orientation = ((Gtk.Orientation)(1));
     this.toolbar2.ShowArrow = false;
     this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.hbox2.Add(this.toolbar2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.toolbar2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 842;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(0));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(0));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w5 = new Gtk.Viewport();
     w5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.moonlightwidget = new LunarEclipse.View.MoonlightWidget();
     this.moonlightwidget.Events = ((Gdk.EventMask)(256));
     this.moonlightwidget.Name = "moonlightwidget";
     this.moonlightwidget.Height = 800;
     this.moonlightwidget.Width = 800;
     w5.Add(this.moonlightwidget);
     this.scrolledwindow1.Add(w5);
     this.vbox3.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1]));
     w8.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Zoom:");
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w9.Position = 0;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.zoomScale = new Gtk.HScale(null);
     this.zoomScale.CanFocus = true;
     this.zoomScale.Name = "zoomScale";
     this.zoomScale.Adjustment.Upper = 500;
     this.zoomScale.Adjustment.PageIncrement = 10;
     this.zoomScale.Adjustment.StepIncrement = 1;
     this.zoomScale.Adjustment.Value = 100;
     this.zoomScale.DrawValue = true;
     this.zoomScale.Digits = 0;
     this.zoomScale.ValuePos = ((Gtk.PositionType)(2));
     this.hbox3.Add(this.zoomScale);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.zoomScale]));
     w10.Position = 1;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     this.hpaned1.Add(this.vbox3);
     Gtk.Paned.PanedChild w12 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox3]));
     w12.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.propertypanel = new LunarEclipse.View.PropertyPanel();
     this.propertypanel.Events = ((Gdk.EventMask)(256));
     this.propertypanel.Name = "propertypanel";
     this.hpaned1.Add(this.propertypanel);
     Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.propertypanel]));
     w13.Resize = false;
     this.vbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1]));
     w14.Position = 0;
     this.hbox2.Add(this.vbox2);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
     w15.Position = 1;
     this.notebook.Add(this.hbox2);
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Design");
     this.notebook.SetTabLabel(this.hbox2, this.label2);
     this.label2.ShowAll();
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w17 = new Gtk.Viewport();
     w17.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.xaml_textview = new Gtk.TextView();
     this.xaml_textview.CanFocus = true;
     this.xaml_textview.Name = "xaml_textview";
     w17.Add(this.xaml_textview);
     this.scrolledwindow2.Add(w17);
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w20.Position = 1;
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Xaml Code");
     this.notebook.SetTabLabel(this.scrolledwindow2, this.label1);
     this.label1.ShowAll();
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w21.Position = 2;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultHeight = 729;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
     this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
     this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated);
     this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated);
     this.CutAction.Activated += new System.EventHandler(this.OnCutActionActivated);
     this.CopiarAction.Activated += new System.EventHandler(this.OnCopyActionActivated);
     this.PasteAction.Activated += new System.EventHandler(this.OnPasteActionActivated);
     this.DeleteAction.Activated += new System.EventHandler(this.OnDeleteActionActivated);
     this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
     this.SelectionToolAction.Activated += new System.EventHandler(this.OnSelectionToolActionActivated);
     this.RectangleToolAction.Activated += new System.EventHandler(this.OnRectangleToolActionActivated);
     this.SquareToolAction.Activated += new System.EventHandler(this.OnSquareToolActionActivated);
     this.EllipseToolAction.Activated += new System.EventHandler(this.OnEllipseToolActionActivated);
     this.CircleToolAction.Activated += new System.EventHandler(this.OnCircleToolActionActivated);
     this.PathToolAction.Activated += new System.EventHandler(this.OnPathToolActionActivated);
     this.TextToolAction.Activated += new System.EventHandler(this.OnTextToolActionActivated);
     this.ImageToolAction.Activated += new System.EventHandler(this.OnImageToolActionActivated);
     this.LineToolAction.Activated += new System.EventHandler(this.OnLineToolActionActivated);
     this.CleanAction.Activated += new System.EventHandler(this.OnLimpiarActionActivated);
     this.PolylineToolAction.Activated += new System.EventHandler(this.OnPolylineToolActionActivated);
     this.PenToolAction.Activated += new System.EventHandler(this.OnPenToolActionActivated);
     this.debug1.Activated += new System.EventHandler(this.OnDebug1Activated);
     this.BringToFrontAction.Activated += new System.EventHandler(this.OnBringToFrontActionActivated);
     this.SendToBackAction.Activated += new System.EventHandler(this.OnSendToBackActionActivated);
     this.BringForwardsAction.Activated += new System.EventHandler(this.OnBringForwardsActionActivated);
     this.SendBackwarsAction.Activated += new System.EventHandler(this.OnSendBackwarsActionActivated);
     this.LeftAction.Activated += new System.EventHandler(this.OnLeftActionActivated);
     this.HorizontalCenterAction.Activated += new System.EventHandler(this.OnHorizontalCenterActionActivated);
     this.RightAction.Activated += new System.EventHandler(this.OnRightActionActivated);
     this.TopAction.Activated += new System.EventHandler(this.OnTopActionActivated);
     this.VerticalCenterAction.Activated += new System.EventHandler(this.OnVerticalCenterActionActivated);
     this.BottomAction.Activated += new System.EventHandler(this.OnBottomActionActivated);
     this.debug2.Activated += new System.EventHandler(this.OnDebug2Activated);
     this.CloneAction.Activated += new System.EventHandler(this.OnCloneActionActivated);
     this.SelectAllAction.Activated += new System.EventHandler(this.OnSelectAllActionActivated);
     this.ClearSelectionAction.Activated += new System.EventHandler(this.OnClearSelectionActionActivated);
     this.notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebookSwitchPage);
     this.zoomScale.ValueChanged += new System.EventHandler(this.OnZoomScaleValueChanged);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest   = 0;
     this.HeightRequest  = 0;
     this.Name           = "Mono.Upnp.GtkClient.MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned             = new Gtk.HPaned();
     this.hpaned.CanFocus    = true;
     this.hpaned.Name        = "hpaned";
     this.hpaned.Position    = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.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.list          = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name     = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox         = new Gtk.VBox();
     this.infoBox.Name    = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller           = new Gtk.Label();
     this.infoFiller.Name      = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill     = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monsoon.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.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.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.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About");
     w1.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");
     w1.Add(this.Quit, null);
     this.stopTorrentButton = new Gtk.Action("stopTorrentButton", null, Mono.Unix.Catalog.GetString("Stop the torrent"), "gtk-media-stop");
     this.stopTorrentButton.Sensitive = false;
     w1.Add(this.stopTorrentButton, null);
     this.removeTorrentButton = new Gtk.Action("removeTorrentButton", null, Mono.Unix.Catalog.GetString("Remove the torrent"), "gtk-remove");
     this.removeTorrentButton.Sensitive = false;
     w1.Add(this.removeTorrentButton, null);
     this.preferences = new Gtk.Action("preferences", null, Mono.Unix.Catalog.GetString("Open the preferences dialog"), "gtk-preferences");
     w1.Add(this.preferences, null);
     this.deleteTorrentButton = new Gtk.Action("deleteTorrentButton", null, Mono.Unix.Catalog.GetString("Remove the torrent and delete it's data"), "gtk-delete");
     this.deleteTorrentButton.Sensitive = false;
     w1.Add(this.deleteTorrentButton, null);
     this.EditColumns = new Gtk.Action("EditColumns", Mono.Unix.Catalog.GetString("Edit Columns"), null, null);
     this.EditColumns.ShortLabel = Mono.Unix.Catalog.GetString("Columns");
     w1.Add(this.EditColumns, null);
     this.ShowLabels = new Gtk.ToggleAction("ShowLabels", Mono.Unix.Catalog.GetString("Show Labels"), null, null);
     this.ShowLabels.ShortLabel = Mono.Unix.Catalog.GetString("Show Labels");
     w1.Add(this.ShowLabels, null);
     this.ShowDetailedInfo = new Gtk.ToggleAction("ShowDetailedInfo", Mono.Unix.Catalog.GetString("Show Detailed Info"), null, null);
     this.ShowDetailedInfo.ShortLabel = Mono.Unix.Catalog.GetString("Show Detailed Info");
     w1.Add(this.ShowDetailedInfo, null);
     this.OpenTorrent = new Gtk.Action("OpenTorrent", Mono.Unix.Catalog.GetString("_Open Torrent"), Mono.Unix.Catalog.GetString("Open existing torrent file"), "gtk-open");
     this.OpenTorrent.ShortLabel = Mono.Unix.Catalog.GetString("_Open Torrent");
     w1.Add(this.OpenTorrent, null);
     this.startTorrentButton = new Gtk.Action("startTorrentButton", null, Mono.Unix.Catalog.GetString("Start the torrent"), "gtk-media-play");
     this.startTorrentButton.Sensitive = false;
     w1.Add(this.startTorrentButton, null);
     this.NewTorrent = new Gtk.Action("NewTorrent", Mono.Unix.Catalog.GetString("_New Torrent"), Mono.Unix.Catalog.GetString("Create a new torrent"), "gtk-new");
     this.NewTorrent.ShortLabel = Mono.Unix.Catalog.GetString("_New Torrent");
     w1.Add(this.NewTorrent, null);
     this.Plugins = new Gtk.Action("Plugins", Mono.Unix.Catalog.GetString("Plugins"), Mono.Unix.Catalog.GetString("Open the RSS manager"), "rss");
     this.Plugins.ShortLabel = Mono.Unix.Catalog.GetString("Plugins");
     w1.Add(this.Plugins, null);
     this.ReportBugAction = new Gtk.Action("ReportBugAction", Mono.Unix.Catalog.GetString("Report Bug"), null, null);
     this.ReportBugAction.ShortLabel = Mono.Unix.Catalog.GetString("Report Bug");
     w1.Add(this.ReportBugAction, null);
     this.gotoTopAction = new Gtk.Action("gotoTopAction", null, null, "gtk-goto-top");
     w1.Add(this.gotoTopAction, null);
     this.gotoBottomAction = new Gtk.Action("gotoBottomAction", null, null, "gtk-goto-bottom");
     w1.Add(this.gotoBottomAction, null);
     this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("Close"), null, "gtk-close");
     this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("Close");
     w1.Add(this.CloseAction, null);
     this.AddInManagerAction = new Gtk.Action("AddInManagerAction", Mono.Unix.Catalog.GetString("_Add-in Manager"), null, "gtk-properties");
     this.AddInManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add-in Manager");
     w1.Add(this.AddInManagerAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Monsoon.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Monsoon");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_weather-showers", Gtk.IconSize.Dialog, 48);
     // Container child Monsoon.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='NewTorrent' action='NewTorrent'/><menuitem name='OpenTorrent' action='OpenTorrent'/><separator/><menuitem name='CloseAction' action='CloseAction'/><menuitem name='Quit' action='Quit'/></menu><menu name='EditAction' action='EditAction'><menuitem name='AddInManagerAction' action='AddInManagerAction'/><menuitem name='preferences' action='preferences'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='EditColumns' action='EditColumns'/><separator/><menuitem name='ShowLabels' action='ShowLabels'/><menuitem name='ShowDetailedInfo' action='ShowDetailedInfo'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='About' action='About'/><menuitem name='ReportBugAction' action='ReportBugAction'/></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='NewTorrent' action='NewTorrent'/><toolitem name='OpenTorrent' action='OpenTorrent'/><separator/><toolitem name='startTorrentButton' action='startTorrentButton'/><toolitem name='stopTorrentButton' action='stopTorrentButton'/><toolitem name='removeTorrentButton' action='removeTorrentButton'/><toolitem name='deleteTorrentButton' action='deleteTorrentButton'/><separator/><toolitem name='gotoTopAction' action='gotoTopAction'/><toolitem name='gotoBottomAction' action='gotoBottomAction'/><separator/><toolitem name='Plugins' action='Plugins'/><toolitem name='preferences' action='preferences'/></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.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.hPaned.Add(this.labelViewScrolledWindow);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hPaned[this.labelViewScrolledWindow]));
     w4.Resize = false;
     // Container child hPaned.Gtk.Paned+PanedChild
     this.vPaned = new Gtk.VPaned();
     this.vPaned.CanFocus = true;
     this.vPaned.Name = "vPaned";
     this.vPaned.Position = 165;
     // Container child vPaned.Gtk.Paned+PanedChild
     this.torrentViewScrolledWindow = new Gtk.ScrolledWindow();
     this.torrentViewScrolledWindow.CanFocus = true;
     this.torrentViewScrolledWindow.Name = "torrentViewScrolledWindow";
     this.torrentViewScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     this.vPaned.Add(this.torrentViewScrolledWindow);
     Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.vPaned[this.torrentViewScrolledWindow]));
     w5.Resize = false;
     // Container child vPaned.Gtk.Paned+PanedChild
     this.detailNotebook = new Gtk.Notebook();
     this.detailNotebook.CanFocus = true;
     this.detailNotebook.Name = "detailNotebook";
     this.detailNotebook.CurrentPage = 4;
     // Container child detailNotebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w6 = new Gtk.Viewport();
     w6.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.statusProgressBarLabel = new Gtk.Label();
     this.statusProgressBarLabel.Name = "statusProgressBarLabel";
     this.statusProgressBarLabel.LabelProp = Mono.Unix.Catalog.GetString("Status: ");
     this.hbox3.Add(this.statusProgressBarLabel);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.statusProgressBarLabel]));
     w7.Position = 0;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.statusProgressBar = new Gtk.ProgressBar();
     this.statusProgressBar.Name = "statusProgressBar";
     this.statusProgressBar.Text = Mono.Unix.Catalog.GetString(" ");
     this.hbox3.Add(this.statusProgressBar);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.statusProgressBar]));
     w8.Position = 1;
     this.vbox4.Add(this.hbox3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3]));
     w9.Position = 0;
     w9.Expand = false;
     w9.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.WidthRequest = 260;
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.table8 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
     this.table8.Name = "table8";
     this.table8.RowSpacing = ((uint)(6));
     this.table8.ColumnSpacing = ((uint)(6));
     // Container child table8.Gtk.Table+TableChild
     this.downloadedValueLabel = new Gtk.Label();
     this.downloadedValueLabel.Name = "downloadedValueLabel";
     this.downloadedValueLabel.Xalign = 0F;
     this.table8.Add(this.downloadedValueLabel);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table8[this.downloadedValueLabel]));
     w10.TopAttach = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.LeftAttach = ((uint)(1));
     w10.RightAttach = ((uint)(2));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.elapsedTimeLabel = new Gtk.Label();
     this.elapsedTimeLabel.Name = "elapsedTimeLabel";
     this.elapsedTimeLabel.Xalign = 0F;
     this.elapsedTimeLabel.LabelProp = Mono.Unix.Catalog.GetString("Elapsed Time:");
     this.table8.Add(this.elapsedTimeLabel);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table8[this.elapsedTimeLabel]));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.elapsedTimeValueLabel = new Gtk.Label();
     this.elapsedTimeValueLabel.Name = "elapsedTimeValueLabel";
     this.elapsedTimeValueLabel.Xalign = 0F;
     this.table8.Add(this.elapsedTimeValueLabel);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table8[this.elapsedTimeValueLabel]));
     w12.LeftAttach = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.hashFailsLabel = new Gtk.Label();
     this.hashFailsLabel.Name = "hashFailsLabel";
     this.hashFailsLabel.Xalign = 0F;
     this.table8.Add(this.hashFailsLabel);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table8[this.hashFailsLabel]));
     w13.TopAttach = ((uint)(3));
     w13.BottomAttach = ((uint)(4));
     w13.LeftAttach = ((uint)(1));
     w13.RightAttach = ((uint)(2));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.label21 = new Gtk.Label();
     this.label21.Name = "label21";
     this.label21.Xalign = 0F;
     this.label21.LabelProp = Mono.Unix.Catalog.GetString("Downloaded:");
     this.table8.Add(this.label21);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table8[this.label21]));
     w14.TopAttach = ((uint)(1));
     w14.BottomAttach = ((uint)(2));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.label22 = new Gtk.Label();
     this.label22.Name = "label22";
     this.label22.Xalign = 0F;
     this.label22.LabelProp = Mono.Unix.Catalog.GetString("Uploaded:");
     this.table8.Add(this.label22);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table8[this.label22]));
     w15.TopAttach = ((uint)(2));
     w15.BottomAttach = ((uint)(3));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Hash Fails:");
     this.table8.Add(this.label3);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table8[this.label3]));
     w16.TopAttach = ((uint)(3));
     w16.BottomAttach = ((uint)(4));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xalign = 0F;
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Swarm Speed:");
     this.table8.Add(this.label5);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table8[this.label5]));
     w17.TopAttach = ((uint)(4));
     w17.BottomAttach = ((uint)(5));
     w17.XOptions = ((Gtk.AttachOptions)(4));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.swarmSpeedLabel = new Gtk.Label();
     this.swarmSpeedLabel.Name = "swarmSpeedLabel";
     this.swarmSpeedLabel.Xalign = 0F;
     this.table8.Add(this.swarmSpeedLabel);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table8[this.swarmSpeedLabel]));
     w18.TopAttach = ((uint)(4));
     w18.BottomAttach = ((uint)(5));
     w18.LeftAttach = ((uint)(1));
     w18.RightAttach = ((uint)(2));
     w18.XOptions = ((Gtk.AttachOptions)(4));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table8.Gtk.Table+TableChild
     this.uploadedValueLabel = new Gtk.Label();
     this.uploadedValueLabel.Name = "uploadedValueLabel";
     this.uploadedValueLabel.Xalign = 0F;
     this.table8.Add(this.uploadedValueLabel);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table8[this.uploadedValueLabel]));
     w19.TopAttach = ((uint)(2));
     w19.BottomAttach = ((uint)(3));
     w19.LeftAttach = ((uint)(1));
     w19.RightAttach = ((uint)(2));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment.Add(this.table8);
     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));
     // 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.table7 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
     this.table7.Name = "table7";
     this.table7.RowSpacing = ((uint)(6));
     this.table7.ColumnSpacing = ((uint)(6));
     // Container child table7.Gtk.Table+TableChild
     this.label19 = new Gtk.Label();
     this.label19.Name = "label19";
     this.label19.Xalign = 0F;
     this.label19.LabelProp = Mono.Unix.Catalog.GetString("Update In:");
     this.table7.Add(this.label19);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table7[this.label19]));
     w23.TopAttach = ((uint)(3));
     w23.BottomAttach = ((uint)(4));
     w23.XOptions = ((Gtk.AttachOptions)(4));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.label20 = new Gtk.Label();
     this.label20.Name = "label20";
     this.label20.Xalign = 0F;
     this.label20.LabelProp = Mono.Unix.Catalog.GetString("Status:");
     this.table7.Add(this.label20);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table7[this.label20]));
     w24.TopAttach = ((uint)(1));
     w24.BottomAttach = ((uint)(2));
     w24.XOptions = ((Gtk.AttachOptions)(4));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.label23 = new Gtk.Label();
     this.label23.Name = "label23";
     this.label23.Xalign = 0F;
     this.label23.LabelProp = Mono.Unix.Catalog.GetString("Message:");
     this.table7.Add(this.label23);
     Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table7[this.label23]));
     w25.TopAttach = ((uint)(4));
     w25.BottomAttach = ((uint)(5));
     w25.XOptions = ((Gtk.AttachOptions)(4));
     w25.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 0F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Last Updated:");
     this.table7.Add(this.label4);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table7[this.label4]));
     w26.TopAttach = ((uint)(2));
     w26.BottomAttach = ((uint)(3));
     w26.XOptions = ((Gtk.AttachOptions)(4));
     w26.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.Xalign = 0F;
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("URL:");
     this.table7.Add(this.label8);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table7[this.label8]));
     w27.XOptions = ((Gtk.AttachOptions)(4));
     w27.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.lastUpdatedLabel = new Gtk.Label();
     this.lastUpdatedLabel.Name = "lastUpdatedLabel";
     this.lastUpdatedLabel.Xalign = 0F;
     this.table7.Add(this.lastUpdatedLabel);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table7[this.lastUpdatedLabel]));
     w28.TopAttach = ((uint)(2));
     w28.BottomAttach = ((uint)(3));
     w28.LeftAttach = ((uint)(1));
     w28.RightAttach = ((uint)(2));
     w28.XOptions = ((Gtk.AttachOptions)(4));
     w28.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.messageLabel = new Gtk.Label();
     this.messageLabel.Name = "messageLabel";
     this.messageLabel.Xalign = 0F;
     this.messageLabel.Wrap = true;
     this.table7.Add(this.messageLabel);
     Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table7[this.messageLabel]));
     w29.TopAttach = ((uint)(4));
     w29.BottomAttach = ((uint)(5));
     w29.LeftAttach = ((uint)(1));
     w29.RightAttach = ((uint)(2));
     w29.XOptions = ((Gtk.AttachOptions)(4));
     w29.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.trackerStatusValueLabel = new Gtk.Label();
     this.trackerStatusValueLabel.Name = "trackerStatusValueLabel";
     this.trackerStatusValueLabel.Xalign = 0F;
     this.table7.Add(this.trackerStatusValueLabel);
     Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table7[this.trackerStatusValueLabel]));
     w30.TopAttach = ((uint)(1));
     w30.BottomAttach = ((uint)(2));
     w30.LeftAttach = ((uint)(1));
     w30.RightAttach = ((uint)(2));
     w30.XOptions = ((Gtk.AttachOptions)(4));
     w30.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.trackerUrlValueLabel = new Gtk.Label();
     this.trackerUrlValueLabel.Name = "trackerUrlValueLabel";
     this.trackerUrlValueLabel.Xalign = 0F;
     this.table7.Add(this.trackerUrlValueLabel);
     Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table7[this.trackerUrlValueLabel]));
     w31.LeftAttach = ((uint)(1));
     w31.RightAttach = ((uint)(2));
     w31.XOptions = ((Gtk.AttachOptions)(4));
     w31.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.updateInLabel = new Gtk.Label();
     this.updateInLabel.Name = "updateInLabel";
     this.updateInLabel.Xalign = 0F;
     this.table7.Add(this.updateInLabel);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table7[this.updateInLabel]));
     w32.TopAttach = ((uint)(3));
     w32.BottomAttach = ((uint)(4));
     w32.LeftAttach = ((uint)(1));
     w32.RightAttach = ((uint)(2));
     w32.XOptions = ((Gtk.AttachOptions)(4));
     w32.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment1.Add(this.table7);
     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 w35 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame2]));
     w35.Position = 1;
     w35.Expand = false;
     w35.Fill = false;
     this.vbox4.Add(this.hbox1);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1]));
     w36.Position = 1;
     w36.Expand = false;
     w36.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame3 = new Gtk.Frame();
     this.frame3.Name = "frame3";
     this.frame3.ShadowType = ((Gtk.ShadowType)(0));
     // 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.table9 = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
     this.table9.Name = "table9";
     this.table9.RowSpacing = ((uint)(6));
     this.table9.ColumnSpacing = ((uint)(6));
     // Container child table9.Gtk.Table+TableChild
     this.commentValueLabel = new Gtk.Label();
     this.commentValueLabel.Name = "commentValueLabel";
     this.commentValueLabel.Xalign = 0F;
     this.table9.Add(this.commentValueLabel);
     Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table9[this.commentValueLabel]));
     w37.TopAttach = ((uint)(3));
     w37.BottomAttach = ((uint)(4));
     w37.LeftAttach = ((uint)(1));
     w37.RightAttach = ((uint)(2));
     w37.XOptions = ((Gtk.AttachOptions)(4));
     w37.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.createdOnValueLabel = new Gtk.Label();
     this.createdOnValueLabel.Name = "createdOnValueLabel";
     this.createdOnValueLabel.Xalign = 0F;
     this.table9.Add(this.createdOnValueLabel);
     Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table9[this.createdOnValueLabel]));
     w38.TopAttach = ((uint)(2));
     w38.BottomAttach = ((uint)(3));
     w38.LeftAttach = ((uint)(1));
     w38.RightAttach = ((uint)(2));
     w38.XOptions = ((Gtk.AttachOptions)(4));
     w38.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.label10 = new Gtk.Label();
     this.label10.Name = "label10";
     this.label10.Xalign = 0F;
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Size:");
     this.table9.Add(this.label10);
     Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table9[this.label10]));
     w39.TopAttach = ((uint)(1));
     w39.BottomAttach = ((uint)(2));
     w39.XOptions = ((Gtk.AttachOptions)(4));
     w39.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.label11 = new Gtk.Label();
     this.label11.Name = "label11";
     this.label11.Xalign = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Created on:");
     this.table9.Add(this.label11);
     Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table9[this.label11]));
     w40.TopAttach = ((uint)(2));
     w40.BottomAttach = ((uint)(3));
     w40.XOptions = ((Gtk.AttachOptions)(4));
     w40.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.label12 = new Gtk.Label();
     this.label12.Name = "label12";
     this.label12.Xalign = 0F;
     this.label12.LabelProp = Mono.Unix.Catalog.GetString("Comment:");
     this.table9.Add(this.label12);
     Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table9[this.label12]));
     w41.TopAttach = ((uint)(3));
     w41.BottomAttach = ((uint)(4));
     w41.XOptions = ((Gtk.AttachOptions)(4));
     w41.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Save path:");
     this.table9.Add(this.label7);
     Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table9[this.label7]));
     w42.XOptions = ((Gtk.AttachOptions)(4));
     w42.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.savePathValueLabel = new Gtk.Label();
     this.savePathValueLabel.Name = "savePathValueLabel";
     this.savePathValueLabel.Xalign = 0F;
     this.table9.Add(this.savePathValueLabel);
     Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table9[this.savePathValueLabel]));
     w43.LeftAttach = ((uint)(1));
     w43.RightAttach = ((uint)(2));
     w43.XOptions = ((Gtk.AttachOptions)(4));
     w43.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table9.Gtk.Table+TableChild
     this.sizeValueLabel = new Gtk.Label();
     this.sizeValueLabel.Name = "sizeValueLabel";
     this.sizeValueLabel.Xalign = 0F;
     this.table9.Add(this.sizeValueLabel);
     Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table9[this.sizeValueLabel]));
     w44.TopAttach = ((uint)(1));
     w44.BottomAttach = ((uint)(2));
     w44.LeftAttach = ((uint)(1));
     w44.RightAttach = ((uint)(2));
     w44.XOptions = ((Gtk.AttachOptions)(4));
     w44.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment2.Add(this.table9);
     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 w47 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3]));
     w47.Position = 2;
     w47.Expand = false;
     w47.Fill = false;
     w6.Add(this.vbox4);
     this.scrolledwindow1.Add(w6);
     this.detailNotebook.Add(this.scrolledwindow1);
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("General");
     this.detailNotebook.SetTabLabel(this.scrolledwindow1, this.label1);
     this.label1.ShowAll();
     // Container child detailNotebook.Gtk.Notebook+NotebookChild
     this.filesScrolledWindow = new Gtk.ScrolledWindow();
     this.filesScrolledWindow.CanFocus = true;
     this.filesScrolledWindow.Name = "filesScrolledWindow";
     this.filesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     this.detailNotebook.Add(this.filesScrolledWindow);
     Gtk.Notebook.NotebookChild w51 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.filesScrolledWindow]));
     w51.Position = 1;
     // Notebook tab
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Files");
     this.detailNotebook.SetTabLabel(this.filesScrolledWindow, this.label9);
     this.label9.ShowAll();
     // Container child detailNotebook.Gtk.Notebook+NotebookChild
     this.piecesScrolledWindow = new Gtk.ScrolledWindow();
     this.piecesScrolledWindow.CanFocus = true;
     this.piecesScrolledWindow.Name = "piecesScrolledWindow";
     this.piecesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     this.detailNotebook.Add(this.piecesScrolledWindow);
     Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.piecesScrolledWindow]));
     w52.Position = 2;
     // Notebook tab
     this.label18 = new Gtk.Label();
     this.label18.Name = "label18";
     this.label18.LabelProp = Mono.Unix.Catalog.GetString("Pieces");
     this.detailNotebook.SetTabLabel(this.piecesScrolledWindow, this.label18);
     this.label18.ShowAll();
     // Container child detailNotebook.Gtk.Notebook+NotebookChild
     this.peersScrolledWindow = new Gtk.ScrolledWindow();
     this.peersScrolledWindow.CanFocus = true;
     this.peersScrolledWindow.Name = "peersScrolledWindow";
     this.peersScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     this.detailNotebook.Add(this.peersScrolledWindow);
     Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.peersScrolledWindow]));
     w53.Position = 3;
     // Notebook tab
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Peers");
     this.detailNotebook.SetTabLabel(this.peersScrolledWindow, this.label6);
     this.label6.ShowAll();
     // Container child detailNotebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w54 = new Gtk.Viewport();
     w54.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.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));
     // 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.table2 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.label14 = new Gtk.Label();
     this.label14.Name = "label14";
     this.label14.Xalign = 0F;
     this.label14.LabelProp = Mono.Unix.Catalog.GetString("Maximum upload rate:");
     this.table2.Add(this.label14);
     Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(this.table2[this.label14]));
     w55.XOptions = ((Gtk.AttachOptions)(4));
     w55.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label15 = new Gtk.Label();
     this.label15.Name = "label15";
     this.label15.Xalign = 0F;
     this.label15.LabelProp = Mono.Unix.Catalog.GetString("Maximum download rate:");
     this.table2.Add(this.label15);
     Gtk.Table.TableChild w56 = ((Gtk.Table.TableChild)(this.table2[this.label15]));
     w56.TopAttach = ((uint)(1));
     w56.BottomAttach = ((uint)(2));
     w56.XOptions = ((Gtk.AttachOptions)(4));
     w56.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label16 = new Gtk.Label();
     this.label16.Name = "label16";
     this.label16.Xalign = 0F;
     this.label16.LabelProp = Mono.Unix.Catalog.GetString("Maximum connections:");
     this.table2.Add(this.label16);
     Gtk.Table.TableChild w57 = ((Gtk.Table.TableChild)(this.table2[this.label16]));
     w57.TopAttach = ((uint)(2));
     w57.BottomAttach = ((uint)(3));
     w57.XOptions = ((Gtk.AttachOptions)(4));
     w57.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label17 = new Gtk.Label();
     this.label17.Name = "label17";
     this.label17.Xalign = 0F;
     this.label17.LabelProp = Mono.Unix.Catalog.GetString("Upload slots:");
     this.table2.Add(this.label17);
     Gtk.Table.TableChild w58 = ((Gtk.Table.TableChild)(this.table2[this.label17]));
     w58.TopAttach = ((uint)(3));
     w58.BottomAttach = ((uint)(4));
     w58.XOptions = ((Gtk.AttachOptions)(4));
     w58.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     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.table2.Add(this.torrentDownloadRateSpinButton);
     Gtk.Table.TableChild w59 = ((Gtk.Table.TableChild)(this.table2[this.torrentDownloadRateSpinButton]));
     w59.TopAttach = ((uint)(1));
     w59.BottomAttach = ((uint)(2));
     w59.LeftAttach = ((uint)(1));
     w59.RightAttach = ((uint)(2));
     w59.XOptions = ((Gtk.AttachOptions)(4));
     w59.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     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.table2.Add(this.torrentMaxConnectionsSpinButton);
     Gtk.Table.TableChild w60 = ((Gtk.Table.TableChild)(this.table2[this.torrentMaxConnectionsSpinButton]));
     w60.TopAttach = ((uint)(2));
     w60.BottomAttach = ((uint)(3));
     w60.LeftAttach = ((uint)(1));
     w60.RightAttach = ((uint)(2));
     w60.XOptions = ((Gtk.AttachOptions)(4));
     w60.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     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.table2.Add(this.torrentUploadRateSpinButton);
     Gtk.Table.TableChild w61 = ((Gtk.Table.TableChild)(this.table2[this.torrentUploadRateSpinButton]));
     w61.LeftAttach = ((uint)(1));
     w61.RightAttach = ((uint)(2));
     w61.XOptions = ((Gtk.AttachOptions)(4));
     w61.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     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.table2.Add(this.torrentUploadSlotSpinButton);
     Gtk.Table.TableChild w62 = ((Gtk.Table.TableChild)(this.table2[this.torrentUploadSlotSpinButton]));
     w62.TopAttach = ((uint)(3));
     w62.BottomAttach = ((uint)(4));
     w62.LeftAttach = ((uint)(1));
     w62.RightAttach = ((uint)(2));
     w62.XOptions = ((Gtk.AttachOptions)(4));
     w62.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment4.Add(this.table2);
     this.frame5.Add(this.GtkAlignment4);
     this.GtkLabel11 = new Gtk.Label();
     this.GtkLabel11.Name = "GtkLabel11";
     this.GtkLabel11.LabelProp = Mono.Unix.Catalog.GetString("<b>Bandwidth</b>");
     this.GtkLabel11.UseMarkup = true;
     this.frame5.LabelWidget = this.GtkLabel11;
     this.vbox6.Add(this.frame5);
     Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5]));
     w65.Position = 0;
     this.hbox13.Add(this.vbox6);
     Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox13[this.vbox6]));
     w66.Position = 0;
     w66.Expand = false;
     w66.Fill = false;
     w54.Add(this.hbox13);
     this.scrolledwindow2.Add(w54);
     this.detailNotebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w69 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.scrolledwindow2]));
     w69.Position = 4;
     // Notebook tab
     this.label13 = new Gtk.Label();
     this.label13.Name = "label13";
     this.label13.LabelProp = Mono.Unix.Catalog.GetString("Options");
     this.detailNotebook.SetTabLabel(this.scrolledwindow2, this.label13);
     this.label13.ShowAll();
     this.vPaned.Add(this.detailNotebook);
     this.hPaned.Add(this.vPaned);
     this.vbox1.Add(this.hPaned);
     Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(this.vbox1[this.hPaned]));
     w72.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.alignment4 = new Gtk.Alignment(1F, 0.5F, 0F, 1F);
     this.alignment4.Name = "alignment4";
     // Container child alignment4.Gtk.Container+ContainerChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.natStatus = new Monsoon.NatWidget();
     this.natStatus.WidthRequest = 28;
     this.natStatus.Name = "natStatus";
     this.natStatus.HasIncoming = false;
     this.natStatus.RouterFound = false;
     this.natStatus.PortForwarded = false;
     this.hbox4.Add(this.natStatus);
     Gtk.Box.BoxChild w73 = ((Gtk.Box.BoxChild)(this.hbox4[this.natStatus]));
     w73.Position = 0;
     w73.Expand = false;
     w73.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='statusToolbar'/></ui>");
     this.statusToolbar = ((Gtk.Toolbar)(this.UIManager.GetWidget("/statusToolbar")));
     this.statusToolbar.Name = "statusToolbar";
     this.statusToolbar.ShowArrow = false;
     this.statusToolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.statusToolbar.IconSize = ((Gtk.IconSize)(1));
     this.hbox4.Add(this.statusToolbar);
     Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.hbox4[this.statusToolbar]));
     w74.Position = 1;
     this.alignment4.Add(this.hbox4);
     this.vbox1.Add(this.alignment4);
     Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(this.vbox1[this.alignment4]));
     w76.Position = 3;
     w76.Expand = false;
     w76.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 765;
     this.DefaultHeight = 658;
     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.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.EditColumns.Activated += new System.EventHandler(this.OnColumnsActivated);
     this.ShowLabels.Activated += new System.EventHandler(this.OnShowLabelsActivated);
     this.ShowDetailedInfo.Activated += new System.EventHandler(this.OnShowDetailedInfoActivated);
     this.OpenTorrent.Activated += new System.EventHandler(this.OnOpenActivated);
     this.startTorrentButton.Activated += new System.EventHandler(this.OnStartTorrentActivated);
     this.NewTorrent.Activated += new System.EventHandler(this.OnNewActivated);
     this.Plugins.Activated += new System.EventHandler(this.OnPluginsActivated);
     this.ReportBugAction.Activated += new System.EventHandler(this.OnReportBugActivated);
     this.gotoTopAction.Activated += new System.EventHandler(this.OnPriorityHighest);
     this.gotoBottomAction.Activated += new System.EventHandler(this.OnPriorityLowest);
     this.CloseAction.Activated += new System.EventHandler(this.OnCloseActionActivated);
 }
Beispiel #9
0
        public GroupChatView(GroupChatModel groupChat) : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            Participants  = new List <PersonModel>();
            _OutputHPaned = new Gtk.HPaned();
            _OutputHPaned.ButtonPressEvent += (sender, e) => {;
                                                              // reset person list size on double click
                                                              if (e.Event.Type == Gdk.EventType.TwoButtonPress &&
                                                                  e.Event.Button == 1)
                                                              {
                                                                  GLib.Timeout.Add(200, delegate {
                        _OutputHPaned.Position = -1;
                        return(false);
                    });
                                                              }
            };

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            PersonScrolledWindow = sw;
            sw.HscrollbarPolicy  = Gtk.PolicyType.Never;
            sw.SizeRequested    += (o, args) => {
                // predict and set useful treeview width
                var persons = SyncedPersons;
                if (persons == null || persons.Count == 0)
                {
                    return;
                }

                int longestNameWidth = 0;
                foreach (var person in persons.Values)
                {
                    int lineWidth, lineHeigth;
                    using (var layout = _PersonTreeView.CreatePangoLayout(person.IdentityName)) {
                        layout.GetPixelSize(out lineWidth, out lineHeigth);
                    }
                    if (lineWidth > longestNameWidth)
                    {
                        longestNameWidth = lineWidth;
                    }
                }

                var bestSize = new Gtk.Requisition()
                {
                    Width = longestNameWidth
                };
                args.Requisition = bestSize;
            };

            //tv.CanFocus = false;
            tv.BorderWidth    = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn   column;
            Gtk.CellRendererText cellr = new Gtk.CellRendererText();
            IdentityNameCellRenderer = cellr;
            column = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId  = 0;
            column.Spacing       = 0;
            column.SortIndicator = false;
            column.Sizing        = Gtk.TreeViewColumnSizing.Autosize;
            // FIXME: this callback leaks memory
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model           = liststore;
            tv.SearchColumn    = 0;
            tv.SearchEqualFunc = (model, col, key, iter) => {
                var person = (PersonModel)model.GetValue(iter, col);
                // Ladies and gentlemen welcome to C
                // 0 means it matched but 0 as bool is false. So if it matches
                // we have to return false. Still not clear? true is false and
                // false is true, weirdo! If you think this is retarded,
                // yes it is.
                return(!person.IdentityName.StartsWith(key, StringComparison.InvariantCultureIgnoreCase));
            };
            tv.EnableSearch   = true;
            tv.RowActivated  += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown    += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent    += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame();
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox();

            _TopicTextView                        = new MessageTextView();
            _TopicTextView.Editable               = false;
            _TopicTextView.WrapMode               = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow                  = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType       = Gtk.ShadowType.In;
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible        = false;
            _TopicScrolledWindow.NoShowAll      = true;
            _TopicScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful topic heigth
                int lineWidth, lineHeight;
                using (var layout = _TopicTextView.CreatePangoLayout("Test Topic")) {
                    layout.GetPixelSize(out lineWidth, out lineHeight);
                }
                var lineSpacing = _TopicTextView.PixelsAboveLines +
                                  _TopicTextView.PixelsBelowLines;
                var it       = _TopicTextView.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (_TopicTextView.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);
                var bestSize = new Gtk.Requisition()
                {
                    Height = ((lineHeight + lineSpacing) * newLines) + 4
                };
                args.Requisition = bestSize;
            };

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
Beispiel #10
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.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("Open..."), null, null);
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("Open...");
     w2.Add(this.Open, null);
     this.Open1 = new Gtk.Action("Open1", Mono.Unix.Catalog.GetString("Open..."), null, null);
     this.Open1.ShortLabel = Mono.Unix.Catalog.GetString("Open...");
     w2.Add(this.Open1, null);
     this.Export = new Gtk.Action("Export", Mono.Unix.Catalog.GetString("Export..."), null, null);
     this.Export.ShortLabel = Mono.Unix.Catalog.GetString("Export...");
     w2.Add(this.Export, null);
     this.SaveAs = new Gtk.Action("SaveAs", Mono.Unix.Catalog.GetString("Save as..."), null, null);
     this.SaveAs.ShortLabel = Mono.Unix.Catalog.GetString("Save as...");
     w2.Add(this.SaveAs, null);
     this.Import = new Gtk.Action("Import", Mono.Unix.Catalog.GetString("Import..."), null, null);
     this.Import.ShortLabel = Mono.Unix.Catalog.GetString("Import...");
     w2.Add(this.Import, 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.ZoomIn = new Gtk.Action("ZoomIn", Mono.Unix.Catalog.GetString("Zoom in"), null, null);
     this.ZoomIn.ShortLabel = Mono.Unix.Catalog.GetString("Zoom in");
     w2.Add(this.ZoomIn, "plus");
     this.ZoomOut = new Gtk.Action("ZoomOut", Mono.Unix.Catalog.GetString("Zoom out"), null, null);
     this.ZoomOut.ShortLabel = Mono.Unix.Catalog.GetString("Zoom out");
     w2.Add(this.ZoomOut, "minus");
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("BW Processor");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.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='menubar3'><menu action='File'><menuitem action='Open1'/><menuitem action='SaveAs'/><menuitem action='Import'/><menuitem action='Export'/></menu><menu action='View'><menuitem action='ZoomIn'/><menuitem action='ZoomOut'/></menu></menubar></ui>");
     this.menubar3 = ((Gtk.MenuBar)(w1.GetWidget("/menubar3")));
     this.menubar3.Name = "menubar3";
     this.vbox3.Add(this.menubar3);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.menubar3]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.paned = new Gtk.HPaned();
     this.paned.CanFocus = true;
     this.paned.Name = "paned";
     this.paned.Position = 708;
     // Container child paned.Gtk.Paned+PanedChild
     this.geglViewDummy = new Gtk.Label();
     this.geglViewDummy.Name = "geglViewDummy";
     this.geglViewDummy.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.paned.Add(this.geglViewDummy);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.paned[this.geglViewDummy]));
     w4.Resize = false;
     // Container child paned.Gtk.Paned+PanedChild
     this.controlsVBox = new Gtk.VBox();
     this.controlsVBox.Name = "controlsVBox";
     this.controlsVBox.Spacing = 6;
     // Container child controlsVBox.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.blueScale = new Gtk.HScale(null);
     this.blueScale.CanFocus = true;
     this.blueScale.Name = "blueScale";
     this.blueScale.Adjustment.Lower = -200;
     this.blueScale.Adjustment.Upper = 200;
     this.blueScale.Adjustment.PageIncrement = 10;
     this.blueScale.Adjustment.StepIncrement = 1;
     this.blueScale.Adjustment.Value = 30;
     this.blueScale.DrawValue = true;
     this.blueScale.Digits = 0;
     this.blueScale.ValuePos = ((Gtk.PositionType)(2));
     this.table1.Add(this.blueScale);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.blueScale]));
     w5.TopAttach = ((uint)(2));
     w5.BottomAttach = ((uint)(3));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.greenScale = new Gtk.HScale(null);
     this.greenScale.CanFocus = true;
     this.greenScale.Name = "greenScale";
     this.greenScale.Adjustment.Lower = -200;
     this.greenScale.Adjustment.Upper = 200;
     this.greenScale.Adjustment.PageIncrement = 10;
     this.greenScale.Adjustment.StepIncrement = 1;
     this.greenScale.Adjustment.Value = 30;
     this.greenScale.DrawValue = true;
     this.greenScale.Digits = 0;
     this.greenScale.ValuePos = ((Gtk.PositionType)(2));
     this.table1.Add(this.greenScale);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.greenScale]));
     w6.TopAttach = ((uint)(1));
     w6.BottomAttach = ((uint)(2));
     w6.LeftAttach = ((uint)(1));
     w6.RightAttach = ((uint)(2));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 1F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Green");
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w7.TopAttach = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 1F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Blue");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w8.TopAttach = ((uint)(2));
     w8.BottomAttach = ((uint)(3));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.Xalign = 1F;
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Red");
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.redScale = new Gtk.HScale(null);
     this.redScale.CanFocus = true;
     this.redScale.Name = "redScale";
     this.redScale.Adjustment.Lower = -200;
     this.redScale.Adjustment.Upper = 200;
     this.redScale.Adjustment.PageIncrement = 10;
     this.redScale.Adjustment.StepIncrement = 1;
     this.redScale.Adjustment.Value = 40;
     this.redScale.DrawValue = true;
     this.redScale.Digits = 0;
     this.redScale.ValuePos = ((Gtk.PositionType)(2));
     this.table1.Add(this.redScale);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.redScale]));
     w10.LeftAttach = ((uint)(1));
     w10.RightAttach = ((uint)(2));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     this.controlsVBox.Add(this.table1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.table1]));
     w11.Position = 0;
     w11.Expand = false;
     w11.Fill = false;
     // Container child controlsVBox.Gtk.Box+BoxChild
     this.curveDummy = new Gtk.Label();
     this.curveDummy.Name = "curveDummy";
     this.curveDummy.LabelProp = Mono.Unix.Catalog.GetString("label2");
     this.controlsVBox.Add(this.curveDummy);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.curveDummy]));
     w12.Position = 1;
     // Container child controlsVBox.Gtk.Box+BoxChild
     this.statusLabel = new Gtk.Label();
     this.statusLabel.Name = "statusLabel";
     this.statusLabel.Xalign = 0F;
     this.statusLabel.LabelProp = Mono.Unix.Catalog.GetString("Label");
     this.controlsVBox.Add(this.statusLabel);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.statusLabel]));
     w13.PackType = ((Gtk.PackType)(1));
     w13.Position = 2;
     w13.Expand = false;
     w13.Fill = false;
     // Container child controlsVBox.Gtk.Box+BoxChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.controlsVBox.Add(this.hseparator1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.hseparator1]));
     w14.PackType = ((Gtk.PackType)(1));
     w14.Position = 3;
     w14.Expand = false;
     w14.Fill = false;
     // Container child controlsVBox.Gtk.Box+BoxChild
     this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 1F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Tint Hue");
     this.table2.Add(this.label4);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table2[this.label4]));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xalign = 1F;
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Tint Amount");
     this.table2.Add(this.label5);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table2[this.label5]));
     w16.TopAttach = ((uint)(1));
     w16.BottomAttach = ((uint)(2));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.tintAmountScale = new Gtk.HScale(null);
     this.tintAmountScale.CanFocus = true;
     this.tintAmountScale.Name = "tintAmountScale";
     this.tintAmountScale.Adjustment.Upper = 100;
     this.tintAmountScale.Adjustment.PageIncrement = 10;
     this.tintAmountScale.Adjustment.StepIncrement = 1;
     this.tintAmountScale.Adjustment.Value = 8;
     this.tintAmountScale.DrawValue = true;
     this.tintAmountScale.Digits = 0;
     this.tintAmountScale.ValuePos = ((Gtk.PositionType)(2));
     this.table2.Add(this.tintAmountScale);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table2[this.tintAmountScale]));
     w17.TopAttach = ((uint)(1));
     w17.BottomAttach = ((uint)(2));
     w17.LeftAttach = ((uint)(1));
     w17.RightAttach = ((uint)(2));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.tintHueScale = new Gtk.HScale(null);
     this.tintHueScale.CanFocus = true;
     this.tintHueScale.Name = "tintHueScale";
     this.tintHueScale.Adjustment.Upper = 360;
     this.tintHueScale.Adjustment.PageIncrement = 10;
     this.tintHueScale.Adjustment.StepIncrement = 1;
     this.tintHueScale.Adjustment.Value = 23;
     this.tintHueScale.DrawValue = true;
     this.tintHueScale.Digits = 0;
     this.tintHueScale.ValuePos = ((Gtk.PositionType)(2));
     this.table2.Add(this.tintHueScale);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table2[this.tintHueScale]));
     w18.LeftAttach = ((uint)(1));
     w18.RightAttach = ((uint)(2));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     this.controlsVBox.Add(this.table2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.table2]));
     w19.PackType = ((Gtk.PackType)(1));
     w19.Position = 4;
     w19.Expand = false;
     w19.Fill = false;
     this.paned.Add(this.controlsVBox);
     Gtk.Paned.PanedChild w20 = ((Gtk.Paned.PanedChild)(this.paned[this.controlsVBox]));
     w20.Resize = false;
     this.vbox3.Add(this.paned);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.paned]));
     w21.Position = 1;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 724;
     this.DefaultHeight = 588;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Open1.Activated += new System.EventHandler(this.OpenFile);
     this.Export.Activated += new System.EventHandler(this.ExportFile);
     this.SaveAs.Activated += new System.EventHandler(this.SaveFileAs);
     this.Import.Activated += new System.EventHandler(this.ImportFile);
     this.ZoomIn.Activated += new System.EventHandler(this.DoZoomIn);
     this.ZoomOut.Activated += new System.EventHandler(this.DoZoomOut);
     this.redScale.ValueChanged += new System.EventHandler(this.MixerValueChanged);
     this.greenScale.ValueChanged += new System.EventHandler(this.MixerValueChanged);
     this.blueScale.ValueChanged += new System.EventHandler(this.MixerValueChanged);
     this.tintHueScale.ValueChanged += new System.EventHandler(this.TintChanged);
     this.tintAmountScale.ValueChanged += new System.EventHandler(this.TintChanged);
 }
Beispiel #11
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 SimpleDownloader.TestDownloadWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.quitAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "SimpleDownloader.TestDownloadWindow";
     this.Title = Mono.Unix.Catalog.GetString("TestDownloadWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child SimpleDownloader.TestDownloadWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='quitAction' action='quitAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 141;
     this.hpaned1.BorderWidth = ((uint)(5));
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.expander1 = new Gtk.Expander(null);
     this.expander1.CanFocus = true;
     this.expander1.Name = "expander1";
     this.expander1.Expanded = true;
     // Container child expander1.Gtk.Container+ContainerChild
     this.vbuttonbox2 = new Gtk.VButtonBox();
     this.vbuttonbox2.Name = "vbuttonbox2";
     this.vbuttonbox2.Homogeneous = true;
     this.vbuttonbox2.Spacing = 5;
     this.vbuttonbox2.BorderWidth = ((uint)(5));
     // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseStock = true;
     this.button1.UseUnderline = true;
     this.button1.Label = "gtk-add";
     this.vbuttonbox2.Add(this.button1);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button1]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button2 = new Gtk.Button();
     this.button2.CanFocus = true;
     this.button2.Name = "button2";
     this.button2.UseStock = true;
     this.button2.UseUnderline = true;
     this.button2.Label = "gtk-delete";
     this.vbuttonbox2.Add(this.button2);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.expander1.Add(this.vbuttonbox2);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Download");
     this.GtkLabel3.UseUnderline = true;
     this.expander1.LabelWidget = this.GtkLabel3;
     this.vbox2.Add(this.expander1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1]));
     w6.Position = 0;
     w6.Expand = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 1F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Links:");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 1F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("In progress:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w8.TopAttach = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("27");
     this.table1.Add(this.label5);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("13");
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w10.TopAttach = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.LeftAttach = ((uint)(1));
     w10.RightAttach = ((uint)(2));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 1F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Done:");
     this.table1.Add(this.label7);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label7]));
     w11.TopAttach = ((uint)(2));
     w11.BottomAttach = ((uint)(3));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("14");
     this.table1.Add(this.label8);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
     w12.TopAttach = ((uint)(2));
     w12.BottomAttach = ((uint)(3));
     w12.LeftAttach = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox2.Add(this.table1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
     w13.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Current:");
     this.vbox3.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.label1]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.progressCurrent = new Gtk.ProgressBar();
     this.progressCurrent.Name = "progressCurrent";
     this.progressCurrent.Text = "";
     this.vbox3.Add(this.progressCurrent);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressCurrent]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Overall:");
     this.vbox3.Add(this.label2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.progressbar2 = new Gtk.ProgressBar();
     this.progressbar2.Name = "progressbar2";
     this.progressbar2.Text = "";
     this.vbox3.Add(this.progressbar2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressbar2]));
     w17.Position = 3;
     w17.Expand = false;
     w17.Fill = false;
     this.vbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
     w18.Position = 2;
     w18.Expand = false;
     w18.Fill = false;
     this.hpaned1.Add(this.vbox2);
     Gtk.Paned.PanedChild w19 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox2]));
     w19.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.downloadTree = new Gtk.TreeView();
     this.downloadTree.CanFocus = true;
     this.downloadTree.Name = "downloadTree";
     this.scrolledwindow1.Add(this.downloadTree);
     this.hpaned1.Add(this.scrolledwindow1);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w22.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 609;
     this.DefaultHeight = 413;
     this.Show();
     this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked);
     this.downloadTree.RowActivated += new Gtk.RowActivatedHandler(this.OnDownloadTreeRowActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // 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);
 }
Beispiel #14
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);
 }
Beispiel #15
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget GtkSharpTest.NowPlaying
     Stetic.BinContainer.Attach(this);
     Name = "GtkSharpTest.NowPlaying";
     // Container child GtkSharpTest.NowPlaying.Gtk.Container+ContainerChild
     hpaned1 = new Gtk.HPaned();
     hpaned1.CanFocus = true;
     hpaned1.Name = "hpaned1";
     hpaned1.Position = 475;
     // Container child hpaned1.Gtk.Paned+PanedChild
     GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     GtkScrolledWindow1.HscrollbarPolicy = (Gtk.PolicyType)2;
     GtkScrolledWindow1.ShadowType = (Gtk.ShadowType)1;
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     Lyrics = new Gtk.TextView();
     Lyrics.Name = "Lyrics";
     Lyrics.Editable = false;
     Lyrics.CursorVisible = false;
     Lyrics.WrapMode = (Gtk.WrapMode)2;
     Lyrics.PixelsAboveLines = 1;
     Lyrics.PixelsBelowLines = 1;
     Lyrics.PixelsInsideWrap = 10;
     Lyrics.LeftMargin = 6;
     Lyrics.RightMargin = 6;
     GtkScrolledWindow1.Add(Lyrics);
     hpaned1.Add(GtkScrolledWindow1);
     Gtk.Paned.PanedChild w2 = (Gtk.Paned.PanedChild)hpaned1[GtkScrolledWindow1];
     w2.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     vbox4 = new Gtk.VBox();
     vbox4.Name = "vbox4";
     vbox4.Spacing = 12;
     // Container child vbox4.Gtk.Box+BoxChild
     Title = new Gtk.Label();
     Title.Name = "Title";
     Title.Xalign = 0F;
     Title.Wrap = true;
     Title.Justify = (Gtk.Justification)2;
     vbox4.Add(Title);
     Gtk.Box.BoxChild w3 = (Gtk.Box.BoxChild)vbox4[Title];
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     hbox1 = new Gtk.HBox();
     hbox1.Name = "hbox1";
     hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     Album = new Gtk.Label();
     Album.Name = "Album";
     Album.Xalign = 0F;
     Album.Wrap = true;
     hbox1.Add(Album);
     Gtk.Box.BoxChild w4 = (Gtk.Box.BoxChild)hbox1[Album];
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     label1 = new Gtk.Label();
     label1.Name = "label1";
     label1.LabelProp = Mono.Unix.Catalog.GetString("by");
     hbox1.Add(label1);
     Gtk.Box.BoxChild w5 = (Gtk.Box.BoxChild)hbox1[label1];
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     Artist = new Gtk.Label();
     Artist.Name = "Artist";
     Artist.Xalign = 0F;
     Artist.Wrap = true;
     hbox1.Add(Artist);
     Gtk.Box.BoxChild w6 = (Gtk.Box.BoxChild)hbox1[Artist];
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     vbox4.Add(hbox1);
     Gtk.Box.BoxChild w7 = (Gtk.Box.BoxChild)vbox4[hbox1];
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     Art = new Gtk.Image();
     Art.Name = "Art";
     vbox4.Add(Art);
     Gtk.Box.BoxChild w8 = (Gtk.Box.BoxChild)vbox4[Art];
     w8.Position = 2;
     hpaned1.Add(vbox4);
     Add(hpaned1);
     if (Child != null)
     {
         Child.ShowAll();
     }
     Hide();
 }
		Gtk.Widget CreateFakeWidget (string typeName)
		{
			Stetic.Custom c = new Stetic.Custom ();
			// Give it some default size
			c.WidthRequest = 20;
			c.HeightRequest = 20;
			
			Gtk.Container box = null;
			
			switch (typeClassDescriptor.Name) {
				case "Gtk.Alignment":
					box = new Gtk.Alignment (0.5f, 0.5f, 1f, 1f);
					break;
				case "Gtk.Fixed":
					box = new Gtk.Alignment (0.5f, 0.5f, 1f, 1f);
					break;
				case "Gtk.Frame":
					box = new Gtk.Frame ();
					break;
				case "Gtk.Box":
				case "Gtk.HBox": {
					Gtk.HBox cc = new Gtk.HBox ();
					cc.PackStart (c, true, true, 0);
					return cc;
				}
				case "Gtk.VBox": {
					Gtk.VBox cc = new Gtk.VBox ();
					cc.PackStart (c, true, true, 0);
					return cc;
				}
				case "Gtk.Paned":
				case "Gtk.VPaned": {
					Gtk.VPaned cc = new Gtk.VPaned ();
					cc.Add1 (c);
					return cc;
				}
				case "Gtk.HPaned": {
					Gtk.HPaned cc = new Gtk.HPaned ();
					cc.Add1 (c);
					return cc;
				}
				case "Gtk.Notebook": {
					Gtk.Notebook nb = new Gtk.Notebook ();
					nb.ShowTabs = false;
					nb.AppendPage (c, null);
					return nb;
				}
				case "Gtk.ScrolledWindow": {
					Gtk.ScrolledWindow cc = new Gtk.ScrolledWindow ();
					cc.VscrollbarPolicy = Gtk.PolicyType.Never;
					cc.HscrollbarPolicy = Gtk.PolicyType.Never;
					cc.AddWithViewport (c);
					return cc;
				}
				case "Gtk.Table": {
					Gtk.Table t = new Gtk.Table (1, 1, false);
					t.Attach (c, 0, 1, 0, 1);
					return t;
				}
				case "Gtk.ButtonBox":
					return new Gtk.HButtonBox ();
			}
			if (box != null) {
				box.Add (c);
				return box;
			} else {
				Stetic.CustomWidget custom = new Stetic.CustomWidget ();
				if (custom.Child != null)
					custom.Remove (custom.Child);
				custom.Add (c);
				return custom;
			}
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.Datei = new Gtk.Action("Datei", Mono.Unix.Catalog.GetString("_Datei"), null, null);
     this.Datei.ShortLabel = Mono.Unix.Catalog.GetString("_Datei");
     w2.Add(this.Datei, null);
     this.Aktionen = new Gtk.Action("Aktionen", Mono.Unix.Catalog.GetString("_Aktionen"), null, null);
     this.Aktionen.ShortLabel = Mono.Unix.Catalog.GetString("_Aktionen");
     w2.Add(this.Aktionen, null);
     this.Hilfe = new Gtk.Action("Hilfe", Mono.Unix.Catalog.GetString("_Hilfe"), null, null);
     this.Hilfe.ShortLabel = Mono.Unix.Catalog.GetString("_Hilfe");
     w2.Add(this.Hilfe, "<Control>question");
     this.Revert = new Gtk.Action("Revert", Mono.Unix.Catalog.GetString("_Revert"), null, "gtk-undo");
     this.Revert.ShortLabel = Mono.Unix.Catalog.GetString("_Revert");
     w2.Add(this.Revert, null);
     this.LA = new Gtk.Action("LA", Mono.Unix.Catalog.GetString("_LA"), null, "gtk-delete");
     this.LA.ShortLabel = Mono.Unix.Catalog.GetString("_LA");
     w2.Add(this.LA, null);
     this.SLA = new Gtk.Action("SLA", Mono.Unix.Catalog.GetString("_SLA"), null, "gtk-delete");
     this.SLA.ShortLabel = Mono.Unix.Catalog.GetString("_SLA");
     w2.Add(this.SLA, null);
     this.Beobachten = new Gtk.Action("Beobachten", Mono.Unix.Catalog.GetString("_Beobachten"), null, "gtk-find");
     this.Beobachten.ShortLabel = Mono.Unix.Catalog.GetString("_Beobachten");
     w2.Add(this.Beobachten, null);
     this.VHinweis = new Gtk.Action("VHinweis", Mono.Unix.Catalog.GetString("_VHinweis"), null, "gtk-dialog-error");
     this.VHinweis.ShortLabel = Mono.Unix.Catalog.GetString("_VHinweis");
     w2.Add(this.VHinweis, null);
     this.home = new Gtk.Action("home", null, null, "gtk-home");
     w2.Add(this.home, null);
     this.spellCheck = new Gtk.Action("spellCheck", null, null, "gtk-spell-check");
     w2.Add(this.spellCheck, null);
     this.quit = new Gtk.Action("quit", null, null, "gtk-quit");
     w2.Add(this.quit, null);
     this.dialogQuestion = new Gtk.Action("dialogQuestion", null, null, "gtk-dialog-question");
     w2.Add(this.dialogQuestion, null);
     this.Beenden = new Gtk.Action("Beenden", Mono.Unix.Catalog.GetString("Beenden"), null, null);
     this.Beenden.ShortLabel = Mono.Unix.Catalog.GetString("Beenden");
     w2.Add(this.Beenden, "<Control>q");
     this.LA1 = new Gtk.Action("LA1", Mono.Unix.Catalog.GetString("LA+"), null, null);
     this.LA1.ShortLabel = Mono.Unix.Catalog.GetString("LA+");
     w2.Add(this.LA1, "<Alt>l");
     this.SLA1 = new Gtk.Action("SLA1", Mono.Unix.Catalog.GetString("SLA+"), null, null);
     this.SLA1.ShortLabel = Mono.Unix.Catalog.GetString("SLA+");
     w2.Add(this.SLA1, "<Alt>s");
     this.Vandal = new Gtk.Action("Vandal", Mono.Unix.Catalog.GetString("Vandal+"), null, null);
     this.Vandal.ShortLabel = Mono.Unix.Catalog.GetString("Vandal+");
     w2.Add(this.Vandal, "<Alt>v");
     this.ber = new Gtk.Action("ber", Mono.Unix.Catalog.GetString("Über"), null, null);
     this.ber.ShortLabel = Mono.Unix.Catalog.GetString("Über");
     w2.Add(this.ber, null);
     this.Artikel = new Gtk.Action("Artikel", Mono.Unix.Catalog.GetString("_Artikel"), null, null);
     this.Artikel.ShortLabel = Mono.Unix.Catalog.GetString("_Artikel");
     w2.Add(this.Artikel, null);
     this.LokalSpeichern = new Gtk.Action("LokalSpeichern", Mono.Unix.Catalog.GetString("_Lokal Speichern"), null, "gtk-save");
     this.LokalSpeichern.ShortLabel = Mono.Unix.Catalog.GetString("_Lokal Speichern");
     w2.Add(this.LokalSpeichern, null);
     this.OnlineSpeichern = new Gtk.Action("OnlineSpeichern", Mono.Unix.Catalog.GetString("_Online Speichern"), null, "gtk-network");
     this.OnlineSpeichern.ShortLabel = Mono.Unix.Catalog.GetString("_Online Speichern");
     w2.Add(this.OnlineSpeichern, null);
     this.Aktualisieren = new Gtk.Action("Aktualisieren", Mono.Unix.Catalog.GetString("_Aktualisieren"), null, "gtk-refresh");
     this.Aktualisieren.ShortLabel = Mono.Unix.Catalog.GetString("_Aktualisieren");
     w2.Add(this.Aktualisieren, null);
     this.Bearbeiten = new Gtk.Action("Bearbeiten", Mono.Unix.Catalog.GetString("_Bearbeiten"), null, null);
     this.Bearbeiten.ShortLabel = Mono.Unix.Catalog.GetString("_Bearbeiten");
     w2.Add(this.Bearbeiten, null);
     this.Einstellungen = new Gtk.Action("Einstellungen", Mono.Unix.Catalog.GetString("_Einstellungen"), null, null);
     this.Einstellungen.ShortLabel = Mono.Unix.Catalog.GetString("_Einstellungen");
     w2.Add(this.Einstellungen, "<Control>o");
     this.add = new Gtk.Action("add", null, null, "gtk-add");
     w2.Add(this.add, null);
     this.remove = new Gtk.Action("remove", null, null, "gtk-remove");
     w2.Add(this.remove, null);
     this.clear = new Gtk.Action("clear", null, null, "gtk-clear");
     w2.Add(this.clear, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Wikifighter");
     this.Icon = Gtk.IconTheme.Default.LoadIcon("stock_smiley-18", 16, 0);
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.main_vbox = new Gtk.VBox();
     this.main_vbox.Name = "main_vbox";
     // Container child main_vbox.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar'><menu action='Datei'><menuitem action='Beenden'/></menu><menu action='Bearbeiten'><menuitem action='Einstellungen'/></menu><menu action='Aktionen'><menuitem action='LA1'/><menuitem action='SLA1'/><menuitem action='Vandal'/></menu><menu action='Hilfe'><menuitem action='ber'/></menu></menubar></ui>");
     this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar")));
     this.menubar.Name = "menubar";
     this.main_vbox.Add(this.menubar);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.main_vbox[this.menubar]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child main_vbox.Gtk.Box+BoxChild
     this.browserbox = new Gtk.VBox();
     this.browserbox.Name = "browserbox";
     // Container child browserbox.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='geckotoolbar'><toolitem action='Revert'/><toolitem action='SLA'/><toolitem action='Beobachten'/><toolitem action='VHinweis'/><toolitem action='spellCheck'/><toolitem action='dialogQuestion'/><toolitem action='home'/><toolitem action='quit'/></toolbar></ui>");
     this.geckotoolbar = ((Gtk.Toolbar)(w1.GetWidget("/geckotoolbar")));
     this.geckotoolbar.Name = "geckotoolbar";
     this.geckotoolbar.ShowArrow = false;
     this.geckotoolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.geckotoolbar.IconSize = ((Gtk.IconSize)(3));
     this.browserbox.Add(this.geckotoolbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.browserbox[this.geckotoolbar]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child browserbox.Gtk.Box+BoxChild
     this.navigationbox = new Gtk.HBox();
     this.navigationbox.Name = "navigationbox";
     this.navigationbox.Spacing = 3;
     this.navigationbox.BorderWidth = ((uint)(1));
     // Container child navigationbox.Gtk.Box+BoxChild
     this.back = new Gtk.Button();
     this.back.CanFocus = true;
     this.back.Name = "back";
     this.back.UseStock = true;
     this.back.UseUnderline = true;
     this.back.Label = "gtk-go-back";
     this.navigationbox.Add(this.back);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.navigationbox[this.back]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child navigationbox.Gtk.Box+BoxChild
     this.forward = new Gtk.Button();
     this.forward.CanFocus = true;
     this.forward.Name = "forward";
     this.forward.UseStock = true;
     this.forward.UseUnderline = true;
     this.forward.Label = "gtk-go-forward";
     this.navigationbox.Add(this.forward);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.navigationbox[this.forward]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     // Container child navigationbox.Gtk.Box+BoxChild
     this.urlentry = Gtk.ComboBoxEntry.NewText();
     this.urlentry.Name = "urlentry";
     this.urlentry.Active = 0;
     this.navigationbox.Add(this.urlentry);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.navigationbox[this.urlentry]));
     w7.Position = 2;
     // Container child navigationbox.Gtk.Box+BoxChild
     this.go = new Gtk.Button();
     this.go.CanFocus = true;
     this.go.Name = "go";
     this.go.UseUnderline = true;
     // Container child go.Gtk.Container+ContainerChild
     Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w8.Name = "GtkAlignment2";
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     Gtk.HBox w9 = new Gtk.HBox();
     w9.Name = "GtkHBox3";
     w9.Spacing = 2;
     // Container child GtkHBox3.Gtk.Container+ContainerChild
     Gtk.Image w10 = new Gtk.Image();
     w10.Name = "image37";
     w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0);
     w9.Add(w10);
     // Container child GtkHBox3.Gtk.Container+ContainerChild
     Gtk.Label w12 = new Gtk.Label();
     w12.Name = "GtkLabel3";
     w12.LabelProp = Mono.Unix.Catalog.GetString("_Go!");
     w12.UseUnderline = true;
     w9.Add(w12);
     w8.Add(w9);
     this.go.Add(w8);
     this.navigationbox.Add(this.go);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.navigationbox[this.go]));
     w16.Position = 3;
     w16.Expand = false;
     w16.Fill = false;
     this.browserbox.Add(this.navigationbox);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.browserbox[this.navigationbox]));
     w17.Position = 1;
     w17.Expand = false;
     w17.Fill = false;
     // Container child browserbox.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     // 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));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w18 = new Gtk.Viewport();
     w18.Name = "GtkViewport";
     w18.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.vpaned1 = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name = "vpaned1";
     this.vpaned1.Position = 125;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.hbox5 = new Gtk.HBox();
     this.hbox5.Name = "hbox5";
     // Container child hbox5.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 135;
     // Container child hpaned1.Gtk.Paned+PanedChild
     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.GtkAlignment5 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment5.Name = "GtkAlignment5";
     this.GtkAlignment5.LeftPadding = ((uint)(12));
     // Container child GtkAlignment5.Gtk.Container+ContainerChild
     this.image44 = new Gtk.Image();
     this.image44.Name = "image44";
     this.GtkAlignment5.Add(this.image44);
     this.frame5.Add(this.GtkAlignment5);
     this.GtkLabel10 = new Gtk.Label();
     this.GtkLabel10.Events = ((Gdk.EventMask)(256));
     this.GtkLabel10.Name = "GtkLabel10";
     this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>RC-Status</b>");
     this.GtkLabel10.UseMarkup = true;
     this.frame5.LabelWidget = this.GtkLabel10;
     this.hpaned1.Add(this.frame5);
     Gtk.Paned.PanedChild w21 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.frame5]));
     w21.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.white_black_watch_notebook = new Gtk.Notebook();
     this.white_black_watch_notebook.CanFocus = true;
     this.white_black_watch_notebook.Name = "white_black_watch_notebook";
     this.white_black_watch_notebook.TabPos = ((Gtk.PositionType)(1));
     // Container child white_black_watch_notebook.Gtk.Notebook+NotebookChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     // Container child hbox1.Gtk.Box+BoxChild
     this.whitelist_scrolledwindow = new Gtk.ScrolledWindow();
     this.whitelist_scrolledwindow.CanFocus = true;
     this.whitelist_scrolledwindow.Name = "whitelist_scrolledwindow";
     this.whitelist_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.whitelist_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child whitelist_scrolledwindow.Gtk.Container+ContainerChild
     this.whitelist_treeview = new Gtk.TreeView();
     this.whitelist_treeview.CanFocus = true;
     this.whitelist_treeview.Name = "whitelist_treeview";
     this.whitelist_scrolledwindow.Add(this.whitelist_treeview);
     this.hbox1.Add(this.whitelist_scrolledwindow);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.whitelist_scrolledwindow]));
     w23.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='whitelist_toolbar'><toolitem action='add'/><toolitem action='remove'/><toolitem action='clear'/></toolbar></ui>");
     this.whitelist_toolbar = ((Gtk.Toolbar)(w1.GetWidget("/whitelist_toolbar")));
     this.whitelist_toolbar.Name = "whitelist_toolbar";
     this.whitelist_toolbar.Orientation = ((Gtk.Orientation)(1));
     this.whitelist_toolbar.ShowArrow = false;
     this.whitelist_toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.whitelist_toolbar.IconSize = ((Gtk.IconSize)(3));
     this.hbox1.Add(this.whitelist_toolbar);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox1[this.whitelist_toolbar]));
     w24.Position = 1;
     w24.Expand = false;
     w24.Fill = false;
     this.white_black_watch_notebook.Add(this.hbox1);
     Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.white_black_watch_notebook[this.hbox1]));
     w25.TabExpand = false;
     // Notebook tab
     this.whitelist_label = new Gtk.Label();
     this.whitelist_label.Name = "whitelist_label";
     this.whitelist_label.LabelProp = Mono.Unix.Catalog.GetString("Whitelist");
     this.white_black_watch_notebook.SetTabLabel(this.hbox1, this.whitelist_label);
     // Container child white_black_watch_notebook.Gtk.Notebook+NotebookChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     // Container child hbox2.Gtk.Box+BoxChild
     this.scrolledwindow4 = new Gtk.ScrolledWindow();
     this.scrolledwindow4.CanFocus = true;
     this.scrolledwindow4.Name = "scrolledwindow4";
     this.scrolledwindow4.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow4.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child scrolledwindow4.Gtk.Container+ContainerChild
     Gtk.Viewport w26 = new Gtk.Viewport();
     w26.Name = "GtkViewport4";
     w26.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport4.Gtk.Container+ContainerChild
     this.blacklist_scrolledwindow = new Gtk.ScrolledWindow();
     this.blacklist_scrolledwindow.CanFocus = true;
     this.blacklist_scrolledwindow.Name = "blacklist_scrolledwindow";
     this.blacklist_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.blacklist_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child blacklist_scrolledwindow.Gtk.Container+ContainerChild
     this.blacklist_treeview = new Gtk.TreeView();
     this.blacklist_treeview.CanFocus = true;
     this.blacklist_treeview.Name = "blacklist_treeview";
     this.blacklist_scrolledwindow.Add(this.blacklist_treeview);
     w26.Add(this.blacklist_scrolledwindow);
     this.scrolledwindow4.Add(w26);
     this.hbox2.Add(this.scrolledwindow4);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox2[this.scrolledwindow4]));
     w30.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='blacklist_toolbar'><toolitem action='add'/><toolitem action='remove'/><toolitem action='clear'/></toolbar></ui>");
     this.blacklist_toolbar = ((Gtk.Toolbar)(w1.GetWidget("/blacklist_toolbar")));
     this.blacklist_toolbar.Name = "blacklist_toolbar";
     this.blacklist_toolbar.Orientation = ((Gtk.Orientation)(1));
     this.blacklist_toolbar.ShowArrow = false;
     this.blacklist_toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.blacklist_toolbar.IconSize = ((Gtk.IconSize)(3));
     this.hbox2.Add(this.blacklist_toolbar);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox2[this.blacklist_toolbar]));
     w31.Position = 1;
     w31.Expand = false;
     w31.Fill = false;
     this.white_black_watch_notebook.Add(this.hbox2);
     Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.white_black_watch_notebook[this.hbox2]));
     w32.Position = 1;
     w32.TabExpand = false;
     // Notebook tab
     this.blacklist_label = new Gtk.Label();
     this.blacklist_label.Name = "blacklist_label";
     this.blacklist_label.LabelProp = Mono.Unix.Catalog.GetString("Blacklist");
     this.white_black_watch_notebook.SetTabLabel(this.hbox2, this.blacklist_label);
     // Container child white_black_watch_notebook.Gtk.Notebook+NotebookChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     // Container child hbox4.Gtk.Box+BoxChild
     this.watchlist_scrolledwindow = new Gtk.ScrolledWindow();
     this.watchlist_scrolledwindow.CanFocus = true;
     this.watchlist_scrolledwindow.Name = "watchlist_scrolledwindow";
     this.watchlist_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.watchlist_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child watchlist_scrolledwindow.Gtk.Container+ContainerChild
     this.watchlist_treeview = new Gtk.TreeView();
     this.watchlist_treeview.CanFocus = true;
     this.watchlist_treeview.Name = "watchlist_treeview";
     this.watchlist_scrolledwindow.Add(this.watchlist_treeview);
     this.hbox4.Add(this.watchlist_scrolledwindow);
     Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox4[this.watchlist_scrolledwindow]));
     w34.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='blacklist_toolbar1'><toolitem action='add'/><toolitem action='remove'/><toolitem action='clear'/></toolbar></ui>");
     this.blacklist_toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/blacklist_toolbar1")));
     this.blacklist_toolbar1.Name = "blacklist_toolbar1";
     this.blacklist_toolbar1.Orientation = ((Gtk.Orientation)(1));
     this.blacklist_toolbar1.ShowArrow = false;
     this.blacklist_toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.blacklist_toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.hbox4.Add(this.blacklist_toolbar1);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox4[this.blacklist_toolbar1]));
     w35.Position = 1;
     w35.Expand = false;
     w35.Fill = false;
     this.white_black_watch_notebook.Add(this.hbox4);
     Gtk.Notebook.NotebookChild w36 = ((Gtk.Notebook.NotebookChild)(this.white_black_watch_notebook[this.hbox4]));
     w36.Position = 2;
     w36.TabExpand = false;
     // Notebook tab
     this.watchlist_label = new Gtk.Label();
     this.watchlist_label.Name = "watchlist_label";
     this.watchlist_label.LabelProp = Mono.Unix.Catalog.GetString("Beobacht-\nungsliste");
     this.white_black_watch_notebook.SetTabLabel(this.hbox4, this.watchlist_label);
     this.hpaned1.Add(this.white_black_watch_notebook);
     this.hbox5.Add(this.hpaned1);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox5[this.hpaned1]));
     w38.Position = 0;
     this.vpaned1.Add(this.hbox5);
     Gtk.Paned.PanedChild w39 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.hbox5]));
     w39.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow3 = new Gtk.ScrolledWindow();
     this.scrolledwindow3.CanFocus = true;
     this.scrolledwindow3.Name = "scrolledwindow3";
     this.scrolledwindow3.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child scrolledwindow3.Gtk.Container+ContainerChild
     this.rc_view = new Gtk.TreeView();
     this.rc_view.CanFocus = true;
     this.rc_view.Name = "rc_view";
     this.scrolledwindow3.Add(this.rc_view);
     this.vpaned1.Add(this.scrolledwindow3);
     w18.Add(this.vpaned1);
     this.scrolledwindow2.Add(w18);
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w44 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w44.TabExpand = false;
     // Notebook tab
     this.notebook_rc_label = new Gtk.Label();
     this.notebook_rc_label.Name = "notebook_rc_label";
     this.notebook_rc_label.LabelProp = Mono.Unix.Catalog.GetString("Letzte Änderungen");
     this.notebook.SetTabLabel(this.scrolledwindow2, this.notebook_rc_label);
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.geckobox = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.geckobox.Name = "geckobox";
     this.notebook.Add(this.geckobox);
     Gtk.Notebook.NotebookChild w45 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.geckobox]));
     w45.Position = 1;
     w45.TabExpand = false;
     // Notebook tab
     this.notebook_browser_label = new Gtk.Label();
     this.notebook_browser_label.Name = "notebook_browser_label";
     this.notebook_browser_label.LabelProp = Mono.Unix.Catalog.GetString("Browser");
     this.notebook.SetTabLabel(this.geckobox, this.notebook_browser_label);
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='Artikel'><menuitem action='LokalSpeichern'/><menuitem action='OnlineSpeichern'/><menuitem action='Aktualisieren'/></menu></menubar></ui>");
     this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox1.Add(this.menubar2);
     Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2]));
     w46.Position = 0;
     w46.Expand = false;
     w46.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox1.Add(this.toolbar1);
     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
     w47.Position = 1;
     w47.Expand = false;
     w47.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.scrolledwindow6 = new Gtk.ScrolledWindow();
     this.scrolledwindow6.CanFocus = true;
     this.scrolledwindow6.Name = "scrolledwindow6";
     this.scrolledwindow6.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow6.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow6.ShadowType = ((Gtk.ShadowType)(2));
     // Container child scrolledwindow6.Gtk.Container+ContainerChild
     this.textview1 = new Gtk.TextView();
     this.textview1.CanFocus = true;
     this.textview1.Name = "textview1";
     this.textview1.WrapMode = ((Gtk.WrapMode)(3));
     this.scrolledwindow6.Add(this.textview1);
     this.vbox1.Add(this.scrolledwindow6);
     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow6]));
     w49.Position = 2;
     this.notebook.Add(this.vbox1);
     Gtk.Notebook.NotebookChild w50 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.vbox1]));
     w50.Position = 2;
     w50.TabExpand = false;
     // Notebook tab
     this.notebook_artikel_label = new Gtk.Label();
     this.notebook_artikel_label.Name = "notebook_artikel_label";
     this.notebook_artikel_label.LabelProp = Mono.Unix.Catalog.GetString("Artikeleditor");
     this.notebook.SetTabLabel(this.vbox1, this.notebook_artikel_label);
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.history_treeview = new Gtk.TreeView();
     this.history_treeview.CanFocus = true;
     this.history_treeview.Name = "history_treeview";
     this.notebook.Add(this.history_treeview);
     Gtk.Notebook.NotebookChild w51 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.history_treeview]));
     w51.Position = 3;
     w51.TabExpand = false;
     // Notebook tab
     this.notebook_history_label = new Gtk.Label();
     this.notebook_history_label.Name = "notebook_history_label";
     this.notebook_history_label.LabelProp = Mono.Unix.Catalog.GetString("History");
     this.notebook.SetTabLabel(this.history_treeview, this.notebook_history_label);
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.table4 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table4.Name = "table4";
     // Container child table4.Gtk.Table+TableChild
     this.diff_new_scrolled_window = new Gtk.ScrolledWindow();
     this.diff_new_scrolled_window.CanFocus = true;
     this.diff_new_scrolled_window.Name = "diff_new_scrolled_window";
     this.diff_new_scrolled_window.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.diff_new_scrolled_window.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child diff_new_scrolled_window.Gtk.Container+ContainerChild
     Gtk.Viewport w52 = new Gtk.Viewport();
     w52.Name = "GtkViewport1";
     w52.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.diff_new_frame = new Gtk.Frame();
     this.diff_new_frame.Name = "diff_new_frame";
     this.diff_new_frame.ShadowType = ((Gtk.ShadowType)(0));
     this.diff_new_frame.LabelXalign = 0F;
     // Container child diff_new_frame.Gtk.Container+ContainerChild
     this.GtkAlignment11 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment11.Name = "GtkAlignment11";
     this.GtkAlignment11.LeftPadding = ((uint)(12));
     // Container child GtkAlignment11.Gtk.Container+ContainerChild
     this.diff_new_treeview = new Gtk.TreeView();
     this.diff_new_treeview.CanFocus = true;
     this.diff_new_treeview.Name = "diff_new_treeview";
     this.GtkAlignment11.Add(this.diff_new_treeview);
     this.diff_new_frame.Add(this.GtkAlignment11);
     this.diff_new_label = new Gtk.Label();
     this.diff_new_label.Events = ((Gdk.EventMask)(256));
     this.diff_new_label.Name = "diff_new_label";
     this.diff_new_label.LabelProp = Mono.Unix.Catalog.GetString("<b>neue Verion von</b>");
     this.diff_new_label.UseMarkup = true;
     this.diff_new_frame.LabelWidget = this.diff_new_label;
     w52.Add(this.diff_new_frame);
     this.diff_new_scrolled_window.Add(w52);
     this.table4.Add(this.diff_new_scrolled_window);
     Gtk.Table.TableChild w57 = ((Gtk.Table.TableChild)(this.table4[this.diff_new_scrolled_window]));
     w57.TopAttach = ((uint)(1));
     w57.BottomAttach = ((uint)(2));
     w57.LeftAttach = ((uint)(1));
     w57.RightAttach = ((uint)(2));
     // Container child table4.Gtk.Table+TableChild
     this.diff_old_scrolled_window = new Gtk.ScrolledWindow();
     this.diff_old_scrolled_window.CanFocus = true;
     this.diff_old_scrolled_window.Name = "diff_old_scrolled_window";
     this.diff_old_scrolled_window.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.diff_old_scrolled_window.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     // Container child diff_old_scrolled_window.Gtk.Container+ContainerChild
     Gtk.Viewport w58 = new Gtk.Viewport();
     w58.Name = "GtkViewport2";
     w58.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.diff_old_frame = new Gtk.Frame();
     this.diff_old_frame.Name = "diff_old_frame";
     this.diff_old_frame.ShadowType = ((Gtk.ShadowType)(0));
     this.diff_old_frame.LabelXalign = 0F;
     // Container child diff_old_frame.Gtk.Container+ContainerChild
     this.GtkAlignment10 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment10.Name = "GtkAlignment10";
     this.GtkAlignment10.LeftPadding = ((uint)(12));
     // Container child GtkAlignment10.Gtk.Container+ContainerChild
     this.diff_old_treeview = new Gtk.TreeView();
     this.diff_old_treeview.CanFocus = true;
     this.diff_old_treeview.Name = "diff_old_treeview";
     this.GtkAlignment10.Add(this.diff_old_treeview);
     this.diff_old_frame.Add(this.GtkAlignment10);
     this.diff_old_label = new Gtk.Label();
     this.diff_old_label.Events = ((Gdk.EventMask)(256));
     this.diff_old_label.Name = "diff_old_label";
     this.diff_old_label.LabelProp = Mono.Unix.Catalog.GetString("<b>Alte Version von</b>");
     this.diff_old_label.UseMarkup = true;
     this.diff_old_frame.LabelWidget = this.diff_old_label;
     w58.Add(this.diff_old_frame);
     this.diff_old_scrolled_window.Add(w58);
     this.table4.Add(this.diff_old_scrolled_window);
     Gtk.Table.TableChild w63 = ((Gtk.Table.TableChild)(this.table4[this.diff_old_scrolled_window]));
     w63.TopAttach = ((uint)(1));
     w63.BottomAttach = ((uint)(2));
     // Container child table4.Gtk.Table+TableChild
     this.hbuttonbox2 = new Gtk.HButtonBox();
     this.hbuttonbox2.Name = "hbuttonbox2";
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.diff_old_back_button1 = new Gtk.Button();
     this.diff_old_back_button1.WidthRequest = 80;
     this.diff_old_back_button1.CanFocus = true;
     this.diff_old_back_button1.Name = "diff_old_back_button1";
     this.diff_old_back_button1.UseStock = true;
     this.diff_old_back_button1.UseUnderline = true;
     this.diff_old_back_button1.Label = "gtk-go-back";
     this.hbuttonbox2.Add(this.diff_old_back_button1);
     Gtk.ButtonBox.ButtonBoxChild w64 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.diff_old_back_button1]));
     w64.Expand = false;
     w64.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button47 = new Gtk.Button();
     this.button47.WidthRequest = 100;
     this.button47.CanFocus = true;
     this.button47.Name = "button47";
     this.button47.UseUnderline = true;
     // Container child button47.Gtk.Container+ContainerChild
     Gtk.Alignment w65 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w65.Name = "GtkAlignment8";
     // Container child GtkAlignment8.Gtk.Container+ContainerChild
     Gtk.HBox w66 = new Gtk.HBox();
     w66.Name = "GtkHBox8";
     w66.Spacing = 2;
     // Container child GtkHBox8.Gtk.Container+ContainerChild
     Gtk.Image w67 = new Gtk.Image();
     w67.Name = "image38";
     w67.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-clear", 16, 0);
     w66.Add(w67);
     // Container child GtkHBox8.Gtk.Container+ContainerChild
     Gtk.Label w69 = new Gtk.Label();
     w69.Name = "GtkLabel13";
     w69.LabelProp = Mono.Unix.Catalog.GetString("_Entfernen");
     w69.UseUnderline = true;
     w66.Add(w69);
     w65.Add(w66);
     this.button47.Add(w65);
     this.hbuttonbox2.Add(this.button47);
     Gtk.ButtonBox.ButtonBoxChild w73 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.button47]));
     w73.Position = 1;
     w73.Expand = false;
     w73.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.diff_new_next_button = new Gtk.Button();
     this.diff_new_next_button.WidthRequest = 80;
     this.diff_new_next_button.CanFocus = true;
     this.diff_new_next_button.Name = "diff_new_next_button";
     this.diff_new_next_button.UseStock = true;
     this.diff_new_next_button.UseUnderline = true;
     this.diff_new_next_button.Label = "gtk-go-forward";
     this.hbuttonbox2.Add(this.diff_new_next_button);
     Gtk.ButtonBox.ButtonBoxChild w74 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.diff_new_next_button]));
     w74.Position = 2;
     w74.Expand = false;
     w74.Fill = false;
     this.table4.Add(this.hbuttonbox2);
     Gtk.Table.TableChild w75 = ((Gtk.Table.TableChild)(this.table4[this.hbuttonbox2]));
     w75.LeftAttach = ((uint)(1));
     w75.RightAttach = ((uint)(2));
     w75.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.hbuttonbox3 = new Gtk.HButtonBox();
     this.hbuttonbox3.Name = "hbuttonbox3";
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.diff_old_back_button = new Gtk.Button();
     this.diff_old_back_button.WidthRequest = 80;
     this.diff_old_back_button.CanFocus = true;
     this.diff_old_back_button.Name = "diff_old_back_button";
     this.diff_old_back_button.UseStock = true;
     this.diff_old_back_button.UseUnderline = true;
     this.diff_old_back_button.Label = "gtk-go-back";
     this.hbuttonbox3.Add(this.diff_old_back_button);
     Gtk.ButtonBox.ButtonBoxChild w76 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.diff_old_back_button]));
     w76.Expand = false;
     w76.Fill = false;
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.diff_old_revert_button = new Gtk.Button();
     this.diff_old_revert_button.WidthRequest = 100;
     this.diff_old_revert_button.CanFocus = true;
     this.diff_old_revert_button.Name = "diff_old_revert_button";
     this.diff_old_revert_button.UseStock = true;
     this.diff_old_revert_button.UseUnderline = true;
     this.diff_old_revert_button.Label = "gtk-undo";
     this.hbuttonbox3.Add(this.diff_old_revert_button);
     Gtk.ButtonBox.ButtonBoxChild w77 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.diff_old_revert_button]));
     w77.Position = 1;
     w77.Expand = false;
     w77.Fill = false;
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.diff_old_next_button = new Gtk.Button();
     this.diff_old_next_button.WidthRequest = 80;
     this.diff_old_next_button.CanFocus = true;
     this.diff_old_next_button.Name = "diff_old_next_button";
     this.diff_old_next_button.UseStock = true;
     this.diff_old_next_button.UseUnderline = true;
     this.diff_old_next_button.Label = "gtk-go-forward";
     this.hbuttonbox3.Add(this.diff_old_next_button);
     Gtk.ButtonBox.ButtonBoxChild w78 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.diff_old_next_button]));
     w78.Position = 2;
     w78.Expand = false;
     w78.Fill = false;
     this.table4.Add(this.hbuttonbox3);
     Gtk.Table.TableChild w79 = ((Gtk.Table.TableChild)(this.table4[this.hbuttonbox3]));
     w79.YOptions = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.table4);
     Gtk.Notebook.NotebookChild w80 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.table4]));
     w80.Position = 4;
     w80.TabExpand = false;
     // Notebook tab
     this.notebook_diff_label = new Gtk.Label();
     this.notebook_diff_label.Name = "notebook_diff_label";
     this.notebook_diff_label.LabelProp = Mono.Unix.Catalog.GetString("Diff");
     this.notebook.SetTabLabel(this.table4, this.notebook_diff_label);
     // Notebook tab
     Gtk.Label w81 = new Gtk.Label();
     w81.Visible = true;
     this.notebook.Add(w81);
     this.notebook_user_label = new Gtk.Label();
     this.notebook_user_label.Name = "notebook_user_label";
     this.notebook_user_label.LabelProp = Mono.Unix.Catalog.GetString("Benutzer");
     this.notebook.SetTabLabel(w81, this.notebook_user_label);
     this.browserbox.Add(this.notebook);
     Gtk.Box.BoxChild w82 = ((Gtk.Box.BoxChild)(this.browserbox[this.notebook]));
     w82.Position = 2;
     this.main_vbox.Add(this.browserbox);
     Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.main_vbox[this.browserbox]));
     w83.Position = 1;
     // Container child main_vbox.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 2;
     this.main_vbox.Add(this.statusbar1);
     Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.main_vbox[this.statusbar1]));
     w84.PackType = ((Gtk.PackType)(1));
     w84.Position = 2;
     w84.Expand = false;
     w84.Fill = false;
     this.Add(this.main_vbox);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 662;
     this.DefaultHeight = 653;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.Beenden.Activated += new System.EventHandler(this.onBeenden);
     this.Einstellungen.Activated += new System.EventHandler(this.OnEinstellungenActivated);
     this.urlentry.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnUrlentryKeyReleaseEvent);
     this.go.Clicked += new System.EventHandler(this.OnGoClicked);
 }
Beispiel #18
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.ColumnsEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.ColumnsEditorWidget";
     // Container child MonoDevelop.Database.Designer.ColumnsEditorWidget.Gtk.Container+ContainerChild
     this.hpaned          = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name     = "hpaned";
     this.hpaned.Position = 662;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vboxLeft         = new Gtk.VBox();
     this.vboxLeft.Name    = "vboxLeft";
     this.vboxLeft.Spacing = 6;
     // Container child vboxLeft.Gtk.Box+BoxChild
     this.scrolledwindowLeft                  = new Gtk.ScrolledWindow();
     this.scrolledwindowLeft.CanFocus         = true;
     this.scrolledwindowLeft.Name             = "scrolledwindowLeft";
     this.scrolledwindowLeft.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindowLeft.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindowLeft.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindowLeft.Gtk.Container+ContainerChild
     this.treeColumns                  = new Gtk.TreeView();
     this.treeColumns.CanFocus         = true;
     this.treeColumns.Name             = "treeColumns";
     this.treeColumns.HeadersClickable = true;
     this.scrolledwindowLeft.Add(this.treeColumns);
     this.vboxLeft.Add(this.scrolledwindowLeft);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vboxLeft[this.scrolledwindowLeft]));
     w2.Position = 0;
     // Container child vboxLeft.Gtk.Box+BoxChild
     this.hbuttonbox             = new Gtk.HButtonBox();
     this.hbuttonbox.Name        = "hbuttonbox";
     this.hbuttonbox.Spacing     = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd              = new Gtk.Button();
     this.buttonAdd.CanFocus     = true;
     this.buttonAdd.Name         = "buttonAdd";
     this.buttonAdd.UseStock     = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label        = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill   = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove              = new Gtk.Button();
     this.buttonRemove.Sensitive    = false;
     this.buttonRemove.CanFocus     = true;
     this.buttonRemove.Name         = "buttonRemove";
     this.buttonRemove.UseStock     = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label        = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonUp              = new Gtk.Button();
     this.buttonUp.Sensitive    = false;
     this.buttonUp.CanFocus     = true;
     this.buttonUp.Name         = "buttonUp";
     this.buttonUp.UseStock     = true;
     this.buttonUp.UseUnderline = true;
     this.buttonUp.Label        = "gtk-go-up";
     this.hbuttonbox.Add(this.buttonUp);
     Gtk.ButtonBox.ButtonBoxChild w5 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonUp]));
     w5.Position = 2;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonDown              = new Gtk.Button();
     this.buttonDown.Sensitive    = false;
     this.buttonDown.CanFocus     = true;
     this.buttonDown.Name         = "buttonDown";
     this.buttonDown.UseStock     = true;
     this.buttonDown.UseUnderline = true;
     this.buttonDown.Label        = "gtk-go-down";
     this.hbuttonbox.Add(this.buttonDown);
     Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonDown]));
     w6.Position = 3;
     w6.Expand   = false;
     w6.Fill     = false;
     this.vboxLeft.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vboxLeft[this.hbuttonbox]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     this.hpaned.Add(this.vboxLeft);
     Gtk.Paned.PanedChild w8 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vboxLeft]));
     w8.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.scrolledwindowRight                  = new Gtk.ScrolledWindow();
     this.scrolledwindowRight.CanFocus         = true;
     this.scrolledwindowRight.Name             = "scrolledwindowRight";
     this.scrolledwindowRight.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindowRight.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindowRight.ShadowType       = ((Gtk.ShadowType)(1));
     this.hpaned.Add(this.scrolledwindowRight);
     this.Add(this.hpaned);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.buttonAdd.Clicked    += new System.EventHandler(this.AddClicked);
     this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked);
     this.buttonUp.Clicked     += new System.EventHandler(this.UpClicked);
     this.buttonDown.Clicked   += new System.EventHandler(this.DownClicked);
 }
Beispiel #19
0
        public GroupChatView(GroupChatModel groupChat)
            : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            _OutputHPaned = new Gtk.HPaned();

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            _PersonScrolledWindow = sw;
            //sw.WidthRequest = 150;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            //tv.CanFocus = false;
            tv.BorderWidth = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn column;
            Gtk.CellRendererText cellr = new Gtk.CellRendererText();
            cellr.WidthChars = 12;
            column = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId = 0;
            column.Spacing = 0;
            column.SortIndicator = false;
            column.Sizing = Gtk.TreeViewColumnSizing.Autosize;
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model = liststore;
            tv.RowActivated += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame();
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox();

            _TopicTextView = new MessageTextView();
            _TopicTextView.Editable = false;
            _TopicTextView.WrapMode = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType = Gtk.ShadowType.In;
            // when using PolicyType.Never, it will try to grow but never shrinks!
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible = false;
            _TopicScrolledWindow.NoShowAll = true;
            _TopicScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful topic heigth
                Pango.Layout layout = _TopicTextView.CreatePangoLayout("Test Topic");
                int lineWidth, lineHeigth;
                layout.GetPixelSize(out lineWidth, out lineHeigth);
                var lineSpacing = _TopicTextView.PixelsAboveLines +
                                  _TopicTextView.PixelsBelowLines;
                var text = Topic != null ? Topic.ToString() : String.Empty;
                // hardcoded to 2 lines for now
                var newLines = text.Length > 0 ? 2 : 0;
                var bestSize = new Gtk.Requisition() {
                    Height = ((lineHeigth + lineSpacing) * newLines) + 2
                };
                args.Requisition = bestSize;
            };

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
 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);
 }
Beispiel #21
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // 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.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 85;
     // Container child hpaned1.Gtk.Paned+PanedChild
     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.folders_treeview          = new Gtk.TreeView();
     this.folders_treeview.CanFocus = true;
     this.folders_treeview.Name     = "folders_treeview";
     this.scrolledwindow2.Add(this.folders_treeview);
     this.hpaned1.Add(this.scrolledwindow2);
     Gtk.Paned.PanedChild w2 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow2]));
     w2.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vpaned1          = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name     = "vpaned1";
     this.vpaned1.Position = 85;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1            = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus   = true;
     this.scrolledwindow1.Name       = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.headers_treeview          = new Gtk.TreeView();
     this.headers_treeview.CanFocus = true;
     this.headers_treeview.Name     = "headers_treeview";
     this.scrolledwindow1.Add(this.headers_treeview);
     this.vpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.scrolledwindow1]));
     w4.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.msg_scrolledwindow                  = new Gtk.ScrolledWindow();
     this.msg_scrolledwindow.CanFocus         = true;
     this.msg_scrolledwindow.Name             = "msg_scrolledwindow";
     this.msg_scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.msg_scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.msg_scrolledwindow.ShadowType       = ((Gtk.ShadowType)(1));
     this.vpaned1.Add(this.msg_scrolledwindow);
     this.hpaned1.Add(this.vpaned1);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w7.Position = 0;
     // 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.progressbar      = new Gtk.ProgressBar();
     this.progressbar.Name = "progressbar";
     this.hbox1.Add(this.progressbar);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.progressbar]));
     w8.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.connect_button              = new Gtk.Button();
     this.connect_button.CanFocus     = true;
     this.connect_button.Name         = "connect_button";
     this.connect_button.UseUnderline = true;
     this.connect_button.Label        = Mono.Unix.Catalog.GetString("button1");
     this.hbox1.Add(this.connect_button);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox1[this.connect_button]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 530;
     this.DefaultHeight = 452;
     this.Show();
     this.DeleteEvent            += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.connect_button.Clicked += new System.EventHandler(this.OnConnectButtonClicked);
 }
        public CueSheetsView(CueSheetsSource ms)
        {
            MySource=ms;

            basedir=MySource.getCueSheetDir ();

            store = new CS_TrackListModel();
            view  = new CS_TrackListView(this);

            {
                ColumnController colc=view.ColumnController;
                int i,N;
                for(i=0,N=colc.Count;i<N;i++) {
                    CS_Column col=(CS_Column) colc[i];
                    col.WidthChanged+=delegate(object sender,EventArgs args) {
                        Hyena.Log.Information ("set-column-sizes="+_set_column_sizes);
                        if (_set_column_sizes<=0) {
                            _set_column_sizes=0;
                            MySource.setColumnWidth (col.id(),MySource.getSheet ().id (),col.Width);
                        } else {
                            _set_column_sizes-=1;
                        }
                    };
                }
            }

            view.SetModel(store);
            this.setColumnSizes(null);

            Hyena.Log.Information("New albumlist");
            aview=new CS_AlbumListView(this);
            aaview=new CS_ArtistListView();
            ccview=new CS_ComposerListView();
            gview=new CS_GenreListView();
            try {
            plsview=new CS_PlayListsView(this);
            } catch (System.Exception ex) {
                Hyena.Log.Error (ex.ToString ());
            }

            Hyena.Log.Information("init models");
            aview.SetModel (MySource.getAlbumModel ());
            aaview.SetModel (MySource.getArtistModel ());
            gview.SetModel (MySource.getGenreModel ());
            ccview.SetModel (MySource.getComposerModel());
            plsview.SetModel(MySource.getPlayListsModel());

            plsadmin=new CS_PlayListAdmin(plsview,MySource.getPlayListsModel(),MySource.getPlayListCollection());

            MySource.getGenreModel();
            Hyena.Log.Information("model albumlist");
            Hyena.Log.Information("albumlist initialized");

            aview.RowActivated+=new Hyena.Data.Gui.RowActivatedHandler<AlbumInfo>(EvtRowActivated);
            aview.Selection.Changed += HandleAviewSelectionChanged;
            gview.RowActivated+=new Hyena.Data.Gui.RowActivatedHandler<CS_GenreInfo>(EvtGenreActivated);
            aaview.RowActivated+=new Hyena.Data.Gui.RowActivatedHandler<ArtistInfo>(EvtArtistActivated);
            ccview.RowActivated+=new Hyena.Data.Gui.RowActivatedHandler<CS_ComposerInfo>(EvtComposerActivated);
            plsview.RowActivated+=new Hyena.Data.Gui.RowActivatedHandler<CS_PlayList>(EvtPlayListActivated);
            view.RowActivated+=new RowActivatedHandler<CueSheetEntry>(EvtTrackRowActivated);

            bar=new Gtk.Toolbar();
            if (basedir==null) {
                Hyena.Log.Information("basedir="+basedir);
                Gtk.Label lbl=new Gtk.Label();
                lbl.Markup="<b>You need to configure the CueSheets music directory first, using the right mouse button on the extension</b>";
                bar.Add (lbl);
            }
            filling=new Gtk.Label();
            bar.Add (filling);

            ascroll=new Gtk.ScrolledWindow();
            ascroll.Add (aview);
            aascroll=new Gtk.ScrolledWindow();
            aascroll.Add (aaview);
            tscroll=new Gtk.ScrolledWindow();
            tscroll.Add (view);
            gscroll=new Gtk.ScrolledWindow();
            gscroll.Add (gview);
            ccscroll=new Gtk.ScrolledWindow();
            ccscroll.Add(ccview);

            bool view_artist=true;
            Gtk.VBox vac=new Gtk.VBox();
            Gtk.Button vab=new Gtk.Button("Artists");
            vab.Clicked+=delegate(object sender,EventArgs args) {
                if (view_artist) {
                    view_artist=false;
                    vab.Label="Composers";
                    vac.Remove (aascroll);
                    vac.PackEnd (ccscroll);
                    ccscroll.ShowAll ();
                } else {
                    view_artist=true;
                    vab.Label="Artists";
                    vac.Remove (ccscroll);
                    vac.PackEnd (aascroll);
                    aascroll.ShowAll ();
                }
            };
            vac.PackStart (vab,false,false,0);
            vac.PackEnd (aascroll);

            hb=new Gtk.HPaned();
            hb.Add(gscroll);
            hb.Add (vac);
            hb1=new Gtk.HPaned();
            hb1.Add (hb);
            hb1.Add (ascroll);

            vp=new Gtk.VPaned();
            vp.Add (hb1);
            vp.Add (tscroll);

            Gtk.HPaned hppls=new Gtk.HPaned();
            hppls.Add1 (vp);
            hppls.Add2 (plsadmin);
            hbpls=hppls;

            {
                int hb_pls,hb_p,hb1_p,vp_p;
                MySource.getPositions (out hb_pls,out hb_p,out hb1_p,out vp_p);
                hppls.Position=hb_pls;
                hb.Position=hb_p;
                hb1.Position=hb1_p;
                vp.Position=vp_p;
            }

            box   = new Gtk.VBox();
            box.PackStart (bar,false,true,0);
            box.PackStart (hppls);
            box.ShowAll();

            GLib.Timeout.Add ((uint) 1000,(GLib.TimeoutHandler) GardDividers);
            GLib.Timeout.Add ((uint) timeout,(GLib.TimeoutHandler) PositionDisplay);

            fill ();
        }
Beispiel #23
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);
 }
Beispiel #24
0
        private void BuildNotebook()
        {
            var vBox = new Gtk.VBox( false, 5 );
            var hBox = new Gtk.HPaned();
            this.nbDocPages = new Gtk.Notebook();
            this.nbDocPages.SwitchPage += (o, args) => this.OnCurrentPageChanged();

            // Text view for the document
            var swScrollText = new Gtk.ScrolledWindow();
            this.txtDocument = new Gtk.TextView { Editable = false };
            swScrollText.AddWithViewport( this.txtDocument );
            this.txtDocument.FocusOutEvent += (o, args) => this.StoreQuestionText();

            // Test treeview
            this.tvDocument = new Gtk.TreeView();
            var swScroll = new Gtk.ScrolledWindow();
            var frmTest = new Gtk.Frame( "Test" );
            ( (Gtk.Label) frmTest.LabelWidget ).Markup = "<b>Test</b>";
            frmTest.Add( swScroll );
            swScroll.AddWithViewport( this.tvDocument );

            // Frame question
            var frmQuestion = new Gtk.Frame( "Question" );
            var swScrolledQuestion = new Gtk.ScrolledWindow();
            ( (Gtk.Label) frmQuestion.LabelWidget ).Markup = "<b>Question</b>";
            this.edQuestionText = new Gtk.TextView();
            this.edQuestionText.KeyReleaseEvent += (o, args) => this.OnQuestionTextChanged();
            swScrolledQuestion.AddWithViewport( edQuestionText );
            frmQuestion.Add( swScrolledQuestion );
            vBox.PackStart( frmQuestion, false, false, 5 );

            // Frame answers
            var bttAnswers = new Gtk.HButtonBox();
            var vBoxAnswers = new Gtk.VBox( false, 5 );
            var frmAnswer = new Gtk.Frame( "Answer" );
            var hBoxAnswers = new Gtk.HBox( false, 5 );
            var hBoxCorrect = new Gtk.HBox( false, 5 );
            var swScrolledAnswers = new Gtk.ScrolledWindow();
            ( (Gtk.Label) frmAnswer.LabelWidget ).Markup = "<b>Answer</b>";
            this.tvAnswers = new Gtk.TreeView();
            swScrolledAnswers.Add( this.tvAnswers );
            this.btAddAnswer = new Gtk.Button( new Gtk.Image( this.iconAdd.ScaleSimple( 16, 16, InterpType.Bilinear ) ) );
            this.btAddAnswer.Clicked += (sender, e) => this.AddAnswer();
            this.btRemoveAnswer = new Gtk.Button( new Gtk.Image( this.iconRemove.ScaleSimple( 16, 16, InterpType.Bilinear ) ) );
            this.btRemoveAnswer.Clicked += (sender, e) => this.RemoveAnswer();
            bttAnswers.Add( this.btAddAnswer );
            bttAnswers.Add( this.btRemoveAnswer );
            bttAnswers.Layout = Gtk.ButtonBoxStyle.Center;
            bttAnswers.Spacing = 20;
            hBoxAnswers.PackStart( swScrolledAnswers, true, true, 5 );
            vBoxAnswers.PackStart( hBoxAnswers, true, true, 5 );
            this.spNumberValidAnswer = new Gtk.SpinButton( 1, 20, 1 );
            this.spNumberValidAnswer.ValueChanged += (o, args) => this.OnCorrectAnswerChanged();
            hBoxCorrect.PackStart( new Gtk.Label( "Correct answer:" ), false, false, 5 );
            hBoxCorrect.PackStart( this.spNumberValidAnswer, false, false, 5 );
            hBoxCorrect.PackEnd( bttAnswers, false, false, 5 );
            vBoxAnswers.PackStart( hBoxCorrect, false, false, 5 );
            frmAnswer.Add( vBoxAnswers );
            vBox.PackStart( frmAnswer, true, true, 5 );

            // Layout
            hBox.Pack1( frmTest, false, false );
            hBox.Pack2( vBox, false, false );
            this.nbDocPages.AppendPage( hBox, new Gtk.Label( "Edit" ) );
            this.nbDocPages.AppendPage( swScrollText, new Gtk.Label( "Document" ) );
            this.nbDocPages.Page = 0;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Adroit.Gui.PlanningView
     Stetic.BinContainer.Attach(this);
     this.Name = "Adroit.Gui.PlanningView";
     // Container child Adroit.Gui.PlanningView.Gtk.Container+ContainerChild
     this.m_hpaned = new Gtk.HPaned();
     this.m_hpaned.CanFocus = true;
     this.m_hpaned.Name = "m_hpaned";
     this.m_hpaned.Position = 175;
     // Container child m_hpaned.Gtk.Paned+PanedChild
     this.notebook1 = new Gtk.Notebook();
     this.notebook1.CanFocus = true;
     this.notebook1.Name = "notebook1";
     this.notebook1.CurrentPage = 0;
     this.notebook1.ShowTabs = false;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.m_projectsTreeView = new Gtk.TreeView();
     this.m_projectsTreeView.CanFocus = true;
     this.m_projectsTreeView.Name = "m_projectsTreeView";
     w1.Add(this.m_projectsTreeView);
     this.scrolledwindow1.Add(w1);
     this.notebook1.Add(this.scrolledwindow1);
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1);
     this.label1.ShowAll();
     this.m_hpaned.Add(this.notebook1);
     Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.m_hpaned[this.notebook1]));
     w5.Resize = false;
     // Container child m_hpaned.Gtk.Paned+PanedChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook2 = new Gtk.Notebook();
     this.notebook2.CanFocus = true;
     this.notebook2.Name = "notebook2";
     this.notebook2.CurrentPage = 0;
     this.notebook2.ShowTabs = false;
     // Container child notebook2.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w6 = new Gtk.Viewport();
     w6.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.m_tasksTreeView = new Gtk.TreeView();
     this.m_tasksTreeView.CanFocus = true;
     this.m_tasksTreeView.Name = "m_tasksTreeView";
     this.m_tasksTreeView.RulesHint = true;
     w6.Add(this.m_tasksTreeView);
     this.scrolledwindow2.Add(w6);
     this.notebook2.Add(this.scrolledwindow2);
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook2.SetTabLabel(this.scrolledwindow2, this.label2);
     this.label2.ShowAll();
     this.vbox1.Add(this.notebook2);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook2]));
     w10.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.m_attachmentExpander = new Gtk.Expander(null);
     this.m_attachmentExpander.CanFocus = true;
     this.m_attachmentExpander.Name = "m_attachmentExpander";
     // Container child m_attachmentExpander.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.scrolledwindow3 = new Gtk.ScrolledWindow();
     this.scrolledwindow3.CanFocus = true;
     this.scrolledwindow3.Name = "scrolledwindow3";
     this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow3.Gtk.Container+ContainerChild
     Gtk.Viewport w11 = new Gtk.Viewport();
     w11.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport2.Gtk.Container+ContainerChild
     this.m_tasksIconView = new Gtk.IconView();
     this.m_tasksIconView.CanFocus = true;
     this.m_tasksIconView.Name = "m_tasksIconView";
     this.m_tasksIconView.Orientation = ((Gtk.Orientation)(0));
     w11.Add(this.m_tasksIconView);
     this.scrolledwindow3.Add(w11);
     this.hbox1.Add(this.scrolledwindow3);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow3]));
     w14.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     // Container child vbox2.Gtk.Box+BoxChild
     this.m_addAttachmentButton = new Gtk.Button();
     this.m_addAttachmentButton.TooltipMarkup = "Add an attachment";
     this.m_addAttachmentButton.CanFocus = true;
     this.m_addAttachmentButton.Name = "m_addAttachmentButton";
     this.m_addAttachmentButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child m_addAttachmentButton.Gtk.Container+ContainerChild
     this.image1 = new Gtk.Image();
     this.image1.Name = "image1";
     this.image1.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
     this.m_addAttachmentButton.Add(this.image1);
     this.m_addAttachmentButton.Label = null;
     this.vbox2.Add(this.m_addAttachmentButton);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.m_addAttachmentButton]));
     w16.Position = 0;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.m_removeAttachmentButton = new Gtk.Button();
     this.m_removeAttachmentButton.TooltipMarkup = "Remove the selected attachment";
     this.m_removeAttachmentButton.Sensitive = false;
     this.m_removeAttachmentButton.CanFocus = true;
     this.m_removeAttachmentButton.Name = "m_removeAttachmentButton";
     this.m_removeAttachmentButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child m_removeAttachmentButton.Gtk.Container+ContainerChild
     this.image2 = new Gtk.Image();
     this.image2.Name = "image2";
     this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
     this.m_removeAttachmentButton.Add(this.image2);
     this.m_removeAttachmentButton.Label = null;
     this.vbox2.Add(this.m_removeAttachmentButton);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.m_removeAttachmentButton]));
     w18.Position = 1;
     w18.Expand = false;
     w18.Fill = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w19.Position = 1;
     w19.Expand = false;
     this.m_attachmentExpander.Add(this.hbox1);
     this.GtkLabel = new Gtk.Label();
     this.GtkLabel.Name = "GtkLabel";
     this.GtkLabel.LabelProp = Mono.Unix.Catalog.GetString("Show Attachment Bar");
     this.GtkLabel.UseUnderline = true;
     this.m_attachmentExpander.LabelWidget = this.GtkLabel;
     this.vbox1.Add(this.m_attachmentExpander);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.m_attachmentExpander]));
     w21.Position = 1;
     w21.Expand = false;
     this.m_hpaned.Add(this.vbox1);
     this.Add(this.m_hpaned);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.m_tasksTreeView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTasksTreeViewButtonPressEvent);
     this.m_attachmentExpander.Activated += new System.EventHandler(this.AttachmentExpander_Activated);
     this.m_addAttachmentButton.Clicked += new System.EventHandler(this.OnAddAttachmentButtonClicked);
     this.m_removeAttachmentButton.Clicked += new System.EventHandler(this.OnRemoveAttachmentButtonClicked);
 }
Beispiel #26
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);
 }
Beispiel #27
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);
        }
Beispiel #28
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);
 }
Beispiel #29
0
        private void Build()
        {
            foreach (Gtk.Widget w in Children)
            {
                w.Destroy();
            }

            d_properties = null;
            d_function   = null;
            d_piecewise  = null;

            Object obj = new Object(d_wrapper, d_actions, d_network);

            obj.Show();

            obj.Error += delegate(object source, Exception exception) {
                Error(source, exception);
            };

            obj.TemplateActivated += delegate(object source, Wrappers.Wrapper template) {
                TemplateActivated(source, template);
            };

            Gtk.HBox top = new Gtk.HBox(false, 6);
            top.Show();

            top.PackStart(obj, true, true, 0);

            if (!(d_wrapper is Wrappers.Function))
            {
                d_properties = new Variables(d_wrapper, d_actions);
                d_properties.Show();

                d_properties.Error += delegate(object source, Exception exception) {
                    Error(source, exception);
                };
            }
            else if (d_wrapper is Wrappers.FunctionPolynomial)
            {
                d_piecewise = new PiecewisePolynomial(d_wrapper as Wrappers.FunctionPolynomial, d_actions);
                d_piecewise.Show();

                top.PackEnd(d_piecewise.PeriodWidget, false, false, 0);
            }
            else
            {
                d_function = new Function(d_wrapper as Wrappers.Function, d_actions);
                d_function.Show();

                d_function.Error += delegate(object source, Exception exception) {
                    Error(source, exception);
                };
            }

            PackStart(top, false, false, 0);

            Wrappers.Edge link = d_wrapper as Wrappers.Edge;
            Wrappers.Node node = d_wrapper as Wrappers.Node;

            if (node != null && node.HasSelfEdge)
            {
                link = node.SelfEdge;
            }

            if (link != null)
            {
                Gtk.HPaned paned = new Gtk.HPaned();
                paned.Show();

                paned.Pack1(d_properties, true, true);

                Edge actions = new Edge(link, d_actions);
                actions.Show();

                paned.Pack2(actions, true, true);

                PackStart(paned, true, true, 0);
            }
            else if (d_properties != null)
            {
                PackStart(d_properties, true, true, 0);
            }
            else if (d_function != null)
            {
                PackStart(d_function, true, true, 0);
            }
            else if (d_piecewise != null)
            {
                PackStart(d_piecewise, true, true, 0);
            }
        }
Beispiel #30
0
        public GroupChatView(GroupChatModel groupChat) : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            _OutputHPaned = new Gtk.HPaned();

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            _PersonScrolledWindow = sw;
            //sw.WidthRequest = 150;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            //tv.CanFocus = false;
            tv.BorderWidth    = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn   column;
            Gtk.CellRendererText cellr = new Gtk.CellRendererText();
            cellr.WidthChars     = 12;
            column               = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId  = 0;
            column.Spacing       = 0;
            column.SortIndicator = false;
            column.Sizing        = Gtk.TreeViewColumnSizing.Autosize;
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model          = liststore;
            tv.RowActivated  += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown    += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent    += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame();
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox();

            _TopicTextView                  = new MessageTextView();
            _TopicTextView.Editable         = false;
            _TopicTextView.WrapMode         = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow            = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType = Gtk.ShadowType.In;
            // when using PolicyType.Never, it will try to grow but never shrinks!
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible   = false;
            _TopicScrolledWindow.NoShowAll = true;

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
Beispiel #31
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.XBMControlAction = new Gtk.Action("XBMControlAction", Mono.Unix.Catalog.GetString("XBMControl"), null, null);
     this.XBMControlAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMControl");
     w1.Add(this.XBMControlAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-disconnect");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w1.Add(this.QuitAction, null);
     this.XBMCAction = new Gtk.Action("XBMCAction", Mono.Unix.Catalog.GetString("XBMC"), null, null);
     this.XBMCAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMC");
     w1.Add(this.XBMCAction, null);
     this.PlaylistAction = new Gtk.Action("PlaylistAction", Mono.Unix.Catalog.GetString("Playlist"), null, null);
     this.PlaylistAction.ShortLabel = Mono.Unix.Catalog.GetString("Playlist");
     w1.Add(this.PlaylistAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction, null);
     this.UpdateMusicLibraryAction = new Gtk.Action("UpdateMusicLibraryAction", Mono.Unix.Catalog.GetString("Update music library"), null, null);
     this.UpdateMusicLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library");
     w1.Add(this.UpdateMusicLibraryAction, null);
     this.UpdateVideoLibraryAction = new Gtk.Action("UpdateVideoLibraryAction", Mono.Unix.Catalog.GetString("Update video library"), null, null);
     this.UpdateVideoLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library");
     w1.Add(this.UpdateVideoLibraryAction, null);
     this.UpdateLibraryAction = new Gtk.Action("UpdateLibraryAction", Mono.Unix.Catalog.GetString("Update Library"), null, null);
     this.UpdateLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Library");
     w1.Add(this.UpdateLibraryAction, null);
     this.MusicAction = new Gtk.Action("MusicAction", Mono.Unix.Catalog.GetString("Music"), null, "gtk-harddisk");
     this.MusicAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library");
     w1.Add(this.MusicAction, null);
     this.VideoAction = new Gtk.Action("VideoAction", Mono.Unix.Catalog.GetString("Video"), null, "gtk-harddisk");
     this.VideoAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library");
     w1.Add(this.VideoAction, null);
     this.RestartAction = new Gtk.Action("RestartAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-refresh");
     this.RestartAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart");
     w1.Add(this.RestartAction, null);
     this.RebootAction = new Gtk.Action("RebootAction", Mono.Unix.Catalog.GetString("Reboot"), null, "gtk-refresh");
     this.RebootAction.ShortLabel = Mono.Unix.Catalog.GetString("Reboot");
     w1.Add(this.RebootAction, null);
     this.ShutdownAction = new Gtk.Action("ShutdownAction", Mono.Unix.Catalog.GetString("Shutdown"), null, "gtk-quit");
     this.ShutdownAction.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown");
     w1.Add(this.ShutdownAction, null);
     this.ConfigurationAction = new Gtk.Action("ConfigurationAction", Mono.Unix.Catalog.GetString("Configuration"), null, "gtk-edit");
     this.ConfigurationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences");
     w1.Add(this.ConfigurationAction, null);
     this.clearAction = new Gtk.Action("clearAction", null, Mono.Unix.Catalog.GetString("Clear playlist"), "gtk-clear");
     w1.Add(this.clearAction, null);
     this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
     w1.Add(this.openAction, null);
     this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
     w1.Add(this.saveAction, null);
     this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as");
     w1.Add(this.saveAsAction, null);
     this.aRefreshPlaylist = new Gtk.Action("aRefreshPlaylist", null, null, "gtk-refresh");
     w1.Add(this.aRefreshPlaylist, null);
     this.aRemoveSelected = new Gtk.Action("aRemoveSelected", null, Mono.Unix.Catalog.GetString("Remove selected item"), "gtk-remove");
     w1.Add(this.aRemoveSelected, null);
     this.aPlaySelected = new Gtk.Action("aPlaySelected", null, Mono.Unix.Catalog.GetString("Play selected item"), "gtk-media-play");
     w1.Add(this.aPlaySelected, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 900;
     this.HeightRequest = 600;
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("XBMControl Evo");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     this.Resizable = false;
     this.AllowGrow = false;
     this.DefaultWidth = 800;
     this.DefaultHeight = 600;
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XBMControlAction' action='XBMControlAction'><menuitem name='ConfigurationAction' action='ConfigurationAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='XBMCAction' action='XBMCAction'><menu name='UpdateLibraryAction' action='UpdateLibraryAction'><menuitem name='MusicAction' action='MusicAction'/><menuitem name='VideoAction' action='VideoAction'/></menu><menuitem name='RestartAction' action='RestartAction'/><menuitem name='RebootAction' action='RebootAction'/><menuitem name='ShutdownAction' action='ShutdownAction'/></menu><menu name='PlaylistAction' action='PlaylistAction'/><menu name='HelpAction' action='HelpAction'/></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 300;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.nbBrowser = new Gtk.Notebook();
     this.nbBrowser.WidthRequest = 300;
     this.nbBrowser.CanFocus = true;
     this.nbBrowser.Name = "nbBrowser";
     this.nbBrowser.CurrentPage = 0;
     // Container child nbBrowser.Gtk.Notebook+NotebookChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cbShareType = Gtk.ComboBox.NewText();
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Music"));
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Video"));
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Pictures"));
     this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Files"));
     this.cbShareType.Name = "cbShareType";
     this.cbShareType.Active = 0;
     this.vbox3.Add(this.cbShareType);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbShareType]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.tvShareBrowser = new Gtk.TreeView();
     this.tvShareBrowser.CanFocus = true;
     this.tvShareBrowser.Name = "tvShareBrowser";
     this.GtkScrolledWindow.Add(this.tvShareBrowser);
     this.vbox3.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow]));
     w5.Position = 1;
     this.nbBrowser.Add(this.vbox3);
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Shares");
     this.nbBrowser.SetTabLabel(this.vbox3, this.label2);
     this.label2.ShowAll();
     this.hpaned1.Add(this.nbBrowser);
     Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbBrowser]));
     w7.Resize = false;
     w7.Shrink = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.nbDataContainer = new Gtk.Notebook();
     this.nbDataContainer.CanFocus = true;
     this.nbDataContainer.Name = "nbDataContainer";
     this.nbDataContainer.CurrentPage = 0;
     this.nbDataContainer.ShowBorder = false;
     this.nbDataContainer.Scrollable = true;
     // Container child nbDataContainer.Gtk.Notebook+NotebookChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w8 = new Gtk.Viewport();
     w8.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.fixedNowPlaying = new Gtk.Fixed();
     this.fixedNowPlaying.Name = "fixedNowPlaying";
     this.fixedNowPlaying.HasWindow = false;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.imgNowPlaying = new Gtk.Image();
     this.imgNowPlaying.WidthRequest = 300;
     this.imgNowPlaying.HeightRequest = 300;
     this.imgNowPlaying.Name = "imgNowPlaying";
     this.fixedNowPlaying.Add(this.imgNowPlaying);
     Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.imgNowPlaying]));
     w9.X = 20;
     w9.Y = 145;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lArtist = new Gtk.Label();
     this.lArtist.WidthRequest = 555;
     this.lArtist.Name = "lArtist";
     this.fixedNowPlaying.Add(this.lArtist);
     Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lArtist]));
     w10.X = 10;
     w10.Y = 10;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lSong = new Gtk.Label();
     this.lSong.WidthRequest = 555;
     this.lSong.Name = "lSong";
     this.fixedNowPlaying.Add(this.lSong);
     Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lSong]));
     w11.X = 10;
     w11.Y = 34;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lAlbum = new Gtk.Label();
     this.lAlbum.WidthRequest = 555;
     this.lAlbum.Name = "lAlbum";
     this.fixedNowPlaying.Add(this.lAlbum);
     Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lAlbum]));
     w12.X = 10;
     w12.Y = 70;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lGenre = new Gtk.Label();
     this.lGenre.WidthRequest = 155;
     this.lGenre.Name = "lGenre";
     this.fixedNowPlaying.Add(this.lGenre);
     Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lGenre]));
     w13.X = 410;
     w13.Y = 98;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lProgress = new Gtk.Label();
     this.lProgress.WidthRequest = 150;
     this.lProgress.Name = "lProgress";
     this.fixedNowPlaying.Add(this.lProgress);
     Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lProgress]));
     w14.X = 353;
     w14.Y = 430;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lDuration = new Gtk.Label();
     this.lDuration.WidthRequest = 60;
     this.lDuration.Name = "lDuration";
     this.fixedNowPlaying.Add(this.lDuration);
     Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lDuration]));
     w15.X = 502;
     w15.Y = 430;
     // Container child fixedNowPlaying.Gtk.Fixed+FixedChild
     this.lYear = new Gtk.Label();
     this.lYear.WidthRequest = 155;
     this.lYear.Name = "lYear";
     this.fixedNowPlaying.Add(this.lYear);
     Gtk.Fixed.FixedChild w16 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lYear]));
     w16.X = 410;
     w16.Y = 84;
     w8.Add(this.fixedNowPlaying);
     this.GtkScrolledWindow1.Add(w8);
     this.nbDataContainer.Add(this.GtkScrolledWindow1);
     // Notebook tab
     this.labelMediaInfo = new Gtk.Label();
     this.labelMediaInfo.Name = "labelMediaInfo";
     this.labelMediaInfo.LabelProp = Mono.Unix.Catalog.GetString("Playing Now");
     this.nbDataContainer.SetTabLabel(this.GtkScrolledWindow1, this.labelMediaInfo);
     this.labelMediaInfo.ShowAll();
     // Container child nbDataContainer.Gtk.Notebook+NotebookChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.cbPlaylistType = Gtk.ComboBox.NewText();
     this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Music"));
     this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Video"));
     this.cbPlaylistType.Name = "cbPlaylistType";
     this.cbPlaylistType.Active = 0;
     this.vbox2.Add(this.cbPlaylistType);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.cbPlaylistType]));
     w20.Position = 0;
     w20.Expand = false;
     w20.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.tvPlaylist = new Gtk.TreeView();
     this.tvPlaylist.CanFocus = true;
     this.tvPlaylist.Name = "tvPlaylist";
     this.GtkScrolledWindow2.Add(this.tvPlaylist);
     this.vbox2.Add(this.GtkScrolledWindow2);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow2]));
     w22.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='aRefreshPlaylist' action='aRefreshPlaylist'/><toolitem name='aRemoveSelected' action='aRemoveSelected'/><toolitem name='aPlaySelected' action='aPlaySelected'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.TooltipMarkup = "Refresh playlist";
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w23.Position = 2;
     w23.Expand = false;
     w23.Fill = false;
     this.nbDataContainer.Add(this.vbox2);
     Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.nbDataContainer[this.vbox2]));
     w24.Position = 1;
     // Notebook tab
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Playlist");
     this.nbDataContainer.SetTabLabel(this.vbox2, this.label3);
     this.label3.ShowAll();
     // Notebook tab
     Gtk.Label w25 = new Gtk.Label();
     w25.Visible = true;
     this.nbDataContainer.Add(w25);
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Configuration");
     this.nbDataContainer.SetTabLabel(w25, this.label4);
     this.label4.ShowAll();
     this.hpaned1.Add(this.nbDataContainer);
     Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbDataContainer]));
     w26.Resize = false;
     w26.Shrink = false;
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w27.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.fixed1 = new Gtk.Fixed();
     this.fixed1.HeightRequest = 60;
     this.fixed1.Name = "fixed1";
     this.fixed1.HasWindow = false;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hsVolume = new Gtk.HScale(null);
     this.hsVolume.TooltipMarkup = "Volume";
     this.hsVolume.WidthRequest = 120;
     this.hsVolume.CanFocus = true;
     this.hsVolume.Name = "hsVolume";
     this.hsVolume.Adjustment.Upper = 100;
     this.hsVolume.Adjustment.PageIncrement = 10;
     this.hsVolume.Adjustment.StepIncrement = 1;
     this.hsVolume.Adjustment.Value = 51.8987341772152;
     this.hsVolume.DrawValue = false;
     this.hsVolume.Digits = 0;
     this.hsVolume.ValuePos = ((Gtk.PositionType)(2));
     this.fixed1.Add(this.hsVolume);
     Gtk.Fixed.FixedChild w28 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsVolume]));
     w28.X = 730;
     w28.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hsProgress = new Gtk.HScale(null);
     this.hsProgress.TooltipMarkup = "Progress";
     this.hsProgress.WidthRequest = 420;
     this.hsProgress.CanFocus = true;
     this.hsProgress.Name = "hsProgress";
     this.hsProgress.Adjustment.Upper = 100;
     this.hsProgress.Adjustment.PageIncrement = 10;
     this.hsProgress.Adjustment.StepIncrement = 1;
     this.hsProgress.DrawValue = false;
     this.hsProgress.Digits = 0;
     this.hsProgress.ValuePos = ((Gtk.PositionType)(2));
     this.fixed1.Add(this.hsProgress);
     Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsProgress]));
     w29.X = 300;
     w29.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.tbMute = new Gtk.ToggleButton();
     this.tbMute.TooltipMarkup = "Toggle Mute";
     this.tbMute.WidthRequest = 32;
     this.tbMute.HeightRequest = 32;
     this.tbMute.CanFocus = true;
     this.tbMute.Name = "tbMute";
     this.tbMute.UseUnderline = true;
     // Container child tbMute.Gtk.Container+ContainerChild
     Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w31 = new Gtk.HBox();
     w31.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w32 = new Gtk.Image();
     w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume-mute", Gtk.IconSize.Button, 20);
     w31.Add(w32);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w34 = new Gtk.Label();
     w31.Add(w34);
     w30.Add(w31);
     this.tbMute.Add(w30);
     this.fixed1.Add(this.tbMute);
     Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbMute]));
     w38.X = 850;
     w38.Y = 8;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bPrevious = new Gtk.Button();
     this.bPrevious.TooltipMarkup = "Previous";
     this.bPrevious.WidthRequest = 35;
     this.bPrevious.HeightRequest = 35;
     this.bPrevious.CanFocus = true;
     this.bPrevious.Name = "bPrevious";
     this.bPrevious.UseUnderline = true;
     // Container child bPrevious.Gtk.Container+ContainerChild
     Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w40 = new Gtk.HBox();
     w40.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w41 = new Gtk.Image();
     w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.LargeToolbar, 24);
     w40.Add(w41);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w43 = new Gtk.Label();
     w40.Add(w43);
     w39.Add(w40);
     this.bPrevious.Add(w39);
     this.fixed1.Add(this.bPrevious);
     Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPrevious]));
     w47.X = 14;
     w47.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.tbPlay = new Gtk.ToggleButton();
     this.tbPlay.TooltipMarkup = "Play";
     this.tbPlay.WidthRequest = 35;
     this.tbPlay.HeightRequest = 35;
     this.tbPlay.CanFocus = true;
     this.tbPlay.Name = "tbPlay";
     this.tbPlay.UseUnderline = true;
     // Container child tbPlay.Gtk.Container+ContainerChild
     Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w49 = new Gtk.HBox();
     w49.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w50 = new Gtk.Image();
     w50.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.LargeToolbar, 24);
     w49.Add(w50);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w52 = new Gtk.Label();
     w49.Add(w52);
     w48.Add(w49);
     this.tbPlay.Add(w48);
     this.fixed1.Add(this.tbPlay);
     Gtk.Fixed.FixedChild w56 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbPlay]));
     w56.X = 46;
     w56.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.tbStop = new Gtk.ToggleButton();
     this.tbStop.TooltipMarkup = "Stop";
     this.tbStop.WidthRequest = 35;
     this.tbStop.HeightRequest = 35;
     this.tbStop.CanFocus = true;
     this.tbStop.Name = "tbStop";
     this.tbStop.UseUnderline = true;
     // Container child tbStop.Gtk.Container+ContainerChild
     Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w58 = new Gtk.HBox();
     w58.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w59 = new Gtk.Image();
     w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.LargeToolbar, 24);
     w58.Add(w59);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w61 = new Gtk.Label();
     w58.Add(w61);
     w57.Add(w58);
     this.tbStop.Add(w57);
     this.fixed1.Add(this.tbStop);
     Gtk.Fixed.FixedChild w65 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbStop]));
     w65.X = 78;
     w65.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bNext = new Gtk.Button();
     this.bNext.TooltipMarkup = "Next";
     this.bNext.WidthRequest = 35;
     this.bNext.HeightRequest = 35;
     this.bNext.CanFocus = true;
     this.bNext.Name = "bNext";
     this.bNext.UseUnderline = true;
     // Container child bNext.Gtk.Container+ContainerChild
     Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w67 = new Gtk.HBox();
     w67.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w68 = new Gtk.Image();
     w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.LargeToolbar, 24);
     w67.Add(w68);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w70 = new Gtk.Label();
     w67.Add(w70);
     w66.Add(w67);
     this.bNext.Add(w66);
     this.fixed1.Add(this.bNext);
     Gtk.Fixed.FixedChild w74 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bNext]));
     w74.X = 110;
     w74.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bRepeat = new Gtk.Button();
     this.bRepeat.TooltipMarkup = "Toggle Repeat Modes";
     this.bRepeat.WidthRequest = 28;
     this.bRepeat.HeightRequest = 28;
     this.bRepeat.CanFocus = true;
     this.bRepeat.Name = "bRepeat";
     this.bRepeat.UseUnderline = true;
     // Container child bRepeat.Gtk.Container+ContainerChild
     Gtk.Alignment w75 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w76 = new Gtk.HBox();
     w76.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w77 = new Gtk.Image();
     w77.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-redo", Gtk.IconSize.Menu, 16);
     w76.Add(w77);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w79 = new Gtk.Label();
     w76.Add(w79);
     w75.Add(w76);
     this.bRepeat.Add(w75);
     this.fixed1.Add(this.bRepeat);
     Gtk.Fixed.FixedChild w83 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bRepeat]));
     w83.X = 160;
     w83.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bShuffle = new Gtk.Button();
     this.bShuffle.TooltipMarkup = "Toggle Shuffel Mode";
     this.bShuffle.WidthRequest = 28;
     this.bShuffle.HeightRequest = 28;
     this.bShuffle.CanFocus = true;
     this.bShuffle.Name = "bShuffle";
     this.bShuffle.UseUnderline = true;
     // Container child bShuffle.Gtk.Container+ContainerChild
     Gtk.Alignment w84 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w85 = new Gtk.HBox();
     w85.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w86 = new Gtk.Image();
     w86.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_chart-toggle-legend", Gtk.IconSize.Menu, 16);
     w85.Add(w86);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w88 = new Gtk.Label();
     w85.Add(w88);
     w84.Add(w85);
     this.bShuffle.Add(w84);
     this.fixed1.Add(this.bShuffle);
     Gtk.Fixed.FixedChild w92 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bShuffle]));
     w92.X = 185;
     w92.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.bPartyMode = new Gtk.Button();
     this.bPartyMode.TooltipMarkup = "Toggle Party Mode";
     this.bPartyMode.WidthRequest = 28;
     this.bPartyMode.HeightRequest = 28;
     this.bPartyMode.CanFocus = true;
     this.bPartyMode.Name = "bPartyMode";
     this.bPartyMode.UseUnderline = true;
     // Container child bPartyMode.Gtk.Container+ContainerChild
     Gtk.Alignment w93 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w94 = new Gtk.HBox();
     w94.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w95 = new Gtk.Image();
     w95.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_filters", Gtk.IconSize.Menu, 16);
     w94.Add(w95);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w97 = new Gtk.Label();
     w94.Add(w97);
     w93.Add(w94);
     this.bPartyMode.Add(w93);
     this.fixed1.Add(this.bPartyMode);
     Gtk.Fixed.FixedChild w101 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPartyMode]));
     w101.X = 210;
     w101.Y = 10;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.imgLoading = new Gtk.Image();
     this.imgLoading.TooltipMarkup = "Loading data...";
     this.imgLoading.Name = "imgLoading";
     this.imgLoading.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-jump-to", Gtk.IconSize.LargeToolbar, 24);
     this.fixed1.Add(this.imgLoading);
     Gtk.Fixed.FixedChild w102 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.imgLoading]));
     w102.X = 255;
     w102.Y = 13;
     this.vbox1.Add(this.fixed1);
     Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox1[this.fixed1]));
     w103.Position = 2;
     w103.Expand = false;
     w103.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.QuitAction.Activated += new System.EventHandler(this.OnExit);
     this.MusicAction.Activated += new System.EventHandler(this.click_UpdateMusicLibrary);
     this.VideoAction.Activated += new System.EventHandler(this.click_UpdateVideoLibrary);
     this.clearAction.Activated += new System.EventHandler(this.aClearPlaylist_click);
     this.aRefreshPlaylist.Activated += new System.EventHandler(this.aRefreshPlaylist_activated);
     this.aRemoveSelected.Activated += new System.EventHandler(this.aRemoveSelected_activated);
     this.aPlaySelected.Activated += new System.EventHandler(this.aPlaySelected_activated);
     this.cbShareType.Changed += new System.EventHandler(this.cbShareBrowser_changed);
     this.tvShareBrowser.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvShareBrowser_release);
     this.cbPlaylistType.Changed += new System.EventHandler(this.cbPlaylistType_changed);
     this.tvPlaylist.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvPlaylist_buttonRelease);
     this.hsVolume.ValueChanged += new System.EventHandler(this.hsVolume_valueChanged);
     this.hsProgress.ChangeValue += new Gtk.ChangeValueHandler(this.hsProgress_changeValue);
     this.tbMute.Released += new System.EventHandler(this.tbMute_released);
     this.bPrevious.Released += new System.EventHandler(this.bPrevious_released);
     this.tbPlay.Released += new System.EventHandler(this.tbPlay_released);
     this.tbStop.Released += new System.EventHandler(this.tbStop_released);
     this.bNext.Released += new System.EventHandler(this.bNext_released);
     this.bRepeat.Activated += new System.EventHandler(this.bRepeat_click);
     this.bShuffle.Released += new System.EventHandler(this.bShuffle_release);
     this.bPartyMode.Released += new System.EventHandler(this.bPartyMode_released);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.Gtk.Container+ContainerChild
     this.hpaned          = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name     = "hpaned";
     this.hpaned.Position = 293;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.windowPK                  = new Gtk.ScrolledWindow();
     this.windowPK.CanFocus         = true;
     this.windowPK.Name             = "windowPK";
     this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child windowPK.Gtk.Container+ContainerChild
     this.listFK                  = new Gtk.TreeView();
     this.listFK.CanFocus         = true;
     this.listFK.Name             = "listFK";
     this.listFK.HeadersClickable = true;
     this.windowPK.Add(this.listFK);
     this.vbox3.Add(this.windowPK);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK]));
     w2.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox             = new Gtk.HButtonBox();
     this.hbuttonbox.Name        = "hbuttonbox";
     this.hbuttonbox.Spacing     = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd              = new Gtk.Button();
     this.buttonAdd.CanFocus     = true;
     this.buttonAdd.Name         = "buttonAdd";
     this.buttonAdd.UseStock     = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label        = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill   = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove              = new Gtk.Button();
     this.buttonRemove.Sensitive    = false;
     this.buttonRemove.CanFocus     = true;
     this.buttonRemove.Name         = "buttonRemove";
     this.buttonRemove.UseStock     = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label        = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.vbox3.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     this.hpaned.Add(this.vbox3);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3]));
     w6.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vboxColumns         = new Gtk.VBox();
     this.vboxColumns.Name    = "vboxColumns";
     this.vboxColumns.Spacing = 6;
     // Container child vboxColumns.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.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.columnSelecter                  = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.columnSelecter.Sensitive        = false;
     this.columnSelecter.CanFocus         = true;
     this.columnSelecter.Name             = "columnSelecter";
     this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.ShadowType       = ((Gtk.ShadowType)(1));
     this.columnSelecter.SingleCheck      = false;
     this.GtkAlignment2.Add(this.columnSelecter);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("Columns");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel2;
     this.vboxColumns.Add(this.frame1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vboxColumns[this.frame1]));
     w9.Position = 0;
     // Container child vboxColumns.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.GtkAlignment3             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name        = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.referenceColumnSelecter                  = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.referenceColumnSelecter.Sensitive        = false;
     this.referenceColumnSelecter.CanFocus         = true;
     this.referenceColumnSelecter.Name             = "referenceColumnSelecter";
     this.referenceColumnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.referenceColumnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.referenceColumnSelecter.ShadowType       = ((Gtk.ShadowType)(1));
     this.referenceColumnSelecter.SingleCheck      = false;
     this.GtkAlignment3.Add(this.referenceColumnSelecter);
     this.frame2.Add(this.GtkAlignment3);
     this.GtkLabel3           = new Gtk.Label();
     this.GtkLabel3.Name      = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Reference Columns");
     this.GtkLabel3.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel3;
     this.vboxColumns.Add(this.frame2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vboxColumns[this.frame2]));
     w12.Position = 1;
     this.hpaned.Add(this.vboxColumns);
     this.Add(this.hpaned);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
 }
Beispiel #33
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.Gtk.Container+ContainerChild
     this.hpaned          = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name     = "hpaned";
     this.hpaned.Position = 293;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.windowPK                  = new Gtk.ScrolledWindow();
     this.windowPK.CanFocus         = true;
     this.windowPK.Name             = "windowPK";
     this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child windowPK.Gtk.Container+ContainerChild
     this.listPK                  = new Gtk.TreeView();
     this.listPK.CanFocus         = true;
     this.listPK.Name             = "listPK";
     this.listPK.HeadersClickable = true;
     this.windowPK.Add(this.listPK);
     this.vbox3.Add(this.windowPK);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK]));
     w2.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox             = new Gtk.HButtonBox();
     this.hbuttonbox.Name        = "hbuttonbox";
     this.hbuttonbox.Spacing     = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd              = new Gtk.Button();
     this.buttonAdd.CanFocus     = true;
     this.buttonAdd.Name         = "buttonAdd";
     this.buttonAdd.UseStock     = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label        = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill   = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove              = new Gtk.Button();
     this.buttonRemove.Sensitive    = false;
     this.buttonRemove.CanFocus     = true;
     this.buttonRemove.Name         = "buttonRemove";
     this.buttonRemove.UseStock     = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label        = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     this.vbox3.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     this.hpaned.Add(this.vbox3);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3]));
     w6.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.columnSelecter                  = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.columnSelecter.Sensitive        = false;
     this.columnSelecter.CanFocus         = true;
     this.columnSelecter.Name             = "columnSelecter";
     this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.ShadowType       = ((Gtk.ShadowType)(1));
     this.columnSelecter.SingleCheck      = false;
     this.hpaned.Add(this.columnSelecter);
     this.Add(this.hpaned);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.buttonAdd.Clicked    += new System.EventHandler(this.AddClicked);
     this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked);
 }
Beispiel #34
0
        public GroupChatView(GroupChatModel groupChat)
            : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            _OutputHPaned = new Gtk.HPaned();

            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            _PersonScrolledWindow = sw;
            //sw.WidthRequest = 150;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            //tv.CanFocus = false;
            tv.BorderWidth = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn column;
            Gtk.CellRendererText cellr = new Gtk.CellRendererText();
            cellr.WidthChars = 12;
            column = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId = 0;
            column.Spacing = 0;
            column.SortIndicator = false;
            column.Sizing = Gtk.TreeViewColumnSizing.Autosize;
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model = liststore;
            tv.RowActivated += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame();
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox();

            _TopicTextView = new MessageTextView();
            _TopicTextView.Editable = false;
            _TopicTextView.WrapMode = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType = Gtk.ShadowType.In;
            // when using PolicyType.Never, it will try to grow but never shrinks!
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.VscrollbarPolicy = Gtk.PolicyType.Automatic;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible = false;
            _TopicScrolledWindow.NoShowAll = true;

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.CSharp.Gui.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.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.AttachToProcessAction = new Gtk.Action("AttachToProcessAction", Mono.Unix.Catalog.GetString("Attach to Process"), null, null);
     this.AttachToProcessAction.ShortLabel = Mono.Unix.Catalog.GetString("Attach to Process");
     w1.Add(this.AttachToProcessAction, 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.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.gtkpane = new Gtk.ToggleAction("gtkpane", Mono.Unix.Catalog.GetString("Gtk Pane"), null, null);
     this.gtkpane.ShortLabel = Mono.Unix.Catalog.GetString("Gtk Pane");
     w1.Add(this.gtkpane, 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.DescribeTypeAction = new Gtk.Action("DescribeTypeAction", Mono.Unix.Catalog.GetString("Describe Type"), null, null);
     this.DescribeTypeAction.ShortLabel = Mono.Unix.Catalog.GetString("Describe Type");
     w1.Add(this.DescribeTypeAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Mono.CSharp.Gui.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 600;
     this.DefaultHeight = 500;
     // Container child Mono.CSharp.Gui.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='AttachToProcessAction' action='AttachToProcessAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='gtkpane' action='gtkpane'/></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='DescribeTypeAction' action='DescribeTypeAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook1 = new Gtk.Notebook();
     this.notebook1.CanFocus = true;
     this.notebook1.Name = "notebook1";
     this.notebook1.CurrentPage = 0;
     this.notebook1.ShowBorder = false;
     this.notebook1.ShowTabs = false;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 472;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.paned_container = new Gtk.EventBox();
     this.paned_container.Name = "paned_container";
     this.hpaned.Add(this.paned_container);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.paned_container]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.expander1 = new Gtk.Expander(null);
     this.expander1.CanFocus = true;
     this.expander1.Name = "expander1";
     this.expander1.Expanded = true;
     // Container child expander1.Gtk.Container+ContainerChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xpad = 10;
     this.label4.Xalign = 0.1F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Set the contents of this pane by adding Gtk.Widgets children to the <b>PaneContainer</b> property.  The PaneContainer is a Gtk.EventBox.   \n\nTry it like this:\n\nLoadPackage (\"gtk-sharp-2.0\");\nvar l = new Label (\"Hello world\");\nPaneContainer.Add (l);\nl.ShowAll ();");
     this.label4.UseMarkup = true;
     this.label4.Wrap = true;
     this.expander1.Add(this.label4);
     this.GtkLabel4 = new Gtk.Label();
     this.GtkLabel4.Name = "GtkLabel4";
     this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>PaneContent</b>");
     this.GtkLabel4.UseMarkup = true;
     this.GtkLabel4.UseUnderline = true;
     this.expander1.LabelWidget = this.GtkLabel4;
     this.vbox2.Add(this.expander1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.eventbox = new Gtk.EventBox();
     this.eventbox.Name = "eventbox";
     this.vbox2.Add(this.eventbox);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.eventbox]));
     w6.Position = 1;
     this.hpaned.Add(this.vbox2);
     this.notebook1.Add(this.hpaned);
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1");
     this.notebook1.SetTabLabel(this.hpaned, this.label1);
     this.label1.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.standalone_container = new Gtk.EventBox();
     this.standalone_container.Name = "standalone_container";
     // Container child standalone_container.Gtk.Container+ContainerChild
     this.shellnotebook = new Gtk.Notebook();
     this.shellnotebook.CanFocus = true;
     this.shellnotebook.Name = "shellnotebook";
     this.shellnotebook.CurrentPage = 0;
     this.shellnotebook.ShowTabs = false;
     this.shellnotebook.Scrollable = true;
     // Container child shellnotebook.Gtk.Notebook+NotebookChild
     this.sw = new Gtk.ScrolledWindow();
     this.sw.CanFocus = true;
     this.sw.Name = "sw";
     this.sw.ShadowType = ((Gtk.ShadowType)(1));
     this.shellnotebook.Add(this.sw);
     // Notebook tab
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("C#");
     this.shellnotebook.SetTabLabel(this.sw, this.label3);
     this.label3.ShowAll();
     this.standalone_container.Add(this.shellnotebook);
     this.notebook1.Add(this.standalone_container);
     Gtk.Notebook.NotebookChild w11 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.standalone_container]));
     w11.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.standalone_container, this.label2);
     this.label2.ShowAll();
     this.vbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1]));
     w12.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.AttachToProcessAction.Activated += new System.EventHandler(this.OnAttachToProcessActionActivated);
     this.DescribeTypeAction.Activated += new System.EventHandler(this.OnDescribeTypeActionActivated);
 }
Beispiel #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", "File", null, null);
     this.FileAction.ShortLabel = "File";
     w1.Add(this.FileAction, null);
     this.newAction = new Gtk.Action("newAction", "New", null, "gtk-new");
     this.newAction.ShortLabel = "New";
     w1.Add(this.newAction, "<Control>n");
     this.openAction = new Gtk.Action("openAction", "Open...", null, "gtk-open");
     this.openAction.ShortLabel = "Open...";
     w1.Add(this.openAction, "<Control>o");
     this.saveAction = new Gtk.Action("saveAction", "Save", null, "gtk-save");
     this.saveAction.ShortLabel = "Save";
     w1.Add(this.saveAction, "<Control>s");
     this.saveAsAction = new Gtk.Action("saveAsAction", "Save as...", null, "gtk-save-as");
     this.saveAsAction.ShortLabel = "Save as...";
     w1.Add(this.saveAsAction, "<Control><Alt>s");
     this.quitAction = new Gtk.Action("quitAction", "Exit", null, "gtk-quit");
     this.quitAction.ShortLabel = "Exit";
     w1.Add(this.quitAction, null);
     this.WordsAction = new Gtk.Action("WordsAction", "Words", null, null);
     this.WordsAction.ShortLabel = "Words";
     w1.Add(this.WordsAction, null);
     this.GenerateAction = new Gtk.Action("GenerateAction", "Generate", null, null);
     this.GenerateAction.ShortLabel = "Generate";
     w1.Add(this.GenerateAction, "<Control>g");
     this.ClearAndGenerateAction = new Gtk.Action("ClearAndGenerateAction", "Clear and generate", null, null);
     this.ClearAndGenerateAction.ShortLabel = "Clear and generate";
     w1.Add(this.ClearAndGenerateAction, "<Control><Alt>g");
     this.ClearAction = new Gtk.Action("ClearAction", "Clear", null, null);
     this.ClearAction.ShortLabel = "Clear";
     w1.Add(this.ClearAction, "<Control><Alt>l");
     this.CopySelectedAction = new Gtk.Action("CopySelectedAction", "Copy selected", null, null);
     this.CopySelectedAction.ShortLabel = "Copy selected";
     w1.Add(this.CopySelectedAction, "<Control>j");
     this.CopyDescriptionsAction = new Gtk.Action("CopyDescriptionsAction", "Copy descriptions", null, null);
     this.CopyDescriptionsAction.ShortLabel = "Copy descriptions";
     w1.Add(this.CopyDescriptionsAction, "<Control><Alt>j");
     this.ExportAction = new Gtk.Action("ExportAction", "Export...", null, null);
     this.ExportAction.ShortLabel = "Export...";
     w1.Add(this.ExportAction, "<Control><Alt>e");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = "WordBuilder v3.0.0";
     this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-sort-ascending", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.mainVBox = new Gtk.VBox();
     this.mainVBox.Name = "mainVBox";
     this.mainVBox.Spacing = 6;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString(@"<ui><menubar name='mainMenuBar'><menu name='FileAction' action='FileAction'><menuitem name='newAction' action='newAction'/><menuitem name='openAction' action='openAction'/><separator/><menuitem name='saveAction' action='saveAction'/><menuitem name='saveAsAction' action='saveAsAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='WordsAction' action='WordsAction'><menuitem name='GenerateAction' action='GenerateAction'/><menuitem name='ClearAndGenerateAction' action='ClearAndGenerateAction'/><menuitem name='ClearAction' action='ClearAction'/><separator/><menuitem name='CopySelectedAction' action='CopySelectedAction'/><menuitem name='CopyDescriptionsAction' action='CopyDescriptionsAction'/><separator/><menuitem name='ExportAction' action='ExportAction'/></menu></menubar></ui>");
     this.mainMenuBar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/mainMenuBar")));
     this.mainMenuBar.Name = "mainMenuBar";
     this.mainVBox.Add(this.mainMenuBar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mainVBox[this.mainMenuBar]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.vpaned2 = new Gtk.VPaned();
     this.vpaned2.CanFocus = true;
     this.vpaned2.Name = "vpaned2";
     this.vpaned2.Position = 199;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.mainHPanes = new Gtk.HPaned();
     this.mainHPanes.CanFocus = true;
     this.mainHPanes.Name = "mainHPanes";
     this.mainHPanes.Position = 190;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.codeTextview = new Gtk.TextView();
     this.codeTextview.CanFocus = true;
     this.codeTextview.Name = "codeTextview";
     this.GtkScrolledWindow1.Add(this.codeTextview);
     this.mainHPanes.Add(this.GtkScrolledWindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.mainHPanes[this.GtkScrolledWindow1]));
     w4.Resize = false;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.resultVPanes = new Gtk.VPaned();
     this.resultVPanes.CanFocus = true;
     this.resultVPanes.Name = "resultVPanes";
     this.resultVPanes.Position = 127;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.resultsTreeview = new Gtk.TreeView();
     this.resultsTreeview.CanFocus = true;
     this.resultsTreeview.Name = "resultsTreeview";
     this.GtkScrolledWindow.Add(this.resultsTreeview);
     this.resultVPanes.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.resultVPanes[this.GtkScrolledWindow]));
     w6.Resize = false;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.detailsTextview = new Gtk.TextView();
     this.detailsTextview.CanFocus = true;
     this.detailsTextview.Name = "detailsTextview";
     this.detailsTextview.Editable = false;
     this.detailsTextview.AcceptsTab = false;
     this.GtkScrolledWindow2.Add(this.detailsTextview);
     this.resultVPanes.Add(this.GtkScrolledWindow2);
     this.mainHPanes.Add(this.resultVPanes);
     this.vpaned2.Add(this.mainHPanes);
     Gtk.Paned.PanedChild w10 = ((Gtk.Paned.PanedChild)(this.vpaned2[this.mainHPanes]));
     w10.Resize = false;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.warningsScrolledWindow = new Gtk.ScrolledWindow();
     this.warningsScrolledWindow.Name = "warningsScrolledWindow";
     this.warningsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child warningsScrolledWindow.Gtk.Container+ContainerChild
     this.warningsTreeView = new Gtk.TreeView();
     this.warningsTreeView.CanFocus = true;
     this.warningsTreeView.Name = "warningsTreeView";
     this.warningsScrolledWindow.Add(this.warningsTreeView);
     this.vpaned2.Add(this.warningsScrolledWindow);
     this.mainVBox.Add(this.vpaned2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.mainVBox[this.vpaned2]));
     w13.Position = 1;
     this.Add(this.mainVBox);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 538;
     this.DefaultHeight = 411;
     this.warningsScrolledWindow.Hide();
     this.Show();
     this.newAction.Activated += new System.EventHandler(this.OnNewActionActivated);
     this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
     this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
     this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
     this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.GenerateAction.Activated += new System.EventHandler(this.OnGenerateActionActivated);
     this.ClearAndGenerateAction.Activated += new System.EventHandler(this.OnClearAndGenerateActionActivated);
     this.ClearAction.Activated += new System.EventHandler(this.OnClearActionActivated);
     this.CopySelectedAction.Activated += new System.EventHandler(this.OnCopySelectedActionActivated);
     this.CopyDescriptionsAction.Activated += new System.EventHandler(this.OnCopyDescriptionsActionActivated);
     this.ExportAction.Activated += new System.EventHandler(this.OnExportActionActivated);
 }
Beispiel #37
0
        Gtk.Widget CreateFakeWidget(string typeName)
        {
            Stetic.Custom c = new Stetic.Custom();
            // Give it some default size
            c.WidthRequest  = 20;
            c.HeightRequest = 20;

            Gtk.Container box = null;

            switch (typeClassDescriptor.Name)
            {
            case "Gtk.Alignment":
                box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f);
                break;

            case "Gtk.Fixed":
                box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f);
                break;

            case "Gtk.Frame":
                box = new Gtk.Frame();
                break;

            case "Gtk.Box":
            case "Gtk.HBox": {
                Gtk.HBox cc = new Gtk.HBox();
                cc.PackStart(c, true, true, 0);
                return(cc);
            }

            case "Gtk.VBox": {
                Gtk.VBox cc = new Gtk.VBox();
                cc.PackStart(c, true, true, 0);
                return(cc);
            }

            case "Gtk.Paned":
            case "Gtk.VPaned": {
                Gtk.VPaned cc = new Gtk.VPaned();
                cc.Add1(c);
                return(cc);
            }

            case "Gtk.HPaned": {
                Gtk.HPaned cc = new Gtk.HPaned();
                cc.Add1(c);
                return(cc);
            }

            case "Gtk.Notebook": {
                Gtk.Notebook nb = new Gtk.Notebook();
                nb.ShowTabs = false;
                nb.AppendPage(c, null);
                return(nb);
            }

            case "Gtk.ScrolledWindow": {
                Gtk.ScrolledWindow cc = new Gtk.ScrolledWindow();
                cc.VscrollbarPolicy = Gtk.PolicyType.Never;
                cc.HscrollbarPolicy = Gtk.PolicyType.Never;
                cc.AddWithViewport(c);
                return(cc);
            }

            case "Gtk.Table": {
                Gtk.Table t = new Gtk.Table(1, 1, false);
                t.Attach(c, 0, 1, 0, 1);
                return(t);
            }

            case "Gtk.ButtonBox":
                return(new Gtk.HButtonBox());
            }
            if (box != null)
            {
                box.Add(c);
                return(box);
            }
            else
            {
                Stetic.CustomWidget custom = new Stetic.CustomWidget();
                if (custom.Child != null)
                {
                    custom.Remove(custom.Child);
                }
                custom.Add(c);
                return(custom);
            }
        }
Beispiel #38
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);
 }
 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 MonoDevelop.Database.Designer.UniqueConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.UniqueConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.Gtk.Container+ContainerChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 304;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.windowPK = new Gtk.ScrolledWindow();
     this.windowPK.CanFocus = true;
     this.windowPK.Name = "windowPK";
     this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.ShadowType = ((Gtk.ShadowType)(1));
     // Container child windowPK.Gtk.Container+ContainerChild
     this.listUnique = new Gtk.TreeView();
     this.listUnique.CanFocus = true;
     this.listUnique.Name = "listUnique";
     this.listUnique.HeadersClickable = true;
     this.windowPK.Add(this.listUnique);
     this.vbox3.Add(this.windowPK);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK]));
     w2.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox = new Gtk.HButtonBox();
     this.hbuttonbox.Name = "hbuttonbox";
     this.hbuttonbox.Spacing = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd = new Gtk.Button();
     this.buttonAdd.CanFocus = true;
     this.buttonAdd.Name = "buttonAdd";
     this.buttonAdd.UseStock = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove = new Gtk.Button();
     this.buttonRemove.Sensitive = false;
     this.buttonRemove.CanFocus = true;
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.UseStock = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox3.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.hpaned.Add(this.vbox3);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3]));
     w6.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.columnSelecter = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.columnSelecter.Sensitive = false;
     this.columnSelecter.CanFocus = true;
     this.columnSelecter.Name = "columnSelecter";
     this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.ShadowType = ((Gtk.ShadowType)(1));
     this.columnSelecter.SingleCheck = false;
     this.hpaned.Add(this.columnSelecter);
     this.Add(this.hpaned);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.buttonAdd.Clicked += new System.EventHandler(this.AddClicked);
     this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked);
 }
Beispiel #41
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);
        }
 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);
 }
Beispiel #43
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction            = new Gtk.Action("FileAction", "File", null, null);
     this.FileAction.ShortLabel = "File";
     w1.Add(this.FileAction, null);
     this.newAction            = new Gtk.Action("newAction", "New", null, "gtk-new");
     this.newAction.ShortLabel = "New";
     w1.Add(this.newAction, "<Control>n");
     this.openAction            = new Gtk.Action("openAction", "Open...", null, "gtk-open");
     this.openAction.ShortLabel = "Open...";
     w1.Add(this.openAction, "<Control>o");
     this.saveAction            = new Gtk.Action("saveAction", "Save", null, "gtk-save");
     this.saveAction.ShortLabel = "Save";
     w1.Add(this.saveAction, "<Control>s");
     this.saveAsAction            = new Gtk.Action("saveAsAction", "Save as...", null, "gtk-save-as");
     this.saveAsAction.ShortLabel = "Save as...";
     w1.Add(this.saveAsAction, "<Control><Alt>s");
     this.quitAction            = new Gtk.Action("quitAction", "Exit", null, "gtk-quit");
     this.quitAction.ShortLabel = "Exit";
     w1.Add(this.quitAction, null);
     this.WordsAction            = new Gtk.Action("WordsAction", "Words", null, null);
     this.WordsAction.ShortLabel = "Words";
     w1.Add(this.WordsAction, null);
     this.GenerateAction            = new Gtk.Action("GenerateAction", "Generate", null, null);
     this.GenerateAction.ShortLabel = "Generate";
     w1.Add(this.GenerateAction, "<Control>g");
     this.ClearAndGenerateAction            = new Gtk.Action("ClearAndGenerateAction", "Clear and generate", null, null);
     this.ClearAndGenerateAction.ShortLabel = "Clear and generate";
     w1.Add(this.ClearAndGenerateAction, "<Control><Alt>g");
     this.ClearAction            = new Gtk.Action("ClearAction", "Clear", null, null);
     this.ClearAction.ShortLabel = "Clear";
     w1.Add(this.ClearAction, "<Control><Alt>l");
     this.CopySelectedAction            = new Gtk.Action("CopySelectedAction", "Copy selected", null, null);
     this.CopySelectedAction.ShortLabel = "Copy selected";
     w1.Add(this.CopySelectedAction, "<Control>j");
     this.CopyDescriptionsAction            = new Gtk.Action("CopyDescriptionsAction", "Copy descriptions", null, null);
     this.CopyDescriptionsAction.ShortLabel = "Copy descriptions";
     w1.Add(this.CopyDescriptionsAction, "<Control><Alt>j");
     this.ExportAction            = new Gtk.Action("ExportAction", "Export...", null, null);
     this.ExportAction.ShortLabel = "Export...";
     w1.Add(this.ExportAction, "<Control><Alt>e");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = "WordBuilder v3.0.0";
     this.Icon           = Stetic.IconLoader.LoadIcon(this, "gtk-sort-ascending", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.mainVBox         = new Gtk.VBox();
     this.mainVBox.Name    = "mainVBox";
     this.mainVBox.Spacing = 6;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString(@"<ui><menubar name='mainMenuBar'><menu name='FileAction' action='FileAction'><menuitem name='newAction' action='newAction'/><menuitem name='openAction' action='openAction'/><separator/><menuitem name='saveAction' action='saveAction'/><menuitem name='saveAsAction' action='saveAsAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='WordsAction' action='WordsAction'><menuitem name='GenerateAction' action='GenerateAction'/><menuitem name='ClearAndGenerateAction' action='ClearAndGenerateAction'/><menuitem name='ClearAction' action='ClearAction'/><separator/><menuitem name='CopySelectedAction' action='CopySelectedAction'/><menuitem name='CopyDescriptionsAction' action='CopyDescriptionsAction'/><separator/><menuitem name='ExportAction' action='ExportAction'/></menu></menubar></ui>");
     this.mainMenuBar      = ((Gtk.MenuBar)(this.UIManager.GetWidget("/mainMenuBar")));
     this.mainMenuBar.Name = "mainMenuBar";
     this.mainVBox.Add(this.mainMenuBar);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mainVBox[this.mainMenuBar]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child mainVBox.Gtk.Box+BoxChild
     this.vpaned2          = new Gtk.VPaned();
     this.vpaned2.CanFocus = true;
     this.vpaned2.Name     = "vpaned2";
     this.vpaned2.Position = 199;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.mainHPanes          = new Gtk.HPaned();
     this.mainHPanes.CanFocus = true;
     this.mainHPanes.Name     = "mainHPanes";
     this.mainHPanes.Position = 190;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow1            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.codeTextview          = new Gtk.TextView();
     this.codeTextview.CanFocus = true;
     this.codeTextview.Name     = "codeTextview";
     this.GtkScrolledWindow1.Add(this.codeTextview);
     this.mainHPanes.Add(this.GtkScrolledWindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.mainHPanes[this.GtkScrolledWindow1]));
     w4.Resize = false;
     // Container child mainHPanes.Gtk.Paned+PanedChild
     this.resultVPanes          = new Gtk.VPaned();
     this.resultVPanes.CanFocus = true;
     this.resultVPanes.Name     = "resultVPanes";
     this.resultVPanes.Position = 127;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.resultsTreeview          = new Gtk.TreeView();
     this.resultsTreeview.CanFocus = true;
     this.resultsTreeview.Name     = "resultsTreeview";
     this.GtkScrolledWindow.Add(this.resultsTreeview);
     this.resultVPanes.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.resultVPanes[this.GtkScrolledWindow]));
     w6.Resize = false;
     // Container child resultVPanes.Gtk.Paned+PanedChild
     this.GtkScrolledWindow2            = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow2.Name       = "GtkScrolledWindow2";
     this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
     this.detailsTextview            = new Gtk.TextView();
     this.detailsTextview.CanFocus   = true;
     this.detailsTextview.Name       = "detailsTextview";
     this.detailsTextview.Editable   = false;
     this.detailsTextview.AcceptsTab = false;
     this.GtkScrolledWindow2.Add(this.detailsTextview);
     this.resultVPanes.Add(this.GtkScrolledWindow2);
     this.mainHPanes.Add(this.resultVPanes);
     this.vpaned2.Add(this.mainHPanes);
     Gtk.Paned.PanedChild w10 = ((Gtk.Paned.PanedChild)(this.vpaned2[this.mainHPanes]));
     w10.Resize = false;
     // Container child vpaned2.Gtk.Paned+PanedChild
     this.warningsScrolledWindow            = new Gtk.ScrolledWindow();
     this.warningsScrolledWindow.Name       = "warningsScrolledWindow";
     this.warningsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child warningsScrolledWindow.Gtk.Container+ContainerChild
     this.warningsTreeView          = new Gtk.TreeView();
     this.warningsTreeView.CanFocus = true;
     this.warningsTreeView.Name     = "warningsTreeView";
     this.warningsScrolledWindow.Add(this.warningsTreeView);
     this.vpaned2.Add(this.warningsScrolledWindow);
     this.mainVBox.Add(this.vpaned2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.mainVBox[this.vpaned2]));
     w13.Position = 1;
     this.Add(this.mainVBox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 538;
     this.DefaultHeight = 411;
     this.warningsScrolledWindow.Hide();
     this.Show();
     this.newAction.Activated              += new System.EventHandler(this.OnNewActionActivated);
     this.openAction.Activated             += new System.EventHandler(this.OnOpenActionActivated);
     this.saveAction.Activated             += new System.EventHandler(this.OnSaveActionActivated);
     this.saveAsAction.Activated           += new System.EventHandler(this.OnSaveAsActionActivated);
     this.quitAction.Activated             += new System.EventHandler(this.OnQuitActionActivated);
     this.GenerateAction.Activated         += new System.EventHandler(this.OnGenerateActionActivated);
     this.ClearAndGenerateAction.Activated += new System.EventHandler(this.OnClearAndGenerateActionActivated);
     this.ClearAction.Activated            += new System.EventHandler(this.OnClearActionActivated);
     this.CopySelectedAction.Activated     += new System.EventHandler(this.OnCopySelectedActionActivated);
     this.CopyDescriptionsAction.Activated += new System.EventHandler(this.OnCopyDescriptionsActionActivated);
     this.ExportAction.Activated           += new System.EventHandler(this.OnExportActionActivated);
 }
Beispiel #44
0
        public GroupChatView(GroupChatModel groupChat)
            : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            Participants = new List<PersonModel>();
            _OutputHPaned = new Gtk.HPaned();

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            PersonScrolledWindow = sw;
            sw.ShadowType = Gtk.ShadowType.None;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;

            //tv.CanFocus = false;
            tv.BorderWidth = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn column;
            var cellr = new Gtk.CellRendererText() {
                Ellipsize = Pango.EllipsizeMode.End
            };
            IdentityNameCellRenderer = cellr;
            column = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId = 0;
            column.Spacing = 0;
            column.SortIndicator = false;
            column.Expand = true;
            column.Sizing = Gtk.TreeViewColumnSizing.Autosize;
            // FIXME: this callback leaks memory
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model = liststore;
            tv.SearchColumn = 0;
            tv.SearchEqualFunc = (model, col, key, iter) => {
                var person = (PersonModel) model.GetValue(iter, col);
                // Ladies and gentlemen welcome to C
                // 0 means it matched but 0 as bool is false. So if it matches
                // we have to return false. Still not clear? true is false and
                // false is true, weirdo! If you think this is retarded,
                // yes it is.
                return !person.IdentityName.StartsWith(key, StringComparison.InvariantCultureIgnoreCase);
            };
            tv.EnableSearch = true;
            tv.HeadersVisible = false;
            tv.RowActivated += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame() {
                ShadowType = Gtk.ShadowType.In
            };
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox() {
                Spacing = 1
            };

            _TopicTextView = new MessageTextView();
            _TopicTextView.Editable = false;
            _TopicTextView.WrapMode = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType = Gtk.ShadowType.In;
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible = false;
            _TopicScrolledWindow.NoShowAll = true;
            _TopicScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful topic heigth
                int lineWidth, lineHeight;
                using (var layout = _TopicTextView.CreatePangoLayout("Test Topic")) {
                    layout.GetPixelSize(out lineWidth, out lineHeight);
                }
                var lineSpacing = _TopicTextView.PixelsAboveLines +
                                  _TopicTextView.PixelsBelowLines;
                var it = _TopicTextView.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (_TopicTextView.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);
                var bestSize = new Gtk.Requisition() {
                    Height = ((lineHeight + lineSpacing) * newLines) + 4
                };
                args.Requisition = bestSize;
            };

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
Beispiel #45
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);
        }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.Gtk.Container+ContainerChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 293;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.windowPK = new Gtk.ScrolledWindow();
     this.windowPK.CanFocus = true;
     this.windowPK.Name = "windowPK";
     this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.ShadowType = ((Gtk.ShadowType)(1));
     // Container child windowPK.Gtk.Container+ContainerChild
     this.listFK = new Gtk.TreeView();
     this.listFK.CanFocus = true;
     this.listFK.Name = "listFK";
     this.listFK.HeadersClickable = true;
     this.windowPK.Add(this.listFK);
     this.vbox3.Add(this.windowPK);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK]));
     w2.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox = new Gtk.HButtonBox();
     this.hbuttonbox.Name = "hbuttonbox";
     this.hbuttonbox.Spacing = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd = new Gtk.Button();
     this.buttonAdd.CanFocus = true;
     this.buttonAdd.Name = "buttonAdd";
     this.buttonAdd.UseStock = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove = new Gtk.Button();
     this.buttonRemove.Sensitive = false;
     this.buttonRemove.CanFocus = true;
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.UseStock = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox3.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.hpaned.Add(this.vbox3);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3]));
     w6.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vboxColumns = new Gtk.VBox();
     this.vboxColumns.Name = "vboxColumns";
     this.vboxColumns.Spacing = 6;
     // Container child vboxColumns.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.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.columnSelecter = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.columnSelecter.Sensitive = false;
     this.columnSelecter.CanFocus = true;
     this.columnSelecter.Name = "columnSelecter";
     this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.ShadowType = ((Gtk.ShadowType)(1));
     this.columnSelecter.SingleCheck = false;
     this.GtkAlignment2.Add(this.columnSelecter);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("Columns");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel2;
     this.vboxColumns.Add(this.frame1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vboxColumns[this.frame1]));
     w9.Position = 0;
     // Container child vboxColumns.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.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.referenceColumnSelecter = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.referenceColumnSelecter.Sensitive = false;
     this.referenceColumnSelecter.CanFocus = true;
     this.referenceColumnSelecter.Name = "referenceColumnSelecter";
     this.referenceColumnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.referenceColumnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.referenceColumnSelecter.ShadowType = ((Gtk.ShadowType)(1));
     this.referenceColumnSelecter.SingleCheck = false;
     this.GtkAlignment3.Add(this.referenceColumnSelecter);
     this.frame2.Add(this.GtkAlignment3);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Reference Columns");
     this.GtkLabel3.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel3;
     this.vboxColumns.Add(this.frame2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vboxColumns[this.frame2]));
     w12.Position = 1;
     this.hpaned.Add(this.vboxColumns);
     this.Add(this.hpaned);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget OpenVP.GtkGui.LinearPresetEditor
     Stetic.BinContainer.Attach(this);
     this.Name = "OpenVP.GtkGui.LinearPresetEditor";
     // Container child OpenVP.GtkGui.LinearPresetEditor.Gtk.Container+ContainerChild
     this.notebook1             = new Gtk.Notebook();
     this.notebook1.CanFocus    = true;
     this.notebook1.Name        = "notebook1";
     this.notebook1.CurrentPage = 1;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.hpaned1          = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name     = "hpaned1";
     this.hpaned1.Position = 211;
     // 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.hbuttonbox1             = new Gtk.HButtonBox();
     this.hbuttonbox1.Homogeneous = true;
     this.hbuttonbox1.Spacing     = 6;
     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.AddEffect              = new Gtk.Button();
     this.AddEffect.CanFocus     = true;
     this.AddEffect.Name         = "AddEffect";
     this.AddEffect.UseStock     = true;
     this.AddEffect.UseUnderline = true;
     this.AddEffect.Label        = "gtk-add";
     this.hbuttonbox1.Add(this.AddEffect);
     Gtk.ButtonBox.ButtonBoxChild w1 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.AddEffect]));
     w1.Expand = false;
     w1.Fill   = false;
     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.RemoveEffect              = new Gtk.Button();
     this.RemoveEffect.Sensitive    = false;
     this.RemoveEffect.CanFocus     = true;
     this.RemoveEffect.Name         = "RemoveEffect";
     this.RemoveEffect.UseStock     = true;
     this.RemoveEffect.UseUnderline = true;
     this.RemoveEffect.Label        = "gtk-remove";
     this.hbuttonbox1.Add(this.RemoveEffect);
     Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RemoveEffect]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox1.Add(this.hbuttonbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.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.EffectList                  = new Gtk.TreeView();
     this.EffectList.CanFocus         = true;
     this.EffectList.Name             = "EffectList";
     this.EffectList.HeadersVisible   = false;
     this.EffectList.HeadersClickable = true;
     this.GtkScrolledWindow.Add(this.EffectList);
     this.vbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
     w5.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbuttonbox2             = new Gtk.HButtonBox();
     this.hbuttonbox2.Name        = "hbuttonbox2";
     this.hbuttonbox2.Homogeneous = true;
     this.hbuttonbox2.Spacing     = 6;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.UpButton              = new Gtk.Button();
     this.UpButton.Sensitive    = false;
     this.UpButton.CanFocus     = true;
     this.UpButton.Name         = "UpButton";
     this.UpButton.UseStock     = true;
     this.UpButton.UseUnderline = true;
     this.UpButton.Label        = "gtk-go-up";
     this.hbuttonbox2.Add(this.UpButton);
     Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.UpButton]));
     w6.Expand = false;
     w6.Fill   = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.DownButton              = new Gtk.Button();
     this.DownButton.Sensitive    = false;
     this.DownButton.CanFocus     = true;
     this.DownButton.Name         = "DownButton";
     this.DownButton.UseStock     = true;
     this.DownButton.UseUnderline = true;
     this.DownButton.Label        = "gtk-go-down";
     this.hbuttonbox2.Add(this.DownButton);
     Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.DownButton]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     this.vbox1.Add(this.hbuttonbox2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox2]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     this.hpaned1.Add(this.vbox1);
     Gtk.Paned.PanedChild w9 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox1]));
     w9.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.EffectPane      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.EffectPane.Name = "EffectPane";
     this.hpaned1.Add(this.EffectPane);
     this.notebook1.Add(this.hpaned1);
     // Notebook tab
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Effects");
     this.notebook1.SetTabLabel(this.hpaned1, this.label1);
     this.label1.ShowAll();
     // 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.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.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.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbuttonbox3         = new Gtk.HButtonBox();
     this.hbuttonbox3.Name    = "hbuttonbox3";
     this.hbuttonbox3.Spacing = 6;
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.KeybindAddButton              = new Gtk.Button();
     this.KeybindAddButton.CanFocus     = true;
     this.KeybindAddButton.Name         = "KeybindAddButton";
     this.KeybindAddButton.UseStock     = true;
     this.KeybindAddButton.UseUnderline = true;
     this.KeybindAddButton.Label        = "gtk-add";
     this.hbuttonbox3.Add(this.KeybindAddButton);
     Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindAddButton]));
     w12.Expand = false;
     w12.Fill   = false;
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.KeybindRemoveButton              = new Gtk.Button();
     this.KeybindRemoveButton.CanFocus     = true;
     this.KeybindRemoveButton.Name         = "KeybindRemoveButton";
     this.KeybindRemoveButton.UseStock     = true;
     this.KeybindRemoveButton.UseUnderline = true;
     this.KeybindRemoveButton.Label        = "gtk-remove";
     this.hbuttonbox3.Add(this.KeybindRemoveButton);
     Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.KeybindRemoveButton]));
     w13.Position = 1;
     w13.Expand   = false;
     w13.Fill     = false;
     this.vbox2.Add(this.hbuttonbox3);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox3]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.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.KeybindList                  = new Gtk.TreeView();
     this.KeybindList.CanFocus         = true;
     this.KeybindList.Name             = "KeybindList";
     this.KeybindList.HeadersClickable = true;
     this.GtkScrolledWindow1.Add(this.KeybindList);
     this.vbox2.Add(this.GtkScrolledWindow1);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1]));
     w16.Position = 1;
     this.GtkAlignment4.Add(this.vbox2);
     this.frame1.Add(this.GtkAlignment4);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Bound keys</b>");
     this.GtkLabel6.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel6;
     this.hbox1.Add(this.frame1);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1]));
     w19.Position = 0;
     w19.Expand   = false;
     w19.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame2            = new Gtk.Frame();
     this.frame2.Name       = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment9             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment9.Name        = "GtkAlignment9";
     this.GtkAlignment9.LeftPadding = ((uint)(12));
     this.frame2.Add(this.GtkAlignment9);
     this.GtkLabel7           = new Gtk.Label();
     this.GtkLabel7.Name      = "GtkLabel7";
     this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Script</b>");
     this.GtkLabel7.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel7;
     this.vbox4.Add(this.frame2);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame2]));
     w21.Position = 0;
     // Container child vbox4.Gtk.Box+BoxChild
     this.frame3            = new Gtk.Frame();
     this.frame3.Name       = "frame3";
     this.frame3.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame3.Gtk.Container+ContainerChild
     this.GtkAlignment8             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment8.Name        = "GtkAlignment8";
     this.GtkAlignment8.LeftPadding = ((uint)(12));
     // Container child GtkAlignment8.Gtk.Container+ContainerChild
     this.table1               = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.KeybindEventCheck              = new Gtk.ToggleButton();
     this.KeybindEventCheck.CanFocus     = true;
     this.KeybindEventCheck.Name         = "KeybindEventCheck";
     this.KeybindEventCheck.UseUnderline = true;
     this.KeybindEventCheck.Active       = true;
     this.KeybindEventCheck.Label        = Mono.Unix.Catalog.GetString("On press");
     this.table1.Add(this.KeybindEventCheck);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.KeybindEventCheck]));
     w22.TopAttach    = ((uint)(1));
     w22.BottomAttach = ((uint)(2));
     w22.LeftAttach   = ((uint)(1));
     w22.RightAttach  = ((uint)(2));
     w22.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.KeyEntryAlign      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.KeyEntryAlign.Name = "KeyEntryAlign";
     this.table1.Add(this.KeyEntryAlign);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.KeyEntryAlign]));
     w23.LeftAttach  = ((uint)(1));
     w23.RightAttach = ((uint)(2));
     w23.XOptions    = ((Gtk.AttachOptions)(4));
     w23.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Key:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w24.XOptions = ((Gtk.AttachOptions)(4));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment8.Add(this.table1);
     this.frame3.Add(this.GtkAlignment8);
     this.GtkLabel10           = new Gtk.Label();
     this.GtkLabel10.Name      = "GtkLabel10";
     this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Trigger</b>");
     this.GtkLabel10.UseMarkup = true;
     this.frame3.LabelWidget   = this.GtkLabel10;
     this.vbox4.Add(this.frame3);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3]));
     w27.Position = 1;
     w27.Expand   = false;
     w27.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.hbuttonbox4             = new Gtk.HButtonBox();
     this.hbuttonbox4.Name        = "hbuttonbox4";
     this.hbuttonbox4.Spacing     = 6;
     this.hbuttonbox4.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.KeybindRevertButton              = new Gtk.Button();
     this.KeybindRevertButton.Sensitive    = false;
     this.KeybindRevertButton.CanFocus     = true;
     this.KeybindRevertButton.Name         = "KeybindRevertButton";
     this.KeybindRevertButton.UseStock     = true;
     this.KeybindRevertButton.UseUnderline = true;
     this.KeybindRevertButton.Label        = "gtk-revert-to-saved";
     this.hbuttonbox4.Add(this.KeybindRevertButton);
     Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindRevertButton]));
     w28.Expand = false;
     w28.Fill   = false;
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.KeybindApplyButton              = new Gtk.Button();
     this.KeybindApplyButton.Sensitive    = false;
     this.KeybindApplyButton.CanFocus     = true;
     this.KeybindApplyButton.Name         = "KeybindApplyButton";
     this.KeybindApplyButton.UseStock     = true;
     this.KeybindApplyButton.UseUnderline = true;
     this.KeybindApplyButton.Label        = "gtk-apply";
     this.hbuttonbox4.Add(this.KeybindApplyButton);
     Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4[this.KeybindApplyButton]));
     w29.Position = 1;
     w29.Expand   = false;
     w29.Fill     = false;
     this.vbox4.Add(this.hbuttonbox4);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbuttonbox4]));
     w30.Position = 2;
     w30.Expand   = false;
     w30.Fill     = false;
     this.hbox1.Add(this.vbox4);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox4]));
     w31.Position = 1;
     this.notebook1.Add(this.hbox1);
     Gtk.Notebook.NotebookChild w32 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.hbox1]));
     w32.Position = 1;
     // Notebook tab
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Keybindings");
     this.notebook1.SetTabLabel(this.hbox1, this.label2);
     this.label2.ShowAll();
     this.Add(this.notebook1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.AddEffect.Clicked         += new System.EventHandler(this.OnAddEffectClicked);
     this.RemoveEffect.Clicked      += new System.EventHandler(this.OnRemoveEffectClicked);
     this.UpButton.Clicked          += new System.EventHandler(this.OnUpButtonClicked);
     this.DownButton.Clicked        += new System.EventHandler(this.OnDownButtonClicked);
     this.KeybindEventCheck.Toggled += new System.EventHandler(this.OnKeybindEventCheckToggled);
 }