Ejemplo n.º 1
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.fixed1           = new Gtk.Fixed();
     this.fixed1.Name      = "fixed1";
     this.fixed1.HasWindow = false;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.button1              = new Gtk.Button();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label        = Mono.Unix.Catalog.GetString("GtkButton");
     this.fixed1.Add(this.button1);
     Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.button1]));
     w1.X = 160;
     w1.Y = 113;
     this.Add(this.fixed1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Ejemplo n.º 2
0
        protected override Gtk.Widget CreateDragSource(Gtk.Widget dragWidget)
        {
            Gtk.Fixed.FixedChild fc = (Gtk.Fixed.FixedChild)gtkfixed [dragWidget];
            if (fc == null)
            {
                return(null);
            }

            dragX = fc.X;
            dragY = fc.Y;

            gtkfixed.Remove(dragWidget);
            gtkfixed.DragEnd += DragEnd;
            return(gtkfixed);
        }
Ejemplo n.º 3
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget Mp3.PreferencesWindow
     this.WidthRequest   = 390;
     this.HeightRequest  = 290;
     this.Name           = "Mp3.PreferencesWindow";
     this.Title          = Mono.Unix.Catalog.GetString("Preferences");
     this.Icon           = Stetic.IconLoader.LoadIcon("gtk-preferences", 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal          = true;
     this.Resizable      = false;
     this.AllowGrow      = false;
     // Container child Mp3.PreferencesWindow.Gtk.Container+ContainerChild
     this.fixedLaytout           = new Gtk.Fixed();
     this.fixedLaytout.Name      = "fixedLaytout";
     this.fixedLaytout.HasWindow = false;
     // Container child fixedLaytout.Gtk.Fixed+FixedChild
     this.behaviorLabel           = new Gtk.Label();
     this.behaviorLabel.Name      = "behaviorLabel";
     this.behaviorLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>Program Behavior</b>");
     this.behaviorLabel.UseMarkup = true;
     this.behaviorLabel.Wrap      = true;
     this.fixedLaytout.Add(this.behaviorLabel);
     Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixedLaytout[this.behaviorLabel]));
     w1.X = 31;
     w1.Y = 31;
     // Container child fixedLaytout.Gtk.Fixed+FixedChild
     this.optionsVertBox         = new Gtk.VBox();
     this.optionsVertBox.Name    = "optionsVertBox";
     this.optionsVertBox.Spacing = 6;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.behaviorButton1               = new Gtk.CheckButton();
     this.behaviorButton1.CanFocus      = true;
     this.behaviorButton1.Name          = "behaviorButton1";
     this.behaviorButton1.Label         = Mono.Unix.Catalog.GetString("Show above all other windows");
     this.behaviorButton1.DrawIndicator = true;
     this.behaviorButton1.UseUnderline  = true;
     this.optionsVertBox.Add(this.behaviorButton1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.behaviorButton1]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.behaviorButton2               = new Gtk.CheckButton();
     this.behaviorButton2.CanFocus      = true;
     this.behaviorButton2.Name          = "behaviorButton2";
     this.behaviorButton2.Label         = Mono.Unix.Catalog.GetString("Continue playing last song after restarting");
     this.behaviorButton2.DrawIndicator = true;
     this.behaviorButton2.UseUnderline  = true;
     this.optionsVertBox.Add(this.behaviorButton2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.behaviorButton2]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.behaviorButton3               = new Gtk.CheckButton();
     this.behaviorButton3.CanFocus      = true;
     this.behaviorButton3.Name          = "behaviorButton3";
     this.behaviorButton3.Label         = Mono.Unix.Catalog.GetString("Minimize to tray");
     this.behaviorButton3.DrawIndicator = true;
     this.behaviorButton3.UseUnderline  = true;
     this.optionsVertBox.Add(this.behaviorButton3);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.behaviorButton3]));
     w4.Position = 2;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.behaviorButton4               = new Gtk.CheckButton();
     this.behaviorButton4.CanFocus      = true;
     this.behaviorButton4.Name          = "behaviorButton4";
     this.behaviorButton4.Label         = Mono.Unix.Catalog.GetString("Use custom library path");
     this.behaviorButton4.DrawIndicator = true;
     this.behaviorButton4.UseUnderline  = true;
     this.optionsVertBox.Add(this.behaviorButton4);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.behaviorButton4]));
     w5.Position = 3;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.customLibraryBox         = new Gtk.HBox();
     this.customLibraryBox.Name    = "customLibraryBox";
     this.customLibraryBox.Spacing = 6;
     // Container child customLibraryBox.Gtk.Box+BoxChild
     this.entry1               = new Gtk.Entry();
     this.entry1.CanFocus      = true;
     this.entry1.Name          = "entry1";
     this.entry1.IsEditable    = true;
     this.entry1.InvisibleChar = '●';
     this.customLibraryBox.Add(this.entry1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.customLibraryBox[this.entry1]));
     w6.Position = 1;
     // Container child customLibraryBox.Gtk.Box+BoxChild
     this.button23              = new Gtk.Button();
     this.button23.CanFocus     = true;
     this.button23.Name         = "button23";
     this.button23.UseUnderline = true;
     this.button23.Label        = Mono.Unix.Catalog.GetString("Browse");
     this.customLibraryBox.Add(this.button23);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.customLibraryBox[this.button23]));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     this.optionsVertBox.Add(this.customLibraryBox);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.customLibraryBox]));
     w8.Position = 4;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.behaviorButton5               = new Gtk.CheckButton();
     this.behaviorButton5.CanFocus      = true;
     this.behaviorButton5.Name          = "behaviorButton5";
     this.behaviorButton5.Label         = Mono.Unix.Catalog.GetString("Search for albums without cover art");
     this.behaviorButton5.DrawIndicator = true;
     this.behaviorButton5.UseUnderline  = true;
     this.optionsVertBox.Add(this.behaviorButton5);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.behaviorButton5]));
     w9.Position = 5;
     // Container child optionsVertBox.Gtk.Box+BoxChild
     this.behaviorButton6               = new Gtk.CheckButton();
     this.behaviorButton6.CanFocus      = true;
     this.behaviorButton6.Name          = "behaviorButton6";
     this.behaviorButton6.Label         = Mono.Unix.Catalog.GetString("Search for song lyrics");
     this.behaviorButton6.DrawIndicator = true;
     this.behaviorButton6.UseUnderline  = true;
     this.optionsVertBox.Add(this.behaviorButton6);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.optionsVertBox[this.behaviorButton6]));
     w10.Position = 6;
     w10.Expand   = false;
     w10.Fill     = false;
     this.fixedLaytout.Add(this.optionsVertBox);
     Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixedLaytout[this.optionsVertBox]));
     w11.X = 28;
     w11.Y = 50;
     // Container child fixedLaytout.Gtk.Fixed+FixedChild
     this.preferencesLabel              = new Gtk.Label();
     this.preferencesLabel.Name         = "preferencesLabel";
     this.preferencesLabel.LabelProp    = Mono.Unix.Catalog.GetString("<b>Preferences</b>");
     this.preferencesLabel.UseMarkup    = true;
     this.preferencesLabel.UseUnderline = true;
     this.fixedLaytout.Add(this.preferencesLabel);
     Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixedLaytout[this.preferencesLabel]));
     w12.X = 18;
     w12.Y = 10;
     // Container child fixedLaytout.Gtk.Fixed+FixedChild
     this.buttonSelectionBox         = new Gtk.HBox();
     this.buttonSelectionBox.Name    = "buttonSelectionBox";
     this.buttonSelectionBox.Spacing = 6;
     // Container child buttonSelectionBox.Gtk.Box+BoxChild
     this.cancelButton              = new Gtk.Button();
     this.cancelButton.CanFocus     = true;
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.UseUnderline = true;
     // Container child cancelButton.Gtk.Container+ContainerChild
     Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w13.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w14 = new Gtk.HBox();
     w14.Name    = "GtkHBox";
     w14.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w15 = new Gtk.Image();
     w15.Name   = "image50";
     w15.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cancel", 16);
     w14.Add(w15);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w17 = new Gtk.Label();
     w17.Name         = "GtkLabel";
     w17.LabelProp    = Mono.Unix.Catalog.GetString("Cancel");
     w17.UseUnderline = true;
     w14.Add(w17);
     w13.Add(w14);
     this.cancelButton.Add(w13);
     this.buttonSelectionBox.Add(this.cancelButton);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.buttonSelectionBox[this.cancelButton]));
     w21.Position = 0;
     w21.Expand   = false;
     w21.Fill     = false;
     // Container child buttonSelectionBox.Gtk.Box+BoxChild
     this.okButton              = new Gtk.Button();
     this.okButton.CanFocus     = true;
     this.okButton.Name         = "okButton";
     this.okButton.UseUnderline = true;
     // Container child okButton.Gtk.Container+ContainerChild
     Gtk.Alignment w22 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w22.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w23 = new Gtk.HBox();
     w23.Name    = "GtkHBox";
     w23.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w24 = new Gtk.Image();
     w24.Name   = "image51";
     w24.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-apply", 16);
     w23.Add(w24);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w26 = new Gtk.Label();
     w26.Name         = "GtkLabel";
     w26.LabelProp    = Mono.Unix.Catalog.GetString("OK");
     w26.UseUnderline = true;
     w23.Add(w26);
     w22.Add(w23);
     this.okButton.Add(w22);
     this.buttonSelectionBox.Add(this.okButton);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.buttonSelectionBox[this.okButton]));
     w30.Position = 1;
     w30.Expand   = false;
     w30.Fill     = false;
     this.fixedLaytout.Add(this.buttonSelectionBox);
     Gtk.Fixed.FixedChild w31 = ((Gtk.Fixed.FixedChild)(this.fixedLaytout[this.buttonSelectionBox]));
     w31.X = 263;
     w31.Y = 259;
     this.Add(this.fixedLaytout);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 396;
     this.DefaultHeight = 321;
     this.Show();
     this.cancelButton.Activated += new System.EventHandler(this.OnButton22Activated);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 public static Point GetWidgetPosition(Gtk.Fixed fixedCanvas, Gtk.Widget widget)
 {
     Gtk.Fixed.FixedChild child = Utils.static_cast <Gtk.Fixed.FixedChild>(fixedCanvas[widget]);
     return(new Point(child.X, child.Y));
 }
