25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

297 satır
14 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. public partial class MainWindow {
  11. private Gtk.Action newAction;
  12. private Gtk.Action openAction;
  13. private Gtk.Action saveAction;
  14. private Gtk.Action Action;
  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.VBox vbox1;
  40. private Gtk.MenuBar menubar1;
  41. private Gtk.Toolbar toolbar1;
  42. private Gtk.HPaned hpaned1;
  43. private Gtk.Notebook notebook1;
  44. private Gtk.VPaned vpaned1;
  45. private Gtk.VBox vbox2;
  46. private Gtk.Label label2;
  47. private Gtk.VBox vbox3;
  48. private Gtk.Label label3;
  49. private Gtk.Statusbar statusbar1;
  50. protected virtual void Build() {
  51. Stetic.Gui.Initialize(this);
  52. // Widget MainWindow
  53. Gtk.UIManager w1 = new Gtk.UIManager();
  54. Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
  55. this.newAction = new Gtk.Action("newAction", null, null, "gtk-new");
  56. this.newAction.Sensitive = false;
  57. w2.Add(this.newAction, null);
  58. this.openAction = new Gtk.Action("openAction", null, null, "gtk-open");
  59. w2.Add(this.openAction, null);
  60. this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save");
  61. this.saveAction.Sensitive = false;
  62. w2.Add(this.saveAction, null);
  63. this.Action = new Gtk.Action("Action", null, null, null);
  64. w2.Add(this.Action, null);
  65. this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
  66. this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
  67. w2.Add(this.FileAction, null);
  68. this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
  69. this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
  70. w2.Add(this.EditAction, null);
  71. this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
  72. this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
  73. w2.Add(this.ViewAction, null);
  74. this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
  75. this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
  76. w2.Add(this.HelpAction, null);
  77. this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_New"), null, "gtk-new");
  78. this.NewAction.Sensitive = false;
  79. this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_New");
  80. w2.Add(this.NewAction, null);
  81. this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open"), null, "gtk-open");
  82. this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open");
  83. w2.Add(this.OpenAction, null);
  84. this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Save"), null, "gtk-save");
  85. this.SaveAction.Sensitive = false;
  86. this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Save");
  87. w2.Add(this.SaveAction, null);
  88. this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as");
  89. this.SaveAsAction.Sensitive = false;
  90. this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
  91. w2.Add(this.SaveAsAction, null);
  92. this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
  93. this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
  94. w2.Add(this.QuitAction, null);
  95. this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help");
  96. this.HelpAction1.Sensitive = false;
  97. this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
  98. w2.Add(this.HelpAction1, null);
  99. this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
  100. this.AboutAction.Sensitive = false;
  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. w1.InsertActionGroup(w2, 0);
  149. this.AddAccelGroup(w1.AccelGroup);
  150. this.Name = "MainWindow";
  151. this.Title = Mono.Unix.Catalog.GetString("The Pimp");
  152. this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_image", Gtk.IconSize.Menu, 16);
  153. this.WindowPosition = ((Gtk.WindowPosition)(4));
  154. // Container child MainWindow.Gtk.Container+ContainerChild
  155. this.vbox1 = new Gtk.VBox();
  156. this.vbox1.Name = "vbox1";
  157. // Container child vbox1.Gtk.Box+BoxChild
  158. 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>");
  159. this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
  160. this.menubar1.Name = "menubar1";
  161. this.vbox1.Add(this.menubar1);
  162. Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
  163. w3.Position = 0;
  164. w3.Expand = false;
  165. w3.Fill = false;
  166. // Container child vbox1.Gtk.Box+BoxChild
  167. 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>");
  168. this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
  169. this.toolbar1.Name = "toolbar1";
  170. this.toolbar1.ShowArrow = false;
  171. this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
  172. this.vbox1.Add(this.toolbar1);
  173. Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1]));
  174. w4.Position = 1;
  175. w4.Expand = false;
  176. w4.Fill = false;
  177. // Container child vbox1.Gtk.Box+BoxChild
  178. this.hpaned1 = new Gtk.HPaned();
  179. this.hpaned1.CanFocus = true;
  180. this.hpaned1.Name = "hpaned1";
  181. this.hpaned1.Position = 408;
  182. // Container child hpaned1.Gtk.Paned+PanedChild
  183. this.notebook1 = new Gtk.Notebook();
  184. this.notebook1.CanFocus = true;
  185. this.notebook1.Name = "notebook1";
  186. this.notebook1.CurrentPage = 0;
  187. this.notebook1.BorderWidth = ((uint)(5));
  188. this.hpaned1.Add(this.notebook1);
  189. Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.notebook1]));
  190. w5.Resize = false;
  191. // Container child hpaned1.Gtk.Paned+PanedChild
  192. this.vpaned1 = new Gtk.VPaned();
  193. this.vpaned1.CanFocus = true;
  194. this.vpaned1.Name = "vpaned1";
  195. this.vpaned1.Position = 60;
  196. // Container child vpaned1.Gtk.Paned+PanedChild
  197. this.vbox2 = new Gtk.VBox();
  198. this.vbox2.Name = "vbox2";
  199. this.vbox2.BorderWidth = ((uint)(5));
  200. // Container child vbox2.Gtk.Box+BoxChild
  201. this.label2 = new Gtk.Label();
  202. this.label2.WidthRequest = 100;
  203. this.label2.Name = "label2";
  204. this.label2.LabelProp = Mono.Unix.Catalog.GetString("Tools");
  205. this.vbox2.Add(this.label2);
  206. Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
  207. w6.Position = 0;
  208. w6.Expand = false;
  209. w6.Fill = false;
  210. this.vpaned1.Add(this.vbox2);
  211. Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox2]));
  212. w7.Resize = false;
  213. // Container child vpaned1.Gtk.Paned+PanedChild
  214. this.vbox3 = new Gtk.VBox();
  215. this.vbox3.Name = "vbox3";
  216. this.vbox3.BorderWidth = ((uint)(5));
  217. // Container child vbox3.Gtk.Box+BoxChild
  218. this.label3 = new Gtk.Label();
  219. this.label3.WidthRequest = 100;
  220. this.label3.Name = "label3";
  221. this.label3.LabelProp = Mono.Unix.Catalog.GetString("Layers & Channels");
  222. this.vbox3.Add(this.label3);
  223. Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
  224. w8.Position = 0;
  225. w8.Expand = false;
  226. w8.Fill = false;
  227. this.vpaned1.Add(this.vbox3);
  228. this.hpaned1.Add(this.vpaned1);
  229. this.vbox1.Add(this.hpaned1);
  230. Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
  231. w11.Position = 2;
  232. // Container child vbox1.Gtk.Box+BoxChild
  233. this.statusbar1 = new Gtk.Statusbar();
  234. this.statusbar1.Name = "statusbar1";
  235. this.statusbar1.Spacing = 6;
  236. this.vbox1.Add(this.statusbar1);
  237. Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
  238. w12.Position = 3;
  239. w12.Expand = false;
  240. w12.Fill = false;
  241. this.Add(this.vbox1);
  242. if ((this.Child != null)) {
  243. this.Child.ShowAll();
  244. }
  245. this.DefaultWidth = 840;
  246. this.DefaultHeight = 680;
  247. this.Show();
  248. this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
  249. this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
  250. this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
  251. this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
  252. }
  253. }