view gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 167:9808adf2d566

Re #419: Remove assumptions of a file-based install * Update GTK# GUI to use Streams version of XSLT export
author IBBoard <dev@ibboard.co.uk>
date Wed, 28 Nov 2012 20:25:53 +0000
parents 6b4cc1fc3f42
children
line source
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace IBBoard.WarFoundry.GUI.GTK
4 {
5 public partial class FrmMainWindow
6 {
7 private global::Gtk.UIManager UIManager;
8 private global::Gtk.Action menuFile;
9 private global::Gtk.Action miNewArmy;
10 private global::Gtk.Action miOpenArmy;
11 private global::Gtk.Action miSaveArmy;
12 private global::Gtk.Action miSaveArmyAs;
13 private global::Gtk.Action miCloseArmy;
14 private global::Gtk.Action miReloadFiles;
15 private global::Gtk.Action miExit;
16 private global::Gtk.Action menuEdit;
17 private global::Gtk.Action miUndo;
18 private global::Gtk.Action miRedo;
19 private global::Gtk.Action menuHelp;
20 private global::Gtk.Action miAbout;
21 private global::Gtk.Action miDebugInformation;
22 private global::Gtk.Action bttnNewArmy;
23 private global::Gtk.Action bttnOpenArmy;
24 private global::Gtk.Action bttnSaveArmy;
25 private global::Gtk.Action bttnUndo;
26 private global::Gtk.Action bttnRedo;
27 private global::Gtk.Action goDown;
28 private global::Gtk.Action add;
29 private global::Gtk.Action miExportArmyAs;
30 private global::Gtk.Action miExportArmyAsBasicHTML;
31 private global::Gtk.Action miPreferences;
32 private global::Gtk.Action miExportArmyAsTransformedXml;
33 private global::Gtk.Action miEditArmy;
34 private global::Gtk.Action miAddDataFile;
35 private global::Gtk.VBox vbox1;
36 private global::Gtk.MenuBar menubar1;
37 private global::Gtk.Toolbar toolbar;
38 private global::Gtk.Statusbar statusbar;
39 private global::Gtk.EventBox validationEventbox;
40 private global::Gtk.Label lblValidationWarning;
41 private global::Gtk.HPaned mainContent;
42 private global::Gtk.TreeView treeUnits;
43 private global::Gtk.Notebook unitsNotebook;
45 protected virtual void Build ()
46 {
47 global::Stetic.Gui.Initialize (this);
48 // Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow
49 this.UIManager = new global::Gtk.UIManager ();
50 global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
51 this.menuFile = new global::Gtk.Action ("menuFile", global::Mono.Unix.Catalog.GetString ("File"), null, null);
52 this.menuFile.ShortLabel = global::Mono.Unix.Catalog.GetString ("File");
53 w1.Add (this.menuFile, null);
54 this.miNewArmy = new global::Gtk.Action ("miNewArmy", global::Mono.Unix.Catalog.GetString ("Create army"), null, "gtk-new");
55 this.miNewArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Create army");
56 w1.Add (this.miNewArmy, null);
57 this.miOpenArmy = new global::Gtk.Action ("miOpenArmy", global::Mono.Unix.Catalog.GetString ("Open army"), null, "gtk-open");
58 this.miOpenArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Open army");
59 w1.Add (this.miOpenArmy, null);
60 this.miSaveArmy = new global::Gtk.Action ("miSaveArmy", global::Mono.Unix.Catalog.GetString ("Save army"), null, "gtk-save");
61 this.miSaveArmy.Sensitive = false;
62 this.miSaveArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save army");
63 w1.Add (this.miSaveArmy, null);
64 this.miSaveArmyAs = new global::Gtk.Action ("miSaveArmyAs", global::Mono.Unix.Catalog.GetString ("Save army as"), null, "gtk-save-as");
65 this.miSaveArmyAs.Sensitive = false;
66 this.miSaveArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save army as");
67 w1.Add (this.miSaveArmyAs, null);
68 this.miCloseArmy = new global::Gtk.Action ("miCloseArmy", global::Mono.Unix.Catalog.GetString ("Close army"), null, "gtk-close");
69 this.miCloseArmy.Sensitive = false;
70 this.miCloseArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Close army");
71 w1.Add (this.miCloseArmy, null);
72 this.miReloadFiles = new global::Gtk.Action ("miReloadFiles", global::Mono.Unix.Catalog.GetString ("Reload files"), null, "gtk-refresh");
73 this.miReloadFiles.ShortLabel = global::Mono.Unix.Catalog.GetString ("Reload files");
74 w1.Add (this.miReloadFiles, null);
75 this.miExit = new global::Gtk.Action ("miExit", global::Mono.Unix.Catalog.GetString ("Exit"), null, "gtk-quit");
76 this.miExit.ShortLabel = global::Mono.Unix.Catalog.GetString ("Exit");
77 w1.Add (this.miExit, null);
78 this.menuEdit = new global::Gtk.Action ("menuEdit", global::Mono.Unix.Catalog.GetString ("Edit"), null, null);
79 this.menuEdit.ShortLabel = global::Mono.Unix.Catalog.GetString ("Edit");
80 w1.Add (this.menuEdit, null);
81 this.miUndo = new global::Gtk.Action ("miUndo", global::Mono.Unix.Catalog.GetString ("Undo"), null, "gtk-undo");
82 this.miUndo.Sensitive = false;
83 this.miUndo.ShortLabel = global::Mono.Unix.Catalog.GetString ("Undo");
84 w1.Add (this.miUndo, null);
85 this.miRedo = new global::Gtk.Action ("miRedo", global::Mono.Unix.Catalog.GetString ("Redo"), null, "gtk-redo");
86 this.miRedo.Sensitive = false;
87 this.miRedo.ShortLabel = global::Mono.Unix.Catalog.GetString ("Redo");
88 w1.Add (this.miRedo, null);
89 this.menuHelp = new global::Gtk.Action ("menuHelp", global::Mono.Unix.Catalog.GetString ("Help"), null, null);
90 this.menuHelp.ShortLabel = global::Mono.Unix.Catalog.GetString ("Help");
91 w1.Add (this.menuHelp, null);
92 this.miAbout = new global::Gtk.Action ("miAbout", global::Mono.Unix.Catalog.GetString ("About"), null, "gtk-about");
93 this.miAbout.ShortLabel = global::Mono.Unix.Catalog.GetString ("About");
94 w1.Add (this.miAbout, null);
95 this.miDebugInformation = new global::Gtk.Action ("miDebugInformation", global::Mono.Unix.Catalog.GetString ("Debug Information"), null, null);
96 this.miDebugInformation.ShortLabel = global::Mono.Unix.Catalog.GetString ("Debug Information");
97 w1.Add (this.miDebugInformation, null);
98 this.bttnNewArmy = new global::Gtk.Action ("bttnNewArmy", null, null, "gtk-new");
99 w1.Add (this.bttnNewArmy, null);
100 this.bttnOpenArmy = new global::Gtk.Action ("bttnOpenArmy", null, null, "gtk-open");
101 w1.Add (this.bttnOpenArmy, null);
102 this.bttnSaveArmy = new global::Gtk.Action ("bttnSaveArmy", null, null, "gtk-save");
103 this.bttnSaveArmy.Sensitive = false;
104 w1.Add (this.bttnSaveArmy, null);
105 this.bttnUndo = new global::Gtk.Action ("bttnUndo", null, null, "gtk-undo");
106 this.bttnUndo.Sensitive = false;
107 w1.Add (this.bttnUndo, null);
108 this.bttnRedo = new global::Gtk.Action ("bttnRedo", null, null, "gtk-redo");
109 this.bttnRedo.Sensitive = false;
110 w1.Add (this.bttnRedo, null);
111 this.goDown = new global::Gtk.Action ("goDown", null, null, null);
112 w1.Add (this.goDown, null);
113 this.add = new global::Gtk.Action ("add", null, null, "gtk-add");
114 w1.Add (this.add, null);
115 this.miExportArmyAs = new global::Gtk.Action ("miExportArmyAs", global::Mono.Unix.Catalog.GetString ("Export army as..."), null, "gtk-convert");
116 this.miExportArmyAs.Sensitive = false;
117 this.miExportArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString ("Export army as...");
118 w1.Add (this.miExportArmyAs, null);
119 this.miExportArmyAsBasicHTML = new global::Gtk.Action ("miExportArmyAsBasicHTML", global::Mono.Unix.Catalog.GetString ("Basic HTML"), null, null);
120 this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString ("Basic HTML");
121 w1.Add (this.miExportArmyAsBasicHTML, null);
122 this.miPreferences = new global::Gtk.Action ("miPreferences", global::Mono.Unix.Catalog.GetString ("preferences"), null, "gtk-preferences");
123 this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString ("preferences");
124 w1.Add (this.miPreferences, null);
125 this.miExportArmyAsTransformedXml = new global::Gtk.Action ("miExportArmyAsTransformedXml", global::Mono.Unix.Catalog.GetString ("transformed xml"), null, null);
126 this.miExportArmyAsTransformedXml.ShortLabel = global::Mono.Unix.Catalog.GetString ("transformed xml");
127 w1.Add (this.miExportArmyAsTransformedXml, null);
128 this.miEditArmy = new global::Gtk.Action ("miEditArmy", global::Mono.Unix.Catalog.GetString ("_edit army"), null, "gtk-edit");
129 this.miEditArmy.Sensitive = false;
130 this.miEditArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("_edit army");
131 w1.Add (this.miEditArmy, null);
132 this.miAddDataFile = new global::Gtk.Action ("miAddDataFile", global::Mono.Unix.Catalog.GetString ("Add data file"), null, null);
133 this.miAddDataFile.ShortLabel = global::Mono.Unix.Catalog.GetString ("Add data file");
134 w1.Add (this.miAddDataFile, null);
135 this.UIManager.InsertActionGroup (w1, 0);
136 this.AddAccelGroup (this.UIManager.AccelGroup);
137 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow";
138 this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
139 this.Icon = global::Gdk.Pixbuf.LoadFromResource ("App.ico");
140 // Container child IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.Gtk.Container+ContainerChild
141 this.vbox1 = new global::Gtk.VBox ();
142 this.vbox1.Name = "vbox1";
143 // Container child vbox1.Gtk.Box+BoxChild
144 this.UIManager.AddUiFromString ("<ui><menubar name='menubar1'><menu name='menuFile' action='menuFile'><menuitem name='miNewArmy' action='miNewArmy'/><menuitem name='miOpenArmy' action='miOpenArmy'/><menuitem name='miSaveArmy' action='miSaveArmy'/><menuitem name='miSaveArmyAs' action='miSaveArmyAs'/><menu name='miExportArmyAs' action='miExportArmyAs'><menuitem name='miExportArmyAsBasicHTML' action='miExportArmyAsBasicHTML'/><menuitem name='miExportArmyAsTransformedXml' action='miExportArmyAsTransformedXml'/></menu><menuitem name='miCloseArmy' action='miCloseArmy'/><separator/><menuitem name='miAddDataFile' action='miAddDataFile'/><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'/><separator/><menuitem name='miEditArmy' action='miEditArmy'/><separator/><menuitem name='miPreferences' action='miPreferences'/></menu><menu name='menuHelp' action='menuHelp'><menuitem name='miAbout' action='miAbout'/></menu></menubar></ui>");
145 this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar1")));
146 this.menubar1.Name = "menubar1";
147 this.vbox1.Add (this.menubar1);
148 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.menubar1]));
149 w2.Position = 0;
150 w2.Expand = false;
151 w2.Fill = false;
152 // Container child vbox1.Gtk.Box+BoxChild
153 this.UIManager.AddUiFromString ("<ui><toolbar name='toolbar'><toolitem name='bttnNewArmy' action='bttnNewArmy'/><toolitem name='bttnOpenArmy' action='bttnOpenArmy'/><toolitem name='bttnSaveArmy' action='bttnSaveArmy'/><separator/><toolitem name='bttnUndo' action='bttnUndo'/><toolitem name='bttnRedo' action='bttnRedo'/><separator/></toolbar></ui>");
154 this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar")));
155 this.toolbar.HeightRequest = 36;
156 this.toolbar.Name = "toolbar";
157 this.toolbar.ShowArrow = false;
158 this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
159 this.toolbar.IconSize = ((global::Gtk.IconSize)(3));
160 this.vbox1.Add (this.toolbar);
161 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.toolbar]));
162 w3.Position = 1;
163 w3.Expand = false;
164 w3.Fill = false;
165 // Container child vbox1.Gtk.Box+BoxChild
166 this.statusbar = new global::Gtk.Statusbar ();
167 this.statusbar.Name = "statusbar";
168 this.statusbar.Spacing = 6;
169 this.statusbar.BorderWidth = ((uint)(1));
170 // Container child statusbar.Gtk.Box+BoxChild
171 this.validationEventbox = new global::Gtk.EventBox ();
172 this.validationEventbox.Name = "validationEventbox";
173 // Container child validationEventbox.Gtk.Container+ContainerChild
174 this.lblValidationWarning = new global::Gtk.Label ();
175 this.lblValidationWarning.Name = "lblValidationWarning";
176 this.validationEventbox.Add (this.lblValidationWarning);
177 this.statusbar.Add (this.validationEventbox);
178 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.validationEventbox]));
179 w5.Position = 1;
180 w5.Expand = false;
181 w5.Fill = false;
182 this.vbox1.Add (this.statusbar);
183 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar]));
184 w6.PackType = ((global::Gtk.PackType)(1));
185 w6.Position = 2;
186 w6.Expand = false;
187 w6.Fill = false;
188 // Container child vbox1.Gtk.Box+BoxChild
189 this.mainContent = new global::Gtk.HPaned ();
190 this.mainContent.CanFocus = true;
191 this.mainContent.Name = "mainContent";
192 this.mainContent.Position = 180;
193 // Container child mainContent.Gtk.Paned+PanedChild
194 this.treeUnits = new global::Gtk.TreeView ();
195 this.treeUnits.CanFocus = true;
196 this.treeUnits.Name = "treeUnits";
197 this.mainContent.Add (this.treeUnits);
198 global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits]));
199 w7.Resize = false;
200 // Container child mainContent.Gtk.Paned+PanedChild
201 this.unitsNotebook = new global::Gtk.Notebook ();
202 this.unitsNotebook.CanFocus = true;
203 this.unitsNotebook.Name = "unitsNotebook";
204 this.unitsNotebook.CurrentPage = -1;
205 this.unitsNotebook.Scrollable = true;
206 this.mainContent.Add (this.unitsNotebook);
207 global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook]));
208 w8.Shrink = false;
209 this.vbox1.Add (this.mainContent);
210 global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent]));
211 w9.PackType = ((global::Gtk.PackType)(1));
212 w9.Position = 3;
213 this.Add (this.vbox1);
214 if ((this.Child != null)) {
215 this.Child.ShowAll ();
216 }
217 this.DefaultWidth = 832;
218 this.DefaultHeight = 659;
219 this.treeUnits.Hide ();
220 this.Show ();
221 this.miNewArmy.Activated += new global::System.EventHandler (this.OnCreateArmyActivated);
222 this.miOpenArmy.Activated += new global::System.EventHandler (this.OnOpenArmyActivated);
223 this.miSaveArmy.Activated += new global::System.EventHandler (this.OnSaveArmyActivated);
224 this.miSaveArmyAs.Activated += new global::System.EventHandler (this.OnSaveArmyAsActivated);
225 this.miCloseArmy.Activated += new global::System.EventHandler (this.OnCloseArmyActivated);
226 this.miReloadFiles.Activated += new global::System.EventHandler (this.OnReloadFilesActivated);
227 this.miExit.Activated += new global::System.EventHandler (this.OnExitActivated);
228 this.miAbout.Activated += new global::System.EventHandler (this.HelpAboutActivated);
229 this.bttnNewArmy.Activated += new global::System.EventHandler (this.newTBButtonActivated);
230 this.bttnOpenArmy.Activated += new global::System.EventHandler (this.openTBButtonActivated);
231 this.bttnSaveArmy.Activated += new global::System.EventHandler (this.saveTBButtonActivated);
232 this.bttnUndo.Activated += new global::System.EventHandler (this.undoTBButtonActivated);
233 this.bttnRedo.Activated += new global::System.EventHandler (this.redoTBButtonActivated);
234 this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler (this.OnMiExportAsBasicHtmlActivated);
235 this.miPreferences.Activated += new global::System.EventHandler (this.miPreferencesClicked);
236 this.miExportArmyAsTransformedXml.Activated += new global::System.EventHandler (this.OnTransformedXmlActionActivated);
237 this.miEditArmy.Activated += new global::System.EventHandler (this.OnMiEditArmyActivated);
238 this.miAddDataFile.Activated += new global::System.EventHandler (this.OnAddNewFileActionActivated);
239 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler (this.ArmyRowActivated);
240 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler (this.OnTreeUnitsPopupMenu);
241 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler (this.UnitTreeButtonPressed);
242 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler (this.NotebookPageRemoved);
243 this.validationEventbox.ButtonReleaseEvent += new global::Gtk.ButtonReleaseEventHandler (this.OnLblValidationWarningButtonReleaseEvent);
244 }
245 }
246 }