Example #1
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize (this);
     // Widget MainWindow
     this.UIManager = new global::Gtk.UIManager ();
     global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup ("Default");
     this.FileAction = new global::Gtk.Action ("FileAction", global::Mono.Unix.Catalog.GetString ("File"), null, null);
     this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("File");
     w1.Add (this.FileAction, null);
     this.ListAction = new global::Gtk.Action ("ListAction", global::Mono.Unix.Catalog.GetString ("List"), null, null);
     this.ListAction.ShortLabel = global::Mono.Unix.Catalog.GetString ("List");
     w1.Add (this.ListAction, null);
     this.UIManager.InsertActionGroup (w1, 0);
     this.AddAccelGroup (this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     this.Gravity = ((global::Gdk.Gravity)(5));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new global::Gtk.VBox ();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString ("<ui><menubar name='menubar2'><menu name='FileAction' action='FileAction'/></menubar></ui>");
     this.menubar2 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget ("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox2.Add (this.menubar2);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.menubar2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.MainHPaned = new global::Gtk.HPaned ();
     this.MainHPaned.CanFocus = true;
     this.MainHPaned.Name = "MainHPaned";
     this.MainHPaned.Position = 210;
     // Container child MainHPaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new global::Gtk.ScrolledWindow ();
     this.GtkScrolledWindow.WidthRequest = 100;
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.CollectionTreeView = new global::Gtk.TreeView ();
     this.CollectionTreeView.CanFocus = true;
     this.CollectionTreeView.Name = "CollectionTreeView";
     this.GtkScrolledWindow.Add (this.CollectionTreeView);
     this.MainHPaned.Add (this.GtkScrolledWindow);
     global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.MainHPaned [this.GtkScrolledWindow]));
     w4.Resize = false;
     // Container child MainHPaned.Gtk.Paned+PanedChild
     this.MusicAndNowPlayingWidget = new global::GCMM.MusicAndNowPlayingWidget ();
     this.MusicAndNowPlayingWidget.Events = ((global::Gdk.EventMask)(256));
     this.MusicAndNowPlayingWidget.Name = "MusicAndNowPlayingWidget";
     this.MainHPaned.Add (this.MusicAndNowPlayingWidget);
     this.vbox2.Add (this.MainHPaned);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.MainHPaned]));
     w6.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2 = new global::Gtk.HBox ();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hbuttonbox2 = new global::Gtk.HButtonBox ();
     this.hbuttonbox2.Name = "hbuttonbox2";
     this.hbuttonbox2.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button6 = new global::Gtk.Button ();
     this.button6.CanFocus = true;
     this.button6.Name = "button6";
     this.button6.UseUnderline = true;
     this.button6.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox2.Add (this.button6);
     global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button6]));
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button7 = new global::Gtk.Button ();
     this.button7.CanFocus = true;
     this.button7.Name = "button7";
     this.button7.UseUnderline = true;
     this.button7.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox2.Add (this.button7);
     global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button7]));
     w8.Position = 1;
     w8.Expand = false;
     w8.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button8 = new global::Gtk.Button ();
     this.button8.CanFocus = true;
     this.button8.Name = "button8";
     this.button8.UseUnderline = true;
     this.button8.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox2.Add (this.button8);
     global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button8]));
     w9.Position = 2;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button9 = new global::Gtk.Button ();
     this.button9.CanFocus = true;
     this.button9.Name = "button9";
     this.button9.UseUnderline = true;
     this.button9.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox2.Add (this.button9);
     global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button9]));
     w10.Position = 3;
     w10.Expand = false;
     w10.Fill = false;
     this.hbox2.Add (this.hbuttonbox2);
     global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.hbuttonbox2]));
     w11.Position = 0;
     w11.Expand = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow3 = new global::Gtk.ScrolledWindow ();
     this.GtkScrolledWindow3.Name = "GtkScrolledWindow3";
     this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
     this.nodeview4 = new global::Gtk.NodeView ();
     this.nodeview4.CanFocus = true;
     this.nodeview4.Name = "nodeview4";
     this.GtkScrolledWindow3.Add (this.nodeview4);
     this.hbox2.Add (this.GtkScrolledWindow3);
     global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.GtkScrolledWindow3]));
     w13.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hbox3 = new global::Gtk.HBox ();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.hbuttonbox4 = new global::Gtk.HButtonBox ();
     this.hbuttonbox4.Name = "hbuttonbox4";
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.button21 = new global::Gtk.Button ();
     this.button21.CanFocus = true;
     this.button21.Name = "button21";
     this.button21.UseUnderline = true;
     this.button21.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox4.Add (this.button21);
     global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4 [this.button21]));
     w14.Expand = false;
     w14.Fill = false;
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.button22 = new global::Gtk.Button ();
     this.button22.CanFocus = true;
     this.button22.Name = "button22";
     this.button22.UseUnderline = true;
     this.button22.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox4.Add (this.button22);
     global::Gtk.ButtonBox.ButtonBoxChild w15 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4 [this.button22]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.button23 = new global::Gtk.Button ();
     this.button23.CanFocus = true;
     this.button23.Name = "button23";
     this.button23.UseUnderline = true;
     this.button23.Label = global::Mono.Unix.Catalog.GetString ("GtkButton");
     this.hbuttonbox4.Add (this.button23);
     global::Gtk.ButtonBox.ButtonBoxChild w16 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4 [this.button23]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     this.hbox3.Add (this.hbuttonbox4);
     global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.hbuttonbox4]));
     w17.Position = 0;
     w17.Expand = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.GtkScrolledWindow4 = new global::Gtk.ScrolledWindow ();
     this.GtkScrolledWindow4.Name = "GtkScrolledWindow4";
     this.GtkScrolledWindow4.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow4.Gtk.Container+ContainerChild
     this.nodeview5 = new global::Gtk.NodeView ();
     this.nodeview5.CanFocus = true;
     this.nodeview5.Name = "nodeview5";
     this.GtkScrolledWindow4.Add (this.nodeview5);
     this.hbox3.Add (this.GtkScrolledWindow4);
     global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.GtkScrolledWindow4]));
     w19.Position = 1;
     this.hbox2.Add (this.hbox3);
     global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.hbox3]));
     w20.Position = 2;
     this.vbox2.Add (this.hbox2);
     global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox2]));
     w21.Position = 2;
     w21.Expand = false;
     w21.Fill = false;
     this.Add (this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll ();
     }
     this.DefaultWidth = 1215;
     this.DefaultHeight = 665;
     this.Show ();
     this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent);
 }
