Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

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