view gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs @ 167:9808adf2d566 default tip

Re #419: Remove assumptions of a file-based install * Update GTK# GUI to use Streams version of XSLT export
author IBBoard <dev@ibboard.co.uk>
date Wed, 28 Nov 2012 20:25:53 +0000
parents a8f847c1e305
children
line wrap: on
line source


// This file has been generated by the GUI designer. Do not modify.
namespace IBBoard.WarFoundry.GUI.GTK
{
	public partial class FrmMainWindow
	{
		private global::Gtk.UIManager UIManager;
		private global::Gtk.Action menuFile;
		private global::Gtk.Action miNewArmy;
		private global::Gtk.Action miOpenArmy;
		private global::Gtk.Action miSaveArmy;
		private global::Gtk.Action miSaveArmyAs;
		private global::Gtk.Action miCloseArmy;
		private global::Gtk.Action miReloadFiles;
		private global::Gtk.Action miExit;
		private global::Gtk.Action menuEdit;
		private global::Gtk.Action miUndo;
		private global::Gtk.Action miRedo;
		private global::Gtk.Action menuHelp;
		private global::Gtk.Action miAbout;
		private global::Gtk.Action miDebugInformation;
		private global::Gtk.Action bttnNewArmy;
		private global::Gtk.Action bttnOpenArmy;
		private global::Gtk.Action bttnSaveArmy;
		private global::Gtk.Action bttnUndo;
		private global::Gtk.Action bttnRedo;
		private global::Gtk.Action goDown;
		private global::Gtk.Action add;
		private global::Gtk.Action miExportArmyAs;
		private global::Gtk.Action miExportArmyAsBasicHTML;
		private global::Gtk.Action miPreferences;
		private global::Gtk.Action miExportArmyAsTransformedXml;
		private global::Gtk.Action miEditArmy;
		private global::Gtk.Action miAddDataFile;
		private global::Gtk.VBox vbox1;
		private global::Gtk.MenuBar menubar1;
		private global::Gtk.Toolbar toolbar;
		private global::Gtk.Statusbar statusbar;
		private global::Gtk.EventBox validationEventbox;
		private global::Gtk.Label lblValidationWarning;
		private global::Gtk.HPaned mainContent;
		private global::Gtk.TreeView treeUnits;
		private global::Gtk.Notebook unitsNotebook;
		
