Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
comparison gtk-gui/IBBoard.WarFoundry.FrmMainWindow.cs @ 0:1bb28f84d567
Initial commit of WarFoundry code
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 19 Dec 2008 15:57:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1bb28f84d567 |
---|---|
1 // ------------------------------------------------------------------------------ | |
2 // <autogenerated> | |
3 // This code was generated by a tool. | |
4 // Mono Runtime Version: 2.0.50727.42 | |
5 // | |
6 // Changes to this file may cause incorrect behavior and will be lost if | |
7 // the code is regenerated. | |
8 // </autogenerated> | |
9 // ------------------------------------------------------------------------------ | |
10 | |
11 namespace IBBoard.WarFoundry { | |
12 | |
13 | |
14 public partial class FrmMainWindow { | |
15 | |
16 private Gtk.Action menuFile; | |
17 | |
18 private Gtk.Action miCreateArmy; | |
19 | |
20 private Gtk.Action miOpenArmy; | |
21 | |
22 private Gtk.Action miSaveArmy; | |
23 | |
24 private Gtk.Action miSaveArmyAs; | |
25 | |
26 private Gtk.Action miCloseArmy; | |
27 | |
28 private Gtk.Action miChangeGameSystem; | |
29 | |
30 private Gtk.Action miReloadFiles; | |
31 | |
32 private Gtk.Action miExit; | |
33 | |
34 private Gtk.Action menuEdit; | |
35 | |
36 private Gtk.Action miUndo; | |
37 | |
38 private Gtk.Action miRedo; | |
39 | |
40 private Gtk.Action menuHelp; | |
41 | |
42 private Gtk.Action miAbout; | |
43 | |
44 private Gtk.Action miDebugInformation; | |
45 | |
46 private Gtk.Action newArmyButton; | |
47 | |
48 private Gtk.Action openArmyButton; | |
49 | |
50 private Gtk.Action saveArmyButton; | |
51 | |
52 private Gtk.Action undoActionButton; | |
53 | |
54 private Gtk.Action redoActionButton; | |
55 | |
56 private Gtk.Action goDown; | |
57 | |
58 private Gtk.Action add; | |
59 | |
60 private Gtk.VBox vbox1; | |
61 | |
62 private Gtk.MenuBar menubar1; | |
63 | |
64 private Gtk.Toolbar toolbar; | |
65 | |
66 private Gtk.HPaned hpaned2; | |
67 | |
68 private Gtk.TreeView treeUnits; | |
69 | |
70 private Gtk.Notebook unitsNotebook; | |
71 | |
72 private Gtk.Statusbar statusbar1; | |
73 | |
74 protected virtual void Build() { | |
75 Stetic.Gui.Initialize(this); | |
76 // Widget IBBoard.WarFoundry.FrmMainWindow | |
77 Gtk.UIManager w1 = new Gtk.UIManager(); | |
78 Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); | |
79 this.menuFile = new Gtk.Action("menuFile", Mono.Unix.Catalog.GetString("File"), null, null); | |
80 this.menuFile.ShortLabel = Mono.Unix.Catalog.GetString("File"); | |
81 w2.Add(this.menuFile, null); | |
82 this.miCreateArmy = new Gtk.Action("miCreateArmy", Mono.Unix.Catalog.GetString("Create army"), null, null); | |
83 this.miCreateArmy.Sensitive = false; | |
84 this.miCreateArmy.ShortLabel = Mono.Unix.Catalog.GetString("Create army"); | |
85 w2.Add(this.miCreateArmy, null); | |
86 this.miOpenArmy = new Gtk.Action("miOpenArmy", Mono.Unix.Catalog.GetString("Open army"), null, null); | |
87 this.miOpenArmy.Sensitive = false; | |
88 this.miOpenArmy.ShortLabel = Mono.Unix.Catalog.GetString("Open army"); | |
89 w2.Add(this.miOpenArmy, null); | |
90 this.miSaveArmy = new Gtk.Action("miSaveArmy", Mono.Unix.Catalog.GetString("Save army"), null, null); | |
91 this.miSaveArmy.Sensitive = false; | |
92 this.miSaveArmy.ShortLabel = Mono.Unix.Catalog.GetString("Save army"); | |
93 w2.Add(this.miSaveArmy, null); | |
94 this.miSaveArmyAs = new Gtk.Action("miSaveArmyAs", Mono.Unix.Catalog.GetString("Save army as"), null, null); | |
95 this.miSaveArmyAs.Sensitive = false; | |
96 this.miSaveArmyAs.ShortLabel = Mono.Unix.Catalog.GetString("Save army as"); | |
97 w2.Add(this.miSaveArmyAs, null); | |
98 this.miCloseArmy = new Gtk.Action("miCloseArmy", Mono.Unix.Catalog.GetString("Close army"), null, null); | |
99 this.miCloseArmy.Sensitive = false; | |
100 this.miCloseArmy.ShortLabel = Mono.Unix.Catalog.GetString("Close army"); | |
101 w2.Add(this.miCloseArmy, null); | |
102 this.miChangeGameSystem = new Gtk.Action("miChangeGameSystem", Mono.Unix.Catalog.GetString("Change game system"), null, null); | |
103 this.miChangeGameSystem.ShortLabel = Mono.Unix.Catalog.GetString("Change game system"); | |
104 w2.Add(this.miChangeGameSystem, null); | |
105 this.miReloadFiles = new Gtk.Action("miReloadFiles", Mono.Unix.Catalog.GetString("Reload files"), null, null); | |
106 this.miReloadFiles.Sensitive = false; | |
107 this.miReloadFiles.ShortLabel = Mono.Unix.Catalog.GetString("Reload files"); | |
108 w2.Add(this.miReloadFiles, null); | |
109 this.miExit = new Gtk.Action("miExit", Mono.Unix.Catalog.GetString("Exit"), null, null); | |
110 this.miExit.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); | |
111 w2.Add(this.miExit, null); | |
112 this.menuEdit = new Gtk.Action("menuEdit", Mono.Unix.Catalog.GetString("Edit"), null, null); | |
113 this.menuEdit.ShortLabel = Mono.Unix.Catalog.GetString("Edit"); | |
114 w2.Add(this.menuEdit, null); | |
115 this.miUndo = new Gtk.Action("miUndo", Mono.Unix.Catalog.GetString("Undo"), null, null); | |
116 this.miUndo.Sensitive = false; | |
117 this.miUndo.ShortLabel = Mono.Unix.Catalog.GetString("Undo"); | |
118 w2.Add(this.miUndo, null); | |
119 this.miRedo = new Gtk.Action("miRedo", Mono.Unix.Catalog.GetString("Redo"), null, null); | |
120 this.miRedo.Sensitive = false; | |
121 this.miRedo.ShortLabel = Mono.Unix.Catalog.GetString("Redo"); | |
122 w2.Add(this.miRedo, null); | |
123 this.menuHelp = new Gtk.Action("menuHelp", Mono.Unix.Catalog.GetString("Help"), null, null); | |
124 this.menuHelp.ShortLabel = Mono.Unix.Catalog.GetString("Help"); | |
125 w2.Add(this.menuHelp, null); | |
126 this.miAbout = new Gtk.Action("miAbout", Mono.Unix.Catalog.GetString("About"), null, null); | |
127 this.miAbout.ShortLabel = Mono.Unix.Catalog.GetString("About"); | |
128 w2.Add(this.miAbout, null); | |
129 this.miDebugInformation = new Gtk.Action("miDebugInformation", Mono.Unix.Catalog.GetString("Debug Information"), null, null); | |
130 this.miDebugInformation.ShortLabel = Mono.Unix.Catalog.GetString("Debug Information"); | |
131 w2.Add(this.miDebugInformation, null); | |
132 this.newArmyButton = new Gtk.Action("newArmyButton", null, null, "gtk-new"); | |
133 this.newArmyButton.Sensitive = false; | |
134 w2.Add(this.newArmyButton, null); | |
135 this.openArmyButton = new Gtk.Action("openArmyButton", null, null, "gtk-open"); | |
136 this.openArmyButton.Sensitive = false; | |
137 w2.Add(this.openArmyButton, null); | |
138 this.saveArmyButton = new Gtk.Action("saveArmyButton", null, null, "gtk-save"); | |
139 this.saveArmyButton.Sensitive = false; | |
140 w2.Add(this.saveArmyButton, null); | |
141 this.undoActionButton = new Gtk.Action("undoActionButton", null, null, "gtk-undo"); | |
142 this.undoActionButton.Sensitive = false; | |
143 w2.Add(this.undoActionButton, null); | |
144 this.redoActionButton = new Gtk.Action("redoActionButton", null, null, "gtk-redo"); | |
145 this.redoActionButton.Sensitive = false; | |
146 w2.Add(this.redoActionButton, null); | |
147 this.goDown = new Gtk.Action("goDown", null, null, null); | |
148 w2.Add(this.goDown, null); | |
149 this.add = new Gtk.Action("add", null, null, "gtk-add"); | |
150 w2.Add(this.add, null); | |
151 w1.InsertActionGroup(w2, 0); | |
152 this.AddAccelGroup(w1.AccelGroup); | |
153 this.Name = "IBBoard.WarFoundry.FrmMainWindow"; | |
154 this.Title = Mono.Unix.Catalog.GetString("MainWindow"); | |
155 this.Icon = Gdk.Pixbuf.LoadFromResource("App.ico"); | |
156 // Container child IBBoard.WarFoundry.FrmMainWindow.Gtk.Container+ContainerChild | |
157 this.vbox1 = new Gtk.VBox(); | |
158 this.vbox1.Name = "vbox1"; | |
159 // Container child vbox1.Gtk.Box+BoxChild | |
160 w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='menuFile'><menuitem action='miCreateArmy'/><menuitem action='miOpenArmy'/><menuitem action='miSaveArmy'/><menuitem action='miSaveArmyAs'/><menuitem action='miCloseArmy'/><separator/><menuitem action='miChangeGameSystem'/><separator/><menuitem action='miReloadFiles'/><separator/><menuitem action='miExit'/></menu><menu action='menuEdit'><menuitem action='miUndo'/><menuitem action='miRedo'/></menu><menu action='menuHelp'><menuitem action='miAbout'/><menuitem action='miDebugInformation'/></menu></menubar></ui>"); | |
161 this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); | |
162 this.menubar1.Name = "menubar1"; | |
163 this.vbox1.Add(this.menubar1); | |
164 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); | |
165 w3.Position = 0; | |
166 w3.Expand = false; | |
167 w3.Fill = false; | |
168 // Container child vbox1.Gtk.Box+BoxChild | |
169 w1.AddUiFromString("<ui><toolbar name='toolbar'><toolitem action='newArmyButton'/><toolitem action='openArmyButton'/><toolitem action='saveArmyButton'/><separator/><toolitem action='undoActionButton'/><toolitem action='redoActionButton'/><separator/></toolbar></ui>"); | |
170 this.toolbar = ((Gtk.Toolbar)(w1.GetWidget("/toolbar"))); | |
171 this.toolbar.HeightRequest = 36; | |
172 this.toolbar.Name = "toolbar"; | |
173 this.toolbar.ShowArrow = false; | |
174 this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); | |
175 this.vbox1.Add(this.toolbar); | |
176 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar])); | |
177 w4.Position = 1; | |
178 w4.Expand = false; | |
179 w4.Fill = false; | |
180 // Container child vbox1.Gtk.Box+BoxChild | |
181 this.hpaned2 = new Gtk.HPaned(); | |
182 this.hpaned2.CanFocus = true; | |
183 this.hpaned2.Name = "hpaned2"; | |
184 this.hpaned2.Position = 178; | |
185 // Container child hpaned2.Gtk.Paned+PanedChild | |
186 this.treeUnits = new Gtk.TreeView(); | |
187 this.treeUnits.CanFocus = true; | |
188 this.treeUnits.Name = "treeUnits"; | |
189 this.treeUnits.HeadersClickable = true; | |
190 this.hpaned2.Add(this.treeUnits); | |
191 Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.treeUnits])); | |
192 w5.Resize = false; | |
193 // Container child hpaned2.Gtk.Paned+PanedChild | |
194 this.unitsNotebook = new Gtk.Notebook(); | |
195 this.unitsNotebook.CanFocus = true; | |
196 this.unitsNotebook.Name = "unitsNotebook"; | |
197 this.unitsNotebook.CurrentPage = -1; | |
198 this.hpaned2.Add(this.unitsNotebook); | |
199 this.vbox1.Add(this.hpaned2); | |
200 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2])); | |
201 w7.Position = 2; | |
202 // Container child vbox1.Gtk.Box+BoxChild | |
203 this.statusbar1 = new Gtk.Statusbar(); | |
204 this.statusbar1.Name = "statusbar1"; | |
205 this.statusbar1.Spacing = 2; | |
206 this.vbox1.Add(this.statusbar1); | |
207 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); | |
208 w8.Position = 3; | |
209 w8.Expand = false; | |
210 w8.Fill = false; | |
211 this.Add(this.vbox1); | |
212 if ((this.Child != null)) { | |
213 this.Child.ShowAll(); | |
214 } | |
215 this.DefaultWidth = 832; | |
216 this.DefaultHeight = 659; | |
217 this.Show(); | |
218 this.miCreateArmy.Activated += new System.EventHandler(this.OnCreateArmyActivated); | |
219 this.miOpenArmy.Activated += new System.EventHandler(this.OnOpenArmyActivated); | |
220 this.miSaveArmy.Activated += new System.EventHandler(this.OnSaveArmyActivated); | |
221 this.miSaveArmyAs.Activated += new System.EventHandler(this.OnSaveArmyAsActivated); | |
222 this.miCloseArmy.Activated += new System.EventHandler(this.OnCloseArmyActivated); | |
223 this.miChangeGameSystem.Activated += new System.EventHandler(this.OnChangeGameSystemActivated); | |
224 this.miReloadFiles.Activated += new System.EventHandler(this.OnReloadFilesActivated); | |
225 this.miExit.Activated += new System.EventHandler(this.OnExitActivated); | |
226 this.newArmyButton.Activated += new System.EventHandler(this.newTBButtonActivated); | |
227 this.openArmyButton.Activated += new System.EventHandler(this.openTBButtonActivated); | |
228 this.saveArmyButton.Activated += new System.EventHandler(this.saveTBButtonActivated); | |
229 this.undoActionButton.Activated += new System.EventHandler(this.undoTBButtonActivated); | |
230 this.redoActionButton.Activated += new System.EventHandler(this.redoTBButtonActivated); | |
231 this.treeUnits.RowActivated += new Gtk.RowActivatedHandler(this.ArmyRowActivated); | |
232 } | |
233 } | |
234 } |