protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Docky.Widgets.AbstractLoginWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "Docky.Widgets.AbstractLoginWidget";
     // Container child Docky.Widgets.AbstractLoginWidget.Gtk.Container+ContainerChild
     this.wrapper_vbox             = new Gtk.VBox();
     this.wrapper_vbox.Name        = "wrapper_vbox";
     this.wrapper_vbox.Spacing     = 6;
     this.wrapper_vbox.BorderWidth = ((uint)(10));
     // Container child wrapper_vbox.Gtk.Box+BoxChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.account_vbox         = new Gtk.VBox();
     this.account_vbox.Name    = "account_vbox";
     this.account_vbox.Spacing = 6;
     // Container child account_vbox.Gtk.Box+BoxChild
     this.login_tbl               = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.login_tbl.Name          = "login_tbl";
     this.login_tbl.RowSpacing    = ((uint)(6));
     this.login_tbl.ColumnSpacing = ((uint)(6));
     // Container child login_tbl.Gtk.Table+TableChild
     this.password_entry              = new Docky.Widgets.SearchEntry();
     this.password_entry.Name         = "password_entry";
     this.password_entry.EmptyMessage = "Password";
     this.password_entry.Ready        = true;
     this.password_entry.HasFocus     = false;
     this.login_tbl.Add(this.password_entry);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.login_tbl[this.password_entry]));
     w1.TopAttach    = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.LeftAttach   = ((uint)(1));
     w1.RightAttach  = ((uint)(2));
     // Container child login_tbl.Gtk.Table+TableChild
     this.password_lbl           = new Gtk.Label();
     this.password_lbl.Name      = "password_lbl";
     this.password_lbl.Xalign    = 1F;
     this.password_lbl.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.login_tbl.Add(this.password_lbl);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.login_tbl[this.password_lbl]));
     w2.TopAttach    = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.XOptions     = ((Gtk.AttachOptions)(4));
     w2.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child login_tbl.Gtk.Table+TableChild
     this.username_entry              = new Docky.Widgets.SearchEntry();
     this.username_entry.Name         = "username_entry";
     this.username_entry.EmptyMessage = "Username";
     this.username_entry.Ready        = true;
     this.username_entry.HasFocus     = false;
     this.login_tbl.Add(this.username_entry);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.login_tbl[this.username_entry]));
     w3.LeftAttach  = ((uint)(1));
     w3.RightAttach = ((uint)(2));
     // Container child login_tbl.Gtk.Table+TableChild
     this.username_lbl           = new Gtk.Label();
     this.username_lbl.Name      = "username_lbl";
     this.username_lbl.Xalign    = 1F;
     this.username_lbl.LabelProp = Mono.Unix.Catalog.GetString("Username");
     this.login_tbl.Add(this.username_lbl);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.login_tbl[this.username_lbl]));
     w4.XOptions = ((Gtk.AttachOptions)(0));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     this.account_vbox.Add(this.login_tbl);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.account_vbox[this.login_tbl]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child account_vbox.Gtk.Box+BoxChild
     this.validate_lbl           = new Gtk.Label();
     this.validate_lbl.Name      = "validate_lbl";
     this.validate_lbl.LabelProp = Mono.Unix.Catalog.GetString("<i>Verify and save account information</i>");
     this.validate_lbl.UseMarkup = true;
     this.account_vbox.Add(this.validate_lbl);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.account_vbox[this.validate_lbl]));
     w6.Position = 1;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child account_vbox.Gtk.Box+BoxChild
     this.hbuttonbox1             = new Gtk.HButtonBox();
     this.hbuttonbox1.Name        = "hbuttonbox1";
     this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.validate_btn              = new Gtk.Button();
     this.validate_btn.CanFocus     = true;
     this.validate_btn.Name         = "validate_btn";
     this.validate_btn.UseStock     = true;
     this.validate_btn.UseUnderline = true;
     this.validate_btn.Label        = "gtk-apply";
     this.hbuttonbox1.Add(this.validate_btn);
     Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.validate_btn]));
     w7.Expand = false;
     w7.Fill   = false;
     this.account_vbox.Add(this.hbuttonbox1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.account_vbox[this.hbuttonbox1]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     this.vbox2.Add(this.account_vbox);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.account_vbox]));
     w9.Position = 0;
     w9.Expand   = false;
     w9.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.middle_box         = new Gtk.VBox();
     this.middle_box.Name    = "middle_box";
     this.middle_box.Spacing = 6;
     this.vbox2.Add(this.middle_box);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox2[this.middle_box]));
     w10.Position = 1;
     this.wrapper_vbox.Add(this.vbox2);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.wrapper_vbox[this.vbox2]));
     w11.Position = 1;
     // Container child wrapper_vbox.Gtk.Box+BoxChild
     this.new_account_vbox         = new Gtk.VBox();
     this.new_account_vbox.Name    = "new_account_vbox";
     this.new_account_vbox.Spacing = 6;
     // Container child new_account_vbox.Gtk.Box+BoxChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.new_account_vbox.Add(this.hseparator1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.new_account_vbox[this.hseparator1]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child new_account_vbox.Gtk.Box+BoxChild
     this.new_account_lbl           = new Gtk.Label();
     this.new_account_lbl.Name      = "new_account_lbl";
     this.new_account_lbl.LabelProp = Mono.Unix.Catalog.GetString("Don't have an account?");
     this.new_account_vbox.Add(this.new_account_lbl);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.new_account_vbox[this.new_account_lbl]));
     w13.Position = 1;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child new_account_vbox.Gtk.Box+BoxChild
     this.new_account_button_box             = new Gtk.HButtonBox();
     this.new_account_button_box.Name        = "new_account_button_box";
     this.new_account_button_box.LayoutStyle = ((Gtk.ButtonBoxStyle)(1));
     this.new_account_vbox.Add(this.new_account_button_box);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.new_account_vbox[this.new_account_button_box]));
     w14.Position = 2;
     w14.Expand   = false;
     w14.Fill     = false;
     this.wrapper_vbox.Add(this.new_account_vbox);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.wrapper_vbox[this.new_account_vbox]));
     w15.Position = 2;
     w15.Expand   = false;
     w15.Fill     = false;
     this.Add(this.wrapper_vbox);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
     this.validate_btn.Clicked += new System.EventHandler(this.OnValidateBtnClicked);
 }
