public void Initialize (Orientation dir) { if (dir == Orientation.Horizontal) Widget = new Gtk.HScale (0, 1.0, 1); else Widget = new Gtk.VScale (0, 1.0, 1) { Inverted = true }; Widget.DrawValue = false; Widget.ValueChanged += HandleValueChanged; Widget.Show (); }
public void Initialize(Orientation dir) { if (dir == Orientation.Horizontal) { Widget = new Gtk.HScale(0, 1.0, 1); } else { Widget = new Gtk.VScale(0, 1.0, 1) { Inverted = true } }; Widget.DrawValue = false; Widget.ValueChanged += HandleValueChanged; Widget.Show(); }
void Build() { Gtk.VBox mainBox = new Gtk.VBox (); mainBox.BorderWidth = 10; picker = new PickerWidget (); mainBox.PackStart (picker); Gtk.HBox hbox = new Gtk.HBox (); hbox.PackStart (new Gtk.Label ("S:"), false, false, 0); saturationScale = new Gtk.HScale (0, 1, 0.01); saturationScale.Value = 1; saturationScale.ShowFillLevel = false; saturationScale.CanFocus = false; saturationScale.DrawValue = false; saturationScale.ValueChanged += (sender, e) => picker.Saturation = saturationScale.Value; hbox.PackStart (saturationScale, true, true, 0); mainBox.PackStart (hbox); Add (mainBox); ShowAll (); }
void Build() { Gtk.VBox mainBox = new Gtk.VBox(); mainBox.BorderWidth = 10; picker = new PickerWidget(); mainBox.PackStart(picker); Gtk.HBox hbox = new Gtk.HBox(); hbox.PackStart(new Gtk.Label("S:"), false, false, 0); saturationScale = new Gtk.HScale(0, 1, 0.01); saturationScale.Value = 1; saturationScale.ShowFillLevel = false; saturationScale.CanFocus = false; saturationScale.DrawValue = false; saturationScale.ValueChanged += (sender, e) => picker.Saturation = saturationScale.Value; hbox.PackStart(saturationScale, true, true, 0); mainBox.PackStart(hbox); Add(mainBox); ShowAll(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.Gui.Widgets.HScaleSpinButtonWidget Stetic.BinContainer.Attach(this); this.Name = "Pinta.Gui.Widgets.HScaleSpinButtonWidget"; // Container child Pinta.Gui.Widgets.HScaleSpinButtonWidget.Gtk.Container+ContainerChild this.vbox = new Gtk.VBox(); this.vbox.Name = "vbox"; this.vbox.Spacing = 6; // Container child vbox.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.hbox1.Add(this.label); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.hseparator = new Gtk.HSeparator(); this.hseparator.Name = "hseparator"; this.hbox1.Add(this.hseparator); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator])); w2.Position = 1; this.vbox.Add(this.hbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hscale = new Gtk.HScale(null); this.hscale.CanFocus = true; this.hscale.Name = "hscale"; this.hscale.Adjustment.Upper = 100; this.hscale.Adjustment.PageIncrement = 10; this.hscale.Adjustment.StepIncrement = 1; this.hscale.DrawValue = false; this.hscale.Digits = 0; this.hscale.ValuePos = ((Gtk.PositionType)(2)); this.hbox2.Add(this.hscale); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.hscale])); w4.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.spin = new Gtk.SpinButton(0, 100, 1); this.spin.CanFocus = true; this.spin.Name = "spin"; this.spin.Adjustment.PageIncrement = 10; this.spin.ClimbRate = 1; this.spin.Numeric = true; this.hbox2.Add(this.spin); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.spin])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.button = new Gtk.Button(); this.button.CanFocus = true; this.button.Name = "button"; this.button.UseUnderline = true; // Container child button.Gtk.Container+ContainerChild Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w7 = new Gtk.HBox(); w7.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w8 = new Gtk.Image(); w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16); w7.Add(w8); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w10 = new Gtk.Label(); w7.Add(w10); w6.Add(w7); this.button.Add(w6); this.hbox2.Add(this.button); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.button])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.vbox.Add(this.hbox2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox2])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.Add(this.vbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.Options = new Gtk.Action("Options", Mono.Unix.Catalog.GetString("Options"), null, "gtk-preferences"); this.Options.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.Options, null); this.AddFolder = new Gtk.Action("AddFolder", Mono.Unix.Catalog.GetString("Add Folder"), null, "gtk-open"); this.AddFolder.ShortLabel = Mono.Unix.Catalog.GetString("Add Folder"); w2.Add(this.AddFolder, null); this.NewCollection = new Gtk.Action("NewCollection", Mono.Unix.Catalog.GetString("New Collection"), null, "gtk-new"); this.NewCollection.ShortLabel = Mono.Unix.Catalog.GetString("New Collection"); w2.Add(this.NewCollection, null); this.Preferences = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-preferences"); this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("Options"); w2.Add(this.Preferences, null); this.Exit1 = new Gtk.Action("Exit1", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit"); this.Exit1.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w2.Add(this.Exit1, null); this.Update = new Gtk.Action("Update", Mono.Unix.Catalog.GetString("Update"), null, "gtk-dialog-warning"); this.Update.ShortLabel = Mono.Unix.Catalog.GetString("Update"); w2.Add(this.Update, null); this.Exit2 = new Gtk.ToggleAction("Exit2", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit"); this.Exit2.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w2.Add(this.Exit2, null); this.AddFile = new Gtk.Action("AddFile", Mono.Unix.Catalog.GetString("Add File"), null, "gtk-add"); this.AddFile.ShortLabel = Mono.Unix.Catalog.GetString("Add File"); w2.Add(this.AddFile, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("About"); w2.Add(this.About, null); this.About3 = new Gtk.Action("About3", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About3.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w2.Add(this.About3, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.WidthRequest = 360; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Mp3 Player"); this.Icon = Stetic.IconLoader.LoadIcon("stock_headphones", 16); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; // Container child MainWindow.Gtk.Container+ContainerChild this.MainFixedWindow = new Gtk.Fixed(); this.MainFixedWindow.WidthRequest = 0; this.MainFixedWindow.HeightRequest = 640; this.MainFixedWindow.Name = "MainFixedWindow"; this.MainFixedWindow.HasWindow = false; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.bottomStatusBar = new Gtk.Statusbar(); this.bottomStatusBar.WidthRequest = 363; this.bottomStatusBar.HeightRequest = 17; this.bottomStatusBar.Name = "bottomStatusBar"; this.bottomStatusBar.Spacing = 6; this.MainFixedWindow.Add(this.bottomStatusBar); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.bottomStatusBar])); w3.X = 1; w3.Y = 624; // Container child MainFixedWindow.Gtk.Fixed+FixedChild w1.AddUiFromString("<ui><menubar name='menubar'><menu action='Options'><menuitem action='NewCollection'/><menuitem action='AddFolder'/><menuitem action='AddFile'/><menuitem action='Preferences'/><menuitem action='Exit1'/></menu><menu action='About'><menuitem action='About3'/></menu></menubar></ui>"); this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar"))); this.menubar.WidthRequest = 370; this.menubar.HasDefault = true; this.menubar.CanFocus = true; this.menubar.Name = "menubar"; this.MainFixedWindow.Add(this.menubar); // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.musicButtonBox = new Gtk.HBox(); this.musicButtonBox.Name = "musicButtonBox"; this.musicButtonBox.Spacing = 6; // Container child musicButtonBox.Gtk.Box+BoxChild this.playButton = new Gtk.Button(); this.playButton.CanFocus = true; this.playButton.Name = "playButton"; this.playButton.UseUnderline = true; // Container child playButton.Gtk.Container+ContainerChild Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w5.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w6 = new Gtk.HBox(); w6.Name = "GtkHBox"; w6.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w7 = new Gtk.Image(); w7.Name = "image35"; w7.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-play", 16); w6.Add(w7); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w9 = new Gtk.Label(); w9.Name = "GtkLabel"; w9.LabelProp = ""; w6.Add(w9); w5.Add(w6); this.playButton.Add(w5); this.musicButtonBox.Add(this.playButton); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.playButton])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.stopButton = new Gtk.Button(); this.stopButton.CanFocus = true; this.stopButton.Name = "stopButton"; this.stopButton.UseUnderline = true; // Container child stopButton.Gtk.Container+ContainerChild Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w14.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w15 = new Gtk.HBox(); w15.Name = "GtkHBox"; w15.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w16 = new Gtk.Image(); w16.Name = "image36"; w16.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-stop", 16); w15.Add(w16); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w18 = new Gtk.Label(); w18.Name = "GtkLabel"; w18.LabelProp = ""; w15.Add(w18); w14.Add(w15); this.stopButton.Add(w14); this.musicButtonBox.Add(this.stopButton); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.stopButton])); w22.Position = 1; w22.Expand = false; w22.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.previousButton = new Gtk.Button(); this.previousButton.CanFocus = true; this.previousButton.Name = "previousButton"; this.previousButton.UseUnderline = true; // Container child previousButton.Gtk.Container+ContainerChild Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w23.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w24 = new Gtk.HBox(); w24.Name = "GtkHBox"; w24.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w25 = new Gtk.Image(); w25.Name = "image37"; w25.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-prev", 16); w24.Add(w25); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w27 = new Gtk.Label(); w27.Name = "GtkLabel"; w27.LabelProp = ""; w24.Add(w27); w23.Add(w24); this.previousButton.Add(w23); this.musicButtonBox.Add(this.previousButton); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.previousButton])); w31.Position = 2; w31.Expand = false; w31.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.nextButton = new Gtk.Button(); this.nextButton.CanFocus = true; this.nextButton.Name = "nextButton"; this.nextButton.UseUnderline = true; // Container child nextButton.Gtk.Container+ContainerChild Gtk.Alignment w32 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w32.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w33 = new Gtk.HBox(); w33.Name = "GtkHBox"; w33.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w34 = new Gtk.Image(); w34.Name = "image38"; w34.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-next", 16); w33.Add(w34); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w36 = new Gtk.Label(); w36.Name = "GtkLabel"; w36.LabelProp = ""; w33.Add(w36); w32.Add(w33); this.nextButton.Add(w32); this.musicButtonBox.Add(this.nextButton); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.nextButton])); w40.Position = 3; w40.Expand = false; w40.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.rewindButton = new Gtk.Button(); this.rewindButton.CanFocus = true; this.rewindButton.Name = "rewindButton"; this.rewindButton.UseUnderline = true; // Container child rewindButton.Gtk.Container+ContainerChild Gtk.Alignment w41 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w41.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w42 = new Gtk.HBox(); w42.Name = "GtkHBox"; w42.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w43 = new Gtk.Image(); w43.Name = "image39"; w43.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-rew", 16); w42.Add(w43); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w45 = new Gtk.Label(); w45.Name = "GtkLabel"; w45.LabelProp = ""; w42.Add(w45); w41.Add(w42); this.rewindButton.Add(w41); this.musicButtonBox.Add(this.rewindButton); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.rewindButton])); w49.Position = 4; w49.Expand = false; w49.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.fastfoward = new Gtk.Button(); this.fastfoward.CanFocus = true; this.fastfoward.Name = "fastfoward"; this.fastfoward.UseUnderline = true; // Container child fastfoward.Gtk.Container+ContainerChild Gtk.Alignment w50 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w50.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w51 = new Gtk.HBox(); w51.Name = "GtkHBox"; w51.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w52 = new Gtk.Image(); w52.Name = "image40"; w52.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-fwd", 16); w51.Add(w52); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w54 = new Gtk.Label(); w54.Name = "GtkLabel"; w54.LabelProp = ""; w51.Add(w54); w50.Add(w51); this.fastfoward.Add(w50); this.musicButtonBox.Add(this.fastfoward); Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.fastfoward])); w58.Position = 5; w58.Expand = false; w58.Fill = false; this.MainFixedWindow.Add(this.musicButtonBox); Gtk.Fixed.FixedChild w59 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.musicButtonBox])); w59.X = 127; w59.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.songProgressBar = new Gtk.ProgressBar(); this.songProgressBar.WidthRequest = 199; this.songProgressBar.Name = "songProgressBar"; this.songProgressBar.Text = Mono.Unix.Catalog.GetString("00:00 / 00:00"); this.MainFixedWindow.Add(this.songProgressBar); Gtk.Fixed.FixedChild w60 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.songProgressBar])); w60.X = 132; w60.Y = 90; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.volumeScale = new Gtk.HScale(null); this.volumeScale.WidthRequest = 80; this.volumeScale.CanFocus = true; this.volumeScale.Name = "volumeScale"; this.volumeScale.Adjustment.Upper = 1; this.volumeScale.Adjustment.PageIncrement = 0.5; this.volumeScale.Adjustment.StepIncrement = 0.1; this.volumeScale.Adjustment.Value = 1; this.volumeScale.DrawValue = false; this.volumeScale.Digits = 0; this.volumeScale.ValuePos = ((Gtk.PositionType)(2)); this.MainFixedWindow.Add(this.volumeScale); Gtk.Fixed.FixedChild w61 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeScale])); w61.X = 3; w61.Y = 126; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.muteButton = new Gtk.Button(); this.muteButton.CanFocus = true; this.muteButton.Name = "muteButton"; this.muteButton.UseUnderline = true; // Container child muteButton.Gtk.Container+ContainerChild Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w62.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w63 = new Gtk.HBox(); w63.Name = "GtkHBox"; w63.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w64 = new Gtk.Image(); w64.Name = "image41"; w64.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cancel", 16); w63.Add(w64); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w66 = new Gtk.Label(); w66.Name = "GtkLabel"; w66.LabelProp = ""; w63.Add(w66); w62.Add(w63); this.muteButton.Add(w62); this.MainFixedWindow.Add(this.muteButton); Gtk.Fixed.FixedChild w70 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.muteButton])); w70.X = 90; w70.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.volumeButton = new Gtk.Button(); this.volumeButton.CanFocus = true; this.volumeButton.Name = "volumeButton"; this.volumeButton.UseUnderline = true; // Container child volumeButton.Gtk.Container+ContainerChild Gtk.Alignment w71 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w71.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w72 = new Gtk.HBox(); w72.Name = "GtkHBox"; w72.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w73 = new Gtk.Image(); w73.Name = "image42"; w73.Pixbuf = Stetic.IconLoader.LoadIcon("stock_volume", 16); w72.Add(w73); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w75 = new Gtk.Label(); w75.Name = "GtkLabel"; w75.LabelProp = ""; w72.Add(w75); w71.Add(w72); this.volumeButton.Add(w71); this.MainFixedWindow.Add(this.volumeButton); Gtk.Fixed.FixedChild w79 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeButton])); w79.X = 90; w79.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.npSong = new Gtk.Label(); this.npSong.Name = "npSong"; this.npSong.LabelProp = Mono.Unix.Catalog.GetString("Stopped"); this.npSong.UseMarkup = true; this.MainFixedWindow.Add(this.npSong); Gtk.Fixed.FixedChild w80 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npSong])); w80.X = 115; w80.Y = 35; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.npByFrom = new Gtk.Label(); this.npByFrom.WidthRequest = 231; this.npByFrom.Name = "npByFrom"; this.npByFrom.LabelProp = Mono.Unix.Catalog.GetString(" "); this.npByFrom.UseMarkup = true; this.npByFrom.Wrap = true; this.MainFixedWindow.Add(this.npByFrom); Gtk.Fixed.FixedChild w81 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npByFrom])); w81.X = 121; w81.Y = 49; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.albumCoverImage = new Gtk.Image(); this.albumCoverImage.Name = "albumCoverImage"; this.albumCoverImage.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cdrom", 48); this.MainFixedWindow.Add(this.albumCoverImage); Gtk.Fixed.FixedChild w82 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.albumCoverImage])); w82.X = 24; w82.Y = 62; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.tabbedNotebook = new Gtk.Notebook(); this.tabbedNotebook.CanFocus = true; this.tabbedNotebook.Name = "tabbedNotebook"; this.tabbedNotebook.CurrentPage = 1; this.tabbedNotebook.Scrollable = true; // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.searchVertBox = new Gtk.VBox(); this.searchVertBox.Name = "searchVertBox"; this.searchVertBox.Spacing = 6; // Container child searchVertBox.Gtk.Box+BoxChild this.searchTopHorBox = new Gtk.HBox(); this.searchTopHorBox.Name = "searchTopHorBox"; this.searchTopHorBox.Spacing = 6; this.searchTopHorBox.BorderWidth = ((uint)(4)); // Container child searchTopHorBox.Gtk.Box+BoxChild this.searchSelectionType = Gtk.ComboBox.NewText(); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Song")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Artist")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Album")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Track #")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Year")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Genre")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Filename")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("All Fields")); this.searchSelectionType.WidthRequest = 75; this.searchSelectionType.Name = "searchSelectionType"; this.searchSelectionType.Active = 7; this.searchTopHorBox.Add(this.searchSelectionType); Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchSelectionType])); w83.Position = 0; w83.Expand = false; w83.Fill = false; // Container child searchTopHorBox.Gtk.Box+BoxChild this.searchEntry = new Gtk.Entry(); this.searchEntry.WidthRequest = 246; this.searchEntry.HeightRequest = 23; this.searchEntry.HasDefault = true; this.searchEntry.CanFocus = true; this.searchEntry.Name = "searchEntry"; this.searchEntry.IsEditable = true; this.searchEntry.InvisibleChar = '●'; this.searchTopHorBox.Add(this.searchEntry); Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchEntry])); w84.Position = 1; this.searchVertBox.Add(this.searchTopHorBox); Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchTopHorBox])); w85.Position = 0; w85.Expand = false; w85.Fill = false; // Container child searchVertBox.Gtk.Box+BoxChild this.searchList = new Gtk.ScrolledWindow(); this.searchList.WidthRequest = 329; this.searchList.HeightRequest = 358; this.searchList.CanFocus = true; this.searchList.Name = "searchList"; this.searchList.HscrollbarPolicy = ((Gtk.PolicyType)(2)); this.searchList.ShadowType = ((Gtk.ShadowType)(1)); // Container child searchList.Gtk.Container+ContainerChild this.songListTree = new Gtk.TreeView(); this.songListTree.CanFocus = true; this.songListTree.Name = "songListTree"; this.songListTree.Reorderable = true; this.searchList.Add(this.songListTree); this.searchVertBox.Add(this.searchList); Gtk.Box.BoxChild w87 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchList])); w87.Position = 1; // Container child searchVertBox.Gtk.Box+BoxChild this.searchBottomHorizonalBox = new Gtk.HBox(); this.searchBottomHorizonalBox.Name = "searchBottomHorizonalBox"; this.searchBottomHorizonalBox.Spacing = 6; this.searchBottomHorizonalBox.BorderWidth = ((uint)(2)); // Container child searchBottomHorizonalBox.Gtk.Box+BoxChild this.searchAddButton = new Gtk.Button(); this.searchAddButton.CanFocus = true; this.searchAddButton.Name = "searchAddButton"; this.searchAddButton.UseUnderline = true; // Container child searchAddButton.Gtk.Container+ContainerChild Gtk.Alignment w88 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w88.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w89 = new Gtk.HBox(); w89.Name = "GtkHBox"; w89.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w90 = new Gtk.Image(); w90.Name = "image43"; w90.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-add", 16); w89.Add(w90); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w92 = new Gtk.Label(); w92.Name = "GtkLabel"; w92.LabelProp = Mono.Unix.Catalog.GetString("Add"); w92.UseUnderline = true; w89.Add(w92); w88.Add(w89); this.searchAddButton.Add(w88); this.searchBottomHorizonalBox.Add(this.searchAddButton); Gtk.Box.BoxChild w96 = ((Gtk.Box.BoxChild)(this.searchBottomHorizonalBox[this.searchAddButton])); w96.Position = 2; w96.Expand = false; w96.Fill = false; this.searchVertBox.Add(this.searchBottomHorizonalBox); Gtk.Box.BoxChild w97 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchBottomHorizonalBox])); w97.Position = 2; w97.Expand = false; w97.Fill = false; this.tabbedNotebook.Add(this.searchVertBox); Gtk.Notebook.NotebookChild w98 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.searchVertBox])); w98.TabExpand = false; // Notebook tab this.searchMainLabel = new Gtk.Label(); this.searchMainLabel.WidthRequest = 100; this.searchMainLabel.Name = "searchMainLabel"; this.searchMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Collection"); this.tabbedNotebook.SetTabLabel(this.searchVertBox, this.searchMainLabel); // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.queueVertBox = new Gtk.VBox(); this.queueVertBox.Name = "queueVertBox"; this.queueVertBox.Spacing = 9; this.queueVertBox.BorderWidth = ((uint)(3)); // Container child queueVertBox.Gtk.Box+BoxChild this.queueScrolledList = new Gtk.ScrolledWindow(); this.queueScrolledList.CanFocus = true; this.queueScrolledList.Name = "queueScrolledList"; this.queueScrolledList.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.queueScrolledList.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.queueScrolledList.ShadowType = ((Gtk.ShadowType)(1)); // Container child queueScrolledList.Gtk.Container+ContainerChild this.queueTreeView = new Gtk.TreeView(); this.queueTreeView.CanFocus = true; this.queueTreeView.Name = "queueTreeView"; this.queueScrolledList.Add(this.queueTreeView); this.queueVertBox.Add(this.queueScrolledList); Gtk.Box.BoxChild w100 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueScrolledList])); w100.Position = 0; // Container child queueVertBox.Gtk.Box+BoxChild this.queueBottomHorBox = new Gtk.HBox(); this.queueBottomHorBox.Name = "queueBottomHorBox"; this.queueBottomHorBox.Spacing = 6; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueNewPlaylist = new Gtk.Button(); this.queueNewPlaylist.CanFocus = true; this.queueNewPlaylist.Name = "queueNewPlaylist"; // Container child queueNewPlaylist.Gtk.Container+ContainerChild Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w101.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w102 = new Gtk.HBox(); w102.Name = "GtkHBox"; w102.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w103 = new Gtk.Image(); w103.Name = "image44"; w103.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16); w102.Add(w103); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w105 = new Gtk.Label(); w105.Name = "GtkLabel"; w105.LabelProp = ""; w102.Add(w105); w101.Add(w102); this.queueNewPlaylist.Add(w101); this.queueBottomHorBox.Add(this.queueNewPlaylist); Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueNewPlaylist])); w109.Position = 0; w109.Expand = false; w109.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueDeleteButton = new Gtk.Button(); this.queueDeleteButton.CanFocus = true; this.queueDeleteButton.Name = "queueDeleteButton"; this.queueDeleteButton.UseUnderline = true; // Container child queueDeleteButton.Gtk.Container+ContainerChild Gtk.Alignment w110 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w110.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w111 = new Gtk.HBox(); w111.Name = "GtkHBox"; w111.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w112 = new Gtk.Image(); w112.Name = "image45"; w112.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16); w111.Add(w112); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w114 = new Gtk.Label(); w114.Name = "GtkLabel"; w114.LabelProp = ""; w111.Add(w114); w110.Add(w111); this.queueDeleteButton.Add(w110); this.queueBottomHorBox.Add(this.queueDeleteButton); Gtk.Box.BoxChild w118 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueDeleteButton])); w118.Position = 1; w118.Expand = false; w118.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Playlist Name"); this.queueBottomHorBox.Add(this.label4); Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.label4])); w119.Position = 2; w119.Expand = false; w119.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueEntryBox = new Gtk.Entry(); this.queueEntryBox.WidthRequest = 3; this.queueEntryBox.CanFocus = true; this.queueEntryBox.Name = "queueEntryBox"; this.queueEntryBox.IsEditable = true; this.queueEntryBox.InvisibleChar = '●'; this.queueBottomHorBox.Add(this.queueEntryBox); Gtk.Box.BoxChild w120 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueEntryBox])); w120.Position = 3; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueSaveButton = new Gtk.Button(); this.queueSaveButton.CanFocus = true; this.queueSaveButton.Name = "queueSaveButton"; this.queueSaveButton.UseUnderline = true; this.queueSaveButton.Label = Mono.Unix.Catalog.GetString("Save"); this.queueBottomHorBox.Add(this.queueSaveButton); Gtk.Box.BoxChild w121 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueSaveButton])); w121.Position = 4; w121.Expand = false; w121.Fill = false; this.queueVertBox.Add(this.queueBottomHorBox); Gtk.Box.BoxChild w122 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueBottomHorBox])); w122.Position = 1; w122.Expand = false; w122.Fill = false; this.tabbedNotebook.Add(this.queueVertBox); Gtk.Notebook.NotebookChild w123 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.queueVertBox])); w123.Position = 1; w123.TabExpand = false; // Notebook tab this.queueMainLabel = new Gtk.Label(); this.queueMainLabel.WidthRequest = 100; this.queueMainLabel.Name = "queueMainLabel"; this.queueMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Current Songs"); this.tabbedNotebook.SetTabLabel(this.queueVertBox, this.queueMainLabel); // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.playlistVertBox = new Gtk.VBox(); this.playlistVertBox.Name = "playlistVertBox"; this.playlistVertBox.Spacing = 6; this.playlistVertBox.BorderWidth = ((uint)(3)); // Container child playlistVertBox.Gtk.Box+BoxChild this.playListScrolledWindow = new Gtk.ScrolledWindow(); this.playListScrolledWindow.CanFocus = true; this.playListScrolledWindow.Name = "playListScrolledWindow"; this.playListScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.playListScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.playListScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child playListScrolledWindow.Gtk.Container+ContainerChild this.playListTreeView = new Gtk.TreeView(); this.playListTreeView.CanFocus = true; this.playListTreeView.Name = "playListTreeView"; this.playListScrolledWindow.Add(this.playListTreeView); this.playlistVertBox.Add(this.playListScrolledWindow); Gtk.Box.BoxChild w125 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListScrolledWindow])); w125.Position = 0; // Container child playlistVertBox.Gtk.Box+BoxChild this.playListBottomBox = new Gtk.HBox(); this.playListBottomBox.Name = "playListBottomBox"; this.playListBottomBox.Spacing = 6; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListNewButton = new Gtk.Button(); this.playListNewButton.CanFocus = true; this.playListNewButton.Name = "playListNewButton"; this.playListNewButton.UseUnderline = true; // Container child playListNewButton.Gtk.Container+ContainerChild Gtk.Alignment w126 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w126.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w127 = new Gtk.HBox(); w127.Name = "GtkHBox"; w127.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w128 = new Gtk.Image(); w128.Name = "image46"; w128.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16); w127.Add(w128); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w130 = new Gtk.Label(); w130.Name = "GtkLabel"; w130.LabelProp = Mono.Unix.Catalog.GetString("New"); w130.UseUnderline = true; w127.Add(w130); w126.Add(w127); this.playListNewButton.Add(w126); this.playListBottomBox.Add(this.playListNewButton); Gtk.Box.BoxChild w134 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListNewButton])); w134.Position = 0; w134.Expand = false; w134.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListLoadButton = new Gtk.Button(); this.playListLoadButton.CanFocus = true; this.playListLoadButton.Name = "playListLoadButton"; this.playListLoadButton.UseUnderline = true; // Container child playListLoadButton.Gtk.Container+ContainerChild Gtk.Alignment w135 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w135.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w136 = new Gtk.HBox(); w136.Name = "GtkHBox"; w136.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w137 = new Gtk.Image(); w137.Name = "image47"; w137.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-directory", 16); w136.Add(w137); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w139 = new Gtk.Label(); w139.Name = "GtkLabel"; w139.LabelProp = Mono.Unix.Catalog.GetString("Load"); w139.UseUnderline = true; w136.Add(w139); w135.Add(w136); this.playListLoadButton.Add(w135); this.playListBottomBox.Add(this.playListLoadButton); Gtk.Box.BoxChild w143 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListLoadButton])); w143.Position = 1; w143.Expand = false; w143.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playlistRenameButton = new Gtk.Button(); this.playlistRenameButton.CanFocus = true; this.playlistRenameButton.Name = "playlistRenameButton"; this.playlistRenameButton.UseUnderline = true; // Container child playlistRenameButton.Gtk.Container+ContainerChild Gtk.Alignment w144 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w144.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w145 = new Gtk.HBox(); w145.Name = "GtkHBox"; w145.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w146 = new Gtk.Image(); w146.Name = "image48"; w146.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-edit", 16); w145.Add(w146); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w148 = new Gtk.Label(); w148.Name = "GtkLabel"; w148.LabelProp = Mono.Unix.Catalog.GetString("Edit"); w148.UseUnderline = true; w145.Add(w148); w144.Add(w145); this.playlistRenameButton.Add(w144); this.playListBottomBox.Add(this.playlistRenameButton); Gtk.Box.BoxChild w152 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playlistRenameButton])); w152.Position = 2; w152.Expand = false; w152.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListDeleteButton = new Gtk.Button(); this.playListDeleteButton.CanFocus = true; this.playListDeleteButton.Name = "playListDeleteButton"; this.playListDeleteButton.UseUnderline = true; // Container child playListDeleteButton.Gtk.Container+ContainerChild Gtk.Alignment w153 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w153.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w154 = new Gtk.HBox(); w154.Name = "GtkHBox"; w154.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w155 = new Gtk.Image(); w155.Name = "image49"; w155.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16); w154.Add(w155); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w157 = new Gtk.Label(); w157.Name = "GtkLabel"; w157.LabelProp = Mono.Unix.Catalog.GetString("Delete"); w157.UseUnderline = true; w154.Add(w157); w153.Add(w154); this.playListDeleteButton.Add(w153); this.playListBottomBox.Add(this.playListDeleteButton); Gtk.Box.BoxChild w161 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListDeleteButton])); w161.Position = 3; w161.Expand = false; w161.Fill = false; this.playlistVertBox.Add(this.playListBottomBox); Gtk.Box.BoxChild w162 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListBottomBox])); w162.PackType = ((Gtk.PackType)(1)); w162.Position = 1; w162.Expand = false; w162.Fill = false; this.tabbedNotebook.Add(this.playlistVertBox); Gtk.Notebook.NotebookChild w163 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.playlistVertBox])); w163.Position = 2; w163.TabExpand = false; // Notebook tab this.playListMainLabel = new Gtk.Label(); this.playListMainLabel.WidthRequest = 100; this.playListMainLabel.Name = "playListMainLabel"; this.playListMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Playlists"); this.tabbedNotebook.SetTabLabel(this.playlistVertBox, this.playListMainLabel); this.MainFixedWindow.Add(this.tabbedNotebook); Gtk.Fixed.FixedChild w164 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.tabbedNotebook])); w164.X = 10; w164.Y = 159; this.Add(this.MainFixedWindow); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 562; this.DefaultHeight = 662; this.muteButton.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AddFolder.Activated += new System.EventHandler(this.OnAddFolderActivated); this.NewCollection.Activated += new System.EventHandler(this.OnNewCollectionActivated); this.Preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.Exit1.Activated += new System.EventHandler(this.OnExit1Activated); this.AddFile.Activated += new System.EventHandler(this.OnAddFileActivated); this.About3.Activated += new System.EventHandler(this.OnAbout3Activated); this.playButton.Clicked += new System.EventHandler(this.OnPlayButtonClicked); this.stopButton.Clicked += new System.EventHandler(this.OnStopButtonClicked); this.previousButton.Clicked += new System.EventHandler(this.OnPreviousButtonClicked); this.nextButton.Clicked += new System.EventHandler(this.OnNextButtonClicked); this.rewindButton.Clicked += new System.EventHandler(this.OnRewindClicked); this.fastfoward.Clicked += new System.EventHandler(this.OnFastfowardClicked); this.volumeScale.ValueChanged += new System.EventHandler(this.OnVolumeScaleValueChanged); this.muteButton.Clicked += new System.EventHandler(this.OnMuteButtonClicked); this.volumeButton.Clicked += new System.EventHandler(this.OnVolumeButtonClicked); this.searchAddButton.Clicked += new System.EventHandler(this.OnSearchAddButtonClicked); this.queueNewPlaylist.Clicked += new System.EventHandler(this.OnQueueNewPlaylistClicked); this.queueDeleteButton.Clicked += new System.EventHandler(this.OnQueueDeleteButtonClicked); this.queueSaveButton.Clicked += new System.EventHandler(this.OnQueueSaveButtonClicked); this.playListNewButton.Clicked += new System.EventHandler(this.OnPlayListNewButtonClicked); this.playListLoadButton.Clicked += new System.EventHandler(this.OnPlayListLoadButtonClicked); this.playListDeleteButton.Clicked += new System.EventHandler(this.OnPlayListDeleteButtonClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget LunarEclipse.View.MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("_File"); w1.Add(this.FileAction, null); this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Abrir"), null, "gtk-open"); this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Abrir"); w1.Add(this.OpenAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("_Nuevo"), null, "gtk-new"); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("_Nuevo"); w1.Add(this.NewAction, null); this.SaveAction = new Gtk.Action("SaveAction", Mono.Unix.Catalog.GetString("_Guardar"), null, "gtk-save"); this.SaveAction.ShortLabel = Mono.Unix.Catalog.GetString("_Guardar"); w1.Add(this.SaveAction, null); this.SaveAsAction = new Gtk.Action("SaveAsAction", Mono.Unix.Catalog.GetString("Guardar _como"), null, "gtk-save-as"); this.SaveAsAction.ShortLabel = Mono.Unix.Catalog.GetString("Guardar _como"); w1.Add(this.SaveAsAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Salir"), null, "gtk-quit"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Salir"); w1.Add(this.QuitAction, null); this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("_Edit"); w1.Add(this.EditAction, null); this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("_Tools"), null, null); this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("_Tools"); w1.Add(this.ToolsAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("_Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("_Help"); w1.Add(this.HelpAction, null); this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo"); this.UndoAction.Sensitive = false; this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer"); w1.Add(this.UndoAction, "<Control>z"); this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo"); this.RedoAction.Sensitive = false; this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer"); w1.Add(this.RedoAction, "<Control>y"); this.CutAction = new Gtk.Action("CutAction", Mono.Unix.Catalog.GetString("Cor_tar"), null, "gtk-cut"); this.CutAction.ShortLabel = Mono.Unix.Catalog.GetString("Cor_tar"); w1.Add(this.CutAction, null); this.CopiarAction = new Gtk.Action("CopiarAction", Mono.Unix.Catalog.GetString("_Copiar"), null, "gtk-copy"); this.CopiarAction.ShortLabel = Mono.Unix.Catalog.GetString("_Copiar"); w1.Add(this.CopiarAction, null); this.PasteAction = new Gtk.Action("PasteAction", Mono.Unix.Catalog.GetString("_Pegar"), null, "gtk-paste"); this.PasteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Pegar"); w1.Add(this.PasteAction, null); this.DeleteAction = new Gtk.Action("DeleteAction", Mono.Unix.Catalog.GetString("_Borrar"), null, "gtk-delete"); this.DeleteAction.ShortLabel = Mono.Unix.Catalog.GetString("_Borrar"); w1.Add(this.DeleteAction, "<Mod2>Delete"); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("Acerca _de"), null, "gtk-about"); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("Acerca _de"); w1.Add(this.AboutAction, null); this.SelectionToolAction = new Gtk.RadioAction("SelectionToolAction", Mono.Unix.Catalog.GetString("_Selection Tool"), null, "selection-tool", 0); this.SelectionToolAction.Group = new GLib.SList(System.IntPtr.Zero); this.SelectionToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Selection Tool"); w1.Add(this.SelectionToolAction, null); this.RectangleToolAction = new Gtk.RadioAction("RectangleToolAction", Mono.Unix.Catalog.GetString("_Rectangle Tool"), null, "rectangle-tool", 0); this.RectangleToolAction.Group = this.SelectionToolAction.Group; this.RectangleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rectangle Tool"); w1.Add(this.RectangleToolAction, null); this.SquareToolAction = new Gtk.RadioAction("SquareToolAction", Mono.Unix.Catalog.GetString("S_quare Tool"), null, "square-tool", 0); this.SquareToolAction.Group = this.RectangleToolAction.Group; this.SquareToolAction.ShortLabel = Mono.Unix.Catalog.GetString("S_quare Tool"); w1.Add(this.SquareToolAction, null); this.EllipseToolAction = new Gtk.RadioAction("EllipseToolAction", Mono.Unix.Catalog.GetString("_Ellipse Tool"), null, "ellipse-tool", 0); this.EllipseToolAction.Group = this.RectangleToolAction.Group; this.EllipseToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Ellipse Tool"); w1.Add(this.EllipseToolAction, null); this.CircleToolAction = new Gtk.RadioAction("CircleToolAction", Mono.Unix.Catalog.GetString("_Circle Tool"), null, "circle-tool", 0); this.CircleToolAction.Group = this.EllipseToolAction.Group; this.CircleToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Circle Tool"); w1.Add(this.CircleToolAction, null); this.PathToolAction = new Gtk.RadioAction("PathToolAction", Mono.Unix.Catalog.GetString("_Path Tool"), null, "path-tool", 0); this.PathToolAction.Group = this.CircleToolAction.Group; this.PathToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Path Tool"); w1.Add(this.PathToolAction, null); this.TextToolAction = new Gtk.RadioAction("TextToolAction", Mono.Unix.Catalog.GetString("_Text Tool"), null, "text-tool", 0); this.TextToolAction.Group = this.CircleToolAction.Group; this.TextToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Text Tool"); w1.Add(this.TextToolAction, null); this.ImageToolAction = new Gtk.RadioAction("ImageToolAction", Mono.Unix.Catalog.GetString("Image Tool"), null, "image-tool", 0); this.ImageToolAction.Group = this.CircleToolAction.Group; this.ImageToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Image Tool"); w1.Add(this.ImageToolAction, null); this.AnimationAction = new Gtk.Action("AnimationAction", Mono.Unix.Catalog.GetString("_Animation"), null, null); this.AnimationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Animation"); w1.Add(this.AnimationAction, null); this.RecordAction = new Gtk.Action("RecordAction", Mono.Unix.Catalog.GetString("_Grabar"), null, "gtk-media-record"); this.RecordAction.ShortLabel = Mono.Unix.Catalog.GetString("_Grabar"); w1.Add(this.RecordAction, null); this.ReproducirAction = new Gtk.Action("ReproducirAction", Mono.Unix.Catalog.GetString("_Reproducir"), null, "gtk-media-play"); this.ReproducirAction.ShortLabel = Mono.Unix.Catalog.GetString("_Reproducir"); w1.Add(this.ReproducirAction, null); this.StopAction = new Gtk.Action("StopAction", Mono.Unix.Catalog.GetString("_Detener"), null, "gtk-media-stop"); this.StopAction.ShortLabel = Mono.Unix.Catalog.GetString("_Detener"); w1.Add(this.StopAction, null); this.LineToolAction = new Gtk.RadioAction("LineToolAction", Mono.Unix.Catalog.GetString("_Line Tool"), null, "line-tool", 0); this.LineToolAction.Group = this.CircleToolAction.Group; this.LineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("_Line Tool"); w1.Add(this.LineToolAction, null); this.DrawingAction = new Gtk.Action("DrawingAction", Mono.Unix.Catalog.GetString("Drawing"), null, null); this.DrawingAction.ShortLabel = Mono.Unix.Catalog.GetString("Drawing"); w1.Add(this.DrawingAction, null); this.CleanAction = new Gtk.Action("CleanAction", Mono.Unix.Catalog.GetString("_Limpiar"), null, "gtk-clear"); this.CleanAction.ShortLabel = Mono.Unix.Catalog.GetString("_Limpiar"); w1.Add(this.CleanAction, null); this.PolylineToolAction = new Gtk.RadioAction("PolylineToolAction", Mono.Unix.Catalog.GetString("Polyline Tool"), null, "polyline-tool", 0); this.PolylineToolAction.Group = this.CircleToolAction.Group; this.PolylineToolAction.ShortLabel = Mono.Unix.Catalog.GetString("Polyline Tool"); w1.Add(this.PolylineToolAction, null); this.PenToolAction = new Gtk.RadioAction("PenToolAction", Mono.Unix.Catalog.GetString("P_en Tool"), null, "pen-tool", 0); this.PenToolAction.Group = this.CircleToolAction.Group; this.PenToolAction.ShortLabel = Mono.Unix.Catalog.GetString("P_en Tool"); w1.Add(this.PenToolAction, null); this.debug1 = new Gtk.Action("debug1", null, Mono.Unix.Catalog.GetString("Debug"), "gtk-dialog-warning"); w1.Add(this.debug1, null); this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Fi_gures"), null, null); this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Fi_gure"); w1.Add(this.FiguresAction, null); this.OrderAction = new Gtk.Action("OrderAction", Mono.Unix.Catalog.GetString("Order"), null, null); this.OrderAction.ShortLabel = Mono.Unix.Catalog.GetString("Order"); w1.Add(this.OrderAction, null); this.AlignAction = new Gtk.Action("AlignAction", Mono.Unix.Catalog.GetString("_Align"), null, null); this.AlignAction.ShortLabel = Mono.Unix.Catalog.GetString("_Align"); w1.Add(this.AlignAction, null); this.BringToFrontAction = new Gtk.Action("BringToFrontAction", Mono.Unix.Catalog.GetString("Bring to _Front"), null, "gtk-goto-top"); this.BringToFrontAction.Sensitive = false; this.BringToFrontAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring to _Front"); w1.Add(this.BringToFrontAction, null); this.SendToBackAction = new Gtk.Action("SendToBackAction", Mono.Unix.Catalog.GetString("Send to _Back"), null, "gtk-goto-bottom"); this.SendToBackAction.Sensitive = false; this.SendToBackAction.ShortLabel = Mono.Unix.Catalog.GetString("Send to _Back"); w1.Add(this.SendToBackAction, null); this.BringForwardsAction = new Gtk.Action("BringForwardsAction", Mono.Unix.Catalog.GetString("Bring Forwards"), null, "gtk-go-up"); this.BringForwardsAction.Sensitive = false; this.BringForwardsAction.ShortLabel = Mono.Unix.Catalog.GetString("Send Forwards"); w1.Add(this.BringForwardsAction, null); this.SendBackwarsAction = new Gtk.Action("SendBackwarsAction", Mono.Unix.Catalog.GetString("Send Backwars"), null, "gtk-go-down"); this.SendBackwarsAction.Sensitive = false; this.SendBackwarsAction.ShortLabel = Mono.Unix.Catalog.GetString("Bring Backwars"); w1.Add(this.SendBackwarsAction, null); this.LeftAction = new Gtk.Action("LeftAction", Mono.Unix.Catalog.GetString("Left"), null, null); this.LeftAction.ShortLabel = Mono.Unix.Catalog.GetString("Left"); w1.Add(this.LeftAction, null); this.HorizontalCenterAction = new Gtk.Action("HorizontalCenterAction", Mono.Unix.Catalog.GetString("Horizontal Center"), null, null); this.HorizontalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Center"); w1.Add(this.HorizontalCenterAction, null); this.RightAction = new Gtk.Action("RightAction", Mono.Unix.Catalog.GetString("Right"), null, null); this.RightAction.ShortLabel = Mono.Unix.Catalog.GetString("Right"); w1.Add(this.RightAction, null); this.TopAction = new Gtk.Action("TopAction", Mono.Unix.Catalog.GetString("Top"), null, null); this.TopAction.ShortLabel = Mono.Unix.Catalog.GetString("Top"); w1.Add(this.TopAction, null); this.VerticalCenterAction = new Gtk.Action("VerticalCenterAction", Mono.Unix.Catalog.GetString("Vertical Center"), null, null); this.VerticalCenterAction.ShortLabel = Mono.Unix.Catalog.GetString("Middle"); w1.Add(this.VerticalCenterAction, null); this.BottomAction = new Gtk.Action("BottomAction", Mono.Unix.Catalog.GetString("Bottom"), null, null); this.BottomAction.ShortLabel = Mono.Unix.Catalog.GetString("Bottom"); w1.Add(this.BottomAction, null); this.debug2 = new Gtk.Action("debug2", null, Mono.Unix.Catalog.GetString("Debug2"), "gtk-dialog-error"); w1.Add(this.debug2, null); this.CloneAction = new Gtk.Action("CloneAction", Mono.Unix.Catalog.GetString("Cl_one"), null, null); this.CloneAction.ShortLabel = Mono.Unix.Catalog.GetString("Clone"); w1.Add(this.CloneAction, null); this.SelectAllAction = new Gtk.Action("SelectAllAction", Mono.Unix.Catalog.GetString("_Select All"), null, null); this.SelectAllAction.ShortLabel = Mono.Unix.Catalog.GetString("Select All"); w1.Add(this.SelectAllAction, "<Control><Mod2>a"); this.ClearSelectionAction = new Gtk.Action("ClearSelectionAction", Mono.Unix.Catalog.GetString("Clear S_election"), null, null); this.ClearSelectionAction.ShortLabel = Mono.Unix.Catalog.GetString("Clear S_election"); w1.Add(this.ClearSelectionAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "LunarEclipse.View.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Lunar Eclipse"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.DefaultWidth = 800; // Container child LunarEclipse.View.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='NewAction' action='NewAction'/><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='SaveAction' action='SaveAction'/><menuitem name='SaveAsAction' action='SaveAsAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/><separator/><menuitem name='CutAction' action='CutAction'/><menuitem name='CopiarAction' action='CopiarAction'/><menuitem name='PasteAction' action='PasteAction'/><menuitem name='CloneAction' action='CloneAction'/><menuitem name='DeleteAction' action='DeleteAction'/><separator/><menuitem name='SelectAllAction' action='SelectAllAction'/><menuitem name='ClearSelectionAction' action='ClearSelectionAction'/></menu><menu name='DrawingAction' action='DrawingAction'><menuitem name='CleanAction' action='CleanAction'/></menu><menu name='FiguresAction' action='FiguresAction'><menu name='OrderAction' action='OrderAction'><menuitem name='BringToFrontAction' action='BringToFrontAction'/><menuitem name='BringForwardsAction' action='BringForwardsAction'/><menuitem name='SendToBackAction' action='SendToBackAction'/><menuitem name='SendBackwarsAction' action='SendBackwarsAction'/></menu><menu name='AlignAction' action='AlignAction'><menuitem name='LeftAction' action='LeftAction'/><menuitem name='HorizontalCenterAction' action='HorizontalCenterAction'/><menuitem name='RightAction' action='RightAction'/><separator/><menuitem name='TopAction' action='TopAction'/><menuitem name='VerticalCenterAction' action='VerticalCenterAction'/><menuitem name='BottomAction' action='BottomAction'/></menu></menu><menu name='ToolsAction' action='ToolsAction'><menuitem name='SelectionToolAction' action='SelectionToolAction'/><menuitem name='RectangleToolAction' action='RectangleToolAction'/><menuitem name='SquareToolAction' action='SquareToolAction'/><menuitem name='EllipseToolAction' action='EllipseToolAction'/><menuitem name='CircleToolAction' action='CircleToolAction'/><menuitem name='LineToolAction' action='LineToolAction'/><menuitem name='PolylineToolAction' action='PolylineToolAction'/><menuitem name='PenToolAction' action='PenToolAction'/><menuitem name='PathToolAction' action='PathToolAction'/><menuitem name='TextToolAction' action='TextToolAction'/><menuitem name='ImageToolAction' action='ImageToolAction'/></menu><menu name='AnimationAction' action='AnimationAction'><menuitem name='StopAction' action='StopAction'/><menuitem name='ReproducirAction' action='ReproducirAction'/><menuitem name='RecordAction' action='RecordAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='NewAction' action='NewAction'/><toolitem name='OpenAction' action='OpenAction'/><toolitem name='SaveAction' action='SaveAction'/><separator/><toolitem name='UndoAction' action='UndoAction'/><toolitem name='RedoAction' action='RedoAction'/><separator/><toolitem name='CutAction' action='CutAction'/><toolitem name='CopiarAction' action='CopiarAction'/><toolitem name='PasteAction' action='PasteAction'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.notebook = new Gtk.Notebook(); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 0; this.notebook.TabPos = ((Gtk.PositionType)(3)); // Container child notebook.Gtk.Notebook+NotebookChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar2'><toolitem name='SelectionToolAction' action='SelectionToolAction'/><toolitem name='SquareToolAction' action='SquareToolAction'/><toolitem name='RectangleToolAction' action='RectangleToolAction'/><toolitem name='CircleToolAction' action='CircleToolAction'/><toolitem name='EllipseToolAction' action='EllipseToolAction'/><toolitem name='LineToolAction' action='LineToolAction'/><toolitem name='PolylineToolAction' action='PolylineToolAction'/><toolitem name='PathToolAction' action='PathToolAction'/><toolitem name='PenToolAction' action='PenToolAction'/><toolitem name='TextToolAction' action='TextToolAction'/><separator/><toolitem name='CleanAction' action='CleanAction'/><toolitem name='debug1' action='debug1'/><toolitem name='debug2' action='debug2'/></toolbar></ui>"); this.toolbar2 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar2"))); this.toolbar2.Name = "toolbar2"; this.toolbar2.Orientation = ((Gtk.Orientation)(1)); this.toolbar2.ShowArrow = false; this.toolbar2.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.hbox2.Add(this.toolbar2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.toolbar2])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 842; // Container child hpaned1.Gtk.Paned+PanedChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(0)); this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(0)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w5 = new Gtk.Viewport(); w5.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.moonlightwidget = new LunarEclipse.View.MoonlightWidget(); this.moonlightwidget.Events = ((Gdk.EventMask)(256)); this.moonlightwidget.Name = "moonlightwidget"; this.moonlightwidget.Height = 800; this.moonlightwidget.Width = 800; w5.Add(this.moonlightwidget); this.scrolledwindow1.Add(w5); this.vbox3.Add(this.scrolledwindow1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1])); w8.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Zoom:"); this.hbox3.Add(this.label3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.zoomScale = new Gtk.HScale(null); this.zoomScale.CanFocus = true; this.zoomScale.Name = "zoomScale"; this.zoomScale.Adjustment.Upper = 500; this.zoomScale.Adjustment.PageIncrement = 10; this.zoomScale.Adjustment.StepIncrement = 1; this.zoomScale.Adjustment.Value = 100; this.zoomScale.DrawValue = true; this.zoomScale.Digits = 0; this.zoomScale.ValuePos = ((Gtk.PositionType)(2)); this.hbox3.Add(this.zoomScale); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.zoomScale])); w10.Position = 1; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w11.Position = 1; w11.Expand = false; w11.Fill = false; this.hpaned1.Add(this.vbox3); Gtk.Paned.PanedChild w12 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox3])); w12.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.propertypanel = new LunarEclipse.View.PropertyPanel(); this.propertypanel.Events = ((Gdk.EventMask)(256)); this.propertypanel.Name = "propertypanel"; this.hpaned1.Add(this.propertypanel); Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.propertypanel])); w13.Resize = false; this.vbox2.Add(this.hpaned1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1])); w14.Position = 0; this.hbox2.Add(this.vbox2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2])); w15.Position = 1; this.notebook.Add(this.hbox2); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Design"); this.notebook.SetTabLabel(this.hbox2, this.label2); this.label2.ShowAll(); // Container child notebook.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w17 = new Gtk.Viewport(); w17.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.xaml_textview = new Gtk.TextView(); this.xaml_textview.CanFocus = true; this.xaml_textview.Name = "xaml_textview"; w17.Add(this.xaml_textview); this.scrolledwindow2.Add(w17); this.notebook.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2])); w20.Position = 1; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Xaml Code"); this.notebook.SetTabLabel(this.scrolledwindow2, this.label1); this.label1.ShowAll(); this.vbox1.Add(this.notebook); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook])); w21.Position = 2; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultHeight = 729; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated); this.SaveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated); this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated); this.CutAction.Activated += new System.EventHandler(this.OnCutActionActivated); this.CopiarAction.Activated += new System.EventHandler(this.OnCopyActionActivated); this.PasteAction.Activated += new System.EventHandler(this.OnPasteActionActivated); this.DeleteAction.Activated += new System.EventHandler(this.OnDeleteActionActivated); this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); this.SelectionToolAction.Activated += new System.EventHandler(this.OnSelectionToolActionActivated); this.RectangleToolAction.Activated += new System.EventHandler(this.OnRectangleToolActionActivated); this.SquareToolAction.Activated += new System.EventHandler(this.OnSquareToolActionActivated); this.EllipseToolAction.Activated += new System.EventHandler(this.OnEllipseToolActionActivated); this.CircleToolAction.Activated += new System.EventHandler(this.OnCircleToolActionActivated); this.PathToolAction.Activated += new System.EventHandler(this.OnPathToolActionActivated); this.TextToolAction.Activated += new System.EventHandler(this.OnTextToolActionActivated); this.ImageToolAction.Activated += new System.EventHandler(this.OnImageToolActionActivated); this.LineToolAction.Activated += new System.EventHandler(this.OnLineToolActionActivated); this.CleanAction.Activated += new System.EventHandler(this.OnLimpiarActionActivated); this.PolylineToolAction.Activated += new System.EventHandler(this.OnPolylineToolActionActivated); this.PenToolAction.Activated += new System.EventHandler(this.OnPenToolActionActivated); this.debug1.Activated += new System.EventHandler(this.OnDebug1Activated); this.BringToFrontAction.Activated += new System.EventHandler(this.OnBringToFrontActionActivated); this.SendToBackAction.Activated += new System.EventHandler(this.OnSendToBackActionActivated); this.BringForwardsAction.Activated += new System.EventHandler(this.OnBringForwardsActionActivated); this.SendBackwarsAction.Activated += new System.EventHandler(this.OnSendBackwarsActionActivated); this.LeftAction.Activated += new System.EventHandler(this.OnLeftActionActivated); this.HorizontalCenterAction.Activated += new System.EventHandler(this.OnHorizontalCenterActionActivated); this.RightAction.Activated += new System.EventHandler(this.OnRightActionActivated); this.TopAction.Activated += new System.EventHandler(this.OnTopActionActivated); this.VerticalCenterAction.Activated += new System.EventHandler(this.OnVerticalCenterActionActivated); this.BottomAction.Activated += new System.EventHandler(this.OnBottomActionActivated); this.debug2.Activated += new System.EventHandler(this.OnDebug2Activated); this.CloneAction.Activated += new System.EventHandler(this.OnCloneActionActivated); this.SelectAllAction.Activated += new System.EventHandler(this.OnSelectAllActionActivated); this.ClearSelectionAction.Activated += new System.EventHandler(this.OnClearSelectionActionActivated); this.notebook.SwitchPage += new Gtk.SwitchPageHandler(this.OnNotebookSwitchPage); this.zoomScale.ValueChanged += new System.EventHandler(this.OnZoomScaleValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null); this.File.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.File, null); this.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("Open..."), null, null); this.Open.ShortLabel = Mono.Unix.Catalog.GetString("Open..."); w2.Add(this.Open, null); this.Open1 = new Gtk.Action("Open1", Mono.Unix.Catalog.GetString("Open..."), null, null); this.Open1.ShortLabel = Mono.Unix.Catalog.GetString("Open..."); w2.Add(this.Open1, null); this.Export = new Gtk.Action("Export", Mono.Unix.Catalog.GetString("Export..."), null, null); this.Export.ShortLabel = Mono.Unix.Catalog.GetString("Export..."); w2.Add(this.Export, null); this.SaveAs = new Gtk.Action("SaveAs", Mono.Unix.Catalog.GetString("Save as..."), null, null); this.SaveAs.ShortLabel = Mono.Unix.Catalog.GetString("Save as..."); w2.Add(this.SaveAs, null); this.Import = new Gtk.Action("Import", Mono.Unix.Catalog.GetString("Import..."), null, null); this.Import.ShortLabel = Mono.Unix.Catalog.GetString("Import..."); w2.Add(this.Import, null); this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null); this.View.ShortLabel = Mono.Unix.Catalog.GetString("View"); w2.Add(this.View, null); this.ZoomIn = new Gtk.Action("ZoomIn", Mono.Unix.Catalog.GetString("Zoom in"), null, null); this.ZoomIn.ShortLabel = Mono.Unix.Catalog.GetString("Zoom in"); w2.Add(this.ZoomIn, "plus"); this.ZoomOut = new Gtk.Action("ZoomOut", Mono.Unix.Catalog.GetString("Zoom out"), null, null); this.ZoomOut.ShortLabel = Mono.Unix.Catalog.GetString("Zoom out"); w2.Add(this.ZoomOut, "minus"); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("BW Processor"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar3'><menu action='File'><menuitem action='Open1'/><menuitem action='SaveAs'/><menuitem action='Import'/><menuitem action='Export'/></menu><menu action='View'><menuitem action='ZoomIn'/><menuitem action='ZoomOut'/></menu></menubar></ui>"); this.menubar3 = ((Gtk.MenuBar)(w1.GetWidget("/menubar3"))); this.menubar3.Name = "menubar3"; this.vbox3.Add(this.menubar3); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.menubar3])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.paned = new Gtk.HPaned(); this.paned.CanFocus = true; this.paned.Name = "paned"; this.paned.Position = 708; // Container child paned.Gtk.Paned+PanedChild this.geglViewDummy = new Gtk.Label(); this.geglViewDummy.Name = "geglViewDummy"; this.geglViewDummy.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.paned.Add(this.geglViewDummy); Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.paned[this.geglViewDummy])); w4.Resize = false; // Container child paned.Gtk.Paned+PanedChild this.controlsVBox = new Gtk.VBox(); this.controlsVBox.Name = "controlsVBox"; this.controlsVBox.Spacing = 6; // Container child controlsVBox.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.blueScale = new Gtk.HScale(null); this.blueScale.CanFocus = true; this.blueScale.Name = "blueScale"; this.blueScale.Adjustment.Lower = -200; this.blueScale.Adjustment.Upper = 200; this.blueScale.Adjustment.PageIncrement = 10; this.blueScale.Adjustment.StepIncrement = 1; this.blueScale.Adjustment.Value = 30; this.blueScale.DrawValue = true; this.blueScale.Digits = 0; this.blueScale.ValuePos = ((Gtk.PositionType)(2)); this.table1.Add(this.blueScale); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.blueScale])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.greenScale = new Gtk.HScale(null); this.greenScale.CanFocus = true; this.greenScale.Name = "greenScale"; this.greenScale.Adjustment.Lower = -200; this.greenScale.Adjustment.Upper = 200; this.greenScale.Adjustment.PageIncrement = 10; this.greenScale.Adjustment.StepIncrement = 1; this.greenScale.Adjustment.Value = 30; this.greenScale.DrawValue = true; this.greenScale.Digits = 0; this.greenScale.ValuePos = ((Gtk.PositionType)(2)); this.table1.Add(this.greenScale); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.greenScale])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 1F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Green"); this.table1.Add(this.label2); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Blue"); this.table1.Add(this.label3); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 1F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Red"); this.table1.Add(this.label6); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.redScale = new Gtk.HScale(null); this.redScale.CanFocus = true; this.redScale.Name = "redScale"; this.redScale.Adjustment.Lower = -200; this.redScale.Adjustment.Upper = 200; this.redScale.Adjustment.PageIncrement = 10; this.redScale.Adjustment.StepIncrement = 1; this.redScale.Adjustment.Value = 40; this.redScale.DrawValue = true; this.redScale.Digits = 0; this.redScale.ValuePos = ((Gtk.PositionType)(2)); this.table1.Add(this.redScale); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.redScale])); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.YOptions = ((Gtk.AttachOptions)(4)); this.controlsVBox.Add(this.table1); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.table1])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child controlsVBox.Gtk.Box+BoxChild this.curveDummy = new Gtk.Label(); this.curveDummy.Name = "curveDummy"; this.curveDummy.LabelProp = Mono.Unix.Catalog.GetString("label2"); this.controlsVBox.Add(this.curveDummy); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.curveDummy])); w12.Position = 1; // Container child controlsVBox.Gtk.Box+BoxChild this.statusLabel = new Gtk.Label(); this.statusLabel.Name = "statusLabel"; this.statusLabel.Xalign = 0F; this.statusLabel.LabelProp = Mono.Unix.Catalog.GetString("Label"); this.controlsVBox.Add(this.statusLabel); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.statusLabel])); w13.PackType = ((Gtk.PackType)(1)); w13.Position = 2; w13.Expand = false; w13.Fill = false; // Container child controlsVBox.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.controlsVBox.Add(this.hseparator1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.hseparator1])); w14.PackType = ((Gtk.PackType)(1)); w14.Position = 3; w14.Expand = false; w14.Fill = false; // Container child controlsVBox.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 1F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Tint Hue"); this.table2.Add(this.label4); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table2[this.label4])); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 1F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Tint Amount"); this.table2.Add(this.label5); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table2[this.label5])); w16.TopAttach = ((uint)(1)); w16.BottomAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.tintAmountScale = new Gtk.HScale(null); this.tintAmountScale.CanFocus = true; this.tintAmountScale.Name = "tintAmountScale"; this.tintAmountScale.Adjustment.Upper = 100; this.tintAmountScale.Adjustment.PageIncrement = 10; this.tintAmountScale.Adjustment.StepIncrement = 1; this.tintAmountScale.Adjustment.Value = 8; this.tintAmountScale.DrawValue = true; this.tintAmountScale.Digits = 0; this.tintAmountScale.ValuePos = ((Gtk.PositionType)(2)); this.table2.Add(this.tintAmountScale); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table2[this.tintAmountScale])); w17.TopAttach = ((uint)(1)); w17.BottomAttach = ((uint)(2)); w17.LeftAttach = ((uint)(1)); w17.RightAttach = ((uint)(2)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.tintHueScale = new Gtk.HScale(null); this.tintHueScale.CanFocus = true; this.tintHueScale.Name = "tintHueScale"; this.tintHueScale.Adjustment.Upper = 360; this.tintHueScale.Adjustment.PageIncrement = 10; this.tintHueScale.Adjustment.StepIncrement = 1; this.tintHueScale.Adjustment.Value = 23; this.tintHueScale.DrawValue = true; this.tintHueScale.Digits = 0; this.tintHueScale.ValuePos = ((Gtk.PositionType)(2)); this.table2.Add(this.tintHueScale); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table2[this.tintHueScale])); w18.LeftAttach = ((uint)(1)); w18.RightAttach = ((uint)(2)); w18.YOptions = ((Gtk.AttachOptions)(4)); this.controlsVBox.Add(this.table2); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.controlsVBox[this.table2])); w19.PackType = ((Gtk.PackType)(1)); w19.Position = 4; w19.Expand = false; w19.Fill = false; this.paned.Add(this.controlsVBox); Gtk.Paned.PanedChild w20 = ((Gtk.Paned.PanedChild)(this.paned[this.controlsVBox])); w20.Resize = false; this.vbox3.Add(this.paned); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.paned])); w21.Position = 1; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 724; this.DefaultHeight = 588; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.Open1.Activated += new System.EventHandler(this.OpenFile); this.Export.Activated += new System.EventHandler(this.ExportFile); this.SaveAs.Activated += new System.EventHandler(this.SaveFileAs); this.Import.Activated += new System.EventHandler(this.ImportFile); this.ZoomIn.Activated += new System.EventHandler(this.DoZoomIn); this.ZoomOut.Activated += new System.EventHandler(this.DoZoomOut); this.redScale.ValueChanged += new System.EventHandler(this.MixerValueChanged); this.greenScale.ValueChanged += new System.EventHandler(this.MixerValueChanged); this.blueScale.ValueChanged += new System.EventHandler(this.MixerValueChanged); this.tintHueScale.ValueChanged += new System.EventHandler(this.TintChanged); this.tintAmountScale.ValueChanged += new System.EventHandler(this.TintChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null); this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures"); w1.Add(this.FiguresAction, null); this.AddEllipseAction = new Gtk.Action("AddEllipseAction", Mono.Unix.Catalog.GetString("Add Ellipse"), null, null); this.AddEllipseAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Ellipse"); w1.Add(this.AddEllipseAction, null); this.AddRectangleAction = new Gtk.Action("AddRectangleAction", Mono.Unix.Catalog.GetString("Add Rectangle"), null, null); this.AddRectangleAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Rectangle"); w1.Add(this.AddRectangleAction, null); this.AddPolyLineAction = new Gtk.Action("AddPolyLineAction", Mono.Unix.Catalog.GetString("Add PolyLine"), null, null); this.AddPolyLineAction.ShortLabel = Mono.Unix.Catalog.GetString("Add PolyLine"); w1.Add(this.AddPolyLineAction, null); this.AddSimpleTextAction = new Gtk.Action("AddSimpleTextAction", Mono.Unix.Catalog.GetString("Add SimpleText"), null, null); this.AddSimpleTextAction.ShortLabel = Mono.Unix.Catalog.GetString("Add SimpleText"); w1.Add(this.AddSimpleTextAction, null); this.AddMultiLineTextAction = new Gtk.Action("AddMultiLineTextAction", Mono.Unix.Catalog.GetString("Add MultiLineText"), null, null); this.AddMultiLineTextAction.ShortLabel = Mono.Unix.Catalog.GetString("Add MultiLineText"); w1.Add(this.AddMultiLineTextAction, null); this.AddLineConnectionAction = new Gtk.Action("AddLineConnectionAction", Mono.Unix.Catalog.GetString("Add LineConnection"), null, null); this.AddLineConnectionAction.ShortLabel = Mono.Unix.Catalog.GetString("Add LineConnection"); w1.Add(this.AddLineConnectionAction, null); this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null); this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit"); w1.Add(this.EditAction, null); this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Deshacer"), null, "gtk-undo"); this.UndoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Deshacer"); w1.Add(this.UndoAction, "<Control>z"); this.RedoAction = new Gtk.Action("RedoAction", Mono.Unix.Catalog.GetString("_Rehacer"), null, "gtk-redo"); this.RedoAction.ShortLabel = Mono.Unix.Catalog.GetString("_Rehacer"); w1.Add(this.RedoAction, "<Control>y"); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddEllipseAction' action='AddEllipseAction'/><menuitem name='AddRectangleAction' action='AddRectangleAction'/><menuitem name='AddPolyLineAction' action='AddPolyLineAction'/><menuitem name='AddSimpleTextAction' action='AddSimpleTextAction'/><menuitem name='AddMultiLineTextAction' action='AddMultiLineTextAction'/><menuitem name='AddLineConnectionAction' action='AddLineConnectionAction'/></menu><menu name='EditAction' action='EditAction'><menuitem name='UndoAction' action='UndoAction'/><menuitem name='RedoAction' action='RedoAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.mhdcanvas = new MonoHotDraw.SteticComponent(); this.mhdcanvas.Events = ((Gdk.EventMask)(256)); this.mhdcanvas.Name = "mhdcanvas"; this.vbox1.Add(this.mhdcanvas); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mhdcanvas])); w3.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Zoom:"); this.hbox2.Add(this.label2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.zoomscale = new Gtk.HScale(null); this.zoomscale.CanFocus = true; this.zoomscale.Name = "zoomscale"; this.zoomscale.Adjustment.Lower = 10; this.zoomscale.Adjustment.Upper = 500; this.zoomscale.Adjustment.PageIncrement = 50; this.zoomscale.Adjustment.StepIncrement = 1; this.zoomscale.Adjustment.Value = 100; this.zoomscale.DrawValue = true; this.zoomscale.Digits = 0; this.zoomscale.ValuePos = ((Gtk.PositionType)(3)); this.hbox2.Add(this.zoomscale); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.zoomscale])); w5.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Visible Area:"); this.hbox2.Add(this.label3); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.label3])); w6.Position = 2; w6.Expand = false; w6.Fill = false; this.hbox1.Add(this.hbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbox2])); w7.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.visiblearea = new Gtk.Label(); this.visiblearea.Name = "visiblearea"; this.visiblearea.LabelProp = Mono.Unix.Catalog.GetString("~"); this.hbox1.Add(this.visiblearea); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.visiblearea])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w9.Position = 2; w9.Expand = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 446; this.DefaultHeight = 300; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AddEllipseAction.Activated += new System.EventHandler(this.OnAddEllipseActionActivated); this.AddRectangleAction.Activated += new System.EventHandler(this.OnAddRectangleActionActivated); this.AddPolyLineAction.Activated += new System.EventHandler(this.OnAddPolyLineActionActivated); this.AddSimpleTextAction.Activated += new System.EventHandler(this.OnAddSimpleTextActionActivated); this.AddMultiLineTextAction.Activated += new System.EventHandler(this.OnAddMultiLineTextActionActivated); this.AddLineConnectionAction.Activated += new System.EventHandler(this.OnAddLineConnectionActionActivated); this.UndoAction.Activated += new System.EventHandler(this.OnUndoActionActivated); this.RedoAction.Activated += new System.EventHandler(this.OnRedoActionActivated); this.zoomscale.ValueChanged += new System.EventHandler(this.OnHscale1ValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.Gui.Widgets.HScaleSpinButtonWidget Stetic.BinContainer.Attach(this); this.Name = "Pinta.Gui.Widgets.HScaleSpinButtonWidget"; // Container child Pinta.Gui.Widgets.HScaleSpinButtonWidget.Gtk.Container+ContainerChild this.vbox = new Gtk.VBox(); this.vbox.Name = "vbox"; this.vbox.Spacing = 6; // Container child vbox.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.hbox1.Add(this.label); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.hseparator = new Gtk.HSeparator(); this.hseparator.Name = "hseparator"; this.hbox1.Add(this.hseparator); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator])); w2.Position = 1; this.vbox.Add(this.hbox1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hscale = new Gtk.HScale(null); this.hscale.CanFocus = true; this.hscale.Name = "hscale"; this.hscale.Adjustment.Upper = 100; this.hscale.Adjustment.PageIncrement = 10; this.hscale.Adjustment.StepIncrement = 1; this.hscale.DrawValue = false; this.hscale.Digits = 0; this.hscale.ValuePos = ((Gtk.PositionType)(2)); this.hbox2.Add(this.hscale); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.hscale])); w4.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.spin = new Gtk.SpinButton(0, 100, 1); this.spin.CanFocus = true; this.spin.Name = "spin"; this.spin.Adjustment.PageIncrement = 10; this.spin.ClimbRate = 1; this.spin.Numeric = true; this.hbox2.Add(this.spin); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.spin])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.button = new Gtk.Button(); this.button.CanFocus = true; this.button.Name = "button"; this.button.UseUnderline = true; // Container child button.Gtk.Container+ContainerChild Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w7 = new Gtk.HBox(); w7.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w8 = new Gtk.Image(); w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16); w7.Add(w8); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w10 = new Gtk.Label(); w7.Add(w10); w6.Add(w7); this.button.Add(w6); this.hbox2.Add(this.button); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.button])); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.vbox.Add(this.hbox2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox2])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.Add(this.vbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.LayerPropertiesDialog this.Name = "Pinta.LayerPropertiesDialog"; this.Title = Mono.Unix.Catalog.GetString("Layer Properties"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child Pinta.LayerPropertiesDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 10; this.vbox2.BorderWidth = ((uint)(9)); // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.entry1 = new Gtk.Entry(); this.entry1.CanFocus = true; this.entry1.Name = "entry1"; this.entry1.IsEditable = true; this.hbox1.Add(this.entry1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry1])); w3.Position = 1; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("Visible"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.vbox2.Add(this.checkbutton1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.checkbutton1])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.vbox2.Add(this.hseparator2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.hseparator2])); w6.Position = 2; w6.Expand = false; w6.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 16; // Container child hbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Opacity:"); this.hbox2.Add(this.label2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.spinbutton1 = new Gtk.SpinButton(0, 100, 1); this.spinbutton1.CanFocus = true; this.spinbutton1.Name = "spinbutton1"; this.spinbutton1.Adjustment.PageIncrement = 10; this.spinbutton1.ClimbRate = 1; this.spinbutton1.Numeric = true; this.hbox2.Add(this.spinbutton1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.spinbutton1])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.hscale1 = new Gtk.HScale(null); this.hscale1.CanFocus = true; this.hscale1.Name = "hscale1"; this.hscale1.Adjustment.Upper = 100; this.hscale1.Adjustment.PageIncrement = 10; this.hscale1.Adjustment.StepIncrement = 1; this.hscale1.DrawValue = true; this.hscale1.Digits = 0; this.hscale1.ValuePos = ((Gtk.PositionType)(2)); this.hbox2.Add(this.hscale1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.hscale1])); w9.Position = 2; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w10.Position = 3; w10.Expand = false; w10.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Internal child Pinta.LayerPropertiesDialog.ActionArea Gtk.HButtonBox w12 = this.ActionArea; w12.Name = "dialog1_ActionArea"; w12.Spacing = 10; w12.BorderWidth = ((uint)(5)); w12.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w12[this.buttonCancel])); w13.Expand = false; w13.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w12[this.buttonOk])); w14.Position = 1; w14.Expand = false; w14.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 349; this.DefaultHeight = 224; this.Show(); }
public static void Build(object obj, string id) { System.Collections.Hashtable bindings = new System.Collections.Hashtable(); if ((id == "sink.help")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget sink.help cobj.Title = "help"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "sink.help"; // Internal child sink.help.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.VBox w2 = new Gtk.VBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 1F); w3.TopPadding = ((uint)(15)); w3.BottomPadding = ((uint)(15)); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "alignment1"; // Container child alignment1.Gtk.Container+ContainerChild Gtk.HBox w4 = new Gtk.HBox(); w4.Spacing = 15; w4.Events = ((Gdk.EventMask)(0)); w4.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild Gtk.Image w5 = new Gtk.Image(); w5.Pixbuf = new Gdk.Pixbuf("sink.bmp"); w5.Events = ((Gdk.EventMask)(0)); w5.Name = "image5"; bindings["image5"] = w5; w4.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w4[w5])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child hbox3.Gtk.Box+BoxChild Gtk.Label w7 = new Gtk.Label(); w7.LabelProp = "SINK"; w7.UseUnderline = true; w7.Events = ((Gdk.EventMask)(0)); w7.Name = "label4"; bindings["label4"] = w7; w4.Add(w7); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w4[w7])); w8.Position = 1; w8.Expand = false; w8.Fill = false; bindings["hbox3"] = w4; w3.Add(w4); bindings["alignment1"] = w3; w2.Add(w3); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w2[w3])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow(); w11.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w11.HscrollbarPolicy = ((Gtk.PolicyType)(2)); w11.CanFocus = true; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "scrolledwindow1"; // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w12 = new Gtk.Viewport(); w12.ShadowType = ((Gtk.ShadowType)(0)); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "GtkViewport"; // Container child GtkViewport.Gtk.Container+ContainerChild Gtk.ScrolledWindow w13 = new Gtk.ScrolledWindow(); w13.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w13.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w13.CanFocus = true; w13.Events = ((Gdk.EventMask)(0)); w13.Name = "scrolledwindow2"; // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.TextView w14 = new Gtk.TextView(); w14.Buffer.Text = "Introduction\r\n\r\nCellular automaton consist of an infinite number of cells, which have a finite number of states. These states change depending on the state of their neighbours. Each cell has the same rule for updating.\r\n\r\nSink\r\n\r\nIn this program, the cells can have two states: 0 or 1. This state depends on the state of their neighbours and the place where the cell is. \r\n\r\nThese are the default update rules:\r\n\r\n. If both the cell and path are 1, and the cell has eight neighbours, the cell becomes 0. \r\n. If the cell is 1, path is 0 and the cell has more than three neighbours, the cell changes to 0.\r\n. If both the cell and path are 0, and the cell has more than three neighbours, the cell changes to 1.\r\n. If the cell is 0, path is 1 and the cell has more than two neighbours, the cell becomes 1.\r\n\r\nThe user can change all the parameters of the program in the configuration menu.\r\n"; w14.WrapMode = ((Gtk.WrapMode)(2)); w14.Editable = false; w14.CanFocus = true; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "textview1"; bindings["textview1"] = w14; w13.Add(w14); bindings["scrolledwindow2"] = w13; w12.Add(w13); bindings["GtkViewport"] = w12; w11.Add(w12); bindings["scrolledwindow1"] = w11; w2.Add(w11); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w2[w11])); w18.Position = 1; bindings["vbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w1[w2])); w19.Position = 0; bindings["dialog_VBox"] = w1; // Internal child sink.help.ActionArea Gtk.HButtonBox w20 = cobj.ActionArea; w20.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w20.Spacing = 6; w20.BorderWidth = ((uint)(5)); w20.Events = ((Gdk.EventMask)(256)); w20.Name = "sink.help_ActionArea"; // Container child sink.help_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w21 = new Gtk.Button(); w21.CanFocus = true; w21.Events = ((Gdk.EventMask)(0)); w21.Name = "button3"; w21.CanDefault = true; w21.Label = "OK"; bindings["button3"] = w21; cobj.AddActionWidget(w21, 0); Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w20[w21])); w22.Expand = false; w22.Fill = false; bindings["sink.help_ActionArea"] = w20; cobj.DefaultWidth = 400; cobj.DefaultHeight = 449; bindings["sink.help"] = cobj; w5.Show(); w7.Show(); w4.Show(); w3.Show(); w14.Show(); w13.Show(); w12.Show(); w11.Show(); w2.Show(); w1.Show(); w21.Show(); w20.Show(); cobj.Show(); w21.Released += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnButton3Released"))); } else { if ((id == "sink.sinkgtk")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget sink.sinkgtk cobj.Title = "sinkgtk"; Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); Gtk.Action w3 = new Gtk.Action("Simulation", "Simulation", null, null); w3.ShortLabel = "Start"; bindings["Simulation"] = w3; w2.Add(w3, null); Gtk.Action w4 = new Gtk.Action("NewSimulation", "New simulation", null, "gtk-media-play"); w4.ShortLabel = "New simulation"; bindings["NewSimulation"] = w4; w2.Add(w4, null); Gtk.ToggleAction w5 = new Gtk.ToggleAction("PauseSimulation", "Pause simulation", null, "gtk-media-pause"); w5.ShortLabel = "Pause simulation"; bindings["PauseSimulation"] = w5; w2.Add(w5, null); Gtk.Action w6 = new Gtk.Action("StopSimulation", "Stop simulation", null, "gtk-media-stop"); w6.ShortLabel = "Stop simulation"; bindings["StopSimulation"] = w6; w2.Add(w6, null); Gtk.Action w7 = new Gtk.Action("Exit", "Exit", null, "gtk-close"); w7.ShortLabel = "Exit"; bindings["Exit"] = w7; w2.Add(w7, null); Gtk.Action w8 = new Gtk.Action("Configuration", "Configuration", null, null); w8.ShortLabel = "Configuration"; bindings["Configuration"] = w8; w2.Add(w8, null); Gtk.Action w9 = new Gtk.Action("IntroVariables", "Intro variables", null, "gtk-properties"); w9.ShortLabel = "Intro variables"; bindings["IntroVariables"] = w9; w2.Add(w9, null); Gtk.Action w10 = new Gtk.Action("Help", "Help", null, null); w10.ShortLabel = "Help"; bindings["Help"] = w10; w2.Add(w10, null); Gtk.Action w11 = new Gtk.Action("Help1", "Help", null, "gtk-help"); w11.ShortLabel = "Help"; bindings["Help1"] = w11; w2.Add(w11, null); Gtk.Action w12 = new Gtk.Action("AboutAuthors", "About Authors", null, "gtk-info"); w12.ShortLabel = "About Authors"; bindings["AboutAuthors"] = w12; w2.Add(w12, null); w1.InsertActionGroup(w2, 0); cobj.AddAccelGroup(w1.AccelGroup); cobj.Icon = Gtk.IconTheme.Default.LoadIcon("stock_internet", 16, 0); cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "sink.sinkgtk"; // Container child sink.sinkgtk.Gtk.Container+ContainerChild Gtk.VBox w13 = new Gtk.VBox(); w13.Events = ((Gdk.EventMask)(0)); w13.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='Simulation'><menuitem action='NewSimulation'/><menuitem action='PauseSimulation'/><menuitem action='StopSimulation'/><menuitem action='Exit'/></menu><menu action='Configuration'><menuitem action='IntroVariables'/></menu><menu action='Help'><menuitem action='Help1'/><menuitem action='AboutAuthors'/></menu></menubar></ui>"); Gtk.MenuBar w14 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); w14.Events = ((Gdk.EventMask)(0)); w14.Name = "menubar1"; bindings["menubar1"] = w14; w13.Add(w14); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w13[w14])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.Statusbar w16 = new Gtk.Statusbar(); w16.Events = ((Gdk.EventMask)(0)); w16.Name = "statusbar1"; bindings["statusbar1"] = w16; w13.Add(w16); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w13[w16])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.DrawingArea w18 = new Gtk.DrawingArea(); w18.Events = ((Gdk.EventMask)(0)); w18.Name = "drawingarea1"; bindings["drawingarea1"] = w18; w13.Add(w18); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w13[w18])); w19.Position = 2; bindings["vbox1"] = w13; cobj.Add(w13); cobj.DefaultWidth = 500; cobj.DefaultHeight = 300; bindings["sink.sinkgtk"] = cobj; w14.Show(); w16.Show(); w18.Show(); w13.Show(); cobj.Show(); cobj.Removed += ((Gtk.RemovedHandler)(System.Delegate.CreateDelegate(typeof(Gtk.RemovedHandler), cobj, "OnRemoved"))); w4.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewSimulationActivated"))); w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnPauseSimulationActivated"))); w6.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnStopSimulationActivated"))); w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnExitActivated"))); w9.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnIntroVariablesActivated"))); w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnHelp1Activated"))); w12.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAboutAuthorsActivated"))); w18.ExposeEvent += ((Gtk.ExposeEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.ExposeEventHandler), cobj, "OnDrawingarea1ExposeEvent"))); } else { if ((id == "sink.configuration")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget sink.configuration cobj.Title = "configuration"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "sink.configuration"; // Internal child sink.configuration.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.VBox w2 = new Gtk.VBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.Table w3 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "table1"; // Container child table1.Gtk.Table+TableChild Gtk.Label w4 = new Gtk.Label(); w4.LabelProp = "Max cicles"; w4.Events = ((Gdk.EventMask)(0)); w4.Name = "label1"; bindings["label1"] = w4; w3.Add(w4); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(w3[w4])); w5.YOptions = ((Gtk.AttachOptions)(4)); w5.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w6 = new Gtk.Label(); w6.LabelProp = "Population"; w6.Events = ((Gdk.EventMask)(0)); w6.Name = "label3"; bindings["label3"] = w6; w3.Add(w6); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(w3[w6])); w7.BottomAttach = ((uint)(2)); w7.TopAttach = ((uint)(1)); w7.YOptions = ((Gtk.AttachOptions)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w8 = new Gtk.Label(); w8.LabelProp = "Mortality"; w8.Events = ((Gdk.EventMask)(0)); w8.Name = "label4"; bindings["label4"] = w8; w3.Add(w8); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(w3[w8])); w9.BottomAttach = ((uint)(3)); w9.TopAttach = ((uint)(2)); w9.YOptions = ((Gtk.AttachOptions)(4)); w9.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w10 = new Gtk.Label(); w10.LabelProp = "Patch"; w10.Events = ((Gdk.EventMask)(0)); w10.Name = "label5"; bindings["label5"] = w10; w3.Add(w10); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(w3[w10])); w11.BottomAttach = ((uint)(4)); w11.TopAttach = ((uint)(3)); w11.YOptions = ((Gtk.AttachOptions)(4)); w11.XOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w12 = new Gtk.HScale(null); w12.Digits = 0; w12.Adjustment.Upper = 100000; w12.Adjustment.PageIncrement = 100; w12.Adjustment.StepIncrement = 10; w12.DrawValue = true; w12.Adjustment.Value = 99900; w12.ValuePos = ((Gtk.PositionType)(2)); w12.CanFocus = true; w12.Events = ((Gdk.EventMask)(0)); w12.Name = "hscale1"; bindings["hscale1"] = w12; w3.Add(w12); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(w3[w12])); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w14 = new Gtk.HScale(null); w14.Digits = 0; w14.Adjustment.Upper = 5000; w14.Adjustment.PageIncrement = 10; w14.Adjustment.StepIncrement = 1; w14.DrawValue = true; w14.ValuePos = ((Gtk.PositionType)(2)); w14.CanFocus = true; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "hscale2"; bindings["hscale2"] = w14; w3.Add(w14); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(w3[w14])); w15.BottomAttach = ((uint)(2)); w15.LeftAttach = ((uint)(1)); w15.RightAttach = ((uint)(2)); w15.TopAttach = ((uint)(1)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w16 = new Gtk.HScale(null); w16.Digits = 0; w16.Adjustment.Upper = 10000; w16.Adjustment.PageIncrement = 10; w16.Adjustment.StepIncrement = 1; w16.DrawValue = true; w16.ValuePos = ((Gtk.PositionType)(2)); w16.CanFocus = true; w16.Events = ((Gdk.EventMask)(0)); w16.Name = "hscale3"; bindings["hscale3"] = w16; w3.Add(w16); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(w3[w16])); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(1)); w17.RightAttach = ((uint)(2)); w17.TopAttach = ((uint)(2)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w18 = new Gtk.HScale(null); w18.Digits = 0; w18.Adjustment.Upper = 1000; w18.Adjustment.PageIncrement = 10; w18.Adjustment.StepIncrement = 1; w18.DrawValue = true; w18.ValuePos = ((Gtk.PositionType)(2)); w18.CanFocus = true; w18.Events = ((Gdk.EventMask)(0)); w18.Name = "hscale4"; bindings["hscale4"] = w18; w3.Add(w18); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(w3[w18])); w19.BottomAttach = ((uint)(4)); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.TopAttach = ((uint)(3)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.HScale w20 = new Gtk.HScale(null); w20.Digits = 0; w20.Adjustment.Upper = 300; w20.Adjustment.PageIncrement = 10; w20.Adjustment.StepIncrement = 1; w20.DrawValue = true; w20.Adjustment.Value = 60; w20.ValuePos = ((Gtk.PositionType)(2)); w20.CanFocus = true; w20.Events = ((Gdk.EventMask)(0)); w20.Name = "hscale5"; bindings["hscale5"] = w20; w3.Add(w20); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(w3[w20])); w21.BottomAttach = ((uint)(5)); w21.LeftAttach = ((uint)(1)); w21.RightAttach = ((uint)(2)); w21.TopAttach = ((uint)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild Gtk.Label w22 = new Gtk.Label(); w22.LabelProp = "Size "; w22.Events = ((Gdk.EventMask)(0)); w22.Name = "label7"; bindings["label7"] = w22; w3.Add(w22); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(w3[w22])); w23.BottomAttach = ((uint)(5)); w23.TopAttach = ((uint)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); w23.XOptions = ((Gtk.AttachOptions)(4)); bindings["table1"] = w3; w2.Add(w3); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(w2[w3])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.Frame w25 = new Gtk.Frame(); w25.ShadowType = ((Gtk.ShadowType)(0)); w25.LabelXalign = 0F; w25.Events = ((Gdk.EventMask)(0)); w25.Name = "frame2"; // Container child frame2.Gtk.Container+ContainerChild Gtk.Alignment w26 = new Gtk.Alignment(0F, 0F, 1F, 1F); w26.LeftPadding = ((uint)(12)); w26.Events = ((Gdk.EventMask)(0)); w26.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.Table w27 = new Gtk.Table(((uint)(6)), ((uint)(3)), false); w27.Events = ((Gdk.EventMask)(0)); w27.Name = "table2"; // Container child table2.Gtk.Table+TableChild Gtk.Label w28 = new Gtk.Label(); w28.LabelProp = " Cell changes to 1 if:"; w28.Events = ((Gdk.EventMask)(0)); w28.Name = "label16"; bindings["label16"] = w28; w27.Add(w28); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(w27[w28])); w29.BottomAttach = ((uint)(4)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.TopAttach = ((uint)(3)); w29.YOptions = ((Gtk.AttachOptions)(4)); w29.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w30 = new Gtk.Label(); w30.LabelProp = " Cell changes to 0 if: "; w30.Events = ((Gdk.EventMask)(0)); w30.Name = "label2"; bindings["label2"] = w30; w27.Add(w30); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(w27[w30])); w31.LeftAttach = ((uint)(1)); w31.RightAttach = ((uint)(2)); w31.YOptions = ((Gtk.AttachOptions)(4)); w31.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w32 = new Gtk.Label(); w32.LabelProp = "If neighborhood is >= "; w32.Events = ((Gdk.EventMask)(0)); w32.Name = "label15"; bindings["label15"] = w32; w27.Add(w32); Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(w27[w32])); w33.BottomAttach = ((uint)(2)); w33.TopAttach = ((uint)(1)); w33.YOptions = ((Gtk.AttachOptions)(4)); w33.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w34 = new Gtk.Label(); w34.LabelProp = "If neighborhood is >= "; w34.Events = ((Gdk.EventMask)(0)); w34.Name = "label11"; bindings["label11"] = w34; w27.Add(w34); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(w27[w34])); w35.BottomAttach = ((uint)(3)); w35.TopAttach = ((uint)(2)); w35.YOptions = ((Gtk.AttachOptions)(4)); w35.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w36 = new Gtk.Label(); w36.LabelProp = "If neighborhood is >="; w36.Events = ((Gdk.EventMask)(0)); w36.Name = "label13"; bindings["label13"] = w36; w27.Add(w36); Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(w27[w36])); w37.BottomAttach = ((uint)(5)); w37.TopAttach = ((uint)(4)); w37.YOptions = ((Gtk.AttachOptions)(4)); w37.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w38 = new Gtk.Label(); w38.LabelProp = "If neighborhood is >="; w38.Events = ((Gdk.EventMask)(0)); w38.Name = "label14"; bindings["label14"] = w38; w27.Add(w38); Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(w27[w38])); w39.BottomAttach = ((uint)(6)); w39.TopAttach = ((uint)(5)); w39.YOptions = ((Gtk.AttachOptions)(4)); w39.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w40 = new Gtk.Label(); w40.LabelProp = "and habitat = 1; Or ..."; w40.Events = ((Gdk.EventMask)(0)); w40.Name = "label6"; bindings["label6"] = w40; w27.Add(w40); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(w27[w40])); w41.BottomAttach = ((uint)(2)); w41.LeftAttach = ((uint)(2)); w41.RightAttach = ((uint)(3)); w41.TopAttach = ((uint)(1)); w41.YOptions = ((Gtk.AttachOptions)(4)); w41.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w42 = new Gtk.Label(); w42.LabelProp = "and habitat = 0; "; w42.Events = ((Gdk.EventMask)(0)); w42.Name = "label12"; bindings["label12"] = w42; w27.Add(w42); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(w27[w42])); w43.BottomAttach = ((uint)(3)); w43.LeftAttach = ((uint)(2)); w43.RightAttach = ((uint)(3)); w43.TopAttach = ((uint)(2)); w43.YOptions = ((Gtk.AttachOptions)(4)); w43.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w44 = new Gtk.Label(); w44.LabelProp = "and habitat = 1; Or..."; w44.Events = ((Gdk.EventMask)(0)); w44.Name = "label9"; bindings["label9"] = w44; w27.Add(w44); Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(w27[w44])); w45.BottomAttach = ((uint)(5)); w45.LeftAttach = ((uint)(2)); w45.RightAttach = ((uint)(3)); w45.TopAttach = ((uint)(4)); w45.YOptions = ((Gtk.AttachOptions)(4)); w45.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.Label w46 = new Gtk.Label(); w46.LabelProp = "and habitat = 0;"; w46.Events = ((Gdk.EventMask)(0)); w46.Name = "label10"; bindings["label10"] = w46; w27.Add(w46); Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(w27[w46])); w47.BottomAttach = ((uint)(6)); w47.LeftAttach = ((uint)(2)); w47.RightAttach = ((uint)(3)); w47.TopAttach = ((uint)(5)); w47.YOptions = ((Gtk.AttachOptions)(4)); w47.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w48 = new Gtk.HScale(null); w48.Digits = 0; w48.Adjustment.Upper = 8; w48.Adjustment.PageIncrement = 1; w48.Adjustment.StepIncrement = 1; w48.DrawValue = true; w48.Adjustment.Value = 8; w48.ValuePos = ((Gtk.PositionType)(2)); w48.CanFocus = true; w48.Events = ((Gdk.EventMask)(0)); w48.Name = "hscale7"; bindings["hscale7"] = w48; w27.Add(w48); Gtk.Table.TableChild w49 = ((Gtk.Table.TableChild)(w27[w48])); w49.BottomAttach = ((uint)(2)); w49.LeftAttach = ((uint)(1)); w49.RightAttach = ((uint)(2)); w49.TopAttach = ((uint)(1)); w49.YOptions = ((Gtk.AttachOptions)(4)); w49.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w50 = new Gtk.HScale(null); w50.Digits = 0; w50.Adjustment.Upper = 8; w50.Adjustment.PageIncrement = 1; w50.Adjustment.StepIncrement = 1; w50.DrawValue = true; w50.ValuePos = ((Gtk.PositionType)(2)); w50.CanFocus = true; w50.Events = ((Gdk.EventMask)(0)); w50.Name = "hscale8"; bindings["hscale8"] = w50; w27.Add(w50); Gtk.Table.TableChild w51 = ((Gtk.Table.TableChild)(w27[w50])); w51.BottomAttach = ((uint)(3)); w51.LeftAttach = ((uint)(1)); w51.RightAttach = ((uint)(2)); w51.TopAttach = ((uint)(2)); w51.YOptions = ((Gtk.AttachOptions)(4)); w51.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w52 = new Gtk.HScale(null); w52.Digits = 0; w52.Adjustment.Upper = 8; w52.Adjustment.PageIncrement = 1; w52.Adjustment.StepIncrement = 1; w52.DrawValue = true; w52.Adjustment.Value = 8; w52.ValuePos = ((Gtk.PositionType)(2)); w52.CanFocus = true; w52.Events = ((Gdk.EventMask)(0)); w52.Name = "hscale9"; bindings["hscale9"] = w52; w27.Add(w52); Gtk.Table.TableChild w53 = ((Gtk.Table.TableChild)(w27[w52])); w53.BottomAttach = ((uint)(5)); w53.LeftAttach = ((uint)(1)); w53.RightAttach = ((uint)(2)); w53.TopAttach = ((uint)(4)); w53.YOptions = ((Gtk.AttachOptions)(4)); w53.XOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild Gtk.HScale w54 = new Gtk.HScale(null); w54.Digits = 0; w54.Adjustment.Upper = 8; w54.Adjustment.PageIncrement = 1; w54.Adjustment.StepIncrement = 1; w54.DrawValue = true; w54.Adjustment.Value = 3; w54.ValuePos = ((Gtk.PositionType)(2)); w54.CanFocus = true; w54.Events = ((Gdk.EventMask)(0)); w54.Name = "hscale10"; bindings["hscale10"] = w54; w27.Add(w54); Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(w27[w54])); w55.BottomAttach = ((uint)(6)); w55.LeftAttach = ((uint)(1)); w55.RightAttach = ((uint)(2)); w55.TopAttach = ((uint)(5)); w55.YOptions = ((Gtk.AttachOptions)(4)); w55.XOptions = ((Gtk.AttachOptions)(4)); bindings["table2"] = w27; w26.Add(w27); bindings["GtkAlignment"] = w26; w25.Add(w26); Gtk.Label w58 = new Gtk.Label(); w58.LabelProp = "<b>Internal variables:</b>"; w58.UseMarkup = true; w58.Events = ((Gdk.EventMask)(256)); w58.Name = "GtkLabel1"; bindings["GtkLabel1"] = w58; w25.LabelWidget = w58; bindings["frame2"] = w25; w2.Add(w25); Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w2[w25])); w59.Position = 1; w59.Expand = false; w59.Fill = false; bindings["vbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w1[w2])); w60.Position = 0; w60.Expand = false; w60.Fill = false; bindings["dialog_VBox"] = w1; // Internal child sink.configuration.ActionArea Gtk.HButtonBox w61 = cobj.ActionArea; w61.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w61.Spacing = 6; w61.BorderWidth = ((uint)(5)); w61.Events = ((Gdk.EventMask)(256)); w61.Name = "sink.configuration_ActionArea"; // Container child sink.configuration_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w62 = new Gtk.Button(); w62.CanFocus = true; w62.Events = ((Gdk.EventMask)(0)); w62.Name = "button1"; w62.CanDefault = true; w62.Label = "Save"; bindings["button1"] = w62; cobj.AddActionWidget(w62, 0); Gtk.ButtonBox.ButtonBoxChild w63 = ((Gtk.ButtonBox.ButtonBoxChild)(w61[w62])); w63.Expand = false; w63.Fill = false; bindings["sink.configuration_ActionArea"] = w61; cobj.DefaultWidth = 609; cobj.DefaultHeight = 484; bindings["sink.configuration"] = cobj; w4.Show(); w6.Show(); w8.Show(); w10.Show(); w12.Show(); w14.Show(); w16.Show(); w18.Show(); w20.Show(); w22.Show(); w3.Show(); w28.Show(); w30.Show(); w32.Show(); w34.Show(); w36.Show(); w38.Show(); w40.Show(); w42.Show(); w44.Show(); w46.Show(); w48.Show(); w50.Show(); w52.Show(); w54.Show(); w27.Show(); w26.Show(); w58.Show(); w25.Show(); w2.Show(); w1.Show(); w62.Show(); w61.Show(); cobj.Show(); w62.Released += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnButton1Released"))); } } } System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance)); for (int n = 0; (n < fields.Length); n = (n + 1)) { System.Reflection.FieldInfo field = fields[n]; object widget = bindings[field.Name]; if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) { field.SetValue(obj, widget); } } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget omvviewerlight.Preferences this.Name = "omvviewerlight.Preferences"; this.Title = Mono.Unix.Catalog.GetString("Preferences"); this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-preferences", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child omvviewerlight.Preferences.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.notebook4 = new Gtk.Notebook(); this.notebook4.CanFocus = true; this.notebook4.Name = "notebook4"; this.notebook4.CurrentPage = 0; // Container child notebook4.Gtk.Notebook+NotebookChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton_showtimestamps = new Gtk.CheckButton(); this.checkbutton_showtimestamps.CanFocus = true; this.checkbutton_showtimestamps.Name = "checkbutton_showtimestamps"; this.checkbutton_showtimestamps.Label = Mono.Unix.Catalog.GetString("Show time stamps in chat and IMs"); this.checkbutton_showtimestamps.DrawIndicator = true; this.checkbutton_showtimestamps.UseUnderline = true; this.vbox4.Add(this.checkbutton_showtimestamps); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton_showtimestamps])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton_notifychat = new Gtk.CheckButton(); this.checkbutton_notifychat.CanFocus = true; this.checkbutton_notifychat.Name = "checkbutton_notifychat"; this.checkbutton_notifychat.Label = Mono.Unix.Catalog.GetString("Notify on Avatar chat"); this.checkbutton_notifychat.DrawIndicator = true; this.checkbutton_notifychat.UseUnderline = true; this.vbox4.Add(this.checkbutton_notifychat); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton_notifychat])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton_notifyIM = new Gtk.CheckButton(); this.checkbutton_notifyIM.CanFocus = true; this.checkbutton_notifyIM.Name = "checkbutton_notifyIM"; this.checkbutton_notifyIM.Label = Mono.Unix.Catalog.GetString("Notify on IM"); this.checkbutton_notifyIM.DrawIndicator = true; this.checkbutton_notifyIM.UseUnderline = true; this.vbox4.Add(this.checkbutton_notifyIM); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton_notifyIM])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton_notifyGroupIM = new Gtk.CheckButton(); this.checkbutton_notifyGroupIM.CanFocus = true; this.checkbutton_notifyGroupIM.Name = "checkbutton_notifyGroupIM"; this.checkbutton_notifyGroupIM.Label = Mono.Unix.Catalog.GetString("Notify on Group IM"); this.checkbutton_notifyGroupIM.DrawIndicator = true; this.checkbutton_notifyGroupIM.UseUnderline = true; this.vbox4.Add(this.checkbutton_notifyGroupIM); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton_notifyGroupIM])); w4.Position = 3; w4.Expand = false; w4.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton_notifyobjectchat = new Gtk.CheckButton(); this.checkbutton_notifyobjectchat.CanFocus = true; this.checkbutton_notifyobjectchat.Name = "checkbutton_notifyobjectchat"; this.checkbutton_notifyobjectchat.Label = Mono.Unix.Catalog.GetString("Notify on Object Chat"); this.checkbutton_notifyobjectchat.DrawIndicator = true; this.checkbutton_notifyobjectchat.UseUnderline = true; this.vbox4.Add(this.checkbutton_notifyobjectchat); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton_notifyobjectchat])); w5.Position = 4; w5.Expand = false; w5.Fill = false; this.GtkAlignment.Add(this.vbox4); this.frame1.Add(this.GtkAlignment); this.GtkLabel4 = new Gtk.Label(); this.GtkLabel4.Name = "GtkLabel4"; this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>Chat and IMs</b>"); this.GtkLabel4.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel4; this.vbox3.Add(this.frame1); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame1])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.checkbutton_hideminimise = new Gtk.CheckButton(); this.checkbutton_hideminimise.CanFocus = true; this.checkbutton_hideminimise.Name = "checkbutton_hideminimise"; this.checkbutton_hideminimise.Label = Mono.Unix.Catalog.GetString("Hide minimise confirm"); this.checkbutton_hideminimise.DrawIndicator = true; this.checkbutton_hideminimise.UseUnderline = true; this.vbox5.Add(this.checkbutton_hideminimise); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox5[this.checkbutton_hideminimise])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Default is to minimise")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.vbox5.Add(this.radiobutton1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox5[this.radiobutton1])); w10.Position = 1; w10.Expand = false; w10.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Default is to close")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.vbox5.Add(this.radiobutton2); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox5[this.radiobutton2])); w11.Position = 2; w11.Expand = false; w11.Fill = false; this.GtkAlignment1.Add(this.vbox5); this.frame2.Add(this.GtkAlignment1); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>Minimise</b>"); this.GtkLabel8.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel8; this.vbox3.Add(this.frame2); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame2])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.notebook4.Add(this.vbox3); // Notebook tab this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = Mono.Unix.Catalog.GetString("General"); this.notebook4.SetTabLabel(this.vbox3, this.label11); this.label11.ShowAll(); // Container child notebook4.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Homogeneous = true; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Cloud"); this.vbox6.Add(this.label3); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox6[this.label3])); w16.Position = 1; w16.Expand = false; w16.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Wind"); this.vbox6.Add(this.label4); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox6[this.label4])); w17.Position = 2; w17.Expand = false; w17.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Land"); this.vbox6.Add(this.label5); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox6[this.label5])); w18.Position = 3; w18.Expand = false; w18.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Texture"); this.vbox6.Add(this.label6); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox6[this.label6])); w19.Position = 4; w19.Expand = false; w19.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Asset"); this.vbox6.Add(this.label7); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox6[this.label7])); w20.Position = 5; w20.Expand = false; w20.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Resend"); this.vbox6.Add(this.label8); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox6[this.label8])); w21.Position = 6; w21.Expand = false; w21.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Task"); this.vbox6.Add(this.label9); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox6[this.label9])); w22.Position = 7; w22.Expand = false; w22.Fill = false; this.hbox1.Add(this.vbox6); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox6])); w23.Position = 0; w23.Expand = false; w23.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox7 = new Gtk.VBox(); this.vbox7.WidthRequest = 333; this.vbox7.Name = "vbox7"; this.vbox7.Homogeneous = true; this.vbox7.Spacing = 6; // Container child vbox7.Gtk.Box+BoxChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Bandwidth throttle control"); this.vbox7.Add(this.label10); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox7[this.label10])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_cloud = new Gtk.HScale(null); this.hscale_cloud.CanFocus = true; this.hscale_cloud.Name = "hscale_cloud"; this.hscale_cloud.Adjustment.Upper = 34000; this.hscale_cloud.Adjustment.PageIncrement = 1000; this.hscale_cloud.Adjustment.PageSize = 1000; this.hscale_cloud.Adjustment.StepIncrement = 1; this.hscale_cloud.DrawValue = true; this.hscale_cloud.Digits = 0; this.hscale_cloud.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_cloud); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_cloud])); w25.Position = 1; w25.Expand = false; w25.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_wind = new Gtk.HScale(null); this.hscale_wind.CanFocus = true; this.hscale_wind.Name = "hscale_wind"; this.hscale_wind.Adjustment.Upper = 34000; this.hscale_wind.Adjustment.PageIncrement = 1000; this.hscale_wind.Adjustment.PageSize = 1000; this.hscale_wind.Adjustment.StepIncrement = 1; this.hscale_wind.Adjustment.Value = 4; this.hscale_wind.DrawValue = true; this.hscale_wind.Digits = 0; this.hscale_wind.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_wind); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_wind])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_land = new Gtk.HScale(null); this.hscale_land.CanFocus = true; this.hscale_land.Name = "hscale_land"; this.hscale_land.Adjustment.Upper = 170000; this.hscale_land.Adjustment.PageIncrement = 1000; this.hscale_land.Adjustment.StepIncrement = 1000; this.hscale_land.DrawValue = true; this.hscale_land.Digits = 0; this.hscale_land.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_land); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_land])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_texture = new Gtk.HScale(null); this.hscale_texture.CanFocus = true; this.hscale_texture.Name = "hscale_texture"; this.hscale_texture.Adjustment.Lower = 4000; this.hscale_texture.Adjustment.Upper = 446000; this.hscale_texture.Adjustment.PageIncrement = 1000; this.hscale_texture.Adjustment.PageSize = 1000; this.hscale_texture.Adjustment.StepIncrement = 1; this.hscale_texture.Adjustment.Value = 4000; this.hscale_texture.DrawValue = true; this.hscale_texture.Digits = 0; this.hscale_texture.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_texture); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_texture])); w28.Position = 4; w28.Expand = false; w28.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_asset = new Gtk.HScale(null); this.hscale_asset.CanFocus = true; this.hscale_asset.Name = "hscale_asset"; this.hscale_asset.Adjustment.Lower = 10000; this.hscale_asset.Adjustment.Upper = 220000; this.hscale_asset.Adjustment.PageIncrement = 1000; this.hscale_asset.Adjustment.PageSize = 1000; this.hscale_asset.Adjustment.StepIncrement = 1; this.hscale_asset.Adjustment.Value = 10000; this.hscale_asset.DrawValue = true; this.hscale_asset.Digits = 0; this.hscale_asset.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_asset); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_asset])); w29.Position = 5; w29.Expand = false; w29.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_resend = new Gtk.HScale(null); this.hscale_resend.CanFocus = true; this.hscale_resend.Name = "hscale_resend"; this.hscale_resend.Adjustment.Lower = 10000; this.hscale_resend.Adjustment.Upper = 150000; this.hscale_resend.Adjustment.PageIncrement = 1000; this.hscale_resend.Adjustment.StepIncrement = 1000; this.hscale_resend.Adjustment.Value = 10000; this.hscale_resend.DrawValue = true; this.hscale_resend.Digits = 0; this.hscale_resend.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_resend); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_resend])); w30.Position = 6; w30.Expand = false; w30.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hscale_task = new Gtk.HScale(null); this.hscale_task.CanFocus = true; this.hscale_task.Name = "hscale_task"; this.hscale_task.Adjustment.Lower = 4000; this.hscale_task.Adjustment.Upper = 446000; this.hscale_task.Adjustment.PageIncrement = 1000; this.hscale_task.Adjustment.PageSize = 1000; this.hscale_task.Adjustment.StepIncrement = 1; this.hscale_task.Adjustment.Value = 4000; this.hscale_task.DrawValue = true; this.hscale_task.Digits = 0; this.hscale_task.ValuePos = ((Gtk.PositionType)(2)); this.vbox7.Add(this.hscale_task); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox7[this.hscale_task])); w31.Position = 7; w31.Expand = false; w31.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.button_applythrottle = new Gtk.Button(); this.button_applythrottle.CanFocus = true; this.button_applythrottle.Name = "button_applythrottle"; this.button_applythrottle.UseUnderline = true; this.button_applythrottle.Label = Mono.Unix.Catalog.GetString("Apply throttle settings"); this.hbox4.Add(this.button_applythrottle); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox4[this.button_applythrottle])); w32.Position = 1; w32.Expand = false; w32.Fill = false; this.vbox7.Add(this.hbox4); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox4])); w33.Position = 8; w33.Expand = false; w33.Fill = false; this.hbox1.Add(this.vbox7); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox7])); w34.Position = 1; w34.Expand = false; w34.Fill = false; this.notebook4.Add(this.hbox1); Gtk.Notebook.NotebookChild w35 = ((Gtk.Notebook.NotebookChild)(this.notebook4[this.hbox1])); w35.Position = 1; // Notebook tab this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Throttle"); this.notebook4.SetTabLabel(this.hbox1, this.label12); this.label12.ShowAll(); // Container child notebook4.Gtk.Notebook+NotebookChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.colorbutton_normal = new Gtk.ColorButton(); this.colorbutton_normal.CanFocus = true; this.colorbutton_normal.Events = ((Gdk.EventMask)(784)); this.colorbutton_normal.Name = "colorbutton_normal"; this.hbox7.Add(this.colorbutton_normal); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox7[this.colorbutton_normal])); w36.Position = 0; w36.Expand = false; w36.Fill = false; w36.Padding = ((uint)(17)); // Container child hbox7.Gtk.Box+BoxChild this.label15 = new Gtk.Label(); this.label15.Name = "label15"; this.label15.Xalign = 0F; this.label15.LabelProp = Mono.Unix.Catalog.GetString("Normal chat"); this.label15.WidthChars = 20; this.hbox7.Add(this.label15); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox7[this.label15])); w37.Position = 1; w37.Expand = false; w37.Fill = false; w37.Padding = ((uint)(6)); this.hbox2.Add(this.hbox7); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox2[this.hbox7])); w38.Position = 0; w38.Expand = false; w38.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w39.Position = 0; w39.Expand = false; w39.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.colorbutton_object = new Gtk.ColorButton(); this.colorbutton_object.CanFocus = true; this.colorbutton_object.Events = ((Gdk.EventMask)(784)); this.colorbutton_object.Name = "colorbutton_object"; this.hbox5.Add(this.colorbutton_object); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox5[this.colorbutton_object])); w40.Position = 0; w40.Expand = false; w40.Fill = false; w40.Padding = ((uint)(17)); // Container child hbox5.Gtk.Box+BoxChild this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.Xalign = 0F; this.label13.LabelProp = Mono.Unix.Catalog.GetString("Object chat"); this.label13.WidthChars = 20; this.hbox5.Add(this.label13); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.hbox5[this.label13])); w41.Position = 1; w41.Expand = false; w41.Fill = false; w41.Padding = ((uint)(6)); this.vbox1.Add(this.hbox5); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox5])); w42.Position = 1; w42.Expand = false; w42.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.colorbutton_ownerim = new Gtk.ColorButton(); this.colorbutton_ownerim.CanFocus = true; this.colorbutton_ownerim.Events = ((Gdk.EventMask)(784)); this.colorbutton_ownerim.Name = "colorbutton_ownerim"; this.hbox6.Add(this.colorbutton_ownerim); Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox6[this.colorbutton_ownerim])); w43.Position = 0; w43.Expand = false; w43.Fill = false; w43.Padding = ((uint)(17)); // Container child hbox6.Gtk.Box+BoxChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.Xalign = 0F; this.label14.LabelProp = Mono.Unix.Catalog.GetString("Object Owner IM"); this.label14.WidthChars = 20; this.hbox6.Add(this.label14); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.hbox6[this.label14])); w44.Position = 1; w44.Expand = false; w44.Fill = false; w44.Padding = ((uint)(6)); this.vbox1.Add(this.hbox6); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox6])); w45.Position = 2; w45.Expand = false; w45.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox8 = new Gtk.HBox(); this.hbox8.Name = "hbox8"; this.hbox8.Spacing = 6; // Container child hbox8.Gtk.Box+BoxChild this.colorbutton_objectim = new Gtk.ColorButton(); this.colorbutton_objectim.CanFocus = true; this.colorbutton_objectim.Events = ((Gdk.EventMask)(784)); this.colorbutton_objectim.Name = "colorbutton_objectim"; this.hbox8.Add(this.colorbutton_objectim); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox8[this.colorbutton_objectim])); w46.Position = 0; w46.Expand = false; w46.Fill = false; w46.Padding = ((uint)(17)); // Container child hbox8.Gtk.Box+BoxChild this.label16 = new Gtk.Label(); this.label16.Name = "label16"; this.label16.Xalign = 0F; this.label16.LabelProp = Mono.Unix.Catalog.GetString("Object IM"); this.label16.WidthChars = 20; this.hbox8.Add(this.label16); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox8[this.label16])); w47.Position = 1; w47.Expand = false; w47.Fill = false; w47.Padding = ((uint)(6)); this.vbox1.Add(this.hbox8); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox8])); w48.Position = 3; w48.Expand = false; w48.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox9 = new Gtk.HBox(); this.hbox9.Name = "hbox9"; this.hbox9.Spacing = 6; // Container child hbox9.Gtk.Box+BoxChild this.colorbutton_system = new Gtk.ColorButton(); this.colorbutton_system.CanFocus = true; this.colorbutton_system.Events = ((Gdk.EventMask)(784)); this.colorbutton_system.Name = "colorbutton_system"; this.hbox9.Add(this.colorbutton_system); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.hbox9[this.colorbutton_system])); w49.Position = 0; w49.Expand = false; w49.Fill = false; w49.Padding = ((uint)(17)); // Container child hbox9.Gtk.Box+BoxChild this.label17 = new Gtk.Label(); this.label17.Name = "label17"; this.label17.Xalign = 0F; this.label17.LabelProp = Mono.Unix.Catalog.GetString("System chat"); this.label17.WidthChars = 20; this.hbox9.Add(this.label17); Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.hbox9[this.label17])); w50.Position = 1; w50.Expand = false; w50.Fill = false; w50.Padding = ((uint)(6)); this.vbox1.Add(this.hbox9); Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox9])); w51.Position = 4; w51.Expand = false; w51.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox10 = new Gtk.HBox(); this.hbox10.Name = "hbox10"; this.hbox10.Spacing = 6; // Container child hbox10.Gtk.Box+BoxChild this.colorbutton_online = new Gtk.ColorButton(); this.colorbutton_online.CanFocus = true; this.colorbutton_online.Events = ((Gdk.EventMask)(784)); this.colorbutton_online.Name = "colorbutton_online"; this.hbox10.Add(this.colorbutton_online); Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.hbox10[this.colorbutton_online])); w52.Position = 0; w52.Expand = false; w52.Fill = false; w52.Padding = ((uint)(17)); // Container child hbox10.Gtk.Box+BoxChild this.label18 = new Gtk.Label(); this.label18.Name = "label18"; this.label18.Xalign = 0F; this.label18.LabelProp = Mono.Unix.Catalog.GetString("Online"); this.label18.WidthChars = 20; this.hbox10.Add(this.label18); Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.hbox10[this.label18])); w53.Position = 1; w53.Expand = false; w53.Fill = false; w53.Padding = ((uint)(6)); this.vbox1.Add(this.hbox10); Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox10])); w54.Position = 5; w54.Expand = false; w54.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox11 = new Gtk.HBox(); this.hbox11.Name = "hbox11"; this.hbox11.Spacing = 6; // Container child hbox11.Gtk.Box+BoxChild this.colorbutton_typing = new Gtk.ColorButton(); this.colorbutton_typing.CanFocus = true; this.colorbutton_typing.Events = ((Gdk.EventMask)(784)); this.colorbutton_typing.Name = "colorbutton_typing"; this.hbox11.Add(this.colorbutton_typing); Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.hbox11[this.colorbutton_typing])); w55.Position = 0; w55.Expand = false; w55.Fill = false; w55.Padding = ((uint)(17)); // Container child hbox11.Gtk.Box+BoxChild this.label19 = new Gtk.Label(); this.label19.Name = "label19"; this.label19.Xalign = 0F; this.label19.LabelProp = Mono.Unix.Catalog.GetString("Typing..."); this.label19.WidthChars = 20; this.hbox11.Add(this.label19); Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.hbox11[this.label19])); w56.Position = 1; w56.Expand = false; w56.Fill = false; w56.Padding = ((uint)(6)); this.vbox1.Add(this.hbox11); Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox11])); w57.Position = 6; w57.Expand = false; w57.Fill = false; this.notebook4.Add(this.vbox1); Gtk.Notebook.NotebookChild w58 = ((Gtk.Notebook.NotebookChild)(this.notebook4[this.vbox1])); w58.Position = 2; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Chat colors"); this.notebook4.SetTabLabel(this.vbox1, this.label1); this.label1.ShowAll(); this.vbox2.Add(this.notebook4); Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.vbox2[this.notebook4])); w59.Position = 0; w59.Expand = false; w59.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 9; // Container child hbox3.Gtk.Box+BoxChild this.button_ok = new Gtk.Button(); this.button_ok.WidthRequest = 75; this.button_ok.CanFocus = true; this.button_ok.Name = "button_ok"; this.button_ok.UseUnderline = true; // Container child button_ok.Gtk.Container+ContainerChild Gtk.Alignment w60 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w61 = new Gtk.HBox(); w61.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w62 = new Gtk.Image(); w62.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Menu, 16); w61.Add(w62); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w64 = new Gtk.Label(); w64.LabelProp = Mono.Unix.Catalog.GetString("Ok"); w64.UseUnderline = true; w61.Add(w64); w60.Add(w61); this.button_ok.Add(w60); this.hbox3.Add(this.button_ok); Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.hbox3[this.button_ok])); w68.Position = 0; w68.Expand = false; w68.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.button_apply = new Gtk.Button(); this.button_apply.WidthRequest = 75; this.button_apply.CanFocus = true; this.button_apply.Name = "button_apply"; this.button_apply.UseUnderline = true; // Container child button_apply.Gtk.Container+ContainerChild Gtk.Alignment w69 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w70 = new Gtk.HBox(); w70.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w71 = new Gtk.Image(); w71.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16); w70.Add(w71); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w73 = new Gtk.Label(); w73.LabelProp = Mono.Unix.Catalog.GetString("Apply"); w73.UseUnderline = true; w70.Add(w73); w69.Add(w70); this.button_apply.Add(w69); this.hbox3.Add(this.button_apply); Gtk.Box.BoxChild w77 = ((Gtk.Box.BoxChild)(this.hbox3[this.button_apply])); w77.Position = 1; w77.Expand = false; w77.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.button_cancel = new Gtk.Button(); this.button_cancel.WidthRequest = 75; this.button_cancel.CanFocus = true; this.button_cancel.Name = "button_cancel"; this.button_cancel.UseUnderline = true; // Container child button_cancel.Gtk.Container+ContainerChild Gtk.Alignment w78 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w79 = new Gtk.HBox(); w79.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w80 = new Gtk.Image(); w80.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16); w79.Add(w80); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w82 = new Gtk.Label(); w82.LabelProp = Mono.Unix.Catalog.GetString("Cancel"); w82.UseUnderline = true; w79.Add(w82); w78.Add(w79); this.button_cancel.Add(w78); this.hbox3.Add(this.button_cancel); Gtk.Box.BoxChild w86 = ((Gtk.Box.BoxChild)(this.hbox3[this.button_cancel])); w86.Position = 2; w86.Expand = false; w86.Fill = false; this.vbox2.Add(this.hbox3); Gtk.Box.BoxChild w87 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3])); w87.Position = 2; w87.Expand = false; w87.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 663; this.DefaultHeight = 499; this.Show(); this.checkbutton_showtimestamps.Clicked += new System.EventHandler(this.OnCheckbuttonShowtimestampsClicked); this.checkbutton_hideminimise.Clicked += new System.EventHandler(this.OnCheckbuttonHideminimiseClicked); this.radiobutton1.Activated += new System.EventHandler(this.OnRadiobutton1Activated); this.radiobutton2.Activated += new System.EventHandler(this.OnRadiobutton2Activated); this.button_applythrottle.Clicked += new System.EventHandler(this.OnButtonApplythrottleClicked); this.colorbutton_normal.Clicked += new System.EventHandler(this.OnColorbuttonNormalClicked); this.colorbutton_object.Clicked += new System.EventHandler(this.OnColorbuttonObjectClicked); this.colorbutton_ownerim.Clicked += new System.EventHandler(this.OnColorbuttonOwnerimClicked); this.colorbutton_objectim.Clicked += new System.EventHandler(this.OnColorbuttonObjectimClicked); this.colorbutton_system.Clicked += new System.EventHandler(this.OnColorbuttonSystemClicked); this.colorbutton_online.Clicked += new System.EventHandler(this.OnColorbuttonSystemClicked); this.colorbutton_typing.Clicked += new System.EventHandler(this.OnColorbuttonSystemClicked); this.button_ok.Clicked += new System.EventHandler(this.OnButtonOkClicked); this.button_apply.Clicked += new System.EventHandler(this.OnButtonApplyClicked); this.button_cancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XBMControlAction = new Gtk.Action("XBMControlAction", Mono.Unix.Catalog.GetString("XBMControl"), null, null); this.XBMControlAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMControl"); w1.Add(this.XBMControlAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-disconnect"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.QuitAction, null); this.XBMCAction = new Gtk.Action("XBMCAction", Mono.Unix.Catalog.GetString("XBMC"), null, null); this.XBMCAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMC"); w1.Add(this.XBMCAction, null); this.PlaylistAction = new Gtk.Action("PlaylistAction", Mono.Unix.Catalog.GetString("Playlist"), null, null); this.PlaylistAction.ShortLabel = Mono.Unix.Catalog.GetString("Playlist"); w1.Add(this.PlaylistAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.UpdateMusicLibraryAction = new Gtk.Action("UpdateMusicLibraryAction", Mono.Unix.Catalog.GetString("Update music library"), null, null); this.UpdateMusicLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.UpdateMusicLibraryAction, null); this.UpdateVideoLibraryAction = new Gtk.Action("UpdateVideoLibraryAction", Mono.Unix.Catalog.GetString("Update video library"), null, null); this.UpdateVideoLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.UpdateVideoLibraryAction, null); this.UpdateLibraryAction = new Gtk.Action("UpdateLibraryAction", Mono.Unix.Catalog.GetString("Update Library"), null, null); this.UpdateLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Library"); w1.Add(this.UpdateLibraryAction, null); this.MusicAction = new Gtk.Action("MusicAction", Mono.Unix.Catalog.GetString("Music"), null, "gtk-harddisk"); this.MusicAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.MusicAction, null); this.VideoAction = new Gtk.Action("VideoAction", Mono.Unix.Catalog.GetString("Video"), null, "gtk-harddisk"); this.VideoAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.VideoAction, null); this.RestartAction = new Gtk.Action("RestartAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-refresh"); this.RestartAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart"); w1.Add(this.RestartAction, null); this.RebootAction = new Gtk.Action("RebootAction", Mono.Unix.Catalog.GetString("Reboot"), null, "gtk-refresh"); this.RebootAction.ShortLabel = Mono.Unix.Catalog.GetString("Reboot"); w1.Add(this.RebootAction, null); this.ShutdownAction = new Gtk.Action("ShutdownAction", Mono.Unix.Catalog.GetString("Shutdown"), null, "gtk-quit"); this.ShutdownAction.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown"); w1.Add(this.ShutdownAction, null); this.ConfigurationAction = new Gtk.Action("ConfigurationAction", Mono.Unix.Catalog.GetString("Configuration"), null, "gtk-edit"); this.ConfigurationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w1.Add(this.ConfigurationAction, null); this.clearAction = new Gtk.Action("clearAction", null, Mono.Unix.Catalog.GetString("Clear playlist"), "gtk-clear"); w1.Add(this.clearAction, null); this.openAction = new Gtk.Action("openAction", null, null, "gtk-open"); w1.Add(this.openAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w1.Add(this.saveAction, null); this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as"); w1.Add(this.saveAsAction, null); this.aRefreshPlaylist = new Gtk.Action("aRefreshPlaylist", null, null, "gtk-refresh"); w1.Add(this.aRefreshPlaylist, null); this.aRemoveSelected = new Gtk.Action("aRemoveSelected", null, Mono.Unix.Catalog.GetString("Remove selected item"), "gtk-remove"); w1.Add(this.aRemoveSelected, null); this.aPlaySelected = new Gtk.Action("aPlaySelected", null, Mono.Unix.Catalog.GetString("Play selected item"), "gtk-media-play"); w1.Add(this.aPlaySelected, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.WidthRequest = 900; this.HeightRequest = 600; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("XBMControl Evo"); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Resizable = false; this.AllowGrow = false; this.DefaultWidth = 800; this.DefaultHeight = 600; // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XBMControlAction' action='XBMControlAction'><menuitem name='ConfigurationAction' action='ConfigurationAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='XBMCAction' action='XBMCAction'><menu name='UpdateLibraryAction' action='UpdateLibraryAction'><menuitem name='MusicAction' action='MusicAction'/><menuitem name='VideoAction' action='VideoAction'/></menu><menuitem name='RestartAction' action='RestartAction'/><menuitem name='RebootAction' action='RebootAction'/><menuitem name='ShutdownAction' action='ShutdownAction'/></menu><menu name='PlaylistAction' action='PlaylistAction'/><menu name='HelpAction' action='HelpAction'/></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 300; // Container child hpaned1.Gtk.Paned+PanedChild this.nbBrowser = new Gtk.Notebook(); this.nbBrowser.WidthRequest = 300; this.nbBrowser.CanFocus = true; this.nbBrowser.Name = "nbBrowser"; this.nbBrowser.CurrentPage = 0; // Container child nbBrowser.Gtk.Notebook+NotebookChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.cbShareType = Gtk.ComboBox.NewText(); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Pictures")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Files")); this.cbShareType.Name = "cbShareType"; this.cbShareType.Active = 0; this.vbox3.Add(this.cbShareType); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbShareType])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.tvShareBrowser = new Gtk.TreeView(); this.tvShareBrowser.CanFocus = true; this.tvShareBrowser.Name = "tvShareBrowser"; this.GtkScrolledWindow.Add(this.tvShareBrowser); this.vbox3.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow])); w5.Position = 1; this.nbBrowser.Add(this.vbox3); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Shares"); this.nbBrowser.SetTabLabel(this.vbox3, this.label2); this.label2.ShowAll(); this.hpaned1.Add(this.nbBrowser); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbBrowser])); w7.Resize = false; w7.Shrink = false; // Container child hpaned1.Gtk.Paned+PanedChild this.nbDataContainer = new Gtk.Notebook(); this.nbDataContainer.CanFocus = true; this.nbDataContainer.Name = "nbDataContainer"; this.nbDataContainer.CurrentPage = 0; this.nbDataContainer.ShowBorder = false; this.nbDataContainer.Scrollable = true; // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild Gtk.Viewport w8 = new Gtk.Viewport(); w8.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.fixedNowPlaying = new Gtk.Fixed(); this.fixedNowPlaying.Name = "fixedNowPlaying"; this.fixedNowPlaying.HasWindow = false; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.imgNowPlaying = new Gtk.Image(); this.imgNowPlaying.WidthRequest = 300; this.imgNowPlaying.HeightRequest = 300; this.imgNowPlaying.Name = "imgNowPlaying"; this.fixedNowPlaying.Add(this.imgNowPlaying); Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.imgNowPlaying])); w9.X = 20; w9.Y = 145; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lArtist = new Gtk.Label(); this.lArtist.WidthRequest = 555; this.lArtist.Name = "lArtist"; this.fixedNowPlaying.Add(this.lArtist); Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lArtist])); w10.X = 10; w10.Y = 10; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lSong = new Gtk.Label(); this.lSong.WidthRequest = 555; this.lSong.Name = "lSong"; this.fixedNowPlaying.Add(this.lSong); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lSong])); w11.X = 10; w11.Y = 34; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lAlbum = new Gtk.Label(); this.lAlbum.WidthRequest = 555; this.lAlbum.Name = "lAlbum"; this.fixedNowPlaying.Add(this.lAlbum); Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lAlbum])); w12.X = 10; w12.Y = 70; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lGenre = new Gtk.Label(); this.lGenre.WidthRequest = 155; this.lGenre.Name = "lGenre"; this.fixedNowPlaying.Add(this.lGenre); Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lGenre])); w13.X = 410; w13.Y = 98; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lProgress = new Gtk.Label(); this.lProgress.WidthRequest = 150; this.lProgress.Name = "lProgress"; this.fixedNowPlaying.Add(this.lProgress); Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lProgress])); w14.X = 353; w14.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lDuration = new Gtk.Label(); this.lDuration.WidthRequest = 60; this.lDuration.Name = "lDuration"; this.fixedNowPlaying.Add(this.lDuration); Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lDuration])); w15.X = 502; w15.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lYear = new Gtk.Label(); this.lYear.WidthRequest = 155; this.lYear.Name = "lYear"; this.fixedNowPlaying.Add(this.lYear); Gtk.Fixed.FixedChild w16 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lYear])); w16.X = 410; w16.Y = 84; w8.Add(this.fixedNowPlaying); this.GtkScrolledWindow1.Add(w8); this.nbDataContainer.Add(this.GtkScrolledWindow1); // Notebook tab this.labelMediaInfo = new Gtk.Label(); this.labelMediaInfo.Name = "labelMediaInfo"; this.labelMediaInfo.LabelProp = Mono.Unix.Catalog.GetString("Playing Now"); this.nbDataContainer.SetTabLabel(this.GtkScrolledWindow1, this.labelMediaInfo); this.labelMediaInfo.ShowAll(); // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.cbPlaylistType = Gtk.ComboBox.NewText(); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbPlaylistType.Name = "cbPlaylistType"; this.cbPlaylistType.Active = 0; this.vbox2.Add(this.cbPlaylistType); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.cbPlaylistType])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.tvPlaylist = new Gtk.TreeView(); this.tvPlaylist.CanFocus = true; this.tvPlaylist.Name = "tvPlaylist"; this.GtkScrolledWindow2.Add(this.tvPlaylist); this.vbox2.Add(this.GtkScrolledWindow2); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow2])); w22.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='aRefreshPlaylist' action='aRefreshPlaylist'/><toolitem name='aRemoveSelected' action='aRemoveSelected'/><toolitem name='aPlaySelected' action='aPlaySelected'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.TooltipMarkup = "Refresh playlist"; this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((Gtk.IconSize)(3)); this.vbox2.Add(this.toolbar1); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w23.Position = 2; w23.Expand = false; w23.Fill = false; this.nbDataContainer.Add(this.vbox2); Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.nbDataContainer[this.vbox2])); w24.Position = 1; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Playlist"); this.nbDataContainer.SetTabLabel(this.vbox2, this.label3); this.label3.ShowAll(); // Notebook tab Gtk.Label w25 = new Gtk.Label(); w25.Visible = true; this.nbDataContainer.Add(w25); this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Configuration"); this.nbDataContainer.SetTabLabel(w25, this.label4); this.label4.ShowAll(); this.hpaned1.Add(this.nbDataContainer); Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbDataContainer])); w26.Resize = false; w26.Shrink = false; this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w27.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.fixed1 = new Gtk.Fixed(); this.fixed1.HeightRequest = 60; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.hsVolume = new Gtk.HScale(null); this.hsVolume.TooltipMarkup = "Volume"; this.hsVolume.WidthRequest = 120; this.hsVolume.CanFocus = true; this.hsVolume.Name = "hsVolume"; this.hsVolume.Adjustment.Upper = 100; this.hsVolume.Adjustment.PageIncrement = 10; this.hsVolume.Adjustment.StepIncrement = 1; this.hsVolume.Adjustment.Value = 51.8987341772152; this.hsVolume.DrawValue = false; this.hsVolume.Digits = 0; this.hsVolume.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsVolume); Gtk.Fixed.FixedChild w28 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsVolume])); w28.X = 730; w28.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.hsProgress = new Gtk.HScale(null); this.hsProgress.TooltipMarkup = "Progress"; this.hsProgress.WidthRequest = 420; this.hsProgress.CanFocus = true; this.hsProgress.Name = "hsProgress"; this.hsProgress.Adjustment.Upper = 100; this.hsProgress.Adjustment.PageIncrement = 10; this.hsProgress.Adjustment.StepIncrement = 1; this.hsProgress.DrawValue = false; this.hsProgress.Digits = 0; this.hsProgress.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsProgress); Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsProgress])); w29.X = 300; w29.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbMute = new Gtk.ToggleButton(); this.tbMute.TooltipMarkup = "Toggle Mute"; this.tbMute.WidthRequest = 32; this.tbMute.HeightRequest = 32; this.tbMute.CanFocus = true; this.tbMute.Name = "tbMute"; this.tbMute.UseUnderline = true; // Container child tbMute.Gtk.Container+ContainerChild Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w31 = new Gtk.HBox(); w31.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w32 = new Gtk.Image(); w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume-mute", Gtk.IconSize.Button, 20); w31.Add(w32); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w34 = new Gtk.Label(); w31.Add(w34); w30.Add(w31); this.tbMute.Add(w30); this.fixed1.Add(this.tbMute); Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbMute])); w38.X = 850; w38.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.bPrevious = new Gtk.Button(); this.bPrevious.TooltipMarkup = "Previous"; this.bPrevious.WidthRequest = 35; this.bPrevious.HeightRequest = 35; this.bPrevious.CanFocus = true; this.bPrevious.Name = "bPrevious"; this.bPrevious.UseUnderline = true; // Container child bPrevious.Gtk.Container+ContainerChild Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w40 = new Gtk.HBox(); w40.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w41 = new Gtk.Image(); w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.LargeToolbar, 24); w40.Add(w41); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w43 = new Gtk.Label(); w40.Add(w43); w39.Add(w40); this.bPrevious.Add(w39); this.fixed1.Add(this.bPrevious); Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPrevious])); w47.X = 14; w47.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbPlay = new Gtk.ToggleButton(); this.tbPlay.TooltipMarkup = "Play"; this.tbPlay.WidthRequest = 35; this.tbPlay.HeightRequest = 35; this.tbPlay.CanFocus = true; this.tbPlay.Name = "tbPlay"; this.tbPlay.UseUnderline = true; // Container child tbPlay.Gtk.Container+ContainerChild Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w49 = new Gtk.HBox(); w49.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w50 = new Gtk.Image(); w50.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.LargeToolbar, 24); w49.Add(w50); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w52 = new Gtk.Label(); w49.Add(w52); w48.Add(w49); this.tbPlay.Add(w48); this.fixed1.Add(this.tbPlay); Gtk.Fixed.FixedChild w56 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbPlay])); w56.X = 46; w56.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbStop = new Gtk.ToggleButton(); this.tbStop.TooltipMarkup = "Stop"; this.tbStop.WidthRequest = 35; this.tbStop.HeightRequest = 35; this.tbStop.CanFocus = true; this.tbStop.Name = "tbStop"; this.tbStop.UseUnderline = true; // Container child tbStop.Gtk.Container+ContainerChild Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w58 = new Gtk.HBox(); w58.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w59 = new Gtk.Image(); w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.LargeToolbar, 24); w58.Add(w59); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w61 = new Gtk.Label(); w58.Add(w61); w57.Add(w58); this.tbStop.Add(w57); this.fixed1.Add(this.tbStop); Gtk.Fixed.FixedChild w65 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbStop])); w65.X = 78; w65.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bNext = new Gtk.Button(); this.bNext.TooltipMarkup = "Next"; this.bNext.WidthRequest = 35; this.bNext.HeightRequest = 35; this.bNext.CanFocus = true; this.bNext.Name = "bNext"; this.bNext.UseUnderline = true; // Container child bNext.Gtk.Container+ContainerChild Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w67 = new Gtk.HBox(); w67.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w68 = new Gtk.Image(); w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.LargeToolbar, 24); w67.Add(w68); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w70 = new Gtk.Label(); w67.Add(w70); w66.Add(w67); this.bNext.Add(w66); this.fixed1.Add(this.bNext); Gtk.Fixed.FixedChild w74 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bNext])); w74.X = 110; w74.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bRepeat = new Gtk.Button(); this.bRepeat.TooltipMarkup = "Toggle Repeat Modes"; this.bRepeat.WidthRequest = 28; this.bRepeat.HeightRequest = 28; this.bRepeat.CanFocus = true; this.bRepeat.Name = "bRepeat"; this.bRepeat.UseUnderline = true; // Container child bRepeat.Gtk.Container+ContainerChild Gtk.Alignment w75 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w76 = new Gtk.HBox(); w76.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w77 = new Gtk.Image(); w77.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-redo", Gtk.IconSize.Menu, 16); w76.Add(w77); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w79 = new Gtk.Label(); w76.Add(w79); w75.Add(w76); this.bRepeat.Add(w75); this.fixed1.Add(this.bRepeat); Gtk.Fixed.FixedChild w83 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bRepeat])); w83.X = 160; w83.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bShuffle = new Gtk.Button(); this.bShuffle.TooltipMarkup = "Toggle Shuffel Mode"; this.bShuffle.WidthRequest = 28; this.bShuffle.HeightRequest = 28; this.bShuffle.CanFocus = true; this.bShuffle.Name = "bShuffle"; this.bShuffle.UseUnderline = true; // Container child bShuffle.Gtk.Container+ContainerChild Gtk.Alignment w84 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w85 = new Gtk.HBox(); w85.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w86 = new Gtk.Image(); w86.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_chart-toggle-legend", Gtk.IconSize.Menu, 16); w85.Add(w86); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w88 = new Gtk.Label(); w85.Add(w88); w84.Add(w85); this.bShuffle.Add(w84); this.fixed1.Add(this.bShuffle); Gtk.Fixed.FixedChild w92 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bShuffle])); w92.X = 185; w92.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bPartyMode = new Gtk.Button(); this.bPartyMode.TooltipMarkup = "Toggle Party Mode"; this.bPartyMode.WidthRequest = 28; this.bPartyMode.HeightRequest = 28; this.bPartyMode.CanFocus = true; this.bPartyMode.Name = "bPartyMode"; this.bPartyMode.UseUnderline = true; // Container child bPartyMode.Gtk.Container+ContainerChild Gtk.Alignment w93 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w94 = new Gtk.HBox(); w94.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w95 = new Gtk.Image(); w95.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_filters", Gtk.IconSize.Menu, 16); w94.Add(w95); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w97 = new Gtk.Label(); w94.Add(w97); w93.Add(w94); this.bPartyMode.Add(w93); this.fixed1.Add(this.bPartyMode); Gtk.Fixed.FixedChild w101 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPartyMode])); w101.X = 210; w101.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.imgLoading = new Gtk.Image(); this.imgLoading.TooltipMarkup = "Loading data..."; this.imgLoading.Name = "imgLoading"; this.imgLoading.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-jump-to", Gtk.IconSize.LargeToolbar, 24); this.fixed1.Add(this.imgLoading); Gtk.Fixed.FixedChild w102 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.imgLoading])); w102.X = 255; w102.Y = 13; this.vbox1.Add(this.fixed1); Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox1[this.fixed1])); w103.Position = 2; w103.Expand = false; w103.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.QuitAction.Activated += new System.EventHandler(this.OnExit); this.MusicAction.Activated += new System.EventHandler(this.click_UpdateMusicLibrary); this.VideoAction.Activated += new System.EventHandler(this.click_UpdateVideoLibrary); this.clearAction.Activated += new System.EventHandler(this.aClearPlaylist_click); this.aRefreshPlaylist.Activated += new System.EventHandler(this.aRefreshPlaylist_activated); this.aRemoveSelected.Activated += new System.EventHandler(this.aRemoveSelected_activated); this.aPlaySelected.Activated += new System.EventHandler(this.aPlaySelected_activated); this.cbShareType.Changed += new System.EventHandler(this.cbShareBrowser_changed); this.tvShareBrowser.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvShareBrowser_release); this.cbPlaylistType.Changed += new System.EventHandler(this.cbPlaylistType_changed); this.tvPlaylist.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvPlaylist_buttonRelease); this.hsVolume.ValueChanged += new System.EventHandler(this.hsVolume_valueChanged); this.hsProgress.ChangeValue += new Gtk.ChangeValueHandler(this.hsProgress_changeValue); this.tbMute.Released += new System.EventHandler(this.tbMute_released); this.bPrevious.Released += new System.EventHandler(this.bPrevious_released); this.tbPlay.Released += new System.EventHandler(this.tbPlay_released); this.tbStop.Released += new System.EventHandler(this.tbStop_released); this.bNext.Released += new System.EventHandler(this.bNext_released); this.bRepeat.Activated += new System.EventHandler(this.bRepeat_click); this.bShuffle.Released += new System.EventHandler(this.bShuffle_release); this.bPartyMode.Released += new System.EventHandler(this.bPartyMode_released); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Embroidr.UI.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.FileAction, null); this.findAction = new Gtk.Action("findAction", null, null, "gtk-find"); w2.Add(this.findAction, null); this.FindAction = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null); this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find"); w2.Add(this.FindAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w2.Add(this.saveAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Embroidr.UI.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Embroidr"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(2)); // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>"); this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2"))); this.menubar2.Name = "menubar2"; this.vbox1.Add(this.menubar2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/><toolitem action='saveAction'/></toolbar></ui>"); this.toolbar3 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3"))); this.toolbar3.Name = "toolbar3"; this.toolbar3.ShowArrow = false; this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned2 = new Gtk.HPaned(); this.hpaned2.CanFocus = true; this.hpaned2.Name = "hpaned2"; this.hpaned2.Position = 160; // Container child hpaned2.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.pesTree = new Gtk.TreeView(); this.pesTree.CanFocus = true; this.pesTree.Name = "pesTree"; this.pesTree.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.pesTree); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w6.Position = 0; this.hpaned2.Add(this.vbox2); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2])); w7.Resize = false; // Container child hpaned2.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.pesView = new Gtk.NodeView(); this.pesView.CanFocus = true; this.pesView.Name = "pesView"; this.pesView.HeadersClickable = true; this.GtkScrolledWindow.Add(this.pesView); this.hpaned2.Add(this.GtkScrolledWindow); this.vbox1.Add(this.hpaned2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2])); w10.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.pixbufSize = new Gtk.HScale(null); this.pixbufSize.CanFocus = true; this.pixbufSize.Name = "pixbufSize"; this.pixbufSize.Adjustment.Lower = 16; this.pixbufSize.Adjustment.Upper = 255; this.pixbufSize.Adjustment.PageIncrement = 10; this.pixbufSize.Adjustment.StepIncrement = 1; this.pixbufSize.Adjustment.Value = 90; this.pixbufSize.DrawValue = true; this.pixbufSize.Digits = 0; this.pixbufSize.ValuePos = ((Gtk.PositionType)(2)); this.vbox1.Add(this.pixbufSize); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.pixbufSize])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w12.Position = 4; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 699; this.DefaultHeight = 638; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated); this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.pixbufSize.ValueChanged += new System.EventHandler(this.OnPixbufSizeValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XBMControlAction = new Gtk.Action("XBMControlAction", Mono.Unix.Catalog.GetString("XBMControl"), null, null); this.XBMControlAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMControl"); w1.Add(this.XBMControlAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-disconnect"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.QuitAction, null); this.XBMCAction = new Gtk.Action("XBMCAction", Mono.Unix.Catalog.GetString("XBMC"), null, null); this.XBMCAction.ShortLabel = Mono.Unix.Catalog.GetString("XBMC"); w1.Add(this.XBMCAction, null); this.PlaylistAction = new Gtk.Action("PlaylistAction", Mono.Unix.Catalog.GetString("Playlist"), null, null); this.PlaylistAction.ShortLabel = Mono.Unix.Catalog.GetString("Playlist"); w1.Add(this.PlaylistAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.UpdateMusicLibraryAction = new Gtk.Action("UpdateMusicLibraryAction", Mono.Unix.Catalog.GetString("Update music library"), null, null); this.UpdateMusicLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.UpdateMusicLibraryAction, null); this.UpdateVideoLibraryAction = new Gtk.Action("UpdateVideoLibraryAction", Mono.Unix.Catalog.GetString("Update video library"), null, null); this.UpdateVideoLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.UpdateVideoLibraryAction, null); this.UpdateLibraryAction = new Gtk.Action("UpdateLibraryAction", Mono.Unix.Catalog.GetString("Update Library"), null, null); this.UpdateLibraryAction.ShortLabel = Mono.Unix.Catalog.GetString("Library"); w1.Add(this.UpdateLibraryAction, null); this.MusicAction = new Gtk.Action("MusicAction", Mono.Unix.Catalog.GetString("Music"), null, "gtk-harddisk"); this.MusicAction.ShortLabel = Mono.Unix.Catalog.GetString("Update music library"); w1.Add(this.MusicAction, null); this.VideoAction = new Gtk.Action("VideoAction", Mono.Unix.Catalog.GetString("Video"), null, "gtk-harddisk"); this.VideoAction.ShortLabel = Mono.Unix.Catalog.GetString("Update video library"); w1.Add(this.VideoAction, null); this.RestartAction = new Gtk.Action("RestartAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-refresh"); this.RestartAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart"); w1.Add(this.RestartAction, null); this.RebootAction = new Gtk.Action("RebootAction", Mono.Unix.Catalog.GetString("Reboot"), null, "gtk-refresh"); this.RebootAction.ShortLabel = Mono.Unix.Catalog.GetString("Reboot"); w1.Add(this.RebootAction, null); this.ShutdownAction = new Gtk.Action("ShutdownAction", Mono.Unix.Catalog.GetString("Shutdown"), null, "gtk-quit"); this.ShutdownAction.ShortLabel = Mono.Unix.Catalog.GetString("Shutdown"); w1.Add(this.ShutdownAction, null); this.ConfigurationAction = new Gtk.Action("ConfigurationAction", Mono.Unix.Catalog.GetString("Configuration"), null, "gtk-edit"); this.ConfigurationAction.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w1.Add(this.ConfigurationAction, null); this.clearAction = new Gtk.Action("clearAction", null, Mono.Unix.Catalog.GetString("Clear playlist"), "gtk-clear"); w1.Add(this.clearAction, null); this.openAction = new Gtk.Action("openAction", null, null, "gtk-open"); w1.Add(this.openAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w1.Add(this.saveAction, null); this.saveAsAction = new Gtk.Action("saveAsAction", null, null, "gtk-save-as"); w1.Add(this.saveAsAction, null); this.aRefreshPlaylist = new Gtk.Action("aRefreshPlaylist", null, null, "gtk-refresh"); w1.Add(this.aRefreshPlaylist, null); this.aRemoveSelected = new Gtk.Action("aRemoveSelected", null, Mono.Unix.Catalog.GetString("Remove selected item"), "gtk-remove"); w1.Add(this.aRemoveSelected, null); this.aPlaySelected = new Gtk.Action("aPlaySelected", null, Mono.Unix.Catalog.GetString("Play selected item"), "gtk-media-play"); w1.Add(this.aPlaySelected, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.WidthRequest = 900; this.HeightRequest = 600; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("XBMControl Evo"); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Resizable = false; this.AllowGrow = false; this.DefaultWidth = 800; this.DefaultHeight = 600; // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XBMControlAction' action='XBMControlAction'><menuitem name='ConfigurationAction' action='ConfigurationAction'/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='XBMCAction' action='XBMCAction'><menu name='UpdateLibraryAction' action='UpdateLibraryAction'><menuitem name='MusicAction' action='MusicAction'/><menuitem name='VideoAction' action='VideoAction'/></menu><menuitem name='RestartAction' action='RestartAction'/><menuitem name='RebootAction' action='RebootAction'/><menuitem name='ShutdownAction' action='ShutdownAction'/></menu><menu name='PlaylistAction' action='PlaylistAction'/><menu name='HelpAction' action='HelpAction'/></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 300; // Container child hpaned1.Gtk.Paned+PanedChild this.nbBrowser = new Gtk.Notebook(); this.nbBrowser.WidthRequest = 300; this.nbBrowser.CanFocus = true; this.nbBrowser.Name = "nbBrowser"; this.nbBrowser.CurrentPage = 0; // Container child nbBrowser.Gtk.Notebook+NotebookChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.cbShareType = Gtk.ComboBox.NewText(); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Pictures")); this.cbShareType.AppendText(Mono.Unix.Catalog.GetString("Files")); this.cbShareType.Name = "cbShareType"; this.cbShareType.Active = 0; this.vbox3.Add(this.cbShareType); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbShareType])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.tvShareBrowser = new Gtk.TreeView(); this.tvShareBrowser.CanFocus = true; this.tvShareBrowser.Name = "tvShareBrowser"; this.GtkScrolledWindow.Add(this.tvShareBrowser); this.vbox3.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow])); w5.Position = 1; this.nbBrowser.Add(this.vbox3); // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Shares"); this.nbBrowser.SetTabLabel(this.vbox3, this.label2); this.label2.ShowAll(); this.hpaned1.Add(this.nbBrowser); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbBrowser])); w7.Resize = false; w7.Shrink = false; // Container child hpaned1.Gtk.Paned+PanedChild this.nbDataContainer = new Gtk.Notebook(); this.nbDataContainer.CanFocus = true; this.nbDataContainer.Name = "nbDataContainer"; this.nbDataContainer.CurrentPage = 0; this.nbDataContainer.ShowBorder = false; this.nbDataContainer.Scrollable = true; // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild Gtk.Viewport w8 = new Gtk.Viewport(); w8.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.fixedNowPlaying = new Gtk.Fixed(); this.fixedNowPlaying.Name = "fixedNowPlaying"; this.fixedNowPlaying.HasWindow = false; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.imgNowPlaying = new Gtk.Image(); this.imgNowPlaying.WidthRequest = 300; this.imgNowPlaying.HeightRequest = 300; this.imgNowPlaying.Name = "imgNowPlaying"; this.fixedNowPlaying.Add(this.imgNowPlaying); Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.imgNowPlaying])); w9.X = 20; w9.Y = 145; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lArtist = new Gtk.Label(); this.lArtist.WidthRequest = 555; this.lArtist.Name = "lArtist"; this.fixedNowPlaying.Add(this.lArtist); Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lArtist])); w10.X = 10; w10.Y = 10; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lSong = new Gtk.Label(); this.lSong.WidthRequest = 555; this.lSong.Name = "lSong"; this.fixedNowPlaying.Add(this.lSong); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lSong])); w11.X = 10; w11.Y = 34; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lAlbum = new Gtk.Label(); this.lAlbum.WidthRequest = 555; this.lAlbum.Name = "lAlbum"; this.fixedNowPlaying.Add(this.lAlbum); Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lAlbum])); w12.X = 10; w12.Y = 70; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lGenre = new Gtk.Label(); this.lGenre.WidthRequest = 155; this.lGenre.Name = "lGenre"; this.fixedNowPlaying.Add(this.lGenre); Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lGenre])); w13.X = 410; w13.Y = 98; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lProgress = new Gtk.Label(); this.lProgress.WidthRequest = 150; this.lProgress.Name = "lProgress"; this.fixedNowPlaying.Add(this.lProgress); Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lProgress])); w14.X = 353; w14.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lDuration = new Gtk.Label(); this.lDuration.WidthRequest = 60; this.lDuration.Name = "lDuration"; this.fixedNowPlaying.Add(this.lDuration); Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lDuration])); w15.X = 502; w15.Y = 430; // Container child fixedNowPlaying.Gtk.Fixed+FixedChild this.lYear = new Gtk.Label(); this.lYear.WidthRequest = 155; this.lYear.Name = "lYear"; this.fixedNowPlaying.Add(this.lYear); Gtk.Fixed.FixedChild w16 = ((Gtk.Fixed.FixedChild)(this.fixedNowPlaying[this.lYear])); w16.X = 410; w16.Y = 84; w8.Add(this.fixedNowPlaying); this.GtkScrolledWindow1.Add(w8); this.nbDataContainer.Add(this.GtkScrolledWindow1); // Notebook tab this.labelMediaInfo = new Gtk.Label(); this.labelMediaInfo.Name = "labelMediaInfo"; this.labelMediaInfo.LabelProp = Mono.Unix.Catalog.GetString("Playing Now"); this.nbDataContainer.SetTabLabel(this.GtkScrolledWindow1, this.labelMediaInfo); this.labelMediaInfo.ShowAll(); // Container child nbDataContainer.Gtk.Notebook+NotebookChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.cbPlaylistType = Gtk.ComboBox.NewText(); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Music")); this.cbPlaylistType.AppendText(Mono.Unix.Catalog.GetString("Video")); this.cbPlaylistType.Name = "cbPlaylistType"; this.cbPlaylistType.Active = 0; this.vbox2.Add(this.cbPlaylistType); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.cbPlaylistType])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.tvPlaylist = new Gtk.TreeView(); this.tvPlaylist.CanFocus = true; this.tvPlaylist.Name = "tvPlaylist"; this.GtkScrolledWindow2.Add(this.tvPlaylist); this.vbox2.Add(this.GtkScrolledWindow2); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow2])); w22.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='clearAction' action='clearAction'/><toolitem name='aRefreshPlaylist' action='aRefreshPlaylist'/><toolitem name='aRemoveSelected' action='aRemoveSelected'/><toolitem name='aPlaySelected' action='aPlaySelected'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.TooltipMarkup = "Refresh playlist"; this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.toolbar1.IconSize = ((Gtk.IconSize)(3)); this.vbox2.Add(this.toolbar1); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1])); w23.Position = 2; w23.Expand = false; w23.Fill = false; this.nbDataContainer.Add(this.vbox2); Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.nbDataContainer[this.vbox2])); w24.Position = 1; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Playlist"); this.nbDataContainer.SetTabLabel(this.vbox2, this.label3); this.label3.ShowAll(); // Notebook tab Gtk.Label w25 = new Gtk.Label(); w25.Visible = true; this.nbDataContainer.Add(w25); this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Configuration"); this.nbDataContainer.SetTabLabel(w25, this.label4); this.label4.ShowAll(); this.hpaned1.Add(this.nbDataContainer); Gtk.Paned.PanedChild w26 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.nbDataContainer])); w26.Resize = false; w26.Shrink = false; this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w27.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.fixed1 = new Gtk.Fixed(); this.fixed1.HeightRequest = 60; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.hsVolume = new Gtk.HScale(null); this.hsVolume.TooltipMarkup = "Volume"; this.hsVolume.WidthRequest = 120; this.hsVolume.CanFocus = true; this.hsVolume.Name = "hsVolume"; this.hsVolume.Adjustment.Upper = 100; this.hsVolume.Adjustment.PageIncrement = 10; this.hsVolume.Adjustment.StepIncrement = 1; this.hsVolume.Adjustment.Value = 51.8987341772152; this.hsVolume.DrawValue = false; this.hsVolume.Digits = 0; this.hsVolume.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsVolume); Gtk.Fixed.FixedChild w28 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsVolume])); w28.X = 730; w28.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.hsProgress = new Gtk.HScale(null); this.hsProgress.TooltipMarkup = "Progress"; this.hsProgress.WidthRequest = 420; this.hsProgress.CanFocus = true; this.hsProgress.Name = "hsProgress"; this.hsProgress.Adjustment.Upper = 100; this.hsProgress.Adjustment.PageIncrement = 10; this.hsProgress.Adjustment.StepIncrement = 1; this.hsProgress.DrawValue = false; this.hsProgress.Digits = 0; this.hsProgress.ValuePos = ((Gtk.PositionType)(2)); this.fixed1.Add(this.hsProgress); Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hsProgress])); w29.X = 300; w29.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbMute = new Gtk.ToggleButton(); this.tbMute.TooltipMarkup = "Toggle Mute"; this.tbMute.WidthRequest = 32; this.tbMute.HeightRequest = 32; this.tbMute.CanFocus = true; this.tbMute.Name = "tbMute"; this.tbMute.UseUnderline = true; // Container child tbMute.Gtk.Container+ContainerChild Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w31 = new Gtk.HBox(); w31.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w32 = new Gtk.Image(); w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_volume-mute", Gtk.IconSize.Button, 20); w31.Add(w32); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w34 = new Gtk.Label(); w31.Add(w34); w30.Add(w31); this.tbMute.Add(w30); this.fixed1.Add(this.tbMute); Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbMute])); w38.X = 850; w38.Y = 8; // Container child fixed1.Gtk.Fixed+FixedChild this.bPrevious = new Gtk.Button(); this.bPrevious.TooltipMarkup = "Previous"; this.bPrevious.WidthRequest = 35; this.bPrevious.HeightRequest = 35; this.bPrevious.CanFocus = true; this.bPrevious.Name = "bPrevious"; this.bPrevious.UseUnderline = true; // Container child bPrevious.Gtk.Container+ContainerChild Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w40 = new Gtk.HBox(); w40.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w41 = new Gtk.Image(); w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-previous", Gtk.IconSize.LargeToolbar, 24); w40.Add(w41); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w43 = new Gtk.Label(); w40.Add(w43); w39.Add(w40); this.bPrevious.Add(w39); this.fixed1.Add(this.bPrevious); Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPrevious])); w47.X = 14; w47.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbPlay = new Gtk.ToggleButton(); this.tbPlay.TooltipMarkup = "Play"; this.tbPlay.WidthRequest = 35; this.tbPlay.HeightRequest = 35; this.tbPlay.CanFocus = true; this.tbPlay.Name = "tbPlay"; this.tbPlay.UseUnderline = true; // Container child tbPlay.Gtk.Container+ContainerChild Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w49 = new Gtk.HBox(); w49.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w50 = new Gtk.Image(); w50.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-play", Gtk.IconSize.LargeToolbar, 24); w49.Add(w50); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w52 = new Gtk.Label(); w49.Add(w52); w48.Add(w49); this.tbPlay.Add(w48); this.fixed1.Add(this.tbPlay); Gtk.Fixed.FixedChild w56 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbPlay])); w56.X = 46; w56.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.tbStop = new Gtk.ToggleButton(); this.tbStop.TooltipMarkup = "Stop"; this.tbStop.WidthRequest = 35; this.tbStop.HeightRequest = 35; this.tbStop.CanFocus = true; this.tbStop.Name = "tbStop"; this.tbStop.UseUnderline = true; // Container child tbStop.Gtk.Container+ContainerChild Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w58 = new Gtk.HBox(); w58.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w59 = new Gtk.Image(); w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-stop", Gtk.IconSize.LargeToolbar, 24); w58.Add(w59); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w61 = new Gtk.Label(); w58.Add(w61); w57.Add(w58); this.tbStop.Add(w57); this.fixed1.Add(this.tbStop); Gtk.Fixed.FixedChild w65 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.tbStop])); w65.X = 78; w65.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bNext = new Gtk.Button(); this.bNext.TooltipMarkup = "Next"; this.bNext.WidthRequest = 35; this.bNext.HeightRequest = 35; this.bNext.CanFocus = true; this.bNext.Name = "bNext"; this.bNext.UseUnderline = true; // Container child bNext.Gtk.Container+ContainerChild Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w67 = new Gtk.HBox(); w67.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w68 = new Gtk.Image(); w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-media-next", Gtk.IconSize.LargeToolbar, 24); w67.Add(w68); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w70 = new Gtk.Label(); w67.Add(w70); w66.Add(w67); this.bNext.Add(w66); this.fixed1.Add(this.bNext); Gtk.Fixed.FixedChild w74 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bNext])); w74.X = 110; w74.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bRepeat = new Gtk.Button(); this.bRepeat.TooltipMarkup = "Toggle Repeat Modes"; this.bRepeat.WidthRequest = 28; this.bRepeat.HeightRequest = 28; this.bRepeat.CanFocus = true; this.bRepeat.Name = "bRepeat"; this.bRepeat.UseUnderline = true; // Container child bRepeat.Gtk.Container+ContainerChild Gtk.Alignment w75 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w76 = new Gtk.HBox(); w76.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w77 = new Gtk.Image(); w77.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-redo", Gtk.IconSize.Menu, 16); w76.Add(w77); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w79 = new Gtk.Label(); w76.Add(w79); w75.Add(w76); this.bRepeat.Add(w75); this.fixed1.Add(this.bRepeat); Gtk.Fixed.FixedChild w83 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bRepeat])); w83.X = 160; w83.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bShuffle = new Gtk.Button(); this.bShuffle.TooltipMarkup = "Toggle Shuffel Mode"; this.bShuffle.WidthRequest = 28; this.bShuffle.HeightRequest = 28; this.bShuffle.CanFocus = true; this.bShuffle.Name = "bShuffle"; this.bShuffle.UseUnderline = true; // Container child bShuffle.Gtk.Container+ContainerChild Gtk.Alignment w84 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w85 = new Gtk.HBox(); w85.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w86 = new Gtk.Image(); w86.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_chart-toggle-legend", Gtk.IconSize.Menu, 16); w85.Add(w86); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w88 = new Gtk.Label(); w85.Add(w88); w84.Add(w85); this.bShuffle.Add(w84); this.fixed1.Add(this.bShuffle); Gtk.Fixed.FixedChild w92 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bShuffle])); w92.X = 185; w92.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.bPartyMode = new Gtk.Button(); this.bPartyMode.TooltipMarkup = "Toggle Party Mode"; this.bPartyMode.WidthRequest = 28; this.bPartyMode.HeightRequest = 28; this.bPartyMode.CanFocus = true; this.bPartyMode.Name = "bPartyMode"; this.bPartyMode.UseUnderline = true; // Container child bPartyMode.Gtk.Container+ContainerChild Gtk.Alignment w93 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w94 = new Gtk.HBox(); w94.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w95 = new Gtk.Image(); w95.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_filters", Gtk.IconSize.Menu, 16); w94.Add(w95); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w97 = new Gtk.Label(); w94.Add(w97); w93.Add(w94); this.bPartyMode.Add(w93); this.fixed1.Add(this.bPartyMode); Gtk.Fixed.FixedChild w101 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.bPartyMode])); w101.X = 210; w101.Y = 10; // Container child fixed1.Gtk.Fixed+FixedChild this.imgLoading = new Gtk.Image(); this.imgLoading.TooltipMarkup = "Loading data..."; this.imgLoading.Name = "imgLoading"; this.imgLoading.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-jump-to", Gtk.IconSize.LargeToolbar, 24); this.fixed1.Add(this.imgLoading); Gtk.Fixed.FixedChild w102 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.imgLoading])); w102.X = 255; w102.Y = 13; this.vbox1.Add(this.fixed1); Gtk.Box.BoxChild w103 = ((Gtk.Box.BoxChild)(this.vbox1[this.fixed1])); w103.Position = 2; w103.Expand = false; w103.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.QuitAction.Activated += new System.EventHandler(this.OnExit); this.MusicAction.Activated += new System.EventHandler(this.click_UpdateMusicLibrary); this.VideoAction.Activated += new System.EventHandler(this.click_UpdateVideoLibrary); this.clearAction.Activated += new System.EventHandler(this.aClearPlaylist_click); this.aRefreshPlaylist.Activated += new System.EventHandler(this.aRefreshPlaylist_activated); this.aRemoveSelected.Activated += new System.EventHandler(this.aRemoveSelected_activated); this.aPlaySelected.Activated += new System.EventHandler(this.aPlaySelected_activated); this.cbShareType.Changed += new System.EventHandler(this.cbShareBrowser_changed); this.tvShareBrowser.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvShareBrowser_release); this.cbPlaylistType.Changed += new System.EventHandler(this.cbPlaylistType_changed); this.tvPlaylist.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.tvPlaylist_buttonRelease); this.hsVolume.ValueChanged += new System.EventHandler(this.hsVolume_valueChanged); this.hsProgress.ChangeValue += new Gtk.ChangeValueHandler(this.hsProgress_changeValue); this.tbMute.Released += new System.EventHandler(this.tbMute_released); this.bPrevious.Released += new System.EventHandler(this.bPrevious_released); this.tbPlay.Released += new System.EventHandler(this.tbPlay_released); this.tbStop.Released += new System.EventHandler(this.tbStop_released); this.bNext.Released += new System.EventHandler(this.bNext_released); this.bRepeat.Activated += new System.EventHandler(this.bRepeat_click); this.bShuffle.Released += new System.EventHandler(this.bShuffle_release); this.bPartyMode.Released += new System.EventHandler(this.bPartyMode_released); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Embroidr.UI.MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.FileAction, null); this.findAction = new Gtk.Action("findAction", null, null, "gtk-find"); w2.Add(this.findAction, null); this.FindAction = new Gtk.Action("FindAction", Mono.Unix.Catalog.GetString("Find"), null, null); this.FindAction.ShortLabel = Mono.Unix.Catalog.GetString("Find"); w2.Add(this.FindAction, null); this.saveAction = new Gtk.Action("saveAction", null, null, "gtk-save"); w2.Add(this.saveAction, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Embroidr.UI.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Embroidr"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_insert_special_character", Gtk.IconSize.Menu, 16); this.WindowPosition = ((Gtk.WindowPosition)(2)); // Container child Embroidr.UI.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar2'><menu action='FileAction'><menuitem action='FindAction'/></menu></menubar></ui>"); this.menubar2 = ((Gtk.MenuBar)(w1.GetWidget("/menubar2"))); this.menubar2.Name = "menubar2"; this.vbox1.Add(this.menubar2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar3'><toolitem action='findAction'/><toolitem action='saveAction'/></toolbar></ui>"); this.toolbar3 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar3"))); this.toolbar3.Name = "toolbar3"; this.toolbar3.ShowArrow = false; this.toolbar3.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar3])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hpaned2 = new Gtk.HPaned(); this.hpaned2.CanFocus = true; this.hpaned2.Name = "hpaned2"; this.hpaned2.Position = 160; // Container child hpaned2.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.pesTree = new Gtk.TreeView(); this.pesTree.CanFocus = true; this.pesTree.Name = "pesTree"; this.pesTree.HeadersClickable = true; this.GtkScrolledWindow1.Add(this.pesTree); this.vbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow1])); w6.Position = 0; this.hpaned2.Add(this.vbox2); Gtk.Paned.PanedChild w7 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.vbox2])); w7.Resize = false; // Container child hpaned2.Gtk.Paned+PanedChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.pesView = new Gtk.NodeView(); this.pesView.CanFocus = true; this.pesView.Name = "pesView"; this.pesView.HeadersClickable = true; this.GtkScrolledWindow.Add(this.pesView); this.hpaned2.Add(this.GtkScrolledWindow); this.vbox1.Add(this.hpaned2); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2])); w10.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.pixbufSize = new Gtk.HScale(null); this.pixbufSize.CanFocus = true; this.pixbufSize.Name = "pixbufSize"; this.pixbufSize.Adjustment.Lower = 16; this.pixbufSize.Adjustment.Upper = 255; this.pixbufSize.Adjustment.PageIncrement = 10; this.pixbufSize.Adjustment.StepIncrement = 1; this.pixbufSize.Adjustment.Value = 90; this.pixbufSize.DrawValue = true; this.pixbufSize.Digits = 0; this.pixbufSize.ValuePos = ((Gtk.PositionType)(2)); this.vbox1.Add(this.pixbufSize); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.pixbufSize])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w12.Position = 4; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 699; this.DefaultHeight = 638; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.findAction.Activated += new System.EventHandler(this.OnFindActionActivated); this.saveAction.Activated += new System.EventHandler(this.OnSaveActionActivated); this.pixbufSize.ValueChanged += new System.EventHandler(this.OnPixbufSizeValueChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Docky.Interface.DockPreferences Stetic.BinContainer.Attach(this); this.Name = "Docky.Interface.DockPreferences"; // Container child Docky.Interface.DockPreferences.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table3 = new Gtk.Table(((uint)(7)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.autohide_box = Gtk.ComboBox.NewText(); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("None")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Autohide")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Intellihide")); this.autohide_box.AppendText(Mono.Unix.Catalog.GetString("Window Dodge")); this.autohide_box.Name = "autohide_box"; this.autohide_box.Active = 3; this.table3.Add(this.autohide_box); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.autohide_box])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.fade_on_hide_check = new Gtk.CheckButton(); this.fade_on_hide_check.TooltipMarkup = "Fade out dock instead of slide off screen"; this.fade_on_hide_check.CanFocus = true; this.fade_on_hide_check.Name = "fade_on_hide_check"; this.fade_on_hide_check.Label = Mono.Unix.Catalog.GetString("_Fade On Hide"); this.fade_on_hide_check.DrawIndicator = true; this.fade_on_hide_check.UseUnderline = true; this.table3.Add(this.fade_on_hide_check); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.fade_on_hide_check])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.hide_desc = new Gtk.Label(); this.hide_desc.Name = "hide_desc"; this.hide_desc.Yalign = 0F; this.hide_desc.UseMarkup = true; this.table3.Add(this.hide_desc); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.hide_desc])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.icon_scale = new Gtk.HScale(null); this.icon_scale.CanFocus = true; this.icon_scale.Name = "icon_scale"; this.icon_scale.Adjustment.Upper = 100; this.icon_scale.Adjustment.PageIncrement = 10; this.icon_scale.Adjustment.StepIncrement = 1; this.icon_scale.DrawValue = true; this.icon_scale.Digits = 0; this.icon_scale.ValuePos = ((Gtk.PositionType)(0)); this.table3.Add(this.icon_scale); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.icon_scale])); w4.TopAttach = ((uint)(2)); w4.BottomAttach = ((uint)(3)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(3)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.CanFocus = true; this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.Yalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("_Icon Size:"); this.label1.UseUnderline = true; this.table3.Add(this.label1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table3[this.label1])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.CanFocus = true; this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("_Hiding:"); this.label3.UseUnderline = true; this.table3.Add(this.label3); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table3[this.label3])); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.panel_mode_button = new Gtk.CheckButton(); this.panel_mode_button.CanFocus = true; this.panel_mode_button.Name = "panel_mode_button"; this.panel_mode_button.Label = Mono.Unix.Catalog.GetString("_Panel Mode"); this.panel_mode_button.DrawIndicator = true; this.panel_mode_button.UseUnderline = true; this.table3.Add(this.panel_mode_button); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table3[this.panel_mode_button])); w7.TopAttach = ((uint)(4)); w7.BottomAttach = ((uint)(5)); w7.RightAttach = ((uint)(3)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.threedee_check = new Gtk.CheckButton(); this.threedee_check.CanFocus = true; this.threedee_check.Name = "threedee_check"; this.threedee_check.Label = Mono.Unix.Catalog.GetString("3D Back_ground"); this.threedee_check.DrawIndicator = true; this.threedee_check.UseUnderline = true; this.table3.Add(this.threedee_check); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table3[this.threedee_check])); w8.TopAttach = ((uint)(5)); w8.BottomAttach = ((uint)(6)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.window_manager_check = new Gtk.CheckButton(); this.window_manager_check.CanFocus = true; this.window_manager_check.Name = "window_manager_check"; this.window_manager_check.Label = Mono.Unix.Catalog.GetString("_Manage Windows Without Launcher"); this.window_manager_check.DrawIndicator = true; this.window_manager_check.UseUnderline = true; this.window_manager_check.Xalign = 0F; this.table3.Add(this.window_manager_check); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table3[this.window_manager_check])); w9.TopAttach = ((uint)(6)); w9.BottomAttach = ((uint)(7)); w9.RightAttach = ((uint)(3)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.zoom_checkbutton = new Gtk.CheckButton(); this.zoom_checkbutton.CanFocus = true; this.zoom_checkbutton.Name = "zoom_checkbutton"; this.zoom_checkbutton.Label = Mono.Unix.Catalog.GetString("_Zoom:"); this.zoom_checkbutton.DrawIndicator = true; this.zoom_checkbutton.UseUnderline = true; this.zoom_checkbutton.Xalign = 1F; this.table3.Add(this.zoom_checkbutton); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table3[this.zoom_checkbutton])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.zoom_scale = new Gtk.HScale(null); this.zoom_scale.CanFocus = true; this.zoom_scale.Name = "zoom_scale"; this.zoom_scale.UpdatePolicy = ((Gtk.UpdateType)(1)); this.zoom_scale.Adjustment.Upper = 100; this.zoom_scale.Adjustment.PageIncrement = 10; this.zoom_scale.Adjustment.StepIncrement = 0.01; this.zoom_scale.Adjustment.Value = 20; this.zoom_scale.DrawValue = true; this.zoom_scale.Digits = 2; this.zoom_scale.ValuePos = ((Gtk.PositionType)(0)); this.table3.Add(this.zoom_scale); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table3[this.zoom_scale])); w11.TopAttach = ((uint)(3)); w11.BottomAttach = ((uint)(4)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(3)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table3); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.table3])); w12.Position = 0; w12.Expand = false; w12.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.label1.MnemonicWidget = this.icon_scale; this.label3.MnemonicWidget = this.autohide_box; this.Hide(); this.window_manager_check.Toggled += new System.EventHandler(this.OnWindowManagerCheckToggled); this.threedee_check.Toggled += new System.EventHandler(this.OnThreedeeCheckToggled); this.panel_mode_button.Toggled += new System.EventHandler(this.OnPanelModeButtonToggled); }