protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget SpriteSheetAnalyzer.MainWindow2 this.Name = "SpriteSheetAnalyzer.MainWindow2"; this.Title = global::Mono.Unix.Catalog.GetString ("SpriteSheetAnalyzer 0.001"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.AllowShrink = true; // Container child SpriteSheetAnalyzer.MainWindow2.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox (); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; this.vbox1.BorderWidth = ((uint)(8)); // 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.filechooserbuttonOpen = new global::Gtk.FileChooserButton (global::Mono.Unix.Catalog.GetString ("Select a File"), ((global::Gtk.FileChooserAction)(0))); this.filechooserbuttonOpen.Name = "filechooserbuttonOpen"; this.hbox1.Add (this.filechooserbuttonOpen); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.filechooserbuttonOpen])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.comboboxMode = global::Gtk.ComboBox.NewText (); this.comboboxMode.AppendText (global::Mono.Unix.Catalog.GetString ("Horizontal")); this.comboboxMode.AppendText (global::Mono.Unix.Catalog.GetString ("Vertical")); this.comboboxMode.AppendText (global::Mono.Unix.Catalog.GetString ("Islands")); this.comboboxMode.Name = "comboboxMode"; this.hbox1.Add (this.comboboxMode); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.comboboxMode])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vseparator1 = new global::Gtk.VSeparator (); this.vseparator1.Name = "vseparator1"; this.hbox1.Add (this.vseparator1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vseparator1])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.comboboxProcess = global::Gtk.ComboBox.NewText (); this.comboboxProcess.AppendText (global::Mono.Unix.Catalog.GetString ("Clean")); this.comboboxProcess.AppendText (global::Mono.Unix.Catalog.GetString ("Remove Background Color")); this.comboboxProcess.Name = "comboboxProcess"; this.hbox1.Add (this.comboboxProcess); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.comboboxProcess])); w4.Position = 3; w4.Expand = false; w4.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.buttonProcess = new global::Gtk.Button (); this.buttonProcess.CanFocus = true; this.buttonProcess.Name = "buttonProcess"; this.buttonProcess.UseUnderline = true; this.buttonProcess.Label = global::Mono.Unix.Catalog.GetString ("Process"); this.hbox1.Add (this.buttonProcess); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.buttonProcess])); w5.Position = 4; w5.Expand = false; w5.Fill = false; this.vbox1.Add (this.hbox1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned1 = new global::Gtk.HPaned (); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 258; // Container child hpaned1.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.textviewOutput = new global::Gtk.TextView (); this.textviewOutput.Buffer.Text = "(no output)"; this.textviewOutput.CanFocus = true; this.textviewOutput.Name = "textviewOutput"; this.textviewOutput.Editable = false; this.GtkScrolledWindow.Add (this.textviewOutput); this.hpaned1.Add (this.GtkScrolledWindow); global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.hpaned1 [this.GtkScrolledWindow])); w8.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild global::Gtk.Viewport w9 = new global::Gtk.Viewport (); w9.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.islandeditor1 = new global::SpriteSheetAnalyzer.IslandEditor (); this.islandeditor1.Name = "islandeditor1"; w9.Add (this.islandeditor1); this.GtkScrolledWindow1.Add (w9); this.hpaned1.Add (this.GtkScrolledWindow1); this.vbox1.Add (this.hpaned1); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hpaned1])); w13.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new global::Gtk.Statusbar (); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add (this.statusbar1); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.statusbar1])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.Add (this.vbox1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 654; this.DefaultHeight = 300; this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.windowDeleted); this.filechooserbuttonOpen.SelectionChanged += new global::System.EventHandler (this.selectedFileChanged); this.comboboxMode.Changed += new global::System.EventHandler (this.modeChanged); this.buttonProcess.Clicked += new global::System.EventHandler (this.processClicked); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("Sprite Sheet Analyzer"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.fixed1 = new global::Gtk.Fixed (); this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.label2 = new global::Gtk.Label (); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("File:"); this.fixed1.Add (this.label2); global::Gtk.Fixed.FixedChild w1 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.label2])); w1.X = 16; w1.Y = 40; // Container child fixed1.Gtk.Fixed+FixedChild this.fileLabel = new global::Gtk.Label (); this.fileLabel.Name = "fileLabel"; this.fileLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("(none)"); this.fixed1.Add (this.fileLabel); global::Gtk.Fixed.FixedChild w2 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.fileLabel])); w2.X = 64; w2.Y = 40; // Container child fixed1.Gtk.Fixed+FixedChild this.openFileButton = new global::Gtk.Button (); this.openFileButton.CanFocus = true; this.openFileButton.Name = "openFileButton"; this.openFileButton.UseUnderline = true; this.openFileButton.Label = global::Mono.Unix.Catalog.GetString ("Open..."); this.fixed1.Add (this.openFileButton); global::Gtk.Fixed.FixedChild w3 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.openFileButton])); w3.X = 8; w3.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.outputLabel = new global::Gtk.Label (); this.outputLabel.Name = "outputLabel"; this.outputLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("(output)"); this.fixed1.Add (this.outputLabel); global::Gtk.Fixed.FixedChild w4 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.outputLabel])); w4.X = 16; w4.Y = 64; // Container child fixed1.Gtk.Fixed+FixedChild this.clipboardButton = new global::Gtk.Button (); this.clipboardButton.CanFocus = true; this.clipboardButton.Name = "clipboardButton"; this.clipboardButton.UseUnderline = true; this.clipboardButton.Label = global::Mono.Unix.Catalog.GetString ("Copy to Clipboard"); this.fixed1.Add (this.clipboardButton); global::Gtk.Fixed.FixedChild w5 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.clipboardButton])); w5.X = 350; w5.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow.WidthRequest = 700; this.GtkScrolledWindow.HeightRequest = 300; this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild global::Gtk.Viewport w6 = new global::Gtk.Viewport (); w6.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.islandeditor = new global::SpriteSheetAnalyzer.IslandEditor (); this.islandeditor.WidthRequest = 700; this.islandeditor.HeightRequest = 300; this.islandeditor.Name = "islandeditor"; w6.Add (this.islandeditor); this.GtkScrolledWindow.Add (w6); this.fixed1.Add (this.GtkScrolledWindow); global::Gtk.Fixed.FixedChild w9 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.GtkScrolledWindow])); w9.X = 262; w9.Y = 64; // Container child fixed1.Gtk.Fixed+FixedChild this.cleanImageButton = new global::Gtk.Button (); this.cleanImageButton.CanFocus = true; this.cleanImageButton.Name = "cleanImageButton"; this.cleanImageButton.UseUnderline = true; this.cleanImageButton.Label = global::Mono.Unix.Catalog.GetString ("Clean"); this.fixed1.Add (this.cleanImageButton); global::Gtk.Fixed.FixedChild w10 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.cleanImageButton])); w10.X = 480; w10.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.mode = global::Gtk.ComboBox.NewText (); this.mode.AppendText (global::Mono.Unix.Catalog.GetString ("Horizontal {offset, width}")); this.mode.AppendText (global::Mono.Unix.Catalog.GetString ("Vertical {offset, width}")); this.mode.AppendText (global::Mono.Unix.Catalog.GetString ("Islands {x, y, w, h}")); this.mode.Name = "mode"; this.fixed1.Add (this.mode); global::Gtk.Fixed.FixedChild w11 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.mode])); w11.X = 100; w11.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.removeBackgroundButton = new global::Gtk.Button (); this.removeBackgroundButton.CanFocus = true; this.removeBackgroundButton.Name = "removeBackgroundButton"; this.removeBackgroundButton.UseUnderline = true; this.removeBackgroundButton.Label = global::Mono.Unix.Catalog.GetString ("Remove Background Color"); this.fixed1.Add (this.removeBackgroundButton); global::Gtk.Fixed.FixedChild w12 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.removeBackgroundButton])); w12.X = 532; w12.Y = 8; this.Add (this.fixed1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 970; this.DefaultHeight = 414; this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); this.openFileButton.Clicked += new global::System.EventHandler (this.openFileClicked); this.clipboardButton.Clicked += new global::System.EventHandler (this.clipboardButtionClicked); this.cleanImageButton.Clicked += new global::System.EventHandler (this.cleanButtonClicked); this.mode.Changed += new global::System.EventHandler (this.modeChanged); this.removeBackgroundButton.Clicked += new global::System.EventHandler (this.removeBackgroundClicked); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("Sprite Sheet Analyzer"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.fixed1 = new global::Gtk.Fixed(); this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.label2 = new global::Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString("File:"); this.fixed1.Add(this.label2); global::Gtk.Fixed.FixedChild w1 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.label2])); w1.X = 16; w1.Y = 40; // Container child fixed1.Gtk.Fixed+FixedChild this.fileLabel = new global::Gtk.Label(); this.fileLabel.Name = "fileLabel"; this.fileLabel.LabelProp = global::Mono.Unix.Catalog.GetString("(none)"); this.fixed1.Add(this.fileLabel); global::Gtk.Fixed.FixedChild w2 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.fileLabel])); w2.X = 64; w2.Y = 40; // Container child fixed1.Gtk.Fixed+FixedChild this.openFileButton = new global::Gtk.Button(); this.openFileButton.CanFocus = true; this.openFileButton.Name = "openFileButton"; this.openFileButton.UseUnderline = true; this.openFileButton.Label = global::Mono.Unix.Catalog.GetString("Open..."); this.fixed1.Add(this.openFileButton); global::Gtk.Fixed.FixedChild w3 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.openFileButton])); w3.X = 8; w3.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.outputLabel = new global::Gtk.Label(); this.outputLabel.Name = "outputLabel"; this.outputLabel.LabelProp = global::Mono.Unix.Catalog.GetString("(output)"); this.fixed1.Add(this.outputLabel); global::Gtk.Fixed.FixedChild w4 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.outputLabel])); w4.X = 16; w4.Y = 64; // Container child fixed1.Gtk.Fixed+FixedChild this.clipboardButton = new global::Gtk.Button(); this.clipboardButton.CanFocus = true; this.clipboardButton.Name = "clipboardButton"; this.clipboardButton.UseUnderline = true; this.clipboardButton.Label = global::Mono.Unix.Catalog.GetString("Copy to Clipboard"); this.fixed1.Add(this.clipboardButton); global::Gtk.Fixed.FixedChild w5 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.clipboardButton])); w5.X = 350; w5.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.WidthRequest = 700; this.GtkScrolledWindow.HeightRequest = 300; this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild global::Gtk.Viewport w6 = new global::Gtk.Viewport(); w6.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.islandeditor = new global::SpriteSheetAnalyzer.IslandEditor(); this.islandeditor.WidthRequest = 700; this.islandeditor.HeightRequest = 300; this.islandeditor.Name = "islandeditor"; w6.Add(this.islandeditor); this.GtkScrolledWindow.Add(w6); this.fixed1.Add(this.GtkScrolledWindow); global::Gtk.Fixed.FixedChild w9 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.GtkScrolledWindow])); w9.X = 262; w9.Y = 64; // Container child fixed1.Gtk.Fixed+FixedChild this.cleanImageButton = new global::Gtk.Button(); this.cleanImageButton.CanFocus = true; this.cleanImageButton.Name = "cleanImageButton"; this.cleanImageButton.UseUnderline = true; this.cleanImageButton.Label = global::Mono.Unix.Catalog.GetString("Clean"); this.fixed1.Add(this.cleanImageButton); global::Gtk.Fixed.FixedChild w10 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.cleanImageButton])); w10.X = 480; w10.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.mode = global::Gtk.ComboBox.NewText(); this.mode.AppendText(global::Mono.Unix.Catalog.GetString("Horizontal {offset, width}")); this.mode.AppendText(global::Mono.Unix.Catalog.GetString("Vertical {offset, width}")); this.mode.AppendText(global::Mono.Unix.Catalog.GetString("Islands {x, y, w, h}")); this.mode.Name = "mode"; this.fixed1.Add(this.mode); global::Gtk.Fixed.FixedChild w11 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.mode])); w11.X = 100; w11.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.removeBackgroundButton = new global::Gtk.Button(); this.removeBackgroundButton.CanFocus = true; this.removeBackgroundButton.Name = "removeBackgroundButton"; this.removeBackgroundButton.UseUnderline = true; this.removeBackgroundButton.Label = global::Mono.Unix.Catalog.GetString("Remove Background Color"); this.fixed1.Add(this.removeBackgroundButton); global::Gtk.Fixed.FixedChild w12 = ((global::Gtk.Fixed.FixedChild)(this.fixed1 [this.removeBackgroundButton])); w12.X = 532; w12.Y = 8; this.Add(this.fixed1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 970; this.DefaultHeight = 414; this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); this.openFileButton.Clicked += new global::System.EventHandler(this.openFileClicked); this.clipboardButton.Clicked += new global::System.EventHandler(this.clipboardButtionClicked); this.cleanImageButton.Clicked += new global::System.EventHandler(this.cleanButtonClicked); this.mode.Changed += new global::System.EventHandler(this.modeChanged); this.removeBackgroundButton.Clicked += new global::System.EventHandler(this.removeBackgroundClicked); }