Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 12th, 2011  |  syntax: C#  |  size: 3.29 KB  |  views: 107  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. // This file has been generated by the GUI designer. Do not modify.
  3. namespace GameOfLifeProgram {
  4. public partial class MainWindow
  5. {
  6.         private global::Gtk.UIManager UIManager;
  7.  
  8.         private global::Gtk.Action FileAction;
  9.  
  10.         private global::Gtk.Action EditAction;
  11.  
  12.         private global::Gtk.Action AboutAction;
  13.  
  14.         private global::Gtk.Action GenerateAction;
  15.  
  16.         private global::Gtk.VPaned Splitter;
  17.  
  18.         private global::Gtk.MenuBar mainMenu;
  19.  
  20.         private global::Gtk.DrawingArea display;
  21.  
  22.         protected virtual void Build ()
  23.         {
  24.                 global::Stetic.Gui.Initialize (this);
  25.                 // Widget MainWindow
  26.                 this.UIManager = new global::Gtk.UIManager ();
  27.                 global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
  28.                 this.FileAction = new global::Gtk.Action ("FileAction", global::Mono.Unix.Catalog.GetString ("File"), null, null);
  29.                 this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("File");
  30.                 w1.Add (this.FileAction, null);
  31.                 this.EditAction = new global::Gtk.Action ("EditAction", global::Mono.Unix.Catalog.GetString ("Edit"), null, null);
  32.                 this.EditAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Edit");
  33.                 w1.Add (this.EditAction, null);
  34.                 this.AboutAction = new global::Gtk.Action ("AboutAction", global::Mono.Unix.Catalog.GetString ("About"), null, null);
  35.                 this.AboutAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("About");
  36.                 w1.Add (this.AboutAction, null);
  37.                 this.GenerateAction = new global::Gtk.Action ("GenerateAction", global::Mono.Unix.Catalog.GetString ("Generate"), null, null);
  38.                 this.GenerateAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("Generate");
  39.                 w1.Add (this.GenerateAction, null);
  40.                 this.UIManager.InsertActionGroup (w1, 0);
  41.                 this.AddAccelGroup (this.UIManager.AccelGroup);
  42.                 this.Name = "MainWindow";
  43.                 this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
  44.                 this.WindowPosition = ((global::Gtk.WindowPosition)(4));
  45.                 // Container child MainWindow.Gtk.Container+ContainerChild
  46.                 this.Splitter = new global::Gtk.VPaned ();
  47.                 this.Splitter.CanFocus = true;
  48.                 this.Splitter.Name = "Splitter";
  49.                 this.Splitter.Position = 27;
  50.                 // Container child Splitter.Gtk.Paned+PanedChild
  51.                 this.UIManager.AddUiFromString ("<ui><menubar name='mainMenu'><menu name='FileAction' action='FileAction'><menuitem name='GenerateAction' action='GenerateAction'/></menu><menu name='EditAction' action='EditAction'/><menu name='AboutAction' action='AboutAction'/></menubar></ui>");
  52.                 this.mainMenu = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/mainMenu")));
  53.                 this.mainMenu.Name = "mainMenu";
  54.                 this.Splitter.Add (this.mainMenu);
  55.                 global::Gtk.Paned.PanedChild w2 = ((global::Gtk.Paned.PanedChild)(this.Splitter[this.mainMenu]));
  56.                 w2.Resize = false;
  57.                 // Container child Splitter.Gtk.Paned+PanedChild
  58.                 this.display = new global::Gtk.DrawingArea ();
  59.                 this.display.Name = "display";
  60.                 this.Splitter.Add (this.display);
  61.                 this.Add (this.Splitter);
  62.                 if ((this.Child != null)) {
  63.                         this.Child.ShowAll ();
  64.                 }
  65.                 this.DefaultWidth = 430;
  66.                 this.DefaultHeight = 300;
  67.                 this.Show ();
  68.                 this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
  69.                 this.GenerateAction.Activated += new global::System.EventHandler (this.OnGenerateActionActivated);
  70.                 this.display.ExposeEvent += new global::Gtk.ExposeEventHandler (this.OnDisplayExposeEvent);
  71.         }
  72. }
  73. }
clone this paste RAW Paste Data