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