comparison 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
comparison
equal deleted inserted replaced
124:a647afc19fe9 125:42d2aa87dfa7
27 private global::Gtk.Action goDown; 27 private global::Gtk.Action goDown;
28 private global::Gtk.Action add; 28 private global::Gtk.Action add;
29 private global::Gtk.Action miExportArmyAs; 29 private global::Gtk.Action miExportArmyAs;
30 private global::Gtk.Action miExportArmyAsBasicHTML; 30 private global::Gtk.Action miExportArmyAsBasicHTML;
31 private global::Gtk.Action miPreferences; 31 private global::Gtk.Action miPreferences;
32 private global::Gtk.Action transformedXmlAction;
32 private global::Gtk.VBox vbox1; 33 private global::Gtk.VBox vbox1;
33 private global::Gtk.MenuBar menubar1; 34 private global::Gtk.MenuBar menubar1;
34 private global::Gtk.Toolbar toolbar; 35 private global::Gtk.Toolbar toolbar;
35 private global::Gtk.HPaned hpaned2; 36 private global::Gtk.HPaned hpaned2;
36 private global::Gtk.TreeView treeUnits; 37 private global::Gtk.TreeView treeUnits;
116 this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML"); 117 this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML");
117 w1.Add(this.miExportArmyAsBasicHTML, null); 118 w1.Add(this.miExportArmyAsBasicHTML, null);
118 this.miPreferences = new global::Gtk.Action("miPreferences", global::Mono.Unix.Catalog.GetString("preferences"), null, "gtk-preferences"); 119 this.miPreferences = new global::Gtk.Action("miPreferences", global::Mono.Unix.Catalog.GetString("preferences"), null, "gtk-preferences");
119 this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString("preferences"); 120 this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString("preferences");
120 w1.Add(this.miPreferences, null); 121 w1.Add(this.miPreferences, null);
122 this.transformedXmlAction = new global::Gtk.Action ("transformedXmlAction", global::Mono.Unix.Catalog.GetString ("transformed xml"), null, null);
123 this.transformedXmlAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("transformed xml");
124 w1.Add (this.transformedXmlAction, null);
121 this.UIManager.InsertActionGroup(w1, 0); 125 this.UIManager.InsertActionGroup(w1, 0);
122 this.AddAccelGroup(this.UIManager.AccelGroup); 126 this.AddAccelGroup(this.UIManager.AccelGroup);
123 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow"; 127 this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow";
124 this.Title = global::Mono.Unix.Catalog.GetString("MainWindow"); 128 this.Title = global::Mono.Unix.Catalog.GetString("MainWindow");
125 this.Icon = global::Gdk.Pixbuf.LoadFromResource("App.ico"); 129 this.Icon = global::Gdk.Pixbuf.LoadFromResource("App.ico");
209 this.bttnSaveArmy.Activated += new global::System.EventHandler(this.saveTBButtonActivated); 213 this.bttnSaveArmy.Activated += new global::System.EventHandler(this.saveTBButtonActivated);
210 this.bttnUndo.Activated += new global::System.EventHandler(this.undoTBButtonActivated); 214 this.bttnUndo.Activated += new global::System.EventHandler(this.undoTBButtonActivated);
211 this.bttnRedo.Activated += new global::System.EventHandler(this.redoTBButtonActivated); 215 this.bttnRedo.Activated += new global::System.EventHandler(this.redoTBButtonActivated);
212 this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated); 216 this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated);
213 this.miPreferences.Activated += new global::System.EventHandler(this.miPreferencesClicked); 217 this.miPreferences.Activated += new global::System.EventHandler(this.miPreferencesClicked);
218 this.transformedXmlAction.Activated += new global::System.EventHandler (this.OnTransformedXmlActionActivated);
214 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler(this.ArmyRowActivated); 219 this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler(this.ArmyRowActivated);
215 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu); 220 this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu);
216 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler(this.UnitTreeButtonPressed); 221 this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler(this.UnitTreeButtonPressed);
217 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler(this.NotebookPageRemoved); 222 this.unitsNotebook.Removed += new global::Gtk.RemovedHandler(this.NotebookPageRemoved);
218 } 223 }