		protected virtual void Build ()
		{
			global::Stetic.Gui.Initialize (this);
			// Widget IBBoard.WarFoundry.GUI.GTK.FrmMainWindow
			this.UIManager = new global::Gtk.UIManager ();
			global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
			this.menuFile = new global::Gtk.Action ("menuFile", global::Mono.Unix.Catalog.GetString ("File"), null, null);
			this.menuFile.ShortLabel = global::Mono.Unix.Catalog.GetString ("File");
			w1.Add (this.menuFile, null);
			this.miNewArmy = new global::Gtk.Action ("miNewArmy", global::Mono.Unix.Catalog.GetString ("Create army"), null, "gtk-new");
			this.miNewArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Create army");
			w1.Add (this.miNewArmy, null);
			this.miOpenArmy = new global::Gtk.Action ("miOpenArmy", global::Mono.Unix.Catalog.GetString ("Open army"), null, "gtk-open");
			this.miOpenArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Open army");
			w1.Add (this.miOpenArmy, null);
			this.miSaveArmy = new global::Gtk.Action ("miSaveArmy", global::Mono.Unix.Catalog.GetString ("Save army"), null, "gtk-save");
			this.miSaveArmy.Sensitive = false;
			this.miSaveArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save army");
			w1.Add (this.miSaveArmy, null);
			this.miSaveArmyAs = new global::Gtk.Action ("miSaveArmyAs", global::Mono.Unix.Catalog.GetString ("Save army as"), null, "gtk-save-as");
			this.miSaveArmyAs.Sensitive = false;
			this.miSaveArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString ("Save army as");
			w1.Add (this.miSaveArmyAs, null);
			this.miCloseArmy = new global::Gtk.Action ("miCloseArmy", global::Mono.Unix.Catalog.GetString ("Close army"), null, "gtk-close");
			this.miCloseArmy.Sensitive = false;
			this.miCloseArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("Close army");
			w1.Add (this.miCloseArmy, null);
			this.miReloadFiles = new global::Gtk.Action ("miReloadFiles", global::Mono.Unix.Catalog.GetString ("Reload files"), null, "gtk-refresh");
			this.miReloadFiles.ShortLabel = global::Mono.Unix.Catalog.GetString ("Reload files");
			w1.Add (this.miReloadFiles, null);
			this.miExit = new global::Gtk.Action ("miExit", global::Mono.Unix.Catalog.GetString ("Exit"), null, "gtk-quit");
			this.miExit.ShortLabel = global::Mono.Unix.Catalog.GetString ("Exit");
			w1.Add (this.miExit, null);
			this.menuEdit = new global::Gtk.Action ("menuEdit", global::Mono.Unix.Catalog.GetString ("Edit"), null, null);
			this.menuEdit.ShortLabel = global::Mono.Unix.Catalog.GetString ("Edit");
			w1.Add (this.menuEdit, null);
			this.miUndo = new global::Gtk.Action ("miUndo", global::Mono.Unix.Catalog.GetString ("Undo"), null, "gtk-undo");
			this.miUndo.Sensitive = false;
			this.miUndo.ShortLabel = global::Mono.Unix.Catalog.GetString ("Undo");
			w1.Add (this.miUndo, null);
			this.miRedo = new global::Gtk.Action ("miRedo", global::Mono.Unix.Catalog.GetString ("Redo"), null, "gtk-redo");
			this.miRedo.Sensitive = false;
			this.miRedo.ShortLabel = global::Mono.Unix.Catalog.GetString ("Redo");
			w1.Add (this.miRedo, null);
			this.menuHelp = new global::Gtk.Action ("menuHelp", global::Mono.Unix.Catalog.GetString ("Help"), null, null);
			this.menuHelp.ShortLabel = global::Mono.Unix.Catalog.GetString ("Help");
			w1.Add (this.menuHelp, null);
			this.miAbout = new global::Gtk.Action ("miAbout", global::Mono.Unix.Catalog.GetString ("About"), null, "gtk-about");
			this.miAbout.ShortLabel = global::Mono.Unix.Catalog.GetString ("About");
			w1.Add (this.miAbout, null);
			this.miDebugInformation = new global::Gtk.Action ("miDebugInformation", global::Mono.Unix.Catalog.GetString ("Debug Information"), null, null);
			this.miDebugInformation.ShortLabel = global::Mono.Unix.Catalog.GetString ("Debug Information");
			w1.Add (this.miDebugInformation, null);
			this.bttnNewArmy = new global::Gtk.Action ("bttnNewArmy", null, null, "gtk-new");
			w1.Add (this.bttnNewArmy, null);
			this.bttnOpenArmy = new global::Gtk.Action ("bttnOpenArmy", null, null, "gtk-open");
			w1.Add (this.bttnOpenArmy, null);
			this.bttnSaveArmy = new global::Gtk.Action ("bttnSaveArmy", null, null, "gtk-save");
			this.bttnSaveArmy.Sensitive = false;
			w1.Add (this.bttnSaveArmy, null);
			this.bttnUndo = new global::Gtk.Action ("bttnUndo", null, null, "gtk-undo");
			this.bttnUndo.Sensitive = false;
			w1.Add (this.bttnUndo, null);
			this.bttnRedo = new global::Gtk.Action ("bttnRedo", null, null, "gtk-redo");
			this.bttnRedo.Sensitive = false;
			w1.Add (this.bttnRedo, null);
			this.goDown = new global::Gtk.Action ("goDown", null, null, null);
			w1.Add (this.goDown, null);
			this.add = new global::Gtk.Action ("add", null, null, "gtk-add");
			w1.Add (this.add, null);
			this.miExportArmyAs = new global::Gtk.Action ("miExportArmyAs", global::Mono.Unix.Catalog.GetString ("Export army as..."), null, "gtk-convert");
			this.miExportArmyAs.Sensitive = false;
			this.miExportArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString ("Export army as...");
			w1.Add (this.miExportArmyAs, null);
			this.miExportArmyAsBasicHTML = new global::Gtk.Action ("miExportArmyAsBasicHTML", global::Mono.Unix.Catalog.GetString ("Basic HTML"), null, null);
			this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString ("Basic HTML");
			w1.Add (this.miExportArmyAsBasicHTML, null);
			this.miPreferences = new global::Gtk.Action ("miPreferences", global::Mono.Unix.Catalog.GetString ("preferences"), null, "gtk-preferences");
			this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString ("preferences");
			w1.Add (this.miPreferences, null);
			this.miExportArmyAsTransformedXml = new global::Gtk.Action ("miExportArmyAsTransformedXml", global::Mono.Unix.Catalog.GetString ("transformed xml"), null, null);
			this.miExportArmyAsTransformedXml.ShortLabel = global::Mono.Unix.Catalog.GetString ("transformed xml");
			w1.Add (this.miExportArmyAsTransformedXml, null);
			this.miEditArmy = new global::Gtk.Action ("miEditArmy", global::Mono.Unix.Catalog.GetString ("_edit army"), null, "gtk-edit");
			this.miEditArmy.Sensitive = false;
			this.miEditArmy.ShortLabel = global::Mono.Unix.Catalog.GetString ("_edit army");
			w1.Add (this.miEditArmy, null);
			this.miAddDataFile = new global::Gtk.Action ("miAddDataFile", global::Mono.Unix.Catalog.GetString ("Add data file"), null, null);
			this.miAddDataFile.ShortLabel = global::Mono.Unix.Catalog.GetString ("Add data file");
			w1.Add (this.miAddDataFile, null);
			this.UIManager.InsertActionGroup (w1, 0);
			this.AddAccelGroup (this.UIManager.AccelGroup);
			this.Name = "IBBoard.WarFoundry.GUI.GTK.FrmMainWindow";
			this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
			this.Icon = global::Gdk.Pixbuf.LoadFromResource ("App.ico");
			// Container child IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.Gtk.Container+ContainerChild
			this.vbox1 = new global::Gtk.VBox ();
			this.vbox1.Name = "vbox1";
			// Container child vbox1.Gtk.Box+BoxChild
			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>");
			this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar1")));
			this.menubar1.Name = "menubar1";
			this.vbox1.Add (this.menubar1);
			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.menubar1]));
			w2.Position = 0;
			w2.Expand = false;
			w2.Fill = false;
			// Container child vbox1.Gtk.Box+BoxChild
			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>");
			this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget ("/toolbar")));
			this.toolbar.HeightRequest = 36;
			this.toolbar.Name = "toolbar";
			this.toolbar.ShowArrow = false;
			this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
			this.toolbar.IconSize = ((global::Gtk.IconSize)(3));
			this.vbox1.Add (this.toolbar);
			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.toolbar]));
			w3.Position = 1;
			w3.Expand = false;
			w3.Fill = false;
			// Container child vbox1.Gtk.Box+BoxChild
			this.statusbar = new global::Gtk.Statusbar ();
			this.statusbar.Name = "statusbar";
			this.statusbar.Spacing = 6;
			this.statusbar.BorderWidth = ((uint)(1));
			// Container child statusbar.Gtk.Box+BoxChild
			this.validationEventbox = new global::Gtk.EventBox ();
			this.validationEventbox.Name = "validationEventbox";
			// Container child validationEventbox.Gtk.Container+ContainerChild
			this.lblValidationWarning = new global::Gtk.Label ();
			this.lblValidationWarning.Name = "lblValidationWarning";
			this.validationEventbox.Add (this.lblValidationWarning);
			this.statusbar.Add (this.validationEventbox);
			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.statusbar [this.validationEventbox]));
			w5.Position = 1;
			w5.Expand = false;
			w5.Fill = false;
			this.vbox1.Add (this.statusbar);
			global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar]));
			w6.PackType = ((global::Gtk.PackType)(1));
			w6.Position = 2;
			w6.Expand = false;
			w6.Fill = false;
			// Container child vbox1.Gtk.Box+BoxChild
			this.mainContent = new global::Gtk.HPaned ();
			this.mainContent.CanFocus = true;
			this.mainContent.Name = "mainContent";
			this.mainContent.Position = 180;
			// Container child mainContent.Gtk.Paned+PanedChild
			this.treeUnits = new global::Gtk.TreeView ();
			this.treeUnits.CanFocus = true;
			this.treeUnits.Name = "treeUnits";
			this.mainContent.Add (this.treeUnits);
			global::Gtk.Paned.PanedChild w7 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.treeUnits]));
			w7.Resize = false;
			// Container child mainContent.Gtk.Paned+PanedChild
			this.unitsNotebook = new global::Gtk.Notebook ();
			this.unitsNotebook.CanFocus = true;
			this.unitsNotebook.Name = "unitsNotebook";
			this.unitsNotebook.CurrentPage = -1;
			this.unitsNotebook.Scrollable = true;
			this.mainContent.Add (this.unitsNotebook);
			global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.mainContent [this.unitsNotebook]));
			w8.Shrink = false;
			this.vbox1.Add (this.mainContent);
			global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.mainContent]));
			w9.PackType = ((global::Gtk.PackType)(1));
			w9.Position = 3;
			this.Add (this.vbox1);
			if ((this.Child != null)) {
				this.Child.ShowAll ();
			}
			this.DefaultWidth = 832;
			this.DefaultHeight = 659;
			this.treeUnits.Hide ();
			this.Show ();
			this.miNewArmy.Activated += new global::System.EventHandler (this.OnCreateArmyActivated);
			this.miOpenArmy.Activated += new global::System.EventHandler (this.OnOpenArmyActivated);
			this.miSaveArmy.Activated += new global::System.EventHandler (this.OnSaveArmyActivated);
			this.miSaveArmyAs.Activated += new global::System.EventHandler (this.OnSaveArmyAsActivated);
			this.miCloseArmy.Activated += new global::System.EventHandler (this.OnCloseArmyActivated);
			this.miReloadFiles.Activated += new global::System.EventHandler (this.OnReloadFilesActivated);
			this.miExit.Activated += new global::System.EventHandler (this.OnExitActivated);
			this.miAbout.Activated += new global::System.EventHandler (this.HelpAboutActivated);
			this.bttnNewArmy.Activated += new global::System.EventHandler (this.newTBButtonActivated);
			this.bttnOpenArmy.Activated += new global::System.EventHandler (this.openTBButtonActivated);
			this.bttnSaveArmy.Activated += new global::System.EventHandler (this.saveTBButtonActivated);
			this.bttnUndo.Activated += new global::System.EventHandler (this.undoTBButtonActivated);
			this.bttnRedo.Activated += new global::System.EventHandler (this.redoTBButtonActivated);
			this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler (this.OnMiExportAsBasicHtmlActivated);
			this.miPreferences.Activated += new global::System.EventHandler (this.miPreferencesClicked);
			this.miExportArmyAsTransformedXml.Activated += new global::System.EventHandler (this.OnTransformedXmlActionActivated);
			this.miEditArmy.Activated += new global::System.EventHandler (this.OnMiEditArmyActivated);
			this.miAddDataFile.Activated += new global::System.EventHandler (this.OnAddNewFileActionActivated);
			this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler (this.ArmyRowActivated);
			this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler (this.OnTreeUnitsPopupMenu);
			this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler (this.UnitTreeButtonPressed);
			this.unitsNotebook.Removed += new global::Gtk.RemovedHandler (this.NotebookPageRemoved);
			this.validationEventbox.ButtonReleaseEvent += new global::Gtk.ButtonReleaseEventHandler (this.OnLblValidationWarningButtonReleaseEvent);
		}
	}
}