Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

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