コード例 #1
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.HeightRequest  = 100;
     this.CanFocus       = true;
     this.Name           = "MainWindow";
     this.Title          = global::Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.glwidget1                = new global::Gtk.GLWidget();
     this.glwidget1.CanFocus       = true;
     this.glwidget1.Name           = "glwidget1";
     this.glwidget1.SingleBuffer   = false;
     this.glwidget1.ColorBPP       = 0;
     this.glwidget1.AccumulatorBPP = 0;
     this.glwidget1.DepthBPP       = 0;
     this.glwidget1.StencilBPP     = 0;
     this.glwidget1.Samples        = 0;
     this.glwidget1.Stereo         = false;
     this.glwidget1.GlVersionMajor = 2;
     this.glwidget1.GlVersionMinor = 0;
     this.Add(this.glwidget1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent             += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.glwidget1.RenderFrame   += new global::System.EventHandler(this.OnGlwidget1RenderFrame);
     this.glwidget1.Initialized   += new global::System.EventHandler(this.OnGlwidget1Initialized);
     this.glwidget1.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnGlwidget1KeyPressEvent);
 }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: cosmicat/badwitch2
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize (this);
     // Widget MainWindow
     this.Name = "MainWindow";
     this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     this.BorderWidth = ((uint)(15));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new global::Gtk.VBox ();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.glwidget2 = new global::Gtk.GLWidget ();
     this.glwidget2.Name = "glwidget2";
     this.glwidget2.SingleBuffer = false;
     this.glwidget2.ColorBPP = 0;
     this.glwidget2.AccumulatorBPP = 0;
     this.glwidget2.DepthBPP = 0;
     this.glwidget2.StencilBPP = 0;
     this.glwidget2.Samples = 0;
     this.glwidget2.Stereo = false;
     this.glwidget2.GlVersionMajor = 0;
     this.glwidget2.GlVersionMinor = 0;
     this.vbox1.Add (this.glwidget2);
     global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.glwidget2]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     this.Add (this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll ();
     }
     this.DefaultWidth = 922;
     this.DefaultHeight = 541;
     this.Show ();
     this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
 }
コード例 #3
0
ファイル: MainWindow.cs プロジェクト: DVZverrr/Vizor
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize (this);
     // Widget MainWindow
     this.Name = "MainWindow";
     this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new global::Gtk.VBox ();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.glwidget2 = new global::Gtk.GLWidget ();
     this.glwidget2.WidthRequest = 320;
     this.glwidget2.HeightRequest = 240;
     this.glwidget2.Name = "glwidget2";
     this.glwidget2.SingleBuffer = false;
     this.glwidget2.ColorBPP = 24;
     this.glwidget2.AccumulatorBPP = 0;
     this.glwidget2.DepthBPP = 16;
     this.glwidget2.StencilBPP = 0;
     this.glwidget2.Samples = 0;
     this.glwidget2.Stereo = false;
     this.glwidget2.GlVersionMajor = 0;
     this.glwidget2.GlVersionMinor = 0;
     this.vbox1.Add (this.glwidget2);
     global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.glwidget2]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new global::Gtk.HBox ();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button1 = new global::Gtk.Button ();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbox1.Add (this.button1);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.button1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.glwidget1 = new global::Gtk.GLWidget ();
     this.glwidget1.WidthRequest = 160;
     this.glwidget1.HeightRequest = 120;
     this.glwidget1.Name = "glwidget1";
     this.glwidget1.SingleBuffer = false;
     this.glwidget1.ColorBPP = 16;
     this.glwidget1.AccumulatorBPP = 0;
     this.glwidget1.DepthBPP = 16;
     this.glwidget1.StencilBPP = 0;
     this.glwidget1.Samples = 0;
     this.glwidget1.Stereo = false;
     this.glwidget1.GlVersionMajor = 0;
     this.glwidget1.GlVersionMinor = 0;
     this.hbox1.Add (this.glwidget1);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.glwidget1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.vbox1.Add (this.hbox1);
     global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.entry1 = new global::Gtk.Entry ();
     this.entry1.CanFocus = true;
     this.entry1.Name = "entry1";
     this.entry1.IsEditable = true;
     this.entry1.InvisibleChar = '•';
     this.vbox1.Add (this.entry1);
     global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.entry1]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.Add (this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll ();
     }
     this.DefaultWidth = 536;
     this.DefaultHeight = 399;
     this.Show ();
     this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
     this.glwidget2.RenderFrame += new global::System.EventHandler (this.OnGlwidget1RenderFrame);
     this.button1.Clicked += new global::System.EventHandler (this.OpenExampleClick);
     this.glwidget1.RenderFrame += new global::System.EventHandler (this.OnGlwidget1RenderFrame);
 }
