annotate gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 125:42d2aa87dfa7

Re #361: Add XML export UI to GTK# * Add basic UI that works (needs improvement) * Open the dialog using Run() so that we can close it properly
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Oct 2011 14:52:39 +0100
parents 23b1c3bdc525
children 560eb34acd17
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 // This file has been generated by the GUI designer. Do not modify.
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 namespace IBBoard.WarFoundry.GUI.GTK
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 {
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 public partial class FrmMainWindow
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 {
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 private global::Gtk.UIManager UIManager;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 private global::Gtk.Action miOpenArmy;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 private global::Gtk.Action miSaveArmy;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 private global::Gtk.Action miSaveArmyAs;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 private global::Gtk.Action miExit;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 private global::Gtk.Action menuEdit;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 private global::Gtk.Action miUndo;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 private global::Gtk.Action miRedo;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 private global::Gtk.Action menuHelp;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 private global::Gtk.Action miAbout;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 private global::Gtk.Action goDown;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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;
125
42d2aa87dfa7 Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents: 100
diff changeset
32 private global::Gtk.Action transformedXmlAction;
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 private global::Gtk.VBox vbox1;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 private global::Gtk.MenuBar menubar1;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 private global::Gtk.Toolbar toolbar;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 private global::Gtk.HPaned hpaned2;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 private global::Gtk.TreeView treeUnits;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 private global::Gtk.Notebook unitsNotebook;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 private global::Gtk.Statusbar statusbar1;
99
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
40 private global::Gtk.Label lblTotalPoints;
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 protected virtual void Build()
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 {
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 global::Stetic.Gui.Initialize(this);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 // Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 this.UIManager = new global::Gtk.UIManager();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 this.menuFile = new global::Gtk.Action("menuFile", global::Mono.Unix.Catalog.GetString("File"), null, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 this.menuFile.ShortLabel = global::Mono.Unix.Catalog.GetString("File");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 w1.Add(this.menuFile, null);
81
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
51 this.miNewArmy = new global::Gtk.Action("miNewArmy", global::Mono.Unix.Catalog.GetString("Create army"), null, "gtk-new");
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
52 this.miNewArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Create army");
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
53 w1.Add(this.miNewArmy, null);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 this.miOpenArmy = new global::Gtk.Action("miOpenArmy", global::Mono.Unix.Catalog.GetString("Open army"), null, "gtk-open");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 this.miOpenArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Open army");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 w1.Add(this.miOpenArmy, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 this.miSaveArmy = new global::Gtk.Action("miSaveArmy", global::Mono.Unix.Catalog.GetString("Save army"), null, "gtk-save");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 this.miSaveArmy.Sensitive = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 this.miSaveArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Save army");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 w1.Add(this.miSaveArmy, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 this.miSaveArmyAs = new global::Gtk.Action("miSaveArmyAs", global::Mono.Unix.Catalog.GetString("Save army as"), null, "gtk-save-as");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 this.miSaveArmyAs.Sensitive = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 this.miSaveArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString("Save army as");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 w1.Add(this.miSaveArmyAs, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 this.miCloseArmy = new global::Gtk.Action("miCloseArmy", global::Mono.Unix.Catalog.GetString("Close army"), null, "gtk-close");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 this.miCloseArmy.Sensitive = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 this.miCloseArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Close army");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 w1.Add(this.miCloseArmy, null);
82
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
69 this.miReloadFiles = new global::Gtk.Action("miReloadFiles", global::Mono.Unix.Catalog.GetString("Reload files"), null, "gtk-refresh");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
70 this.miReloadFiles.ShortLabel = global::Mono.Unix.Catalog.GetString("Reload files");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
71 w1.Add(this.miReloadFiles, null);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 this.miExit = new global::Gtk.Action("miExit", global::Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 this.miExit.ShortLabel = global::Mono.Unix.Catalog.GetString("Exit");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 w1.Add(this.miExit, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 this.menuEdit = new global::Gtk.Action("menuEdit", global::Mono.Unix.Catalog.GetString("Edit"), null, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 this.menuEdit.ShortLabel = global::Mono.Unix.Catalog.GetString("Edit");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 w1.Add(this.menuEdit, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 this.miUndo = new global::Gtk.Action("miUndo", global::Mono.Unix.Catalog.GetString("Undo"), null, "gtk-undo");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 this.miUndo.Sensitive = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 this.miUndo.ShortLabel = global::Mono.Unix.Catalog.GetString("Undo");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 w1.Add(this.miUndo, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 this.miRedo = new global::Gtk.Action("miRedo", global::Mono.Unix.Catalog.GetString("Redo"), null, "gtk-redo");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 this.miRedo.Sensitive = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 this.miRedo.ShortLabel = global::Mono.Unix.Catalog.GetString("Redo");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 w1.Add(this.miRedo, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 this.menuHelp = new global::Gtk.Action("menuHelp", global::Mono.Unix.Catalog.GetString("Help"), null, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 this.menuHelp.ShortLabel = global::Mono.Unix.Catalog.GetString("Help");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 w1.Add(this.menuHelp, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 this.miAbout = new global::Gtk.Action("miAbout", global::Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 this.miAbout.ShortLabel = global::Mono.Unix.Catalog.GetString("About");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 w1.Add(this.miAbout, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 this.miDebugInformation = new global::Gtk.Action("miDebugInformation", global::Mono.Unix.Catalog.GetString("Debug Information"), null, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 this.miDebugInformation.ShortLabel = global::Mono.Unix.Catalog.GetString("Debug Information");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 w1.Add(this.miDebugInformation, null);
82
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
95 this.bttnNewArmy = new global::Gtk.Action("bttnNewArmy", null, null, "gtk-new");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
96 w1.Add(this.bttnNewArmy, null);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
97 this.bttnOpenArmy = new global::Gtk.Action("bttnOpenArmy", null, null, "gtk-open");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
98 w1.Add(this.bttnOpenArmy, null);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
99 this.bttnSaveArmy = new global::Gtk.Action("bttnSaveArmy", null, null, "gtk-save");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
100 this.bttnSaveArmy.Sensitive = false;
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
101 w1.Add(this.bttnSaveArmy, null);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
102 this.bttnUndo = new global::Gtk.Action("bttnUndo", null, null, "gtk-undo");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
103 this.bttnUndo.Sensitive = false;
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
104 w1.Add(this.bttnUndo, null);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
105 this.bttnRedo = new global::Gtk.Action("bttnRedo", null, null, "gtk-redo");
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
106 this.bttnRedo.Sensitive = false;
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
107 w1.Add(this.bttnRedo, null);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 this.goDown = new global::Gtk.Action("goDown", null, null, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 w1.Add(this.goDown, null);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 this.add = new global::Gtk.Action("add", null, null, "gtk-add");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 w1.Add(this.add, null);
81
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
112 this.miExportArmyAs = new global::Gtk.Action("miExportArmyAs", global::Mono.Unix.Catalog.GetString("Export army as..."), null, "gtk-convert");
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
113 this.miExportArmyAs.Sensitive = false;
95
ea4069bbe6e9 Re #309: Add initial preference dialog with language support
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
114 this.miExportArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString("Export army as...");
81
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
115 w1.Add(this.miExportArmyAs, null);
100
23b1c3bdc525 Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 99
diff changeset
116 this.miExportArmyAsBasicHTML = new global::Gtk.Action("miExportArmyAsBasicHTML", global::Mono.Unix.Catalog.GetString("Basic HTML"), null, null);
23b1c3bdc525 Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 99
diff changeset
117 this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML");
23b1c3bdc525 Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 99
diff changeset
118 w1.Add(this.miExportArmyAsBasicHTML, null);
95
ea4069bbe6e9 Re #309: Add initial preference dialog with language support
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
119 this.miPreferences = new global::Gtk.Action("miPreferences", global::Mono.Unix.Catalog.GetString("preferences"), null, "gtk-preferences");
ea4069bbe6e9 Re #309: Add initial preference dialog with language support
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
120 this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString("preferences");
ea4069bbe6e9 Re #309: Add initial preference dialog with language support
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
121 w1.Add(this.miPreferences, null);
125
42d2aa87dfa7 Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents: 100
diff changeset
122 this.transformedXmlAction = new global::Gtk.Action ("transformedXmlAction", global::Mono.Unix.Catalog.GetString ("transformed xml"), null, null);
42d2aa87dfa7 Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents: 100
diff changeset
123 this.transformedXmlAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("transformed xml");
42d2aa87dfa7 Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents: 100
diff changeset
124 w1.Add (this.transformedXmlAction, null);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 this.UIManager.InsertActionGroup(w1, 0);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 this.AddAccelGroup(this.UIManager.AccelGroup);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 this.Title = global::Mono.Unix.Catalog.GetString("MainWindow");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 this.Icon = global::Gdk.Pixbuf.LoadFromResource("App.ico");
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 // Container child IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.Gtk.Container+ContainerChild
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 this.vbox1 = new global::Gtk.VBox();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 this.vbox1.Name = "vbox1";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 // Container child vbox1.Gtk.Box+BoxChild
100
23b1c3bdc525 Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 99
diff changeset
134 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'/></menu><menuitem name='miCloseArmy' action='miCloseArmy'/><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'/><separator/><menuitem name='miPreferences' action='miPreferences'/></menu><menu name='menuHelp' action='menuHelp'><menuitem name='miAbout' action='miAbout'/></menu></menubar></ui>");
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 this.menubar1.Name = "menubar1";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 this.vbox1.Add(this.menubar1);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 w2.Position = 0;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 w2.Expand = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 w2.Fill = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142 // Container child vbox1.Gtk.Box+BoxChild
82
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
143 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>");
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar")));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 this.toolbar.HeightRequest = 36;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 this.toolbar.Name = "toolbar";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 this.toolbar.ShowArrow = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 this.toolbar.IconSize = ((global::Gtk.IconSize)(3));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 this.vbox1.Add(this.toolbar);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.toolbar]));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152 w3.Position = 1;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 w3.Expand = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 w3.Fill = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 // Container child vbox1.Gtk.Box+BoxChild
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 this.hpaned2 = new global::Gtk.HPaned();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 this.hpaned2.CanFocus = true;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 this.hpaned2.Name = "hpaned2";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 this.hpaned2.Position = 178;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160 // Container child hpaned2.Gtk.Paned+PanedChild
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 this.treeUnits = new global::Gtk.TreeView();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 this.treeUnits.CanFocus = true;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 this.treeUnits.Name = "treeUnits";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 this.hpaned2.Add(this.treeUnits);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.hpaned2[this.treeUnits]));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 w4.Resize = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167 // Container child hpaned2.Gtk.Paned+PanedChild
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 this.unitsNotebook = new global::Gtk.Notebook();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 this.unitsNotebook.CanFocus = true;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 this.unitsNotebook.Name = "unitsNotebook";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 this.unitsNotebook.CurrentPage = -1;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 this.unitsNotebook.Scrollable = true;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 this.hpaned2.Add(this.unitsNotebook);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 this.vbox1.Add(this.hpaned2);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hpaned2]));
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 w6.Position = 2;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 // Container child vbox1.Gtk.Box+BoxChild
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178 this.statusbar1 = new global::Gtk.Statusbar();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 this.statusbar1.Name = "statusbar1";
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180 this.statusbar1.Spacing = 2;
99
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
181 // Container child statusbar1.Gtk.Box+BoxChild
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
182 this.lblTotalPoints = new global::Gtk.Label();
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
183 this.lblTotalPoints.Name = "lblTotalPoints";
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
184 this.statusbar1.Add(this.lblTotalPoints);
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
185 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.statusbar1[this.lblTotalPoints]));
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
186 w7.Position = 2;
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
187 w7.Expand = false;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
188 w7.Fill = false;
99
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
189 this.vbox1.Add(this.statusbar1);
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
190 global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
191 w8.Position = 3;
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
192 w8.Expand = false;
8777e4f64d8e Fixes #335: Show current points total in status bar
IBBoard <dev@ibboard.co.uk>
parents: 95
diff changeset
193 w8.Fill = false;
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
194 this.Add(this.vbox1);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
195 if ((this.Child != null))
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
196 {
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
197 this.Child.ShowAll();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
198 }
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
199 this.DefaultWidth = 832;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
200 this.DefaultHeight = 659;
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
201 this.hpaned2.Hide();
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202 this.Show();
81
3ff8e10de45a Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 77
diff changeset
203 this.miNewArmy.Activated += new global::System.EventHandler(this.OnCreateArmyActivated);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204 this.miOpenArmy.Activated += new global::System.EventHandler(this.OnOpenArmyActivated);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205 this.miSaveArmy.Activated += new global::System.EventHandler(this.OnSaveArmyActivated);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206 this.miSaveArmyAs.Activated += new global::System.EventHandler(this.OnSaveArmyAsActivated);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 this.miCloseArmy.Activated += new global::System.EventHandler(this.OnCloseArmyActivated);
82
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
208 this.miReloadFiles.Activated += new global::System.EventHandler(this.OnReloadFilesActivated);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 this.miExit.Activated += new global::System.EventHandler(this.OnExitActivated);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210 this.miAbout.Activated += new global::System.EventHandler(this.HelpAboutActivated);
82
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
211 this.bttnNewArmy.Activated += new global::System.EventHandler(this.newTBButtonActivated);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
212 this.bttnOpenArmy.Activated += new global::System.EventHandler(this.openTBButtonActivated);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
213 this.bttnSaveArmy.Activated += new global::System.EventHandler(this.saveTBButtonActivated);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
214 this.bttnUndo.Activated += new global::System.EventHandler(this.undoTBButtonActivated);
fb16ca1cb52b Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 81
diff changeset
215 this.bttnRedo.Activated += new global::System.EventHandler(this.redoTBButtonActivated);
100
23b1c3bdc525 Re #308: Make GTK# UI translatable
IBBoard <dev@ibboard.co.uk>
parents: 99
diff changeset
216 this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated);
95
ea4069bbe6e9 Re #309: Add initial preference dialog with language support
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
217 this.miPreferences.Activated += new global::System.EventHandler(this.miPreferencesClicked);
125
42d2aa87dfa7 Re #361: Add XML export UI to GTK#
IBBoard <dev@ibboard.co.uk>
parents: 100
diff changeset
218 this.transformedXmlAction.Activated += new global::System.EventHandler (this.OnTransformedXmlActionActivated);
77
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler(this.ArmyRowActivated);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler(this.UnitTreeButtonPressed);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler(this.NotebookPageRemoved);
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 }
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224 }
68804784bf6f Re #86: Complete initial GTK# UI
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 }