Example #2
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new global::Gtk.UIManager();
     global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default");
     this.FileAction            = new global::Gtk.Action("FileAction", global::Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = global::Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.ListAction            = new global::Gtk.Action("ListAction", global::Mono.Unix.Catalog.GetString("List"), null, null);
     this.ListAction.ShortLabel = global::Mono.Unix.Catalog.GetString("List");
     w1.Add(this.ListAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name           = "MainWindow";
     this.Title          = global::Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     this.Gravity        = ((global::Gdk.Gravity)(5));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2         = new global::Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar2'><menu name='FileAction' action='FileAction'/></menubar></ui>");
     this.menubar2      = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar2")));
     this.menubar2.Name = "menubar2";
     this.vbox2.Add(this.menubar2);
     global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.menubar2]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.MainHPaned          = new global::Gtk.HPaned();
     this.MainHPaned.CanFocus = true;
     this.MainHPaned.Name     = "MainHPaned";
     this.MainHPaned.Position = 210;
     // Container child MainHPaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
     this.GtkScrolledWindow.WidthRequest = 100;
     this.GtkScrolledWindow.Name         = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType   = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.CollectionTreeView          = new global::Gtk.TreeView();
     this.CollectionTreeView.CanFocus = true;
     this.CollectionTreeView.Name     = "CollectionTreeView";
     this.GtkScrolledWindow.Add(this.CollectionTreeView);
     this.MainHPaned.Add(this.GtkScrolledWindow);
     global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.MainHPaned [this.GtkScrolledWindow]));
     w4.Resize = false;
     // Container child MainHPaned.Gtk.Paned+PanedChild
     this.MusicAndNowPlayingWidget        = new global::GCMM.MusicAndNowPlayingWidget();
     this.MusicAndNowPlayingWidget.Events = ((global::Gdk.EventMask)(256));
     this.MusicAndNowPlayingWidget.Name   = "MusicAndNowPlayingWidget";
     this.MainHPaned.Add(this.MusicAndNowPlayingWidget);
     this.vbox2.Add(this.MainHPaned);
     global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.MainHPaned]));
     w6.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2         = new global::Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hbuttonbox2             = new global::Gtk.HButtonBox();
     this.hbuttonbox2.Name        = "hbuttonbox2";
     this.hbuttonbox2.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button6              = new global::Gtk.Button();
     this.button6.CanFocus     = true;
     this.button6.Name         = "button6";
     this.button6.UseUnderline = true;
     this.button6.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox2.Add(this.button6);
     global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button6]));
     w7.Expand = false;
     w7.Fill   = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button7              = new global::Gtk.Button();
     this.button7.CanFocus     = true;
     this.button7.Name         = "button7";
     this.button7.UseUnderline = true;
     this.button7.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox2.Add(this.button7);
     global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button7]));
     w8.Position = 1;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button8              = new global::Gtk.Button();
     this.button8.CanFocus     = true;
     this.button8.Name         = "button8";
     this.button8.UseUnderline = true;
     this.button8.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox2.Add(this.button8);
     global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button8]));
     w9.Position = 2;
     w9.Expand   = false;
     w9.Fill     = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button9              = new global::Gtk.Button();
     this.button9.CanFocus     = true;
     this.button9.Name         = "button9";
     this.button9.UseUnderline = true;
     this.button9.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox2.Add(this.button9);
     global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2 [this.button9]));
     w10.Position = 3;
     w10.Expand   = false;
     w10.Fill     = false;
     this.hbox2.Add(this.hbuttonbox2);
     global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.hbuttonbox2]));
     w11.Position = 0;
     w11.Expand   = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.GtkScrolledWindow3            = new global::Gtk.ScrolledWindow();
     this.GtkScrolledWindow3.Name       = "GtkScrolledWindow3";
     this.GtkScrolledWindow3.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow3.Gtk.Container+ContainerChild
     this.nodeview4          = new global::Gtk.NodeView();
     this.nodeview4.CanFocus = true;
     this.nodeview4.Name     = "nodeview4";
     this.GtkScrolledWindow3.Add(this.nodeview4);
     this.hbox2.Add(this.GtkScrolledWindow3);
     global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.GtkScrolledWindow3]));
     w13.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.hbox3         = new global::Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.hbuttonbox4      = new global::Gtk.HButtonBox();
     this.hbuttonbox4.Name = "hbuttonbox4";
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.button21              = new global::Gtk.Button();
     this.button21.CanFocus     = true;
     this.button21.Name         = "button21";
     this.button21.UseUnderline = true;
     this.button21.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox4.Add(this.button21);
     global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4 [this.button21]));
     w14.Expand = false;
     w14.Fill   = false;
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.button22              = new global::Gtk.Button();
     this.button22.CanFocus     = true;
     this.button22.Name         = "button22";
     this.button22.UseUnderline = true;
     this.button22.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox4.Add(this.button22);
     global::Gtk.ButtonBox.ButtonBoxChild w15 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4 [this.button22]));
     w15.Position = 1;
     w15.Expand   = false;
     w15.Fill     = false;
     // Container child hbuttonbox4.Gtk.ButtonBox+ButtonBoxChild
     this.button23              = new global::Gtk.Button();
     this.button23.CanFocus     = true;
     this.button23.Name         = "button23";
     this.button23.UseUnderline = true;
     this.button23.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.hbuttonbox4.Add(this.button23);
     global::Gtk.ButtonBox.ButtonBoxChild w16 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox4 [this.button23]));
     w16.Position = 2;
     w16.Expand   = false;
     w16.Fill     = false;
     this.hbox3.Add(this.hbuttonbox4);
     global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.hbuttonbox4]));
     w17.Position = 0;
     w17.Expand   = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.GtkScrolledWindow4            = new global::Gtk.ScrolledWindow();
     this.GtkScrolledWindow4.Name       = "GtkScrolledWindow4";
     this.GtkScrolledWindow4.ShadowType = ((global::Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow4.Gtk.Container+ContainerChild
     this.nodeview5          = new global::Gtk.NodeView();
     this.nodeview5.CanFocus = true;
     this.nodeview5.Name     = "nodeview5";
     this.GtkScrolledWindow4.Add(this.nodeview5);
     this.hbox3.Add(this.GtkScrolledWindow4);
     global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.GtkScrolledWindow4]));
     w19.Position = 1;
     this.hbox2.Add(this.hbox3);
     global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.hbox3]));
     w20.Position = 2;
     this.vbox2.Add(this.hbox2);
     global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox2]));
     w21.Position = 2;
     w21.Expand   = false;
     w21.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 1215;
     this.DefaultHeight = 665;
     this.Show();
     this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }