You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

289 line
15 KiB

  1. // ------------------------------------------------------------------------------
  2. // <autogenerated>
  3. // This code was generated by a tool.
  4. // Mono Runtime Version: 2.0.50727.42
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </autogenerated>
  9. // ------------------------------------------------------------------------------
  10. namespace ThePimp {
  11. public partial class MainWindow {
  12. private Gtk.Action newAction;
  13. private Gtk.Action openAction;
  14. private Gtk.Action saveAction;
  15. private Gtk.Action FileAction;
  16. private Gtk.Action EditAction;
  17. private Gtk.Action ViewAction;
  18. private Gtk.Action HelpAction;
  19. private Gtk.Action NewAction;
  20. private Gtk.Action OpenAction;
  21. private Gtk.Action SaveAction;
  22. private Gtk.Action SaveAsAction;
  23. private Gtk.Action QuitAction;
  24. private Gtk.Action HelpAction1;
  25. private Gtk.Action AboutAction;
  26. private Gtk.Action UndoAction;
  27. private Gtk.Action RedoAction;
  28. private Gtk.Action BestFitAction;
  29. private Gtk.Action NormalSizeAction;
  30. private Gtk.Action ZoomOutAction;
  31. private Gtk.Action ZoomInAction;
  32. private Gtk.Action undoAction;
  33. private Gtk.Action redoAction;
  34. private Gtk.Action zoom100Action;
  35. private Gtk.Action zoomFitAction;
  36. private Gtk.Action zoomOutAction;
  37. private Gtk.Action zoomInAction;
  38. private Gtk.Action helpAction;
  39. private Gtk.Action saveAsAction;
  40. private Gtk.Action FullscreenAction;
  41. private Gtk.VBox vbox1;
  42. private Gtk.MenuBar menubar1;
  43. private Gtk.Toolbar toolbar1;
  44. private Gtk.HPaned hpaned1;
  45. private Gtk.VPaned vpaned1;
  46. private Gtk.HPaned hpaned2;
  47. private Gtk.Notebook notebook1;
  48. private Gtk.VPaned vpaned2;
  49. private Gtk.Statusbar statusbar1;
  50. protected virtual void Build() {
  51. Stetic.Gui.Initialize(this);
  52. // Widget ThePimp.MainWindow
  53. Gtk.UIManager w1 = new Gtk.UIManager();
  54. Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
  55. this.newAction = new Gtk.Action("newAction", null, Mono.Unix.Catalog.GetString("Create a new image"), "gtk-new");
  56. w2.Add(this.newAction, null);
  57. this.openAction = new Gtk.Action("openAction", null, Mono.Unix.Catalog.GetString("Open an image"), "gtk-open");
  58. w2.Add(this.openAction, null);
  59. this.saveAction = new Gtk.Action("saveAction", null, Mono.Unix.Catalog.GetString("Save active image"), "gtk-save");
  60. this.saveAction.Sensitive = false;
  61. w2.Add(this.saveAction, null);
  62. this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
  63. this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
  64. w2.Add(this.FileAction, null);
  65. this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
  66. this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
  67. w2.Add(this.EditAction, null);
  68. this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
  69. this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
  70. w2.Add(this.ViewAction, null);
  71. this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
  72. this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
  73. w2.Add(this.HelpAction, null);
  74. this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New..."), null, "gtk-new");
  75. this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
  76. w2.Add(this.NewAction, null);
  77. this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
  78. this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
  79. w2.Add(this.OpenAction, null);
  80. this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
  81. this.SaveAction.Sensitive = false;
  82. this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
  83. w2.Add(this.SaveAction, null);
  84. this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As..."), null, "gtk-save-as");
  85. this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
  86. w2.Add(this.SaveAsAction, null);
  87. this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
  88. this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
  89. w2.Add(this.QuitAction, null);
  90. this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help");
  91. this.HelpAction1.Sensitive = false;
  92. this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
  93. w2.Add(this.HelpAction1, null);
  94. this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
  95. this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
  96. w2.Add(this.AboutAction, null);
  97. this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo");
  98. this.UndoAction.Sensitive = false;
  99. this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
  100. w2.Add(this.UndoAction, null);
  101. this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo");
  102. this.RedoAction.Sensitive = false;
  103. this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
  104. w2.Add(this.RedoAction, null);
  105. this.BestFitAction = new Gtk.Action("BestFitAction", Mono.Unix.Catalog.GetString("Best _Fit"), null, "gtk-zoom-fit");
  106. this.BestFitAction.Sensitive = false;
  107. this.BestFitAction.ShortLabel = Mono.Unix.Catalog.GetString("Best _Fit");
  108. w2.Add(this.BestFitAction, null);
  109. this.NormalSizeAction = new Gtk.Action("NormalSizeAction", Mono.Unix.Catalog.GetString("_Normal Size"), null, "gtk-zoom-100");
  110. this.NormalSizeAction.Sensitive = false;
  111. this.NormalSizeAction.ShortLabel = Mono.Unix.Catalog.GetString("_Normal Size");
  112. w2.Add(this.NormalSizeAction, null);
  113. this.ZoomOutAction = new Gtk.Action("ZoomOutAction", Mono.Unix.Catalog.GetString("Zoom _Out"), null, "gtk-zoom-out");
  114. this.ZoomOutAction.Sensitive = false;
  115. this.ZoomOutAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _Out");
  116. w2.Add(this.ZoomOutAction, null);
  117. this.ZoomInAction = new Gtk.Action("ZoomInAction", Mono.Unix.Catalog.GetString("Zoom _In"), null, "gtk-zoom-in");
  118. this.ZoomInAction.Sensitive = false;
  119. this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In");
  120. w2.Add(this.ZoomInAction, null);
  121. this.undoAction = new Gtk.Action("undoAction", null, Mono.Unix.Catalog.GetString("Undo action"), "gtk-undo");
  122. this.undoAction.Sensitive = false;
  123. w2.Add(this.undoAction, null);
  124. this.redoAction = new Gtk.Action("redoAction", null, Mono.Unix.Catalog.GetString("Redo action"), "gtk-redo");
  125. this.redoAction.Sensitive = false;
  126. w2.Add(this.redoAction, null);
  127. this.zoom100Action = new Gtk.Action("zoom100Action", null, null, "gtk-zoom-100");
  128. this.zoom100Action.Sensitive = false;
  129. w2.Add(this.zoom100Action, null);
  130. this.zoomFitAction = new Gtk.Action("zoomFitAction", null, null, "gtk-zoom-fit");
  131. this.zoomFitAction.Sensitive = false;
  132. w2.Add(this.zoomFitAction, null);
  133. this.zoomOutAction = new Gtk.Action("zoomOutAction", null, null, "gtk-zoom-out");
  134. this.zoomOutAction.Sensitive = false;
  135. w2.Add(this.zoomOutAction, null);
  136. this.zoomInAction = new Gtk.Action("zoomInAction", null, null, "gtk-zoom-in");
  137. this.zoomInAction.Sensitive = false;
  138. w2.Add(this.zoomInAction, null);
  139. this.helpAction = new Gtk.Action("helpAction", null, null, "gtk-help");
  140. this.helpAction.Sensitive = false;
  141. w2.Add(this.helpAction, null);
  142. this.saveAsAction = new Gtk.Action("saveAsAction", null, Mono.Unix.Catalog.GetString("Save active image "), "gtk-save-as");
  143. w2.Add(this.saveAsAction, null);
  144. this.FullscreenAction = new Gtk.Action("FullscreenAction", Mono.Unix.Catalog.GetString("Fullscreen"), null, "gtk-fullscreen");
  145. this.FullscreenAction.ShortLabel = Mono.Unix.Catalog.GetString("Fullscreen");
  146. w2.Add(this.FullscreenAction, null);
  147. w1.InsertActionGroup(w2, 0);
  148. this.AddAccelGroup(w1.AccelGroup);
  149. this.Name = "ThePimp.MainWindow";
  150. this.Title = Mono.Unix.Catalog.GetString("The Pimp");
  151. this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_image", Gtk.IconSize.Menu, 16);
  152. this.WindowPosition = ((Gtk.WindowPosition)(4));
  153. // Container child ThePimp.MainWindow.Gtk.Container+ContainerChild
  154. this.vbox1 = new Gtk.VBox();
  155. this.vbox1.Name = "vbox1";
  156. // Container child vbox1.Gtk.Box+BoxChild
  157. 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'/><separator/><menuitem action='FullscreenAction'/></menu><menu action='HelpAction'><menuitem action='HelpAction1'/><menuitem action='AboutAction'/></menu></menubar></ui>");
  158. this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
  159. this.menubar1.Name = "menubar1";
  160. this.vbox1.Add(this.menubar1);
  161. Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
  162. w3.Position = 0;
  163. w3.Expand = false;
  164. w3.Fill = false;
  165. // Container child vbox1.Gtk.Box+BoxChild
  166. 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>");
  167. this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
  168. this.toolbar1.Name = "toolbar1";
  169. this.toolbar1.ShowArrow = false;
  170. this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
  171. this.vbox1.Add(this.toolbar1);
  172. Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
  173. w4.Position = 1;
  174. w4.Expand = false;
  175. w4.Fill = false;
  176. // Container child vbox1.Gtk.Box+BoxChild
  177. this.hpaned1 = new Gtk.HPaned();
  178. this.hpaned1.CanFocus = true;
  179. this.hpaned1.Name = "hpaned1";
  180. this.hpaned1.Position = 33;
  181. // Container child hpaned1.Gtk.Paned+PanedChild
  182. this.vpaned1 = new Gtk.VPaned();
  183. this.vpaned1.CanFocus = true;
  184. this.vpaned1.Name = "vpaned1";
  185. this.vpaned1.Position = 41;
  186. this.hpaned1.Add(this.vpaned1);
  187. Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vpaned1]));
  188. w5.Resize = false;
  189. // Container child hpaned1.Gtk.Paned+PanedChild
  190. this.hpaned2 = new Gtk.HPaned();
  191. this.hpaned2.CanFocus = true;
  192. this.hpaned2.Name = "hpaned2";
  193. this.hpaned2.Position = 886;
  194. // Container child hpaned2.Gtk.Paned+PanedChild
  195. this.notebook1 = new Gtk.Notebook();
  196. this.notebook1.CanFocus = true;
  197. this.notebook1.Name = "notebook1";
  198. this.notebook1.CurrentPage = 0;
  199. this.notebook1.BorderWidth = ((uint)(5));
  200. this.hpaned2.Add(this.notebook1);
  201. Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.notebook1]));
  202. w6.Resize = false;
  203. // Container child hpaned2.Gtk.Paned+PanedChild
  204. this.vpaned2 = new Gtk.VPaned();
  205. this.vpaned2.CanFocus = true;
  206. this.vpaned2.Name = "vpaned2";
  207. this.vpaned2.Position = 41;
  208. this.hpaned2.Add(this.vpaned2);
  209. Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vpaned2]));
  210. w7.Resize = false;
  211. w7.Shrink = false;
  212. this.hpaned1.Add(this.hpaned2);
  213. this.vbox1.Add(this.hpaned1);
  214. Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
  215. w9.Position = 2;
  216. // Container child vbox1.Gtk.Box+BoxChild
  217. this.statusbar1 = new Gtk.Statusbar();
  218. this.statusbar1.Name = "statusbar1";
  219. this.statusbar1.Spacing = 6;
  220. this.vbox1.Add(this.statusbar1);
  221. Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
  222. w10.Position = 3;
  223. w10.Expand = false;
  224. w10.Fill = false;
  225. this.Add(this.vbox1);
  226. if ((this.Child != null)) {
  227. this.Child.ShowAll();
  228. }
  229. this.DefaultWidth = 954;
  230. this.DefaultHeight = 680;
  231. this.Show();
  232. this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
  233. this.newAction.Activated += new System.EventHandler(this.OnNewActionActivated);
  234. this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
  235. this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
  236. this.NewAction.Activated += new System.EventHandler(this.OnNewActionActivated);
  237. this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
  238. this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated);
  239. this.SaveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
  240. this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
  241. this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
  242. this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
  243. this.FullscreenAction.Activated += new System.EventHandler(this.OnFullscreenActionActivated);
  244. }
  245. }
  246. }