コード例 #4
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget Daggerfall.Editor.Viewer
     this.Name           = "Daggerfall.Editor.Viewer";
     this.Title          = global::Mono.Unix.Catalog.GetString("Daggerfall Viewer");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Container child Daggerfall.Editor.Viewer.Gtk.Container+ContainerChild
     this.sectionNotebook             = new global::Gtk.Notebook();
     this.sectionNotebook.CanFocus    = true;
     this.sectionNotebook.Name        = "sectionNotebook";
     this.sectionNotebook.CurrentPage = 2;
     // Container child sectionNotebook.Gtk.Notebook+NotebookChild
     this.gameSection             = new global::Gtk.VBox();
     this.gameSection.Name        = "gameSection";
     this.gameSection.Spacing     = 6;
     this.gameSection.BorderWidth = ((uint)(5));
     // Container child gameSection.Gtk.Box+BoxChild
     this.gamePathContainer         = new global::Gtk.HBox();
     this.gamePathContainer.Name    = "gamePathContainer";
     this.gamePathContainer.Spacing = 6;
     // Container child gamePathContainer.Gtk.Box+BoxChild
     this.gamePathLabel           = new global::Gtk.Label();
     this.gamePathLabel.Name      = "gamePathLabel";
     this.gamePathLabel.LabelProp = global::Mono.Unix.Catalog.GetString("Source path:");
     this.gamePathContainer.Add(this.gamePathLabel);
     global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.gamePathContainer [this.gamePathLabel]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     w1.Padding  = ((uint)(7));
     // Container child gamePathContainer.Gtk.Box+BoxChild
     this.gamePathChooser      = new global::Gtk.FileChooserButton(global::Mono.Unix.Catalog.GetString("Select the folder of your Daggerfall copy."), ((global::Gtk.FileChooserAction)(2)));
     this.gamePathChooser.Name = "gamePathChooser";
     this.gamePathContainer.Add(this.gamePathChooser);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.gamePathContainer [this.gamePathChooser]));
     w2.Position = 1;
     this.gameSection.Add(this.gamePathContainer);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.gameSection [this.gamePathContainer]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child gameSection.Gtk.Box+BoxChild
     this.playButtonContainer             = new global::Gtk.HButtonBox();
     this.playButtonContainer.Name        = "playButtonContainer";
     this.playButtonContainer.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
     // Container child playButtonContainer.Gtk.ButtonBox+ButtonBoxChild
     this.playButton = new global::Gtk.Button();
     this.playButton.TooltipMarkup = "Start playing Daggerfall with these settings.";
     this.playButton.CanFocus      = true;
     this.playButton.Name          = "playButton";
     this.playButton.UseUnderline  = true;
     this.playButton.Label         = global::Mono.Unix.Catalog.GetString("Play");
     this.playButtonContainer.Add(this.playButton);
     global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.playButtonContainer [this.playButton]));
     w4.Expand = false;
     w4.Fill   = false;
     this.gameSection.Add(this.playButtonContainer);
     global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.gameSection [this.playButtonContainer]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     this.sectionNotebook.Add(this.gameSection);
     // Notebook tab
     this.gameSectionLabel = new global::Gtk.Label();
     this.gameSectionLabel.TooltipMarkup = "Manage the game and start playing.";
     this.gameSectionLabel.Name          = "gameSectionLabel";
     this.gameSectionLabel.LabelProp     = global::Mono.Unix.Catalog.GetString("Game");
     this.sectionNotebook.SetTabLabel(this.gameSection, this.gameSectionLabel);
     this.gameSectionLabel.ShowAll();
     // Container child sectionNotebook.Gtk.Notebook+NotebookChild
     this.blocksSection             = new global::Gtk.HPaned();
     this.blocksSection.CanFocus    = true;
     this.blocksSection.Name        = "blocksSection";
     this.blocksSection.Position    = 1;
     this.blocksSection.BorderWidth = ((uint)(5));
     // Container child blocksSection.Gtk.Paned+PanedChild
     this.GtkScrolledWindow            = new global::Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name       = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.blockList             = new global::Gtk.NodeView();
     this.blockList.CanFocus    = true;
     this.blockList.Name        = "blockList";
     this.blockList.Reorderable = true;
     this.GtkScrolledWindow.Add(this.blockList);
     this.blocksSection.Add(this.GtkScrolledWindow);
     global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.blocksSection [this.GtkScrolledWindow]));
     w8.Resize = false;
     // Container child blocksSection.Gtk.Paned+PanedChild
     this.notebook2             = new global::Gtk.Notebook();
     this.notebook2.CanFocus    = true;
     this.notebook2.Name        = "notebook2";
     this.notebook2.CurrentPage = 0;
     this.notebook2.TabPos      = ((global::Gtk.PositionType)(0));
     // Container child notebook2.Gtk.Notebook+NotebookChild
     this.GtkScrolledWindow1            = new global::Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name       = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.blockChunkList             = new global::Gtk.NodeView();
     this.blockChunkList.CanFocus    = true;
     this.blockChunkList.Name        = "blockChunkList";
     this.blockChunkList.Reorderable = true;
     this.GtkScrolledWindow1.Add(this.blockChunkList);
     this.notebook2.Add(this.GtkScrolledWindow1);
     // Notebook tab
     this.label1           = new global::Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Chunks");
     this.notebook2.SetTabLabel(this.GtkScrolledWindow1, this.label1);
     this.label1.ShowAll();
     this.blocksSection.Add(this.notebook2);
     this.sectionNotebook.Add(this.blocksSection);
     global::Gtk.Notebook.NotebookChild w12 = ((global::Gtk.Notebook.NotebookChild)(this.sectionNotebook [this.blocksSection]));
     w12.Position = 1;
     // Notebook tab
     this.blocksSectionLabel = new global::Gtk.Label();
     this.blocksSectionLabel.TooltipMarkup = "Blocks are collections of parts of buildings/interior pieces, objects, people, an" +
                                             "d items that can be joined together in a Location under Region.";
     this.blocksSectionLabel.Name      = "blocksSectionLabel";
     this.blocksSectionLabel.LabelProp = global::Mono.Unix.Catalog.GetString("Blocks");
     this.sectionNotebook.SetTabLabel(this.blocksSection, this.blocksSectionLabel);
     this.blocksSectionLabel.ShowAll();
     // Container child sectionNotebook.Gtk.Notebook+NotebookChild
     this.glwidget                = new global::Gtk.GLWidget();
     this.glwidget.Name           = "glwidget";
     this.glwidget.SingleBuffer   = false;
     this.glwidget.ColorBPP       = 32;
     this.glwidget.AccumulatorBPP = 0;
     this.glwidget.DepthBPP       = 32;
     this.glwidget.StencilBPP     = 0;
     this.glwidget.Samples        = 8;
     this.glwidget.Stereo         = false;
     this.glwidget.GlVersionMajor = 0;
     this.glwidget.GlVersionMinor = 0;
     this.sectionNotebook.Add(this.glwidget);
     global::Gtk.Notebook.NotebookChild w13 = ((global::Gtk.Notebook.NotebookChild)(this.sectionNotebook [this.glwidget]));
     w13.Position = 2;
     // Notebook tab
     this.label5           = new global::Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = global::Mono.Unix.Catalog.GetString("page3");
     this.sectionNotebook.SetTabLabel(this.glwidget, this.label5);
     this.label5.ShowAll();
     this.Add(this.sectionNotebook);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.blocksSection.Shown    += new global::System.EventHandler(this.OnBlocksPaneShown);
     this.blockList.RowActivated += new global::Gtk.RowActivatedHandler(this.OnBlockListRowActivated);
 }
