|
- // ------------------------------------------------------------------------------
- // <autogenerated>
- // This code was generated by a tool.
- // Mono Runtime Version: 2.0.50727.42
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </autogenerated>
- // ------------------------------------------------------------------------------
-
-
-
- public partial class MainWindow {
-
- private Gtk.Action newAction;
-
- private Gtk.Action openAction;
-
- private Gtk.Action saveAction;
-
- private Gtk.Action Action;
-
- private Gtk.Action FileAction;
-
- private Gtk.Action EditAction;
-
- private Gtk.Action ViewAction;
-
- private Gtk.Action HelpAction;
-
- private Gtk.Action NewAction;
-
- private Gtk.Action OpenAction;
-
- private Gtk.Action SaveAction;
-
- private Gtk.Action SaveAsAction;
-
- private Gtk.Action QuitAction;
-
- private Gtk.Action HelpAction1;
-
- private Gtk.Action AboutAction;
-
- private Gtk.Action UndoAction;
-
- private Gtk.Action RedoAction;
-
- private Gtk.Action BestFitAction;
-
- private Gtk.Action NormalSizeAction;
-
- private Gtk.Action ZoomOutAction;
-
- private Gtk.Action ZoomInAction;
-
- private Gtk.Action undoAction;
-
- private Gtk.Action redoAction;
-
- private Gtk.Action zoom100Action;
-
- private Gtk.Action zoomFitAction;
-
- private Gtk.Action zoomOutAction;
-
- private Gtk.Action zoomInAction;
-
- private Gtk.Action helpAction;
-
- private Gtk.VBox vbox1;
-
- private Gtk.MenuBar menubar1;
-
- private Gtk.Toolbar toolbar1;
-
- private Gtk.HPaned hpaned1;
-
- private Gtk.Notebook notebook1;
-
- private Gtk.ScrolledWindow scrolledwindow1;
-
- private Gtk.Label label1;
-
- private Gtk.VPaned vpaned1;
-
- private Gtk.VBox vbox2;
-
- private Gtk.Label label2;
-
- private Gtk.VBox vbox3;
-
- private Gtk.Label label3;
-
- private Gtk.Statusbar statusbar1;
-
- protected virtual void Build() {
- Stetic.Gui.Initialize(this);
- // Widget MainWindow
- Gtk.UIManager w1 = new Gtk.UIManager();
- Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
- this.newAction = new Gtk.Action("newAction", null, null, "gtk-new");
- this.newAction.Sensitive = false;
- w2.Add(this.newAction, null);
- this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
- w2.Add(this.openAction, null);
- this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
- this.saveAction.Sensitive = false;
- w2.Add(this.saveAction, null);
- this.Action = new Gtk.Action("Action", null, null, null);
- w2.Add(this.Action, null);
- this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
- this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
- w2.Add(this.FileAction, null);
- this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
- this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
- w2.Add(this.EditAction, null);
- this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
- this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
- w2.Add(this.ViewAction, null);
- this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
- this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
- w2.Add(this.HelpAction, null);
- this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
- this.NewAction.Sensitive = false;
- this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
- w2.Add(this.NewAction, null);
- this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
- this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
- w2.Add(this.OpenAction, null);
- this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
- this.SaveAction.Sensitive = false;
- this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
- w2.Add(this.SaveAction, null);
- this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
- this.SaveAsAction.Sensitive = false;
- this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
- w2.Add(this.SaveAsAction, null);
- this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
- this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
- w2.Add(this.QuitAction, null);
- this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help");
- this.HelpAction1.Sensitive = false;
- this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
- w2.Add(this.HelpAction1, null);
- this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
- this.AboutAction.Sensitive = false;
- this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
- w2.Add(this.AboutAction, null);
- this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo");
- this.UndoAction.Sensitive = false;
- this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
- w2.Add(this.UndoAction, null);
- this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo");
- this.RedoAction.Sensitive = false;
- this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
- w2.Add(this.RedoAction, null);
- this.BestFitAction = new Gtk.Action("BestFitAction", Mono.Unix.Catalog.GetString("Best _Fit"), null, "gtk-zoom-fit");
- this.BestFitAction.Sensitive = false;
- this.BestFitAction.ShortLabel = Mono.Unix.Catalog.GetString("Best _Fit");
- w2.Add(this.BestFitAction, null);
- this.NormalSizeAction = new Gtk.Action("NormalSizeAction", Mono.Unix.Catalog.GetString("_Normal Size"), null, "gtk-zoom-100");
- this.NormalSizeAction.Sensitive = false;
- this.NormalSizeAction.ShortLabel = Mono.Unix.Catalog.GetString("_Normal Size");
- w2.Add(this.NormalSizeAction, null);
- this.ZoomOutAction = new Gtk.Action("ZoomOutAction", Mono.Unix.Catalog.GetString("Zoom _Out"), null, "gtk-zoom-out");
- this.ZoomOutAction.Sensitive = false;
- this.ZoomOutAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _Out");
- w2.Add(this.ZoomOutAction, null);
- this.ZoomInAction = new Gtk.Action("ZoomInAction", Mono.Unix.Catalog.GetString("Zoom _In"), null, "gtk-zoom-in");
- this.ZoomInAction.Sensitive = false;
- this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In");
- w2.Add(this.ZoomInAction, null);
- this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo");
- this.undoAction.Sensitive = false;
- w2.Add(this.undoAction, null);
- this.redoAction = new Gtk.Action("redoAction", null, null, "gtk-redo");
- this.redoAction.Sensitive = false;
- w2.Add(this.redoAction, null);
- this.zoom100Action = new Gtk.Action("zoom100Action", null, null, "gtk-zoom-100");
- this.zoom100Action.Sensitive = false;
- w2.Add(this.zoom100Action, null);
- this.zoomFitAction = new Gtk.Action("zoomFitAction", null, null, "gtk-zoom-fit");
- this.zoomFitAction.Sensitive = false;
- w2.Add(this.zoomFitAction, null);
- this.zoomOutAction = new Gtk.Action("zoomOutAction", null, null, "gtk-zoom-out");
- this.zoomOutAction.Sensitive = false;
- w2.Add(this.zoomOutAction, null);
- this.zoomInAction = new Gtk.Action("zoomInAction", null, null, "gtk-zoom-in");
- this.zoomInAction.Sensitive = false;
- w2.Add(this.zoomInAction, null);
- this.helpAction = new Gtk.Action("helpAction", null, null, "gtk-help");
- this.helpAction.Sensitive = false;
- w2.Add(this.helpAction, null);
- w1.InsertActionGroup(w2, 0);
- this.AddAccelGroup(w1.AccelGroup);
- this.Name = "MainWindow";
- this.Title = Mono.Unix.Catalog.GetString("The Pimp");
- this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_image", Gtk.IconSize.Menu, 16);
- this.WindowPosition = ((Gtk.WindowPosition)(4));
- // Container child MainWindow.Gtk.Container+ContainerChild
- this.vbox1 = new Gtk.VBox();
- this.vbox1.Name = "vbox1";
- // Container child vbox1.Gtk.Box+BoxChild
- w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='FileAction'><menuitem action='NewAction'/><menuitem action='OpenAction'/><menuitem action='SaveAction'/><menuitem action='SaveAsAction'/><menuitem action='QuitAction'/></menu><menu action='EditAction'><menuitem action='UndoAction'/><menuitem action='RedoAction'/></menu><menu action='ViewAction'><menuitem action='ZoomInAction'/><menuitem action='ZoomOutAction'/><menuitem action='BestFitAction'/><menuitem action='NormalSizeAction'/></menu><menu action='HelpAction'><menuitem action='HelpAction1'/><menuitem action='AboutAction'/></menu></menubar></ui>");
- this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
- this.menubar1.Name = "menubar1";
- this.vbox1.Add(this.menubar1);
- Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
- w3.Position = 0;
- w3.Expand = false;
- w3.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='newAction'/><toolitem action='openAction'/><toolitem action='saveAction'/><separator/><toolitem action='undoAction'/><toolitem action='redoAction'/><separator/><toolitem action='zoomInAction'/><toolitem action='zoomOutAction'/><toolitem action='zoomFitAction'/><toolitem action='zoom100Action'/><separator/><toolitem action='helpAction'/></toolbar></ui>");
- this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
- this.toolbar1.Name = "toolbar1";
- this.toolbar1.ShowArrow = false;
- this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
- this.vbox1.Add(this.toolbar1);
- Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
- w4.Position = 1;
- w4.Expand = false;
- w4.Fill = false;
- // Container child vbox1.Gtk.Box+BoxChild
- this.hpaned1 = new Gtk.HPaned();
- this.hpaned1.CanFocus = true;
- this.hpaned1.Name = "hpaned1";
- this.hpaned1.Position = 408;
- // Container child hpaned1.Gtk.Paned+PanedChild
- this.notebook1 = new Gtk.Notebook();
- this.notebook1.CanFocus = true;
- this.notebook1.Name = "notebook1";
- this.notebook1.CurrentPage = 0;
- this.notebook1.BorderWidth = ((uint)(5));
- // Container child notebook1.Gtk.Notebook+NotebookChild
- this.scrolledwindow1 = new Gtk.ScrolledWindow();
- this.scrolledwindow1.WidthRequest = 640;
- this.scrolledwindow1.HeightRequest = 480;
- this.scrolledwindow1.CanFocus = true;
- this.scrolledwindow1.Name = "scrolledwindow1";
- this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
- this.notebook1.Add(this.scrolledwindow1);
- // Notebook tab
- this.label1 = new Gtk.Label();
- this.label1.Name = "label1";
- this.label1.LabelProp = Mono.Unix.Catalog.GetString("Test tab");
- this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1);
- this.label1.ShowAll();
- this.hpaned1.Add(this.notebook1);
- Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.notebook1]));
- w6.Resize = false;
- // Container child hpaned1.Gtk.Paned+PanedChild
- this.vpaned1 = new Gtk.VPaned();
- this.vpaned1.CanFocus = true;
- this.vpaned1.Name = "vpaned1";
- this.vpaned1.Position = 60;
- // Container child vpaned1.Gtk.Paned+PanedChild
- this.vbox2 = new Gtk.VBox();
- this.vbox2.Name = "vbox2";
- this.vbox2.BorderWidth = ((uint)(5));
- // Container child vbox2.Gtk.Box+BoxChild
- this.label2 = new Gtk.Label();
- this.label2.WidthRequest = 100;
- this.label2.Name = "label2";
- this.label2.LabelProp = Mono.Unix.Catalog.GetString("Tools");
- this.vbox2.Add(this.label2);
- Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
- w7.Position = 0;
- w7.Expand = false;
- w7.Fill = false;
- this.vpaned1.Add(this.vbox2);
- Gtk.Paned.PanedChild w8 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox2]));
- w8.Resize = false;
- // Container child vpaned1.Gtk.Paned+PanedChild
- this.vbox3 = new Gtk.VBox();
- this.vbox3.Name = "vbox3";
- this.vbox3.BorderWidth = ((uint)(5));
- // Container child vbox3.Gtk.Box+BoxChild
- this.label3 = new Gtk.Label();
- this.label3.WidthRequest = 100;
- this.label3.Name = "label3";
- this.label3.LabelProp = Mono.Unix.Catalog.GetString("Layers & Channels");
- this.vbox3.Add(this.label3);
- Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
- w9.Position = 0;
- w9.Expand = false;
- w9.Fill = false;
- this.vpaned1.Add(this.vbox3);
- this.hpaned1.Add(this.vpaned1);
- this.vbox1.Add(this.hpaned1);
- Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
- w12.Position = 2;
- // Container child vbox1.Gtk.Box+BoxChild
- this.statusbar1 = new Gtk.Statusbar();
- this.statusbar1.Name = "statusbar1";
- this.statusbar1.Spacing = 6;
- this.vbox1.Add(this.statusbar1);
- Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
- w13.Position = 3;
- w13.Expand = false;
- w13.Fill = false;
- this.Add(this.vbox1);
- if ((this.Child != null)) {
- this.Child.ShowAll();
- }
- this.DefaultWidth = 840;
- this.DefaultHeight = 680;
- this.Show();
- this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
- this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
- this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
- this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
- }
- }
|