comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 77:68804784bf6f

Re #86: Complete initial GTK# UI * Add About dialog * Make sure app builds as "WarFoundry-GTK.exe" * Move all UI components to IBBoard.WarFoundry.GUI.GTK namespace
author IBBoard <dev@ibboard.co.uk>
date Sat, 18 Dec 2010 16:42:51 +0000
parents
children 3ff8e10de45a
comparison
equal deleted inserted replaced
76:7055b24cfc79 77:68804784bf6f
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;
9 private global::Gtk.Action miCreateArmy;
10 private global::Gtk.Action miOpenArmy;
11 private global::Gtk.Action miSaveArmy;
12 private global::Gtk.Action miSaveArmyAs;
13 private global::Gtk.Action miCloseArmy;
14 private global::Gtk.Action refreshAction;
15 private global::Gtk.Action miExit;
16 private global::Gtk.Action menuEdit;
17 private global::Gtk.Action miUndo;
18 private global::Gtk.Action miRedo;
19 private global::Gtk.Action menuHelp;
20 private global::Gtk.Action miAbout;
21 private global::Gtk.Action miDebugInformation;
22 private global::Gtk.Action newArmyButton;
23 private global::Gtk.Action openArmyButton;
24 private global::Gtk.Action saveArmyButton;
25 private global::Gtk.Action undoActionButton;
26 private global::Gtk.Action redoActionButton;
27 private global::Gtk.Action goDown;
28 private global::Gtk.Action add;
29 private global::Gtk.Action miExportArmy;
30 private global::Gtk.Action miExportAsBasicHtml;
31 private global::Gtk.VBox vbox1;
32 private global::Gtk.MenuBar menubar1;
33 private global::Gtk.Toolbar toolbar;
34 private global::Gtk.HPaned hpaned2;
35 private global::Gtk.TreeView treeUnits;
36 private global::Gtk.Notebook unitsNotebook;
37 private global::Gtk.Statusbar statusbar1;
38
39 protected virtual void Build()
40 {
41 global::Stetic.Gui.Initialize(this);
42 // Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow
43 this.UIManager = new global::Gtk.UIManager();
44 global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default");
45 this.menuFile = new global::Gtk.Action("menuFile", global::Mono.Unix.Catalog.GetString("File"), null, null);
46 this.menuFile.ShortLabel = global::Mono.Unix.Catalog.GetString("File");
47 w1.Add(this.menuFile, null);
48 this.miCreateArmy = new global::Gtk.Action("miCreateArmy", global::Mono.Unix.Catalog.GetString("Create army"), null, "gtk-new");
49 this.miCreateArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Create army");
50 w1.Add(this.miCreateArmy, null);
51 this.miOpenArmy = new global::Gtk.Action("miOpenArmy", global::Mono.Unix.Catalog.GetString("Open army"), null, "gtk-open");
52 this.miOpenArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Open army");
53 w1.Add(this.miOpenArmy, null);
54 this.miSaveArmy = new global::Gtk.Action("miSaveArmy", global::Mono.Unix.Catalog.GetString("Save army"), null, "gtk-save");
55 this.miSaveArmy.Sensitive = false;
56 this.miSaveArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Save army");
57 w1.Add(this.miSaveArmy, null);
58 this.miSaveArmyAs = new global::Gtk.Action("miSaveArmyAs", global::Mono.Unix.Catalog.GetString("Save army as"), null, "gtk-save-as");
59 this.miSaveArmyAs.Sensitive = false;
60 this.miSaveArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString("Save army as");
61 w1.Add(this.miSaveArmyAs, null);
62 this.miCloseArmy = new global::Gtk.Action("miCloseArmy", global::Mono.Unix.Catalog.GetString("Close army"), null, "gtk-close");
63 this.miCloseArmy.Sensitive = false;
64 this.miCloseArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Close army");
65 w1.Add(this.miCloseArmy, null);
66 this.refreshAction = new global::Gtk.Action("refreshAction", global::Mono.Unix.Catalog.GetString("Reload files"), null, "gtk-refresh");
67 this.refreshAction.ShortLabel = global::Mono.Unix.Catalog.GetString("Reload files");
68 w1.Add(this.refreshAction, null);
69 this.miExit = new global::Gtk.Action("miExit", global::Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit");
70 this.miExit.ShortLabel = global::Mono.Unix.Catalog.GetString("Exit");
71 w1.Add(this.miExit, null);
72 this.menuEdit = new global::Gtk.Action("menuEdit", global::Mono.Unix.Catalog.GetString("Edit"), null, null);
73 this.menuEdit.ShortLabel = global::Mono.Unix.Catalog.GetString("Edit");
74 w1.Add(this.menuEdit, null);
75 this.miUndo = new global::Gtk.Action("miUndo", global::Mono.Unix.Catalog.GetString("Undo"), null, "gtk-undo");
76 this.miUndo.Sensitive = false;
77 this.miUndo.ShortLabel = global::Mono.Unix.Catalog.GetString("Undo");
78 w1.Add(this.miUndo, null);
79 this.miRedo = new global::Gtk.Action("miRedo", global::Mono.Unix.Catalog.GetString("Redo"), null, "gtk-redo");
80 this.miRedo.Sensitive = false;
81 this.miRedo.ShortLabel = global::Mono.Unix.Catalog.GetString("Redo");
82 w1.Add(this.miRedo, null);
83 this.menuHelp = new global::Gtk.Action("menuHelp", global::Mono.Unix.Catalog.GetString("Help"), null, null);
84 this.menuHelp.ShortLabel = global::Mono.Unix.Catalog.GetString("Help");
85 w1.Add(this.menuHelp, null);
86 this.miAbout = new global::Gtk.Action("miAbout", global::Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
87 this.miAbout.ShortLabel = global::Mono.Unix.Catalog.GetString("About");
88 w1.Add(this.miAbout, null);
89 this.miDebugInformation = new global::Gtk.Action("miDebugInformation", global::Mono.Unix.Catalog.GetString("Debug Information"), null, null);
90 this.miDebugInformation.ShortLabel = global::Mono.Unix.Catalog.GetString("Debug Information");
91 w1.Add(this.miDebugInformation, null);
92 this.newArmyButton = new global::Gtk.Action("newArmyButton", null, null, "gtk-new");
93 w1.Add(this.newArmyButton, null);
94 this.openArmyButton = new global::Gtk.Action("openArmyButton", null, null, "gtk-open");
95 w1.Add(this.openArmyButton, null);
96 this.saveArmyButton = new global::Gtk.Action("saveArmyButton", null, null, "gtk-save");
97 this.saveArmyButton.Sensitive = false;
98 w1.Add(this.saveArmyButton, null);
99 this.undoActionButton = new global::Gtk.Action("undoActionButton", null, null, "gtk-undo");
100 this.undoActionButton.Sensitive = false;
101 w1.Add(this.undoActionButton, null);
102 this.redoActionButton = new global::Gtk.Action("redoActionButton", null, null, "gtk-redo");
103 this.redoActionButton.Sensitive = false;
104 w1.Add(this.redoActionButton, null);
105 this.goDown = new global::Gtk.Action("goDown", null, null, null);
106 w1.Add(this.goDown, null);
107 this.add = new global::Gtk.Action("add", null, null, "gtk-add");
108 w1.Add(this.add, null);
109 this.miExportArmy = new global::Gtk.Action("miExportArmy", global::Mono.Unix.Catalog.GetString("Export army as..."), null, "gtk-convert");
110 this.miExportArmy.Sensitive = false;
111 this.miExportArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Export army");
112 w1.Add(this.miExportArmy, null);
113 this.miExportAsBasicHtml = new global::Gtk.Action("miExportAsBasicHtml", global::Mono.Unix.Catalog.GetString("Basic HTML"), null, null);
114 this.miExportAsBasicHtml.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML");
115 w1.Add(this.miExportAsBasicHtml, null);
116 this.UIManager.InsertActionGroup(w1, 0);
117 this.AddAccelGroup(this.UIManager.AccelGroup);
118 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow";
119 this.Title = global::Mono.Unix.Catalog.GetString("MainWindow");
120 this.Icon = global::Gdk.Pixbuf.LoadFromResource("App.ico");
121 // Container child IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.Gtk.Container+ContainerChild
122 this.vbox1 = new global::Gtk.VBox();
123 this.vbox1.Name = "vbox1";
124 // Container child vbox1.Gtk.Box+BoxChild
125 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='refreshAction' action='refreshAction'/><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'/></menu></menubar></ui>");
126 this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
127 this.menubar1.Name = "menubar1";
128 this.vbox1.Add(this.menubar1);
129 global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
130 w2.Position = 0;
131 w2.Expand = false;
132 w2.Fill = false;
133 // Container child vbox1.Gtk.Box+BoxChild
134 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>");
135 this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar")));
136 this.toolbar.HeightRequest = 36;
137 this.toolbar.Name = "toolbar";
138 this.toolbar.ShowArrow = false;
139 this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
140 this.toolbar.IconSize = ((global::Gtk.IconSize)(3));
141 this.vbox1.Add(this.toolbar);
142 global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.toolbar]));
143 w3.Position = 1;
144 w3.Expand = false;
145 w3.Fill = false;
146 // Container child vbox1.Gtk.Box+BoxChild
147 this.hpaned2 = new global::Gtk.HPaned();
148 this.hpaned2.CanFocus = true;
149 this.hpaned2.Name = "hpaned2";
150 this.hpaned2.Position = 178;
151 // Container child hpaned2.Gtk.Paned+PanedChild
152 this.treeUnits = new global::Gtk.TreeView();
153 this.treeUnits.CanFocus = true;
154 this.treeUnits.Name = "treeUnits";
155 this.hpaned2.Add(this.treeUnits);
156 global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.hpaned2[this.treeUnits]));
157 w4.Resize = false;
158 // Container child hpaned2.Gtk.Paned+PanedChild
159 this.unitsNotebook = new global::Gtk.Notebook();
160 this.unitsNotebook.CanFocus = true;
161 this.unitsNotebook.Name = "unitsNotebook";
162 this.unitsNotebook.CurrentPage = -1;
163 this.unitsNotebook.Scrollable = true;
164 this.hpaned2.Add(this.unitsNotebook);
165 this.vbox1.Add(this.hpaned2);
166 global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hpaned2]));
167 w6.Position = 2;
168 // Container child vbox1.Gtk.Box+BoxChild
169 this.statusbar1 = new global::Gtk.Statusbar();
170 this.statusbar1.Name = "statusbar1";
171 this.statusbar1.Spacing = 2;
172 this.vbox1.Add(this.statusbar1);
173 global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
174 w7.Position = 3;
175 w7.Expand = false;
176 w7.Fill = false;
177 this.Add(this.vbox1);
178 if ((this.Child != null))
179 {
180 this.Child.ShowAll();
181 }
182 this.DefaultWidth = 832;
183 this.DefaultHeight = 659;
184 this.hpaned2.Hide();
185 this.Show();
186 this.miCreateArmy.Activated += new global::System.EventHandler(this.OnCreateArmyActivated);
187 this.miOpenArmy.Activated += new global::System.EventHandler(this.OnOpenArmyActivated);
188 this.miSaveArmy.Activated += new global::System.EventHandler(this.OnSaveArmyActivated);
189 this.miSaveArmyAs.Activated += new global::System.EventHandler(this.OnSaveArmyAsActivated);
190 this.miCloseArmy.Activated += new global::System.EventHandler(this.OnCloseArmyActivated);
191 this.refreshAction.Activated += new global::System.EventHandler(this.OnReloadFilesActivated);
192 this.miExit.Activated += new global::System.EventHandler(this.OnExitActivated);
193 this.miAbout.Activated += new global::System.EventHandler(this.HelpAboutActivated);
194 this.newArmyButton.Activated += new global::System.EventHandler(this.newTBButtonActivated);
195 this.openArmyButton.Activated += new global::System.EventHandler(this.openTBButtonActivated);
196 this.saveArmyButton.Activated += new global::System.EventHandler(this.saveTBButtonActivated);
197 this.undoActionButton.Activated += new global::System.EventHandler(this.undoTBButtonActivated);
198 this.redoActionButton.Activated += new global::System.EventHandler(this.redoTBButtonActivated);
199 this.miExportAsBasicHtml.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated);
200 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler(this.ArmyRowActivated);
201 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu);
202 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler(this.UnitTreeButtonPressed);
203 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler(this.NotebookPageRemoved);
204 }
205 }
206 }