1 // ------------------------------------------------------------------------------
3 // This code was generated by a tool.
4 // Mono Runtime Version: 2.0.50727.42
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
9 // ------------------------------------------------------------------------------
11 namespace Circ
.Frontend
.GtkSharp
{
14 public partial class MainWindow
{
16 private Gtk
.Action File
;
18 private Gtk
.Action Edit
;
20 private Gtk
.Action Help
;
22 private Gtk
.Action Propos
;
24 private Gtk
.Action Quitter
;
26 private Gtk
.Action Connection
;
28 private Gtk
.VBox MainVBox
;
30 private Gtk
.MenuBar menubar1
;
32 private Gtk
.Notebook serverContainer
;
34 private Gtk
.HBox hbox1
;
36 private Gtk
.Label nickLabel
;
38 private Gtk
.Entry chatEntry
;
40 protected virtual void Build() {
41 Stetic
.Gui
.Initialize();
42 // Widget Circ.Frontend.GtkSharp.MainWindow
43 Gtk
.UIManager w1
= new Gtk
.UIManager();
44 Gtk
.ActionGroup w2
= new Gtk
.ActionGroup("Default");
45 this.File
= new Gtk
.Action("File", Mono
.Unix
.Catalog
.GetString("_File"), null, null);
46 this.File
.ShortLabel
= "_File";
47 w2
.Add(this.File
, null);
48 this.Edit
= new Gtk
.Action("Edit", Mono
.Unix
.Catalog
.GetString("_Edit"), null, null);
49 this.Edit
.ShortLabel
= "_Edit";
50 w2
.Add(this.Edit
, null);
51 this.Help
= new Gtk
.Action("Help", Mono
.Unix
.Catalog
.GetString("_Help"), null, null);
52 this.Help
.ShortLabel
= "_Help";
53 w2
.Add(this.Help
, null);
54 this.Propos
= new Gtk
.Action("Propos", Mono
.Unix
.Catalog
.GetString("À _propos"), null, "gtk-about");
55 this.Propos
.ShortLabel
= "À _propos";
56 w2
.Add(this.Propos
, null);
57 this.Quitter
= new Gtk
.Action("Quitter", Mono
.Unix
.Catalog
.GetString("_Quitter"), null, "gtk-quit");
58 this.Quitter
.ShortLabel
= "_Quitter";
59 w2
.Add(this.Quitter
, null);
60 this.Connection
= new Gtk
.Action("Connection", Mono
.Unix
.Catalog
.GetString("Connection..."), null, null);
61 this.Connection
.ShortLabel
= "Connection...";
62 w2
.Add(this.Connection
, null);
63 w1
.InsertActionGroup(w2
, 0);
64 this.AddAccelGroup(w1
.AccelGroup
);
65 this.Name
= "Circ.Frontend.GtkSharp.MainWindow";
66 this.Title
= Mono
.Unix
.Catalog
.GetString("Circ");
67 this.Icon
= Gdk
.Pixbuf
.LoadFromResource("chat_small.png");
68 this.AllowShrink
= true;
69 this.DefaultWidth
= 800;
70 this.DefaultHeight
= 600;
71 // Container child Circ.Frontend.GtkSharp.MainWindow.Gtk.Container+ContainerChild
72 this.MainVBox
= new Gtk
.VBox();
73 this.MainVBox
.Name
= "MainVBox";
74 this.MainVBox
.Spacing
= 3;
75 // Container child MainVBox.Gtk.Box+BoxChild
76 w1
.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Connection'/><menuitem action='Quitter'/></menu><menu action='Edit'/><menu action='Help'><menuitem action='Propos'/></menu></menubar></ui>");
77 this.menubar1
= ((Gtk
.MenuBar
)(w1
.GetWidget("/menubar1")));
78 this.menubar1
.Name
= "menubar1";
79 this.MainVBox
.Add(this.menubar1
);
80 Gtk
.Box
.BoxChild w3
= ((Gtk
.Box
.BoxChild
)(this.MainVBox
[this.menubar1
]));
84 // Container child MainVBox.Gtk.Box+BoxChild
85 this.serverContainer
= new Gtk
.Notebook();
86 this.serverContainer
.CanFocus
= true;
87 this.serverContainer
.Name
= "serverContainer";
88 this.MainVBox
.Add(this.serverContainer
);
89 Gtk
.Box
.BoxChild w4
= ((Gtk
.Box
.BoxChild
)(this.MainVBox
[this.serverContainer
]));
91 // Container child MainVBox.Gtk.Box+BoxChild
92 this.hbox1
= new Gtk
.HBox();
93 this.hbox1
.Name
= "hbox1";
94 this.hbox1
.BorderWidth
= ((uint)(3));
95 // Container child hbox1.Gtk.Box+BoxChild
96 this.nickLabel
= new Gtk
.Label();
97 this.nickLabel
.Name
= "nickLabel";
98 this.nickLabel
.LabelProp
= Mono
.Unix
.Catalog
.GetString("Your Nick : ");
99 this.hbox1
.Add(this.nickLabel
);
100 Gtk
.Box
.BoxChild w5
= ((Gtk
.Box
.BoxChild
)(this.hbox1
[this.nickLabel
]));
104 // Container child hbox1.Gtk.Box+BoxChild
105 this.chatEntry
= new Gtk
.Entry();
106 this.chatEntry
.CanFocus
= true;
107 this.chatEntry
.Name
= "chatEntry";
108 this.chatEntry
.IsEditable
= true;
109 this.chatEntry
.InvisibleChar
= '●';
110 this.hbox1
.Add(this.chatEntry
);
111 Gtk
.Box
.BoxChild w6
= ((Gtk
.Box
.BoxChild
)(this.hbox1
[this.chatEntry
]));
113 this.MainVBox
.Add(this.hbox1
);
114 Gtk
.Box
.BoxChild w7
= ((Gtk
.Box
.BoxChild
)(this.MainVBox
[this.hbox1
]));
118 this.Add(this.MainVBox
);
119 if ((this.Child
!= null)) {
120 this.Child
.ShowAll();
123 this.Propos
.Activated
+= new System
.EventHandler(this.About_Clicked
);
124 this.Quitter
.Activated
+= new System
.EventHandler(this.OnDeleteEvt
);
125 this.Connection
.Activated
+= new System
.EventHandler(this.ConnectionActivatedHandler
);