Ejemplo n.º 7
0
 public static void SetWidgetPosition(Gtk.Fixed fixedCanvas, Gtk.Widget widget, Point position)
 {
     Gtk.Fixed.FixedChild child = Utils.static_cast <Gtk.Fixed.FixedChild>(fixedCanvas[widget]);
     child.X = position.X;
     child.Y = position.Y;
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget tryServer.frmUsers
     this.Name              = "tryServer.frmUsers";
     this.Title             = Mono.Unix.Catalog.GetString("Users");
     this.Modal             = true;
     this.DestroyWithParent = true;
     // Container child tryServer.frmUsers.Gtk.Container+ContainerChild
     this.fixed1           = new Gtk.Fixed();
     this.fixed1.Name      = "fixed1";
     this.fixed1.HasWindow = false;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Instance");
     this.fixed1.Add(this.label1);
     Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label1]));
     w1.X = 210;
     w1.Y = 30;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("File");
     this.fixed1.Add(this.label2);
     Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label2]));
     w2.X = 210;
     w2.Y = 70;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("User");
     this.fixed1.Add(this.label3);
     Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label3]));
     w3.X = 210;
     w3.Y = 130;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.lblFile               = new Gtk.Entry();
     this.lblFile.CanFocus      = true;
     this.lblFile.Name          = "lblFile";
     this.lblFile.IsEditable    = false;
     this.lblFile.InvisibleChar = '●';
     this.fixed1.Add(this.lblFile);
     Gtk.Fixed.FixedChild w4 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.lblFile]));
     w4.X = 300;
     w4.Y = 65;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtUser               = new Gtk.Entry();
     this.txtUser.CanFocus      = true;
     this.txtUser.Name          = "txtUser";
     this.txtUser.IsEditable    = true;
     this.txtUser.InvisibleChar = '●';
     this.fixed1.Add(this.txtUser);
     Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtUser]));
     w5.X = 300;
     w5.Y = 125;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.image107        = new Gtk.Image();
     this.image107.Name   = "image107";
     this.image107.Pixbuf = Gdk.Pixbuf.LoadFromResource("User.png");
     this.fixed1.Add(this.image107);
     Gtk.Fixed.FixedChild w6 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.image107]));
     w6.X = 4;
     w6.Y = 32;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.lblServer               = new Gtk.Entry();
     this.lblServer.CanFocus      = true;
     this.lblServer.Name          = "lblServer";
     this.lblServer.IsEditable    = false;
     this.lblServer.InvisibleChar = '●';
     this.fixed1.Add(this.lblServer);
     Gtk.Fixed.FixedChild w7 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.lblServer]));
     w7.X = 300;
     w7.Y = 25;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.fixed1.Add(this.label4);
     Gtk.Fixed.FixedChild w8 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label4]));
     w8.X = 210;
     w8.Y = 170;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtPassword               = new Gtk.Entry();
     this.txtPassword.CanFocus      = true;
     this.txtPassword.Name          = "txtPassword";
     this.txtPassword.IsEditable    = true;
     this.txtPassword.Visibility    = false;
     this.txtPassword.InvisibleChar = '●';
     this.fixed1.Add(this.txtPassword);
     Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtPassword]));
     w9.X = 300;
     w9.Y = 165;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.WidthRequest = 300;
     this.hseparator1.Name         = "hseparator1";
     this.fixed1.Add(this.hseparator1);
     Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hseparator1]));
     w10.X = 184;
     w10.Y = 102;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.btnCancel = new Gtk.Button();
     this.btnCancel.WidthRequest = 80;
     this.btnCancel.CanFocus     = true;
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.UseUnderline = true;
     this.btnCancel.Label        = Mono.Unix.Catalog.GetString("Cancel");
     this.fixed1.Add(this.btnCancel);
     Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.btnCancel]));
     w11.X = 378;
     w11.Y = 244;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.btnOk = new Gtk.Button();
     this.btnOk.WidthRequest = 80;
     this.btnOk.CanFocus     = true;
     this.btnOk.Name         = "btnOk";
     this.btnOk.UseUnderline = true;
     this.btnOk.Label        = Mono.Unix.Catalog.GetString("Ok");
     this.fixed1.Add(this.btnOk);
     Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.btnOk]));
     w12.X = 270;
     w12.Y = 245;
     this.Add(this.fixed1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 506;
     this.DefaultHeight = 344;
     this.Show();
     this.btnCancel.Clicked += new System.EventHandler(this.OnBtnCancelClicked);
     this.btnOk.Clicked     += new System.EventHandler(this.OnBtnOkClicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget tryServer.frmSettings
     this.WidthRequest   = 380;
     this.HeightRequest  = 450;
     this.Events         = ((Gdk.EventMask)(256));
     this.Name           = "tryServer.frmSettings";
     this.Title          = Mono.Unix.Catalog.GetString("Settings");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable      = false;
     this.AllowGrow      = false;
     this.HasSeparator   = false;
     // Internal child tryServer.frmSettings.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Events      = ((Gdk.EventMask)(256));
     w1.Name        = "dialog_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog_VBox.Gtk.Box+BoxChild
     this.fixed1 = new Gtk.Fixed();
     this.fixed1.HeightRequest = 390;
     this.fixed1.Name          = "fixed1";
     this.fixed1.HasWindow     = false;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Server");
     this.fixed1.Add(this.label4);
     Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label4]));
     w2.X = 135;
     w2.Y = 40;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.fixed1.Add(this.label5);
     Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label5]));
     w3.X = 135;
     w3.Y = 80;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("File");
     this.fixed1.Add(this.label6);
     Gtk.Fixed.FixedChild w4 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label6]));
     w4.X = 135;
     w4.Y = 120;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.image52        = new Gtk.Image();
     this.image52.Name   = "image52";
     this.image52.Pixbuf = Gdk.Pixbuf.LoadFromResource("_database.png");
     this.fixed1.Add(this.image52);
     Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.image52]));
     w5.X = 35;
     w5.Y = 58;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.image53        = new Gtk.Image();
     this.image53.Name   = "image53";
     this.image53.Pixbuf = Gdk.Pixbuf.LoadFromResource("password.png");
     this.fixed1.Add(this.image53);
     Gtk.Fixed.FixedChild w6 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.image53]));
     w6.X = 35;
     w6.Y = 174;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.WidthRequest = 380;
     this.hseparator1.Name         = "hseparator1";
     this.fixed1.Add(this.hseparator1);
     Gtk.Fixed.FixedChild w7 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hseparator1]));
     w7.X = 12;
     w7.Y = 151;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtServer               = new Gtk.Entry();
     this.txtServer.CanFocus      = true;
     this.txtServer.Name          = "txtServer";
     this.txtServer.IsEditable    = true;
     this.txtServer.InvisibleChar = '●';
     this.fixed1.Add(this.txtServer);
     Gtk.Fixed.FixedChild w8 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtServer]));
     w8.X = 215;
     w8.Y = 35;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtPort               = new Gtk.Entry();
     this.txtPort.CanFocus      = true;
     this.txtPort.Name          = "txtPort";
     this.txtPort.IsEditable    = true;
     this.txtPort.InvisibleChar = '●';
     this.fixed1.Add(this.txtPort);
     Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtPort]));
     w9.X = 215;
     w9.Y = 75;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtFile               = new Gtk.Entry();
     this.txtFile.CanFocus      = true;
     this.txtFile.Name          = "txtFile";
     this.txtFile.IsEditable    = true;
     this.txtFile.InvisibleChar = '●';
     this.fixed1.Add(this.txtFile);
     Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtFile]));
     w10.X = 215;
     w10.Y = 115;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("User");
     this.fixed1.Add(this.label7);
     Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label7]));
     w11.X = 135;
     w11.Y = 175;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.fixed1.Add(this.label8);
     Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label8]));
     w12.X = 135;
     w12.Y = 220;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtUser               = new Gtk.Entry();
     this.txtUser.CanFocus      = true;
     this.txtUser.Name          = "txtUser";
     this.txtUser.IsEditable    = true;
     this.txtUser.InvisibleChar = '●';
     this.fixed1.Add(this.txtUser);
     Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtUser]));
     w13.X = 215;
     w13.Y = 170;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtPassword               = new Gtk.Entry();
     this.txtPassword.CanFocus      = true;
     this.txtPassword.Name          = "txtPassword";
     this.txtPassword.IsEditable    = true;
     this.txtPassword.Visibility    = false;
     this.txtPassword.InvisibleChar = '●';
     this.fixed1.Add(this.txtPassword);
     Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtPassword]));
     w14.X = 215;
     w14.Y = 210;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label10           = new Gtk.Label();
     this.label10.Name      = "label10";
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Add users");
     this.fixed1.Add(this.label10);
     Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label10]));
     w15.X = 21;
     w15.Y = 340;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.btnUsers              = new Gtk.Button();
     this.btnUsers.CanFocus     = true;
     this.btnUsers.Name         = "btnUsers";
     this.btnUsers.UseUnderline = true;
     // Container child btnUsers.Gtk.Container+ContainerChild
     Gtk.Alignment w16 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w16.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w17 = new Gtk.HBox();
     w17.Name    = "GtkHBox";
     w17.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w18 = new Gtk.Image();
     w18.Name   = "image4";
     w18.Pixbuf = Gdk.Pixbuf.LoadFromResource("users.png");
     w17.Add(w18);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w20 = new Gtk.Label();
     w20.Name      = "GtkLabel";
     w20.LabelProp = "";
     w17.Add(w20);
     w16.Add(w17);
     this.btnUsers.Add(w16);
     this.fixed1.Add(this.btnUsers);
     Gtk.Fixed.FixedChild w24 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.btnUsers]));
     w24.X = 28;
     w24.Y = 277;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.hseparator2 = new Gtk.HSeparator();
     this.hseparator2.WidthRequest = 370;
     this.hseparator2.Name         = "hseparator2";
     this.fixed1.Add(this.hseparator2);
     Gtk.Fixed.FixedChild w25 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hseparator2]));
     w25.X = 12;
     w25.Y = 251;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.txtFileUsers               = new Gtk.Entry();
     this.txtFileUsers.CanFocus      = true;
     this.txtFileUsers.Name          = "txtFileUsers";
     this.txtFileUsers.IsEditable    = true;
     this.txtFileUsers.InvisibleChar = '●';
     this.fixed1.Add(this.txtFileUsers);
     Gtk.Fixed.FixedChild w26 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtFileUsers]));
     w26.X = 215;
     w26.Y = 295;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("File");
     this.fixed1.Add(this.label9);
     Gtk.Fixed.FixedChild w27 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label9]));
     w27.X = 133;
     w27.Y = 300;
     w1.Add(this.fixed1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(w1[this.fixed1]));
     w28.Position = 0;
     w28.Expand   = false;
     w28.Fill     = false;
     // Internal child tryServer.frmSettings.ActionArea
     Gtk.HButtonBox w29 = this.ActionArea;
     w29.Events      = ((Gdk.EventMask)(256));
     w29.Name        = "tryServer.frmSettings_ActionArea";
     w29.Spacing     = 6;
     w29.BorderWidth = ((uint)(5));
     w29.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child tryServer.frmSettings_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.Ok              = new Gtk.Button();
     this.Ok.CanDefault   = true;
     this.Ok.CanFocus     = true;
     this.Ok.Name         = "Ok";
     this.Ok.UseUnderline = true;
     this.Ok.Label        = Mono.Unix.Catalog.GetString("Ok");
     this.AddActionWidget(this.Ok, 0);
     Gtk.ButtonBox.ButtonBoxChild w30 = ((Gtk.ButtonBox.ButtonBoxChild)(w29[this.Ok]));
     w30.Expand = false;
     w30.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 421;
     this.DefaultHeight = 479;
     this.Show();
     this.DeleteEvent      += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.btnUsers.Clicked += new System.EventHandler(this.OnBtnUsersClicked);
     this.Ok.Clicked       += new System.EventHandler(this.OnButton30Clicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget tryServer.MainWindow
     this.WidthRequest      = 380;
     this.HeightRequest     = 330;
     this.CanFocus          = true;
     this.Events            = ((Gdk.EventMask)(256));
     this.Name              = "tryServer.MainWindow";
     this.Title             = Mono.Unix.Catalog.GetString("Main");
     this.WindowPosition    = ((Gtk.WindowPosition)(1));
     this.Resizable         = false;
     this.AllowGrow         = false;
     this.DestroyWithParent = true;
     // Container child tryServer.MainWindow.Gtk.Container+ContainerChild
     this.notebook3 = new Gtk.Notebook();
     this.notebook3.WidthRequest = 300;
     this.notebook3.CanFocus     = true;
     this.notebook3.Name         = "notebook3";
     // Container child notebook3.Gtk.Notebook+NotebookChild
     this.fixed3           = new Gtk.Fixed();
     this.fixed3.Name      = "fixed3";
     this.fixed3.HasWindow = false;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Stop server");
     this.fixed3.Add(this.label8);
     Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label8]));
     w1.X = 104;
     w1.Y = 172;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.label9           = new Gtk.Label();
     this.label9.Name      = "label9";
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Connections Settings");
     this.fixed3.Add(this.label9);
     Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label9]));
     w2.X = 104;
     w2.Y = 230;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.btnStart = new Gtk.Button();
     this.btnStart.WidthRequest  = 80;
     this.btnStart.HeightRequest = 55;
     this.btnStart.CanFocus      = true;
     this.btnStart.Name          = "btnStart";
     this.btnStart.UseUnderline  = true;
     // Container child btnStart.Gtk.Container+ContainerChild
     Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w3.Name = "GtkAlignment";
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w4 = new Gtk.HBox();
     w4.Name    = "GtkHBox";
     w4.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w5 = new Gtk.Image();
     w5.Name   = "image14";
     w5.Pixbuf = Gdk.Pixbuf.LoadFromResource("play.png");
     w4.Add(w5);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w7 = new Gtk.Label();
     w7.Name      = "GtkLabel";
     w7.LabelProp = "";
     w4.Add(w7);
     w3.Add(w4);
     this.btnStart.Add(w3);
     this.fixed3.Add(this.btnStart);
     Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.btnStart]));
     w11.X = 14;
     w11.Y = 99;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.btnStop = new Gtk.Button();
     this.btnStop.WidthRequest  = 80;
     this.btnStop.HeightRequest = 55;
     this.btnStop.CanFocus      = true;
     this.btnStop.Name          = "btnStop";
     this.btnStop.UseUnderline  = true;
     // Container child btnStop.Gtk.Container+ContainerChild
     Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w12.Name = "GtkAlignment1";
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     Gtk.HBox w13 = new Gtk.HBox();
     w13.Name    = "GtkHBox1";
     w13.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w14 = new Gtk.Image();
     w14.Name   = "image15";
     w14.Pixbuf = Gdk.Pixbuf.LoadFromResource("process-stop.png");
     w13.Add(w14);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w16 = new Gtk.Label();
     w16.Name      = "GtkLabel1";
     w16.LabelProp = "";
     w13.Add(w16);
     w12.Add(w13);
     this.btnStop.Add(w12);
     this.fixed3.Add(this.btnStop);
     Gtk.Fixed.FixedChild w20 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.btnStop]));
     w20.X = 14;
     w20.Y = 157;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.btnSettings = new Gtk.Button();
     this.btnSettings.WidthRequest  = 80;
     this.btnSettings.HeightRequest = 55;
     this.btnSettings.CanFocus      = true;
     this.btnSettings.Name          = "btnSettings";
     this.btnSettings.UseUnderline  = true;
     // Container child btnSettings.Gtk.Container+ContainerChild
     Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     w21.Name = "GtkAlignment2";
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     Gtk.HBox w22 = new Gtk.HBox();
     w22.Name    = "GtkHBox2";
     w22.Spacing = 2;
     // Container child GtkHBox2.Gtk.Container+ContainerChild
     Gtk.Image w23 = new Gtk.Image();
     w23.Name   = "image16";
     w23.Pixbuf = Gdk.Pixbuf.LoadFromResource("db_sql_.png");
     w22.Add(w23);
     // Container child GtkHBox2.Gtk.Container+ContainerChild
     Gtk.Label w25 = new Gtk.Label();
     w25.Name      = "GtkLabel2";
     w25.LabelProp = "";
     w22.Add(w25);
     w21.Add(w22);
     this.btnSettings.Add(w21);
     this.fixed3.Add(this.btnSettings);
     Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.btnSettings]));
     w29.X = 14;
     w29.Y = 215;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Start server");
     this.fixed3.Add(this.label7);
     Gtk.Fixed.FixedChild w30 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label7]));
     w30.X = 104;
     w30.Y = 116;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.imgOffline        = new Gtk.Image();
     this.imgOffline.Name   = "imgOffline";
     this.imgOffline.Pixbuf = Gdk.Pixbuf.LoadFromResource("Internet - Offline.png");
     this.fixed3.Add(this.imgOffline);
     Gtk.Fixed.FixedChild w31 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.imgOffline]));
     w31.X = 211;
     w31.Y = 93;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.imgOnline        = new Gtk.Image();
     this.imgOnline.Name   = "imgOnline";
     this.imgOnline.Pixbuf = Gdk.Pixbuf.LoadFromResource("Network Configuration.png");
     this.fixed3.Add(this.imgOnline);
     Gtk.Fixed.FixedChild w32 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.imgOnline]));
     w32.X = 211;
     w32.Y = 93;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.label6           = new Gtk.Label();
     this.label6.Name      = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Instance");
     this.fixed3.Add(this.label6);
     Gtk.Fixed.FixedChild w33 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label6]));
     w33.X = 16;
     w33.Y = 39;
     // Container child fixed3.Gtk.Fixed+FixedChild
     this.cmbInstance = Gtk.ComboBox.NewText();
     this.cmbInstance.WidthRequest = 250;
     this.cmbInstance.Name         = "cmbInstance";
     this.fixed3.Add(this.cmbInstance);
     Gtk.Fixed.FixedChild w34 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.cmbInstance]));
     w34.X = 93;
     w34.Y = 31;
     this.notebook3.Add(this.fixed3);
     // Notebook tab
     this.label4           = new Gtk.Label();
     this.label4.Name      = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Settings");
     this.notebook3.SetTabLabel(this.fixed3, this.label4);
     // Container child notebook3.Gtk.Notebook+NotebookChild
     this.fixed4           = new Gtk.Fixed();
     this.fixed4.Name      = "fixed4";
     this.fixed4.HasWindow = false;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label10           = new Gtk.Label();
     this.label10.Name      = "label10";
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Server");
     this.fixed4.Add(this.label10);
     Gtk.Fixed.FixedChild w36 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label10]));
     w36.X = 175;
     w36.Y = 30;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label11           = new Gtk.Label();
     this.label11.Name      = "label11";
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.fixed4.Add(this.label11);
     Gtk.Fixed.FixedChild w37 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label11]));
     w37.X = 175;
     w37.Y = 65;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label12           = new Gtk.Label();
     this.label12.Name      = "label12";
     this.label12.LabelProp = Mono.Unix.Catalog.GetString("File");
     this.fixed4.Add(this.label12);
     Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label12]));
     w38.X = 175;
     w38.Y = 100;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label13           = new Gtk.Label();
     this.label13.Name      = "label13";
     this.label13.LabelProp = Mono.Unix.Catalog.GetString("User");
     this.fixed4.Add(this.label13);
     Gtk.Fixed.FixedChild w39 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label13]));
     w39.X = 175;
     w39.Y = 145;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.label14           = new Gtk.Label();
     this.label14.Name      = "label14";
     this.label14.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.fixed4.Add(this.label14);
     Gtk.Fixed.FixedChild w40 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label14]));
     w40.X = 175;
     w40.Y = 180;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.chkStart               = new Gtk.CheckButton();
     this.chkStart.CanFocus      = true;
     this.chkStart.Name          = "chkStart";
     this.chkStart.Label         = Mono.Unix.Catalog.GetString("Start automatically");
     this.chkStart.DrawIndicator = true;
     this.chkStart.UseUnderline  = true;
     this.fixed4.Add(this.chkStart);
     Gtk.Fixed.FixedChild w41 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.chkStart]));
     w41.X = 191;
     w41.Y = 216;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.button4 = new Gtk.Button();
     this.button4.WidthRequest = 80;
     this.button4.CanFocus     = true;
     this.button4.Name         = "button4";
     this.button4.UseUnderline = true;
     this.button4.Label        = Mono.Unix.Catalog.GetString("Ok");
     this.fixed4.Add(this.button4);
     Gtk.Fixed.FixedChild w42 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.button4]));
     w42.X = 204;
     w42.Y = 253;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.button5 = new Gtk.Button();
     this.button5.WidthRequest = 80;
     this.button5.CanFocus     = true;
     this.button5.Name         = "button5";
     this.button5.UseUnderline = true;
     this.button5.Label        = Mono.Unix.Catalog.GetString("Cancel");
     this.fixed4.Add(this.button5);
     Gtk.Fixed.FixedChild w43 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.button5]));
     w43.X = 288;
     w43.Y = 253;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.entry1 = new Gtk.Entry();
     this.entry1.WidthRequest  = 120;
     this.entry1.CanFocus      = true;
     this.entry1.Name          = "entry1";
     this.entry1.IsEditable    = true;
     this.entry1.InvisibleChar = '●';
     this.fixed4.Add(this.entry1);
     Gtk.Fixed.FixedChild w44 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry1]));
     w44.X = 250;
     w44.Y = 25;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.entry2 = new Gtk.Entry();
     this.entry2.WidthRequest  = 120;
     this.entry2.CanFocus      = true;
     this.entry2.Name          = "entry2";
     this.entry2.IsEditable    = true;
     this.entry2.InvisibleChar = '●';
     this.fixed4.Add(this.entry2);
     Gtk.Fixed.FixedChild w45 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry2]));
     w45.X = 250;
     w45.Y = 60;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.entry4 = new Gtk.Entry();
     this.entry4.WidthRequest  = 120;
     this.entry4.CanFocus      = true;
     this.entry4.Name          = "entry4";
     this.entry4.IsEditable    = true;
     this.entry4.InvisibleChar = '●';
     this.fixed4.Add(this.entry4);
     Gtk.Fixed.FixedChild w46 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry4]));
     w46.X = 250;
     w46.Y = 95;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.WidthRequest = 200;
     this.hseparator1.Name         = "hseparator1";
     this.fixed4.Add(this.hseparator1);
     Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.hseparator1]));
     w47.X = 169;
     w47.Y = 129;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.entry5 = new Gtk.Entry();
     this.entry5.WidthRequest  = 120;
     this.entry5.CanFocus      = true;
     this.entry5.Name          = "entry5";
     this.entry5.IsEditable    = true;
     this.entry5.Visibility    = false;
     this.entry5.InvisibleChar = '●';
     this.fixed4.Add(this.entry5);
     Gtk.Fixed.FixedChild w48 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry5]));
     w48.X = 250;
     w48.Y = 175;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.entry6 = new Gtk.Entry();
     this.entry6.WidthRequest  = 120;
     this.entry6.CanFocus      = true;
     this.entry6.Name          = "entry6";
     this.entry6.IsEditable    = true;
     this.entry6.InvisibleChar = '●';
     this.fixed4.Add(this.entry6);
     Gtk.Fixed.FixedChild w49 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry6]));
     w49.X = 248;
     w49.Y = 140;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.hseparator4 = new Gtk.HSeparator();
     this.hseparator4.WidthRequest = 150;
     this.hseparator4.Name         = "hseparator4";
     this.fixed4.Add(this.hseparator4);
     Gtk.Fixed.FixedChild w50 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.hseparator4]));
     w50.X = 11;
     w50.Y = 10;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.hseparator5 = new Gtk.HSeparator();
     this.hseparator5.WidthRequest = 150;
     this.hseparator5.Name         = "hseparator5";
     this.fixed4.Add(this.hseparator5);
     Gtk.Fixed.FixedChild w51 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.hseparator5]));
     w51.X = 9;
     w51.Y = 282;
     // Container child fixed4.Gtk.Fixed+FixedChild
     this.treeview1 = new Gtk.TreeView();
     this.treeview1.WidthRequest    = 150;
     this.treeview1.HeightRequest   = 270;
     this.treeview1.CanFocus        = true;
     this.treeview1.Name            = "treeview1";
     this.treeview1.FixedHeightMode = true;
     this.treeview1.HeadersVisible  = false;
     this.fixed4.Add(this.treeview1);
     Gtk.Fixed.FixedChild w52 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.treeview1]));
     w52.X = 11;
     w52.Y = 11;
     this.notebook3.Add(this.fixed4);
     Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.notebook3[this.fixed4]));
     w53.Position = 1;
     // Notebook tab
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Registered items");
     this.notebook3.SetTabLabel(this.fixed4, this.label5);
     this.Add(this.notebook3);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 419;
     this.DefaultHeight = 379;
     this.Show();
     this.DeleteEvent         += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.btnStart.Clicked    += new System.EventHandler(this.OnBtnStartClicked);
     this.btnStop.Clicked     += new System.EventHandler(this.OnBtnStopClicked);
     this.btnSettings.Clicked += new System.EventHandler(this.OnBtnSettingsClicked);
 }