Ejemplo n.º 2
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget WeatherDocklet.WeatherConfig
     Stetic.BinContainer.Attach(this);
     this.Name = "WeatherDocklet.WeatherConfig";
     // Container child WeatherDocklet.WeatherConfig.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1              = new Gtk.Label();
     this.label1.Name         = "label1";
     this.label1.LabelProp    = Mono.Unix.Catalog.GetString("_Weather Provider:");
     this.label1.UseUnderline = true;
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.provider      = Gtk.ComboBox.NewText();
     this.provider.Name = "provider";
     this.hbox1.Add(this.provider);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.provider]));
     w2.PackType = ((Gtk.PackType)(1));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w3.Position = 0;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.provider_info        = new Docky.Widgets.WrapLabel();
     this.provider_info.Events = ((Gdk.EventMask)(256));
     this.provider_info.Name   = "provider_info";
     this.provider_info.Wrap   = false;
     this.vbox1.Add(this.provider_info);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.provider_info]));
     w4.Position = 1;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.my_locations              = new Gtk.Button();
     this.my_locations.CanFocus     = true;
     this.my_locations.Name         = "my_locations";
     this.my_locations.UseUnderline = true;
     this.my_locations.Label        = Mono.Unix.Catalog.GetString("My _Locations");
     this.hbox2.Add(this.my_locations);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.my_locations]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.location_code              = new Docky.Widgets.SearchEntry();
     this.location_code.Name         = "location_code";
     this.location_code.EmptyMessage = "Location Code, Zip, or City";
     this.location_code.Ready        = true;
     this.location_code.HasFocus     = false;
     this.hbox2.Add(this.location_code);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.location_code]));
     w6.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.search              = new Gtk.Button();
     this.search.CanFocus     = true;
     this.search.Name         = "search";
     this.search.UseUnderline = true;
     // Container child search.Gtk.Container+ContainerChild
     Gtk.Alignment w7 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w8 = new Gtk.HBox();
     w8.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w9 = new Gtk.Image();
     w9.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16);
     w8.Add(w9);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w11 = new Gtk.Label();
     w11.LabelProp    = Mono.Unix.Catalog.GetString("_Search");
     w11.UseUnderline = true;
     w8.Add(w11);
     w7.Add(w8);
     this.search.Add(w7);
     this.hbox2.Add(this.search);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.search]));
     w15.Position = 2;
     w15.Expand   = false;
     w15.Fill     = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w16.Position = 2;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w17 = new Gtk.Viewport();
     w17.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.results_view          = new Docky.Widgets.TileView();
     this.results_view.Name     = "results_view";
     this.results_view.IconSize = 24;
     w17.Add(this.results_view);
     this.scrolledwindow1.Add(w17);
     this.vbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
     w20.Position = 3;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label2              = new Gtk.Label();
     this.label2.Name         = "label2";
     this.label2.LabelProp    = Mono.Unix.Catalog.GetString("Automatically Update _Every");
     this.label2.UseUnderline = true;
     this.hbox3.Add(this.label2);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2]));
     w21.Position = 0;
     w21.Expand   = false;
     w21.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3           = new Gtk.Label();
     this.label3.Name      = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("minutes");
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w22.PackType = ((Gtk.PackType)(1));
     w22.Position = 1;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.auto_update          = new Gtk.SpinButton(5, 60, 5);
     this.auto_update.CanFocus = true;
     this.auto_update.Name     = "auto_update";
     this.auto_update.Adjustment.PageIncrement = 10;
     this.auto_update.ClimbRate = 1;
     this.auto_update.Numeric   = true;
     this.auto_update.Value     = 5;
     this.hbox3.Add(this.auto_update);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox3[this.auto_update]));
     w23.PackType = ((Gtk.PackType)(1));
     w23.Position = 2;
     w23.Expand   = false;
     w23.Fill     = false;
     this.vbox1.Add(this.hbox3);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
     w24.Position = 4;
     w24.Expand   = false;
     w24.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.metric_units               = new Gtk.CheckButton();
     this.metric_units.CanFocus      = true;
     this.metric_units.Name          = "metric_units";
     this.metric_units.Label         = Mono.Unix.Catalog.GetString("Use _Metric Units");
     this.metric_units.Active        = true;
     this.metric_units.DrawIndicator = true;
     this.metric_units.UseUnderline  = true;
     this.hbox4.Add(this.metric_units);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox4[this.metric_units]));
     w25.Position = 0;
     this.vbox1.Add(this.hbox4);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4]));
     w26.Position = 5;
     w26.Expand   = false;
     w26.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.label1.MnemonicWidget = this.provider;
     this.Hide();
     this.provider.Changed         += new System.EventHandler(this.OnProviderChanged);
     this.my_locations.Clicked     += new System.EventHandler(this.OnMyLocationsClicked);
     this.search.Clicked           += new System.EventHandler(this.OnSearchClicked);
     this.auto_update.ValueChanged += new System.EventHandler(this.OnUpdateValueChanged);
     this.metric_units.Toggled     += new System.EventHandler(this.OnMetricToggled);
 }