コード例 #5
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new global::Gtk.UIManager();
     global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default");
     this.ArchivoAction            = new global::Gtk.Action("ArchivoAction", "Archivo", null, null);
     this.ArchivoAction.ShortLabel = "Archivo";
     w1.Add(this.ArchivoAction, null);
     this.AbrirAction            = new global::Gtk.Action("AbrirAction", "Abrir", null, null);
     this.AbrirAction.ShortLabel = "Abrir";
     w1.Add(this.AbrirAction, null);
     this.CosaAction            = new global::Gtk.Action("CosaAction", "Cosa", null, null);
     this.CosaAction.ShortLabel = "Cosa";
     w1.Add(this.CosaAction, null);
     this.CosaAction1            = new global::Gtk.Action("CosaAction1", "Cosa", null, null);
     this.CosaAction1.ShortLabel = "Cosa";
     w1.Add(this.CosaAction1, null);
     this.MenuAction            = new global::Gtk.Action("MenuAction", "Menu", null, null);
     this.MenuAction.ShortLabel = "Cosa";
     w1.Add(this.MenuAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = "MainWindow";
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox3      = new global::Gtk.VBox();
     this.vbox3.Name = "vbox3";
     // Container child vbox3.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar3'><menu name='MenuAction' action='MenuAction'/></menubar></ui>");
     this.menubar3      = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar3")));
     this.menubar3.Name = "menubar3";
     this.vbox3.Add(this.menubar3);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.menubar3]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.glwidget7 = new global::Gtk.GLWidget();
     this.glwidget7.WidthRequest   = 800;
     this.glwidget7.HeightRequest  = 600;
     this.glwidget7.Name           = "glwidget7";
     this.glwidget7.SingleBuffer   = false;
     this.glwidget7.ColorBPP       = 24;
     this.glwidget7.AccumulatorBPP = 0;
     this.glwidget7.DepthBPP       = 32;
     this.glwidget7.StencilBPP     = 0;
     this.glwidget7.Samples        = 4;
     this.glwidget7.Stereo         = false;
     this.glwidget7.GlVersionMajor = 3;
     this.glwidget7.GlVersionMinor = 3;
     this.vbox3.Add(this.glwidget7);
     global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.glwidget7]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     this.Add(this.vbox3);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 883;
     this.DefaultHeight = 709;
     this.Show();
     this.DeleteEvent           += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.glwidget7.Initialized += new global::System.EventHandler(this.GLWidgetInitialize);
 }