No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

ThePimp.MainWindow.cs 15 KiB

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