Ejemplo n.º 3
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget GMail.GMailLabelConfig
     Stetic.BinContainer.Attach(this);
     this.Name = "GMail.GMailLabelConfig";
     // Container child GMail.GMailLabelConfig.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label_entry              = new Docky.Widgets.SearchEntry();
     this.label_entry.Name         = "label_entry";
     this.label_entry.EmptyMessage = "Label Name";
     this.label_entry.Query        = "";
     this.label_entry.Ready        = true;
     this.label_entry.HasFocus     = false;
     this.hbox1.Add(this.label_entry);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label_entry]));
     w1.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.add_label              = new Gtk.Button();
     this.add_label.CanFocus     = true;
     this.add_label.Name         = "add_label";
     this.add_label.UseUnderline = true;
     // Container child add_label.Gtk.Container+ContainerChild
     Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w3 = new Gtk.HBox();
     w3.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w4 = new Gtk.Image();
     w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
     w3.Add(w4);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w6 = new Gtk.Label();
     w6.LabelProp    = Mono.Unix.Catalog.GetString("_Add Label");
     w6.UseUnderline = true;
     w3.Add(w6);
     w2.Add(w3);
     this.add_label.Add(w2);
     this.hbox1.Add(this.add_label);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.add_label]));
     w10.Position = 1;
     w10.Expand   = false;
     w10.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w11.Position = 0;
     w11.Expand   = false;
     w11.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w12 = new Gtk.Viewport();
     w12.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.label_list      = new Docky.Widgets.ListOnlyTileView();
     this.label_list.Name = "label_list";
     w12.Add(this.label_list);
     this.scrolledwindow1.Add(w12);
     this.vbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1]));
     w15.Position = 1;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.label1              = new Gtk.Label();
     this.label1.Name         = "label1";
     this.label1.LabelProp    = Mono.Unix.Catalog.GetString("Check e_very:");
     this.label1.UseUnderline = true;
     this.hbox2.Add(this.label1);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.label1]));
     w16.Position = 0;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("minutes");
     this.hbox2.Add(this.label2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2]));
     w17.PackType = ((Gtk.PackType)(1));
     w17.Position = 1;
     w17.Expand   = false;
     w17.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.check_interval          = new Gtk.SpinButton(2, 1440, 1);
     this.check_interval.CanFocus = true;
     this.check_interval.Name     = "check_interval";
     this.check_interval.Adjustment.PageIncrement = 10;
     this.check_interval.ClimbRate = 1;
     this.check_interval.Numeric   = true;
     this.check_interval.Value     = 15;
     this.hbox2.Add(this.check_interval);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox2[this.check_interval]));
     w18.PackType = ((Gtk.PackType)(1));
     w18.Position = 2;
     w18.Expand   = false;
     w18.Fill     = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w19.Position = 2;
     w19.Expand   = false;
     w19.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.label1.MnemonicWidget = this.check_interval;
     this.Hide();
     this.add_label.Clicked           += new System.EventHandler(this.AddLabelClicked);
     this.check_interval.ValueChanged += new System.EventHandler(this.OnIntervalValueChanged);
 }
