Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
annotate gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 158:6b4cc1fc3f42
Re #417: Improve WarFoundry installation experience
* Make use of new library call to add data files
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 19 May 2012 14:39:10 +0100 |
parents | 2d1dd73a3289 |
children | a8f847c1e305 |
rev | line source |
---|---|
77 | 1 |
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; | |
81
3ff8e10de45a
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
9 private global::Gtk.Action miNewArmy; |
77 | 10 private global::Gtk.Action miOpenArmy; |
11 private global::Gtk.Action miSaveArmy; | |
12 private global::Gtk.Action miSaveArmyAs; | |
13 private global::Gtk.Action miCloseArmy; | |
82
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
14 private global::Gtk.Action miReloadFiles; |
77 | 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; | |
82
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
22 private global::Gtk.Action bttnNewArmy; |
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
23 private global::Gtk.Action bttnOpenArmy; |
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
24 private global::Gtk.Action bttnSaveArmy; |
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
25 private global::Gtk.Action bttnUndo; |
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
26 private global::Gtk.Action bttnRedo; |
77 | 27 private global::Gtk.Action goDown; |
28 private global::Gtk.Action add; | |
81
3ff8e10de45a
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
29 private global::Gtk.Action miExportArmyAs; |
100
23b1c3bdc525
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
99
diff
changeset
|
30 private global::Gtk.Action miExportArmyAsBasicHTML; |
95
ea4069bbe6e9
Re #309: Add initial preference dialog with language support
IBBoard <dev@ibboard.co.uk>
parents:
82
diff
changeset
|
31 private global::Gtk.Action miPreferences; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
32 private global::Gtk.Action miExportArmyAsTransformedXml; |
139
d4b726cec12c
Fixes #326: Make army names and sizes modifiable after creation
IBBoard <dev@ibboard.co.uk>
parents:
136
diff
changeset
|
33 private global::Gtk.Action miEditArmy; |
157
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
34 private global::Gtk.Action miAddDataFile; |
77 | 35 private global::Gtk.VBox vbox1; |
36 private global::Gtk.MenuBar menubar1; | |
37 private global::Gtk.Toolbar toolbar; | |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
38 private global::Gtk.Statusbar statusbar; |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
39 private global::Gtk.EventBox validationEventbox; |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
40 private global::Gtk.Label lblValidationWarning; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
41 private global::Gtk.HPaned mainContent; |
77 | 42 private global::Gtk.TreeView treeUnits; |
43 private global::Gtk.Notebook unitsNotebook; | |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
44 |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
45 protected virtual void Build () |
77 | 46 { |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
47 global::Stetic.Gui.Initialize (this); |
77 | 48 // Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
49 this.UIManager = new global::Gtk.UIManager (); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
50 global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default"); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
51 this.menuFile = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
52 "menuFile", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
53 global::Mono.Unix.Catalog.GetString("File"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
54 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
55 null |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
56 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
57 this.menuFile.ShortLabel = global::Mono.Unix.Catalog.GetString ("File"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
58 w1.Add (this.menuFile, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
59 this.miNewArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
60 "miNewArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
61 global::Mono.Unix.Catalog.GetString("Create army"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
62 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
63 "gtk-new" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
64 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
65 this.miNewArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Create army"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
66 w1.Add (this.miNewArmy, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
67 this.miOpenArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
68 "miOpenArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
69 global::Mono.Unix.Catalog.GetString("Open army"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
70 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
71 "gtk-open" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
72 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
73 this.miOpenArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Open army"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
74 w1.Add (this.miOpenArmy, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
75 this.miSaveArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
76 "miSaveArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
77 global::Mono.Unix.Catalog.GetString("Save army"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
78 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
79 "gtk-save" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
80 ); |
77 | 81 this.miSaveArmy.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
82 this.miSaveArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save army"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
83 w1.Add (this.miSaveArmy, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
84 this.miSaveArmyAs = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
85 "miSaveArmyAs", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
86 global::Mono.Unix.Catalog.GetString("Save army as"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
87 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
88 "gtk-save-as" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
89 ); |
77 | 90 this.miSaveArmyAs.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
91 this.miSaveArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save army as"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
92 w1.Add (this.miSaveArmyAs, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
93 this.miCloseArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
94 "miCloseArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
95 global::Mono.Unix.Catalog.GetString("Close army"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
96 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
97 "gtk-close" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
98 ); |
77 | 99 this.miCloseArmy.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
100 this.miCloseArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Close army"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
101 w1.Add (this.miCloseArmy, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
102 this.miReloadFiles = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
103 "miReloadFiles", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
104 global::Mono.Unix.Catalog.GetString("Reload files"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
105 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
106 "gtk-refresh" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
107 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
108 this.miReloadFiles.ShortLabel = global::Mono.Unix.Catalog.GetString ("Reload files"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
109 w1.Add (this.miReloadFiles, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
110 this.miExit = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
111 "miExit", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
112 global::Mono.Unix.Catalog.GetString("Exit"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
113 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
114 "gtk-quit" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
115 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
116 this.miExit.ShortLabel = global::Mono.Unix.Catalog.GetString ("Exit"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
117 w1.Add (this.miExit, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
118 this.menuEdit = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
119 "menuEdit", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
120 global::Mono.Unix.Catalog.GetString("Edit"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
121 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
122 null |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
123 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
124 this.menuEdit.ShortLabel = global::Mono.Unix.Catalog.GetString ("Edit"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
125 w1.Add (this.menuEdit, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
126 this.miUndo = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
127 "miUndo", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
128 global::Mono.Unix.Catalog.GetString("Undo"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
129 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
130 "gtk-undo" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
131 ); |
77 | 132 this.miUndo.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
133 this.miUndo.ShortLabel = global::Mono.Unix.Catalog.GetString ("Undo"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
134 w1.Add (this.miUndo, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
135 this.miRedo = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
136 "miRedo", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
137 global::Mono.Unix.Catalog.GetString("Redo"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
138 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
139 "gtk-redo" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
140 ); |
77 | 141 this.miRedo.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
142 this.miRedo.ShortLabel = global::Mono.Unix.Catalog.GetString ("Redo"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
143 w1.Add (this.miRedo, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
144 this.menuHelp = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
145 "menuHelp", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
146 global::Mono.Unix.Catalog.GetString("Help"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
147 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
148 null |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
149 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
150 this.menuHelp.ShortLabel = global::Mono.Unix.Catalog.GetString ("Help"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
151 w1.Add (this.menuHelp, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
152 this.miAbout = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
153 "miAbout", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
154 global::Mono.Unix.Catalog.GetString("About"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
155 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
156 "gtk-about" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
157 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
158 this.miAbout.ShortLabel = global::Mono.Unix.Catalog.GetString ("About"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
159 w1.Add (this.miAbout, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
160 this.miDebugInformation = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
161 "miDebugInformation", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
162 global::Mono.Unix.Catalog.GetString("Debug Information"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
163 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
164 null |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
165 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
166 this.miDebugInformation.ShortLabel = global::Mono.Unix.Catalog.GetString ("Debug Information"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
167 w1.Add (this.miDebugInformation, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
168 this.bttnNewArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
169 "bttnNewArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
170 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
171 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
172 "gtk-new" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
173 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
174 w1.Add (this.bttnNewArmy, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
175 this.bttnOpenArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
176 "bttnOpenArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
177 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
178 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
179 "gtk-open" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
180 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
181 w1.Add (this.bttnOpenArmy, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
182 this.bttnSaveArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
183 "bttnSaveArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
184 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
185 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
186 "gtk-save" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
187 ); |
82
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
188 this.bttnSaveArmy.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
189 w1.Add (this.bttnSaveArmy, null); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
190 this.bttnUndo = new global::Gtk.Action ("bttnUndo", null, null, "gtk-undo"); |
82
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
191 this.bttnUndo.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
192 w1.Add (this.bttnUndo, null); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
193 this.bttnRedo = new global::Gtk.Action ("bttnRedo", null, null, "gtk-redo"); |
82
fb16ca1cb52b
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
81
diff
changeset
|
194 this.bttnRedo.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
195 w1.Add (this.bttnRedo, null); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
196 this.goDown = new global::Gtk.Action ("goDown", null, null, null); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
197 w1.Add (this.goDown, null); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
198 this.add = new global::Gtk.Action ("add", null, null, "gtk-add"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
199 w1.Add (this.add, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
200 this.miExportArmyAs = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
201 "miExportArmyAs", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
202 global::Mono.Unix.Catalog.GetString("Export army as..."), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
203 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
204 "gtk-convert" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
205 ); |
81
3ff8e10de45a
Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents:
77
diff
changeset
|
206 this.miExportArmyAs.Sensitive = false; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
207 this.miExportArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString ("Export army as..."); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
208 w1.Add (this.miExportArmyAs, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
209 this.miExportArmyAsBasicHTML = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
210 "miExportArmyAsBasicHTML", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
211 global::Mono.Unix.Catalog.GetString("Basic HTML"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
212 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
213 null |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
214 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
215 this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString ("Basic HTML"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
216 w1.Add (this.miExportArmyAsBasicHTML, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
217 this.miPreferences = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
218 "miPreferences", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
219 global::Mono.Unix.Catalog.GetString("preferences"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
220 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
221 "gtk-preferences" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
222 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
223 this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString ("preferences"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
224 w1.Add (this.miPreferences, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
225 this.miExportArmyAsTransformedXml = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
226 "miExportArmyAsTransformedXml", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
227 global::Mono.Unix.Catalog.GetString("transformed xml"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
228 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
229 null |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
230 ); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
231 this.miExportArmyAsTransformedXml.ShortLabel = global::Mono.Unix.Catalog.GetString ("transformed xml"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
232 w1.Add (this.miExportArmyAsTransformedXml, null); |
155
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
233 this.miEditArmy = new global::Gtk.Action ( |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
234 "miEditArmy", |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
235 global::Mono.Unix.Catalog.GetString("_edit army"), |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
236 null, |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
237 "gtk-edit" |
7b091ea86819
* Commit code that MonoDevelop insists on reformatting
IBBoard <dev@ibboard.co.uk>
parents:
145
diff
changeset
|
238 ); |
139
d4b726cec12c
Fixes #326: Make army names and sizes modifiable after creation
IBBoard <dev@ibboard.co.uk>
parents:
136
diff
changeset
|
239 this.miEditArmy.Sensitive = false; |
d4b726cec12c
Fixes #326: Make army names and sizes modifiable after creation
IBBoard <dev@ibboard.co.uk>
parents:
136
diff
changeset
|
240 this.miEditArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("_edit army"); |
d4b726cec12c
Fixes #326: Make army names and sizes modifiable after creation
IBBoard <dev@ibboard.co.uk>
parents:
136
diff
changeset
|
241 w1.Add (this.miEditArmy, null); |
157
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
242 this.miAddDataFile = new global::Gtk.Action ( |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
243 "miAddDataFile", |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
244 global::Mono.Unix.Catalog.GetString("Add data file"), |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
245 null, |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
246 null |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
247 ); |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
248 this.miAddDataFile.ShortLabel = global::Mono.Unix.Catalog.GetString ("Add data file"); |
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
249 w1.Add (this.miAddDataFile, null); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
250 this.UIManager.InsertActionGroup (w1, 0); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
251 this.AddAccelGroup (this.UIManager.AccelGroup); |
77 | 252 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow"; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
253 this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
254 this.Icon = global::Gdk.Pixbuf.LoadFromResource ("App.ico"); |
77 | 255 // Container child IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.Gtk.Container+ContainerChild |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
256 this.vbox1 = new global::Gtk.VBox (); |
77 | 257 this.vbox1.Name = "vbox1"; |
258 // Container child vbox1.Gtk.Box+BoxChild | |
157
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
259 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>"); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
260 this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar1"))); |
77 | 261 this.menubar1.Name = "menubar1"; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
262 this.vbox1.Add (this.menubar1); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
263 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.menubar1])); |
77 | 264 w2.Position = 0; |
265 w2.Expand = false; | |
266 w2.Fill = false; | |
267 // Container child vbox1.Gtk.Box+BoxChild | |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
268 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>"); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
269 this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar"))); |
77 | 270 this.toolbar.HeightRequest = 36; |
271 this.toolbar.Name = "toolbar"; | |
272 this.toolbar.ShowArrow = false; | |
273 this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0)); | |
274 this.toolbar.IconSize = ((global::Gtk.IconSize)(3)); | |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
275 this.vbox1.Add (this.toolbar); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
276 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.toolbar])); |
77 | 277 w3.Position = 1; |
278 w3.Expand = false; | |
279 w3.Fill = false; | |
280 // Container child vbox1.Gtk.Box+BoxChild | |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
281 this.statusbar = new global::Gtk.Statusbar (); |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
282 this.statusbar.Name = "statusbar"; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
283 this.statusbar.Spacing = 6; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
284 this.statusbar.BorderWidth = ((uint)(1)); |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
285 // Container child statusbar.Gtk.Box+BoxChild |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
286 this.validationEventbox = new global::Gtk.EventBox (); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
287 this.validationEventbox.Name = "validationEventbox"; |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
288 // Container child validationEventbox.Gtk.Container+ContainerChild |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
289 this.lblValidationWarning = new global::Gtk.Label (); |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
290 this.lblValidationWarning.Name = "lblValidationWarning"; |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
291 this.validationEventbox.Add (this.lblValidationWarning); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
292 this.statusbar.Add (this.validationEventbox); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
293 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.validationEventbox])); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
294 w5.Position = 1; |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
295 w5.Expand = false; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
296 w5.Fill = false; |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
297 this.vbox1.Add (this.statusbar); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
298 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar])); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
299 w6.PackType = ((global::Gtk.PackType)(1)); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
300 w6.Position = 2; |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
301 w6.Expand = false; |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
302 w6.Fill = false; |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
303 // Container child vbox1.Gtk.Box+BoxChild |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
304 this.mainContent = new global::Gtk.HPaned (); |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
305 this.mainContent.CanFocus = true; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
306 this.mainContent.Name = "mainContent"; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
307 this.mainContent.Position = 180; |
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
308 // Container child mainContent.Gtk.Paned+PanedChild |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
309 this.treeUnits = new global::Gtk.TreeView (); |
77 | 310 this.treeUnits.CanFocus = true; |
311 this.treeUnits.Name = "treeUnits"; | |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
312 this.mainContent.Add (this.treeUnits); |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
313 global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits])); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
314 w7.Resize = false; |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
315 // Container child mainContent.Gtk.Paned+PanedChild |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
316 this.unitsNotebook = new global::Gtk.Notebook (); |
77 | 317 this.unitsNotebook.CanFocus = true; |
318 this.unitsNotebook.Name = "unitsNotebook"; | |
319 this.unitsNotebook.CurrentPage = -1; | |
320 this.unitsNotebook.Scrollable = true; | |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
321 this.mainContent.Add (this.unitsNotebook); |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
322 global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook])); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
323 w8.Shrink = false; |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
324 this.vbox1.Add (this.mainContent); |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
325 global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent])); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
326 w9.PackType = ((global::Gtk.PackType)(1)); |
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
327 w9.Position = 3; |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
328 this.Add (this.vbox1); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
329 if ((this.Child != null)) { |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
330 this.Child.ShowAll (); |
77 | 331 } |
332 this.DefaultWidth = 832; | |
333 this.DefaultHeight = 659; | |
140
2b9fabd65309
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
139
diff
changeset
|
334 this.treeUnits.Hide (); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
335 this.Show (); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
336 this.miNewArmy.Activated += new global::System.EventHandler (this.OnCreateArmyActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
337 this.miOpenArmy.Activated += new global::System.EventHandler (this.OnOpenArmyActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
338 this.miSaveArmy.Activated += new global::System.EventHandler (this.OnSaveArmyActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
339 this.miSaveArmyAs.Activated += new global::System.EventHandler (this.OnSaveArmyAsActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
340 this.miCloseArmy.Activated += new global::System.EventHandler (this.OnCloseArmyActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
341 this.miReloadFiles.Activated += new global::System.EventHandler (this.OnReloadFilesActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
342 this.miExit.Activated += new global::System.EventHandler (this.OnExitActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
343 this.miAbout.Activated += new global::System.EventHandler (this.HelpAboutActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
344 this.bttnNewArmy.Activated += new global::System.EventHandler (this.newTBButtonActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
345 this.bttnOpenArmy.Activated += new global::System.EventHandler (this.openTBButtonActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
346 this.bttnSaveArmy.Activated += new global::System.EventHandler (this.saveTBButtonActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
347 this.bttnUndo.Activated += new global::System.EventHandler (this.undoTBButtonActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
348 this.bttnRedo.Activated += new global::System.EventHandler (this.redoTBButtonActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
349 this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler (this.OnMiExportAsBasicHtmlActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
350 this.miPreferences.Activated += new global::System.EventHandler (this.miPreferencesClicked); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
351 this.miExportArmyAsTransformedXml.Activated += new global::System.EventHandler (this.OnTransformedXmlActionActivated); |
139
d4b726cec12c
Fixes #326: Make army names and sizes modifiable after creation
IBBoard <dev@ibboard.co.uk>
parents:
136
diff
changeset
|
352 this.miEditArmy.Activated += new global::System.EventHandler (this.OnMiEditArmyActivated); |
157
2d1dd73a3289
Re #417: Improve install experience
IBBoard <dev@ibboard.co.uk>
parents:
155
diff
changeset
|
353 this.miAddDataFile.Activated += new global::System.EventHandler (this.OnAddNewFileActionActivated); |
136
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
354 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler (this.ArmyRowActivated); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
355 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler (this.OnTreeUnitsPopupMenu); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
356 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler (this.UnitTreeButtonPressed); |
560eb34acd17
* Make UnitDisplayWidget expand boxes so that they're useful
IBBoard <dev@ibboard.co.uk>
parents:
125
diff
changeset
|
357 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler (this.NotebookPageRemoved); |
141
1ce4fe9ae3c1
Re #344: Show unit requirement failures
IBBoard <dev@ibboard.co.uk>
parents:
140
diff
changeset
|
358 this.validationEventbox.ButtonReleaseEvent += new global::Gtk.ButtonReleaseEventHandler (this.OnLblValidationWarningButtonReleaseEvent); |
77 | 359 } |
360 } | |
361 } |