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.
 
 
 
 
 
 

315 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.ScrolledWindow scrolledwindow1;
  45. private Gtk.Label label1;
  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 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.Sensitive = false;
  92. this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Save _As");
  93. w2.Add(this.SaveAsAction, null);
  94. this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
  95. this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
  96. w2.Add(this.QuitAction, null);
  97. this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("_Help"), null, "gtk-help");
  98. this.HelpAction1.Sensitive = false;
  99. this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
  100. w2.Add(this.HelpAction1, null);
  101. this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
  102. this.AboutAction.Sensitive = false;
  103. this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
  104. w2.Add(this.AboutAction, null);
  105. this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo");
  106. this.UndoAction.Sensitive = false;
  107. this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Undo");
  108. w2.Add(this.UndoAction, null);
  109. this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Redo"), null, "gtk-redo");
  110. this.RedoAction.Sensitive = false;
  111. this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Redo");
  112. w2.Add(this.RedoAction, null);
  113. this.BestFitAction = new Gtk.Action("BestFitAction", Mono.Unix.Catalog.GetString("Best _Fit"), null, "gtk-zoom-fit");
  114. this.BestFitAction.Sensitive = false;
  115. this.BestFitAction.ShortLabel = Mono.Unix.Catalog.GetString("Best _Fit");
  116. w2.Add(this.BestFitAction, null);
  117. this.NormalSizeAction = new Gtk.Action("NormalSizeAction", Mono.Unix.Catalog.GetString("_Normal Size"), null, "gtk-zoom-100");
  118. this.NormalSizeAction.Sensitive = false;
  119. this.NormalSizeAction.ShortLabel = Mono.Unix.Catalog.GetString("_Normal Size");
  120. w2.Add(this.NormalSizeAction, null);
  121. this.ZoomOutAction = new Gtk.Action("ZoomOutAction", Mono.Unix.Catalog.GetString("Zoom _Out"), null, "gtk-zoom-out");
  122. this.ZoomOutAction.Sensitive = false;
  123. this.ZoomOutAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _Out");
  124. w2.Add(this.ZoomOutAction, null);
  125. this.ZoomInAction = new Gtk.Action("ZoomInAction", Mono.Unix.Catalog.GetString("Zoom _In"), null, "gtk-zoom-in");
  126. this.ZoomInAction.Sensitive = false;
  127. this.ZoomInAction.ShortLabel = Mono.Unix.Catalog.GetString("Zoom _In");
  128. w2.Add(this.ZoomInAction, null);
  129. this.undoAction = new Gtk.Action("undoAction", null, null, "gtk-undo");
  130. this.undoAction.Sensitive = false;
  131. w2.Add(this.undoAction, null);
  132. this.redoAction = new Gtk.Action("redoAction", null, null, "gtk-redo");
  133. this.redoAction.Sensitive = false;
  134. w2.Add(this.redoAction, null);
  135. this.zoom100Action = new Gtk.Action("zoom100Action", null, null, "gtk-zoom-100");
  136. this.zoom100Action.Sensitive = false;
  137. w2.Add(this.zoom100Action, null);
  138. this.zoomFitAction = new Gtk.Action("zoomFitAction", null, null, "gtk-zoom-fit");
  139. this.zoomFitAction.Sensitive = false;
  140. w2.Add(this.zoomFitAction, null);
  141. this.zoomOutAction = new Gtk.Action("zoomOutAction", null, null, "gtk-zoom-out");
  142. this.zoomOutAction.Sensitive = false;
  143. w2.Add(this.zoomOutAction, null);
  144. this.zoomInAction = new Gtk.Action("zoomInAction", null, null, "gtk-zoom-in");
  145. this.zoomInAction.Sensitive = false;
  146. w2.Add(this.zoomInAction, null);
  147. this.helpAction = new Gtk.Action("helpAction", null, null, "gtk-help");
  148. this.helpAction.Sensitive = false;
  149. w2.Add(this.helpAction, null);
  150. w1.InsertActionGroup(w2, 0);
  151. this.AddAccelGroup(w1.AccelGroup);
  152. this.Name = "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 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'/><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 = 408;
  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. // Container child notebook1.Gtk.Notebook+NotebookChild
  191. this.scrolledwindow1 = new Gtk.ScrolledWindow();
  192. this.scrolledwindow1.WidthRequest = 640;
  193. this.scrolledwindow1.HeightRequest = 480;
  194. this.scrolledwindow1.CanFocus = true;
  195. this.scrolledwindow1.Name = "scrolledwindow1";
  196. this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
  197. this.notebook1.Add(this.scrolledwindow1);
  198. // Notebook tab
  199. this.label1 = new Gtk.Label();
  200. this.label1.Name = "label1";
  201. this.label1.LabelProp = Mono.Unix.Catalog.GetString("Test tab");
  202. this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1);
  203. this.label1.ShowAll();
  204. this.hpaned1.Add(this.notebook1);
  205. Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.notebook1]));
  206. w6.Resize = false;
  207. // Container child hpaned1.Gtk.Paned+PanedChild
  208. this.vpaned1 = new Gtk.VPaned();
  209. this.vpaned1.CanFocus = true;
  210. this.vpaned1.Name = "vpaned1";
  211. this.vpaned1.Position = 60;
  212. // Container child vpaned1.Gtk.Paned+PanedChild
  213. this.vbox2 = new Gtk.VBox();
  214. this.vbox2.Name = "vbox2";
  215. this.vbox2.BorderWidth = ((uint)(5));
  216. // Container child vbox2.Gtk.Box+BoxChild
  217. this.label2 = new Gtk.Label();
  218. this.label2.WidthRequest = 100;
  219. this.label2.Name = "label2";
  220. this.label2.LabelProp = Mono.Unix.Catalog.GetString("Tools");
  221. this.vbox2.Add(this.label2);
  222. Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
  223. w7.Position = 0;
  224. w7.Expand = false;
  225. w7.Fill = false;
  226. this.vpaned1.Add(this.vbox2);
  227. Gtk.Paned.PanedChild w8 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox2]));
  228. w8.Resize = false;
  229. // Container child vpaned1.Gtk.Paned+PanedChild
  230. this.vbox3 = new Gtk.VBox();
  231. this.vbox3.Name = "vbox3";
  232. this.vbox3.BorderWidth = ((uint)(5));
  233. // Container child vbox3.Gtk.Box+BoxChild
  234. this.label3 = new Gtk.Label();
  235. this.label3.WidthRequest = 100;
  236. this.label3.Name = "label3";
  237. this.label3.LabelProp = Mono.Unix.Catalog.GetString("Layers & Channels");
  238. this.vbox3.Add(this.label3);
  239. Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
  240. w9.Position = 0;
  241. w9.Expand = false;
  242. w9.Fill = false;
  243. this.vpaned1.Add(this.vbox3);
  244. this.hpaned1.Add(this.vpaned1);
  245. this.vbox1.Add(this.hpaned1);
  246. Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
  247. w12.Position = 2;
  248. // Container child vbox1.Gtk.Box+BoxChild
  249. this.statusbar1 = new Gtk.Statusbar();
  250. this.statusbar1.Name = "statusbar1";
  251. this.statusbar1.Spacing = 6;
  252. this.vbox1.Add(this.statusbar1);
  253. Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
  254. w13.Position = 3;
  255. w13.Expand = false;
  256. w13.Fill = false;
  257. this.Add(this.vbox1);
  258. if ((this.Child != null)) {
  259. this.Child.ShowAll();
  260. }
  261. this.DefaultWidth = 840;
  262. this.DefaultHeight = 680;
  263. this.Show();
  264. this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
  265. this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
  266. this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
  267. this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
  268. }
  269. }