Ejemplo n.º 4
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget NPR.StationSearchWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "NPR.StationSearchWidget";
     // Container child NPR.StationSearchWidget.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.my_stations              = new Gtk.Button();
     this.my_stations.CanFocus     = true;
     this.my_stations.Name         = "my_stations";
     this.my_stations.UseUnderline = true;
     this.my_stations.Label        = Mono.Unix.Catalog.GetString("My _Stations");
     this.hbox1.Add(this.my_stations);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.my_stations]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.ZipEntry              = new Docky.Widgets.SearchEntry();
     this.ZipEntry.Name         = "ZipEntry";
     this.ZipEntry.EmptyMessage = "Zip Code";
     this.ZipEntry.Ready        = true;
     this.ZipEntry.HasFocus     = true;
     this.hbox1.Add(this.ZipEntry);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.ZipEntry]));
     w2.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.Search              = new Gtk.Button();
     this.Search.CanFocus     = true;
     this.Search.Name         = "Search";
     this.Search.UseUnderline = true;
     // Container child Search.Gtk.Container+ContainerChild
     Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w4 = new Gtk.HBox();
     w4.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w5 = new Gtk.Image();
     w5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16);
     w4.Add(w5);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w7 = new Gtk.Label();
     w7.LabelProp    = Mono.Unix.Catalog.GetString("S_earch");
     w7.UseUnderline = true;
     w4.Add(w7);
     w3.Add(w4);
     this.Search.Add(w3);
     this.hbox1.Add(this.Search);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.Search]));
     w11.Position = 2;
     w11.Expand   = false;
     w11.Fill     = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.stationsScroll                  = new Gtk.ScrolledWindow();
     this.stationsScroll.CanFocus         = true;
     this.stationsScroll.Name             = "stationsScroll";
     this.stationsScroll.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.stationsScroll.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child stationsScroll.Gtk.Container+ContainerChild
     Gtk.Viewport w13 = new Gtk.Viewport();
     w13.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.tileview          = new Docky.Widgets.TileView();
     this.tileview.Name     = "tileview";
     this.tileview.IconSize = 64;
     w13.Add(this.tileview);
     this.stationsScroll.Add(w13);
     this.vbox1.Add(this.stationsScroll);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.stationsScroll]));
     w16.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Hide();
     this.my_stations.Clicked += new System.EventHandler(this.MyStationsClicked);
     this.Search.Clicked      += new System.EventHandler(this.SearchClicked);
 }