annotate gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs @ 28:9440eef124b0

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