当前位置: 首页>>代码示例>>C#>>正文


C# Gtk.HBox.Add方法代码示例

本文整理汇总了C#中Gtk.HBox.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Gtk.HBox.Add方法的具体用法?C# Gtk.HBox.Add怎么用?C# Gtk.HBox.Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gtk.HBox的用法示例。


在下文中一共展示了Gtk.HBox.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EngineManagerDialog

        public EngineManagerDialog(EngineManager engineManager)
        {
            Trace.Call(engineManager);

            if (engineManager == null) {
                throw new ArgumentNullException("engineManager");
            }

            _EngineManager = engineManager;

            Modal = true;
            Title = "Smuxi - " + _("Engine Manager");
            SetPosition(Gtk.WindowPosition.CenterAlways);

            Gtk.HBox connect_hbox = new Gtk.HBox();
            Gtk.Image connect_image = new Gtk.Image(
                new Gdk.Pixbuf(null, "connect-button.svg", 22, 22));
            connect_hbox.Add(connect_image);
            connect_hbox.Add(new Gtk.Label(_("_Connect")));
            AddActionWidget(new Gtk.Button(connect_hbox), 1);

            AddActionWidget(new Gtk.Button(Gtk.Stock.New), 3);

            Gtk.Button edit_button = new Gtk.Button(Gtk.Stock.Edit);
            _EditButton = edit_button;
            AddActionWidget(edit_button, 2);

            _DeleteButton = new Gtk.Button(Gtk.Stock.Delete);
            AddActionWidget(_DeleteButton, 4);
            AddActionWidget(new Gtk.Button(Gtk.Stock.Quit), 5);
            Response += new Gtk.ResponseHandler(_OnResponse);

            Gtk.VBox vbox = new Gtk.VBox();
            Gtk.Label label = new Gtk.Label("<b>" +
                                            _("Select which Smuxi engine you want to connect to") +
                                            "</b>");
            label.UseMarkup = true;
            vbox.PackStart(label, false, false, 5);

            Gtk.HBox hbox = new Gtk.HBox();
            hbox.PackStart(new Gtk.Label(_("Engine:")), false, false, 5);

            _ListStore = new Gtk.ListStore(typeof(string));
            _ComboBox = new Gtk.ComboBox();
            Gtk.CellRendererText cell = new Gtk.CellRendererText();
            _ComboBox.PackStart(cell, false);
            _ComboBox.AddAttribute(cell, "text", 0);
            _ComboBox.Changed += new EventHandler(_OnComboBoxChanged);
            _ComboBox.Model = _ListStore;
            _InitEngineList();

            hbox.PackStart(_ComboBox, true, true, 10);

            vbox.PackStart(hbox, false, false, 10);

            VBox.Add(vbox);

            ShowAll();
        }
开发者ID:tuukka,项目名称:smuxi,代码行数:59,代码来源:EngineManagerDialog.cs

示例2: createGui

        public void createGui()
        {
            basedir_section=new Section("cuesheets-basedir","CueSheet Music Directory:",20);
            source_page.Add (basedir_section);

            string dir=_source.getCueSheetDir();
            Gtk.Label lbl=new Gtk.Label("CueSheet Music Directory:");
            Gtk.FileChooserButton btn=new Gtk.FileChooserButton("CueSheet Music Directory:",Gtk.FileChooserAction.SelectFolder);
            if (dir!=null) {
                btn.SelectFilename (dir);
            }
            Gtk.HBox box=new Gtk.HBox();
            box.Add (lbl);
            box.Add (btn);
            box.ShowAll ();
            btn.CurrentFolderChanged+=delegate(object sender,EventArgs args) {
                string dir1=btn.Filename;
                Hyena.Log.Information ("Folder changed to = "+dir1);
            };
            btn.FileSet+=delegate(object sender,EventArgs args) {
                string dir1=btn.Filename;
                Hyena.Log.Information ("Base directory changed to = "+dir1);
                _source.setCueSheetDir(dir1);
            };

            Console.WriteLine (_source);

            Gtk.VBox vb=new Gtk.VBox();
            vb.PackStart (box,false,false,0);

            Gtk.Image icn_about=new Gtk.Image(Gtk.Stock.About,Gtk.IconSize.Button);
            Gtk.Button about=new Gtk.Button(icn_about);
            about.Clicked+=new EventHandler(handleAbout);
            Gtk.HBox hb=new Gtk.HBox();
            Gtk.Label _about=new Gtk.Label("About the CueSheet extension");
            hb.PackEnd (about,false,false,0);
            hb.PackEnd (_about,false,false,5);
            vb.PackStart (hb,false,false,0);
            Gtk.HBox hb1=new Gtk.HBox();
            Gtk.Label _info=new Gtk.Label("How to use the Cuesheet extension (opens browser)");
            Gtk.Image icn_info=new Gtk.Image(Gtk.Stock.Info,Gtk.IconSize.Button);
            Gtk.Button btn_info=new Gtk.Button(icn_info);
            btn_info.Clicked+=new EventHandler(handleInfo);
            hb1.PackEnd(btn_info,false,false,0);
            hb1.PackEnd(_info,false,false,5);
            vb.PackStart (hb1,false,false,0);

            Gtk.HBox hbX=new Gtk.HBox();
            vb.PackEnd (hbX,true,true,0);

            vb.ShowAll ();

            source_page.DisplayWidget = vb;
        }
开发者ID:nailyk,项目名称:banshee-community-extensions,代码行数:54,代码来源:CueSheetsPrefs.cs

示例3: OnViewBoxes

        private void OnViewBoxes()
        {
            var dlg = new Gtk.Dialog( "Boxes", this, Gtk.DialogFlags.Modal );

            var hbBox1 = new Gtk.HBox( false, 5 );
            hbBox1.Add( new Gtk.Label( "This is hbox 1" ) );
            var hbBox2 = new Gtk.HBox( false, 5 );
            hbBox2.Add( new Gtk.Label( "This is hbox 2" ) );
            var hbBox3 = new Gtk.HBox( false, 5 );
            hbBox3.Add( new Gtk.Label( "This is hbox 3" ) );

            dlg.VBox.PackStart( hbBox1, true, true, 5 );
            dlg.VBox.PackStart( hbBox2, true, true, 5 );
            dlg.VBox.PackStart( hbBox3, true, true, 5 );

            dlg.SetGeometryHints(
                dlg,
                new Gdk.Geometry() {
                    MinHeight = 200,
                    MinWidth = 320
                },
                Gdk.WindowHints.MinSize
            );

            dlg.AddButton( "Ok", Gtk.ResponseType.Ok );
            dlg.ShowAll();
            dlg.Run();
            dlg.Destroy();
        }
开发者ID:Baltasarq,项目名称:GTKSharpDemo,代码行数:29,代码来源:MainWindowCore.cs

示例4: Main

 public Main(Controller.Main c)
     : base(Gtk.WindowType.Toplevel)
 {
     ctl = c;
     Name = "di";
     Title = "di";
     DefaultWidth = 800;
     DefaultHeight = 600;
     DeleteEvent += OnDeleteEvent;
     topLevelBox = new Gtk.HBox();
     topLevelBox.Homogeneous = false;
     topLevelBox.Spacing = 20;
     Add(topLevelBox);
     windowsBox = new Gtk.HBox();
     windowsBox.Homogeneous = true;
     windowsBox.Spacing = 10;
     foreach (var window in ctl.Windows)
     {
         var view = new WindowView(this, window);
         windowsBox.Add(view);
     }
     topLevelBox.PackStart(windowsBox, true, true, 0);
     ctl.Windows.Added.Add((index, window) =>
     {
         var view = new WindowView(this, window);
         windowsBox.Add(view);
         windowsBox.ShowAll();
     });
     ctl.Windows.Removed.Add((index, window) =>
     {
         var view = windowsBox.Children[index];
         bool hadFocus = view.ContainsFocus();
         windowsBox.Remove(view);
         if (hadFocus && windowsBox.Children.Length > 0)
         {
             windowsBox.Children[0].GiveFocus();
         }
     });
     ctl.Windows.Cleared.Add(() =>
     {
         foreach (var view in windowsBox.Children)
         {
             windowsBox.Remove(view);
         }
     });
     ctl.Windows.CurrentChanged.Add((idx, win) => ApplyControllerFocus(win));
     ctl.BeginTask.Add(task =>
     {
         var sidebar = Sidebar.Create(task);
         topLevelBox.PackEnd(sidebar, false, false, 20);
         task.End.Add(() =>
         {
             bool hadFocus = sidebar.ContainsFocus();
             topLevelBox.Remove(sidebar);
             if (hadFocus)
             {
                 ApplyControllerFocus(ctl.Windows.Current);
             }
         });
         sidebar.ShowAll();
     });
 }
开发者ID:ktvoelker,项目名称:di,代码行数:62,代码来源:Main.cs

示例5: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.Gui.Widgets.PointPickerWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "Pinta.Gui.Widgets.PointPickerWidget";
     // Container child Pinta.Gui.Widgets.PointPickerWidget.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     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 = new Gtk.Label();
     this.label.Name = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label");
     this.hbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.hbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator1]));
     w2.Position = 1;
     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.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.pointpickergraphic1 = new Pinta.Gui.Widgets.PointPickerGraphic();
     this.pointpickergraphic1.Name = "pointpickergraphic1";
     this.hbox2.Add(this.pointpickergraphic1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.pointpickergraphic1]));
     w4.Position = 0;
     w4.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     // Container child button1.Gtk.Container+ContainerChild
     Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w6 = new Gtk.HBox();
     w6.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w7 = new Gtk.Image();
     w7.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16);
     w6.Add(w7);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w9 = new Gtk.Label();
     w6.Add(w9);
     w5.Add(w6);
     this.button1.Add(w5);
     this.table1.Add(this.button1);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.button1]));
     w13.LeftAttach = ((uint)(2));
     w13.RightAttach = ((uint)(3));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.button2 = new Gtk.Button();
     this.button2.CanFocus = true;
     this.button2.Name = "button2";
     this.button2.UseUnderline = true;
     // Container child button2.Gtk.Container+ContainerChild
     Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w15 = new Gtk.HBox();
     w15.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w16 = new Gtk.Image();
     w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16);
     w15.Add(w16);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w18 = new Gtk.Label();
     w15.Add(w18);
     w14.Add(w15);
     this.button2.Add(w14);
     this.table1.Add(this.button2);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.button2]));
     w22.TopAttach = ((uint)(1));
     w22.BottomAttach = ((uint)(2));
     w22.LeftAttach = ((uint)(2));
     w22.RightAttach = ((uint)(3));
//.........这里部分代码省略.........
开发者ID:xxgreg,项目名称:Pinta,代码行数:101,代码来源:Pinta.Gui.Widgets.PointPickerWidget.cs

示例6: Build

 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "Boxerp.Client.GtkSharp.Lib.QuestionDialog")) {
         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
         // Widget Boxerp.Client.GtkSharp.Lib.QuestionDialog
         cobj.Title = "Question";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Modal = true;
         cobj.HasSeparator = false;
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog";
         // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.VBox
         Gtk.VBox w1 = cobj.VBox;
         w1.BorderWidth = ((uint)(2));
         w1.Events = ((Gdk.EventMask)(256));
         w1.Name = "dialog_VBox";
         // Container child dialog_VBox.Gtk.Box+BoxChild
         Gtk.HBox w2 = new Gtk.HBox();
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Image w3 = new Gtk.Image();
         w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0);
         w3.Events = ((Gdk.EventMask)(0));
         w3.Name = "image";
         bindings["image"] = w3;
         w2.Add(w3);
         Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
         w4.Position = 0;
         w4.Expand = false;
         w4.Fill = false;
         w4.Padding = ((uint)(5));
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w5 = new Gtk.Label();
         w5.LabelProp = "Info";
         w5.Events = ((Gdk.EventMask)(0));
         w5.Name = "label";
         bindings["label"] = w5;
         w2.Add(w5);
         Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
         w6.Position = 1;
         bindings["hbox1"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
         w7.Position = 0;
         w7.Expand = false;
         w7.Fill = false;
         w7.Padding = ((uint)(5));
         bindings["dialog_VBox"] = w1;
         // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.ActionArea
         Gtk.HButtonBox w8 = cobj.ActionArea;
         w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
         w8.Spacing = 10;
         w8.BorderWidth = ((uint)(5));
         w8.Events = ((Gdk.EventMask)(256));
         w8.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea";
         // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w9 = new Gtk.Button();
         w9.CanFocus = true;
         w9.Events = ((Gdk.EventMask)(0));
         w9.Name = "button22";
         w9.CanDefault = true;
         // Container child button22.Gtk.Container+ContainerChild
         Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "GtkAlignment";
         // Container child GtkAlignment.Gtk.Container+ContainerChild
         Gtk.HBox w11 = new Gtk.HBox();
         w11.Spacing = 2;
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "GtkHBox";
         // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Image w12 = new Gtk.Image();
         w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-no", 16, 0);
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "image2";
         bindings["image2"] = w12;
         w11.Add(w12);
         // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Label w14 = new Gtk.Label();
         w14.LabelProp = "No";
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "GtkLabel";
         bindings["GtkLabel"] = w14;
         w11.Add(w14);
         bindings["GtkHBox"] = w11;
         w10.Add(w11);
         bindings["GtkAlignment"] = w10;
         w9.Add(w10);
         bindings["button22"] = w9;
         cobj.AddActionWidget(w9, -9);
         Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
         w18.Expand = false;
         w18.Fill = false;
         // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w19 = new Gtk.Button();
         w19.CanFocus = true;
         w19.Events = ((Gdk.EventMask)(0));
         w19.Name = "button24";
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:boxerp-svn,代码行数:101,代码来源:generated.cs

示例7: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoTwitts.Ui.StatusViewItem
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoTwitts.Ui.StatusViewItem";
     // Container child MonoTwitts.Ui.StatusViewItem.Gtk.Container+ContainerChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.image = new Gtk.Image();
     this.image.Name = "image";
     this.image.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_smiley-10", Gtk.IconSize.Dialog, 48);
     this.hbox2.Add(this.image);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.image]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 20;
     // Container child hbox3.Gtk.Box+BoxChild
     this.username = new Gtk.Button();
     this.username.CanDefault = true;
     this.username.CanFocus = true;
     this.username.Name = "username";
     this.username.Relief = ((Gtk.ReliefStyle)(2));
     this.username.Label = Mono.Unix.Catalog.GetString("$username");
     this.hbox3.Add(this.username);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.username]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Homogeneous = true;
     // Container child hbox4.Gtk.Box+BoxChild
     this.favorite = new Gtk.Button();
     this.favorite.CanFocus = true;
     this.favorite.Name = "favorite";
     this.favorite.Relief = ((Gtk.ReliefStyle)(2));
     // Container child favorite.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-about", Gtk.IconSize.Menu, 16);
     w4.Add(w5);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w7 = new Gtk.Label();
     w7.LabelProp = "";
     w4.Add(w7);
     w3.Add(w4);
     this.favorite.Add(w3);
     this.hbox4.Add(this.favorite);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox4[this.favorite]));
     w11.Position = 0;
     w11.Expand = false;
     w11.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.direct = new Gtk.Button();
     this.direct.CanFocus = true;
     this.direct.Name = "direct";
     this.direct.Relief = ((Gtk.ReliefStyle)(2));
     // Container child direct.Gtk.Container+ContainerChild
     Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w13 = new Gtk.HBox();
     w13.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w14 = new Gtk.Image();
     w14.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_draw-callouts", Gtk.IconSize.Menu, 16);
     w13.Add(w14);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w16 = new Gtk.Label();
     w16.LabelProp = "";
     w13.Add(w16);
     w12.Add(w13);
     this.direct.Add(w12);
     this.hbox4.Add(this.direct);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox4[this.direct]));
     w20.Position = 1;
     w20.Expand = false;
     w20.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.reply = new Gtk.Button();
     this.reply.CanFocus = true;
     this.reply.Name = "reply";
     this.reply.Relief = ((Gtk.ReliefStyle)(2));
     // Container child reply.Gtk.Container+ContainerChild
     Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
//.........这里部分代码省略.........
开发者ID:igorgue,项目名称:mono-twitts,代码行数:101,代码来源:MonoTwitts.Ui.StatusViewItem.cs

示例8: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.FriendsList
     Stetic.BinContainer.Attach(this);
     this.Name = "omvviewerlight.FriendsList";
     // Container child omvviewerlight.FriendsList.Gtk.Container+ContainerChild
     this.vbox7 = new Gtk.VBox();
     this.vbox7.Name = "vbox7";
     this.vbox7.Spacing = 6;
     // Container child vbox7.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.treeview_friends = new Gtk.TreeView();
     this.treeview_friends.WidthRequest = 225;
     this.treeview_friends.CanFocus = true;
     this.treeview_friends.Name = "treeview_friends";
     this.treeview_friends.Reorderable = true;
     this.GtkScrolledWindow.Add(this.treeview_friends);
     this.vbox7.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox7[this.GtkScrolledWindow]));
     w2.Position = 0;
     // Container child vbox7.Gtk.Box+BoxChild
     this.vbox8 = new Gtk.VBox();
     this.vbox8.Name = "vbox8";
     this.vbox8.Spacing = 6;
     // Container child vbox8.Gtk.Box+BoxChild
     this.vbox11 = new Gtk.VBox();
     this.vbox11.Name = "vbox11";
     this.vbox11.Spacing = 6;
     // Container child vbox11.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Homogeneous = true;
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button_IM = new Gtk.Button();
     this.button_IM.CanFocus = true;
     this.button_IM.Name = "button_IM";
     this.button_IM.UseUnderline = true;
     // Container child button_IM.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 = MainClass.GetResource("icn_voice-groupfocus.png");
     w4.Add(w5);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w7 = new Gtk.Label();
     w7.LabelProp = Mono.Unix.Catalog.GetString("IM");
     w7.UseUnderline = true;
     w4.Add(w7);
     w3.Add(w4);
     this.button_IM.Add(w3);
     this.hbox1.Add(this.button_IM);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.button_IM]));
     w11.Position = 0;
     w11.Expand = false;
     w11.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button_teleport = new Gtk.Button();
     this.button_teleport.CanFocus = true;
     this.button_teleport.Name = "button_teleport";
     this.button_teleport.UseUnderline = true;
     // Container child button_teleport.Gtk.Container+ContainerChild
     Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w13 = new Gtk.HBox();
     w13.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w14 = new Gtk.Image();
     w14.Pixbuf = MainClass.GetResource("icon_place.png");
     w13.Add(w14);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w16 = new Gtk.Label();
     w16.LabelProp = Mono.Unix.Catalog.GetString("Teleport");
     w16.UseUnderline = true;
     w13.Add(w16);
     w12.Add(w13);
     this.button_teleport.Add(w12);
     this.hbox1.Add(this.button_teleport);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.button_teleport]));
     w20.Position = 1;
     w20.Expand = false;
     w20.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button_pay = new Gtk.Button();
     this.button_pay.CanFocus = true;
     this.button_pay.Name = "button_pay";
     this.button_pay.UseUnderline = true;
     // Container child button_pay.Gtk.Container+ContainerChild
     Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w22 = new Gtk.HBox();
     w22.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
//.........这里部分代码省略.........
开发者ID:robincornelius,项目名称:omvviewer-light,代码行数:101,代码来源:omvviewerlight.FriendsList.cs

示例9: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Bot.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.ConnectAction = new Gtk.Action("ConnectAction", Mono.Unix.Catalog.GetString("Connect"), null, "gtk-connect");
     this.ConnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Connect");
     w1.Add(this.ConnectAction, null);
     this.ResetAction = new Gtk.Action("ResetAction", Mono.Unix.Catalog.GetString("Reset"), null, "gtk-refresh");
     this.ResetAction.ShortLabel = Mono.Unix.Catalog.GetString("Reset");
     w1.Add(this.ResetAction, null);
     this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("Close"), null, "gtk-stop");
     this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect");
     w1.Add(this.CloseAction, null);
     this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.QuitAction, null);
     this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("Edit"), null, null);
     this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
     w1.Add(this.EditAction, null);
     this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("View"), null, null);
     this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View");
     w1.Add(this.ViewAction, null);
     this.ToolsAction = new Gtk.Action("ToolsAction", Mono.Unix.Catalog.GetString("Tools"), null, null);
     this.ToolsAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools");
     w1.Add(this.ToolsAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, null);
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction, null);
     this.HelpAction1 = new Gtk.Action("HelpAction1", Mono.Unix.Catalog.GetString("Help"), null, "gtk-help");
     this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("Help");
     w1.Add(this.HelpAction1, null);
     this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
     this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About");
     w1.Add(this.AboutAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "Bot.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Kakaroto's Bot");
     this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_smiley-10", Gtk.IconSize.Menu, 16);
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Gravity = ((Gdk.Gravity)(5));
     // Container child Bot.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='ConnectAction' action='ConnectAction'/><menuitem name='ResetAction' action='ResetAction'/><menuitem name='CloseAction' action='CloseAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='EditAction' action='EditAction'/><menu name='ViewAction' action='ViewAction'/><menu name='ToolsAction' action='ToolsAction'/><menu name='HelpAction' action='HelpAction'><menuitem name='HelpAction1' action='HelpAction1'/><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Homogeneous = true;
     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("Irc. Server");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Channel");
     this.hbox1.Add(this.label2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.hbox1.Add(this.label3);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.label3]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w6.Position = 1;
     w6.Expand = false;
     // 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
//.........这里部分代码省略.........
开发者ID:ibarra,项目名称:bot,代码行数:101,代码来源:Bot.MainWindow.cs

示例10: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.LoginControl
     Stetic.BinContainer.Attach(this);
     this.Name = "omvviewerlight.LoginControl";
     // Container child omvviewerlight.LoginControl.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     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.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Homogeneous = true;
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("First name");
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Last Name");
     this.vbox2.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.vbox2.Add(this.label3);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.label3]));
     w3.Position = 2;
     w3.Expand = false;
     w3.Fill = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.entry_first = new Gtk.Entry();
     this.entry_first.CanFocus = true;
     this.entry_first.Name = "entry_first";
     this.entry_first.IsEditable = true;
     this.entry_first.InvisibleChar = '●';
     this.vbox3.Add(this.entry_first);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_first]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.entry_last = new Gtk.Entry();
     this.entry_last.CanFocus = true;
     this.entry_last.Name = "entry_last";
     this.entry_last.IsEditable = true;
     this.entry_last.InvisibleChar = '●';
     this.vbox3.Add(this.entry_last);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_last]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.entry_pass = new Gtk.Entry();
     this.entry_pass.CanFocus = true;
     this.entry_pass.Name = "entry_pass";
     this.entry_pass.IsEditable = true;
     this.entry_pass.InvisibleChar = '●';
     this.vbox3.Add(this.entry_pass);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_pass]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     this.hbox1.Add(this.vbox3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
     w8.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button_login = new Gtk.Button();
     this.button_login.WidthRequest = 100;
     this.button_login.HeightRequest = 50;
     this.button_login.CanFocus = true;
     this.button_login.Name = "button_login";
     this.button_login.UseUnderline = true;
     // Container child button_login.Gtk.Container+ContainerChild
     Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
//.........这里部分代码省略.........
开发者ID:robincornelius,项目名称:omvviewer-light,代码行数:101,代码来源:omvviewerlight.LoginControl.cs

示例11: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.MapSelectionWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.MapSelectionWidget";
     // Container child ocmgtk.MapSelectionWidget.Gtk.Container+ContainerChild
     this.table6 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table6.Name = "table6";
     this.table6.RowSpacing = ((uint)(6));
     this.table6.ColumnSpacing = ((uint)(6));
     this.table6.BorderWidth = ((uint)(6));
     // Container child table6.Gtk.Table+TableChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.image17 = new Gtk.Image();
     this.image17.Name = "image17";
     this.image17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Button, 20);
     this.hbox1.Add(this.image17);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.image17]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("The highest map in the list will be the default map when OCM starts.");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w2.Position = 1;
     this.table6.Add(this.hbox1);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table6[this.hbox1]));
     w3.RightAttach = ((uint)(2));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.mapView = new Gtk.TreeView();
     this.mapView.CanFocus = true;
     this.mapView.Name = "mapView";
     this.scrolledwindow1.Add(this.mapView);
     this.table6.Add(this.scrolledwindow1);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table6[this.scrolledwindow1]));
     w5.TopAttach = ((uint)(1));
     w5.BottomAttach = ((uint)(2));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table6.Gtk.Table+TableChild
     this.table7 = new Gtk.Table(((uint)(11)), ((uint)(1)), false);
     this.table7.Name = "table7";
     this.table7.RowSpacing = ((uint)(6));
     this.table7.ColumnSpacing = ((uint)(6));
     // Container child table7.Gtk.Table+TableChild
     this.activateButton = new Gtk.Button();
     this.activateButton.Sensitive = false;
     this.activateButton.CanFocus = true;
     this.activateButton.Name = "activateButton";
     this.activateButton.UseUnderline = true;
     // Container child activateButton.Gtk.Container+ContainerChild
     Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w7 = new Gtk.HBox();
     w7.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w8 = new Gtk.Image();
     w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
     w7.Add(w8);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w10 = new Gtk.Label();
     w10.LabelProp = Mono.Unix.Catalog.GetString("Enable Map");
     w10.UseUnderline = true;
     w7.Add(w10);
     w6.Add(w7);
     this.activateButton.Add(w6);
     this.table7.Add(this.activateButton);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table7[this.activateButton]));
     w14.TopAttach = ((uint)(4));
     w14.BottomAttach = ((uint)(5));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table7.Gtk.Table+TableChild
     this.deactivateButton = new Gtk.Button();
     this.deactivateButton.Sensitive = false;
     this.deactivateButton.CanFocus = true;
     this.deactivateButton.Name = "deactivateButton";
     this.deactivateButton.UseUnderline = true;
     // Container child deactivateButton.Gtk.Container+ContainerChild
     Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w16 = new Gtk.HBox();
     w16.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w17 = new Gtk.Image();
     w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
//.........这里部分代码省略.........
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:101,代码来源:ocmgtk.MapSelectionWidget.cs

示例12: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget OpenGridServices.Manager.ConnectToGridServerDialog
     this.Events = ((Gdk.EventMask)(256));
     this.Name = "OpenGridServices.Manager.ConnectToGridServerDialog";
     this.Title = Mono.Unix.Catalog.GetString("Connect to Grid server");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.HasSeparator = false;
     // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.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.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     // Container child vbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 1F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Grid server URL: ");
     this.label1.Justify = ((Gtk.Justification)(1));
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w2.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.entry1 = new Gtk.Entry();
     this.entry1.CanFocus = true;
     this.entry1.Name = "entry1";
     this.entry1.Text = Mono.Unix.Catalog.GetString("http://gridserver:8001");
     this.entry1.IsEditable = true;
     this.entry1.MaxLength = 255;
     this.entry1.InvisibleChar = '•';
     this.hbox1.Add(this.entry1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry1]));
     w3.Position = 1;
     this.vbox3.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     // Container child hbox2.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 1F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Username:");
     this.label2.Justify = ((Gtk.Justification)(1));
     this.hbox2.Add(this.label2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2]));
     w5.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.entry2 = new Gtk.Entry();
     this.entry2.CanFocus = true;
     this.entry2.Name = "entry2";
     this.entry2.IsEditable = true;
     this.entry2.InvisibleChar = '•';
     this.hbox2.Add(this.entry2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.entry2]));
     w6.Position = 1;
     this.vbox3.Add(this.hbox2);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 1F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password:");
     this.label3.Justify = ((Gtk.Justification)(1));
     this.hbox3.Add(this.label3);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
     w8.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entry3 = new Gtk.Entry();
     this.entry3.CanFocus = true;
     this.entry3.Name = "entry3";
     this.entry3.IsEditable = true;
     this.entry3.InvisibleChar = '•';
     this.hbox3.Add(this.entry3);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.entry3]));
     w9.Position = 1;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
//.........这里部分代码省略.........
开发者ID:kf6kjg,项目名称:halcyon,代码行数:101,代码来源:OpenGridServices.Manager.ConnectToGridServerDialog.cs

示例13: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.ResizeCanvasDialog
     this.Name = "Pinta.ResizeCanvasDialog";
     this.Title = Mono.Unix.Catalog.GetString("Resize Canvas");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     this.DefaultWidth = 300;
     this.DefaultHeight = 200;
     // Internal child Pinta.ResizeCanvasDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     this.vbox2.BorderWidth = ((uint)(12));
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.percentageRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By percentage:"));
     this.percentageRadio.CanFocus = true;
     this.percentageRadio.Name = "percentageRadio";
     this.percentageRadio.DrawIndicator = true;
     this.percentageRadio.UseUnderline = true;
     this.percentageRadio.Group = new GLib.SList(System.IntPtr.Zero);
     this.hbox1.Add(this.percentageRadio);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageRadio]));
     w2.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.percentageSpinner = new Gtk.SpinButton(1, 1000, 1);
     this.percentageSpinner.CanFocus = true;
     this.percentageSpinner.Name = "percentageSpinner";
     this.percentageSpinner.Adjustment.PageIncrement = 10;
     this.percentageSpinner.ClimbRate = 1;
     this.percentageSpinner.Numeric = true;
     this.percentageSpinner.Value = 100;
     this.hbox1.Add(this.percentageSpinner);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.percentageSpinner]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("%");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w4.Position = 2;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.absoluteRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("By absolute size:"));
     this.absoluteRadio.CanFocus = true;
     this.absoluteRadio.Name = "absoluteRadio";
     this.absoluteRadio.DrawIndicator = true;
     this.absoluteRadio.UseUnderline = true;
     this.absoluteRadio.Group = this.percentageRadio.Group;
     this.hbox2.Add(this.absoluteRadio);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.absoluteRadio]));
     w6.Position = 0;
     this.vbox2.Add(this.hbox2);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox2.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("Width:");
     this.hbox3.Add(this.label2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.widthSpinner = new Gtk.SpinButton(1, 10000, 1);
     this.widthSpinner.Sensitive = false;
     this.widthSpinner.CanFocus = true;
     this.widthSpinner.Name = "widthSpinner";
     this.widthSpinner.Adjustment.PageIncrement = 10;
     this.widthSpinner.ClimbRate = 1;
     this.widthSpinner.Numeric = true;
//.........这里部分代码省略.........
开发者ID:asbjornu,项目名称:Pinta,代码行数:101,代码来源:Pinta.ResizeCanvasDialog.cs

示例14: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.CloseMinimiseDlg
     this.Name = "omvviewerlight.CloseMinimiseDlg";
     this.Title = Mono.Unix.Catalog.GetString("Close application?");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable = false;
     this.AllowGrow = false;
     this.DestroyWithParent = true;
     this.HasSeparator = false;
     // Internal child omvviewerlight.CloseMinimiseDlg.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.HeightRequest = 62;
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Do you wish to Quit the application?\nor Minimise to the system tray area?");
     this.vbox2.Add(this.label2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.checkbutton1 = new Gtk.CheckButton();
     this.checkbutton1.CanFocus = true;
     this.checkbutton1.Name = "checkbutton1";
     this.checkbutton1.Label = Mono.Unix.Catalog.GetString("Remember this choice");
     this.checkbutton1.DrawIndicator = true;
     this.checkbutton1.UseUnderline = true;
     this.vbox2.Add(this.checkbutton1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.checkbutton1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Internal child omvviewerlight.CloseMinimiseDlg.ActionArea
     Gtk.HButtonBox w5 = this.ActionArea;
     w5.Name = "dialog1_ActionArea";
     w5.Spacing = 6;
     w5.BorderWidth = ((uint)(5));
     w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(1));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.button9 = new Gtk.Button();
     this.button9.CanFocus = true;
     this.button9.Name = "button9";
     this.button9.UseStock = true;
     this.button9.UseUnderline = true;
     this.button9.Label = "gtk-quit";
     this.AddActionWidget(this.button9, -7);
     Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.button9]));
     w6.Expand = false;
     w6.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseUnderline = true;
     // Container child buttonCancel.Gtk.Container+ContainerChild
     Gtk.Alignment w7 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     Gtk.HBox w8 = new Gtk.HBox();
     w8.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w9 = new Gtk.Image();
     w8.Add(w9);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w11 = new Gtk.Label();
     w11.LabelProp = Mono.Unix.Catalog.GetString("_Minimise");
     w11.UseUnderline = true;
     w8.Add(w11);
     w7.Add(w8);
     this.buttonCancel.Add(w7);
     this.AddActionWidget(this.buttonCancel, -3);
     Gtk.ButtonBox.ButtonBoxChild w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonOk, -6);
     Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk]));
     w16.Position = 2;
//.........这里部分代码省略.........
开发者ID:robincornelius,项目名称:omvviewer-light,代码行数:101,代码来源:omvviewerlight.CloseMinimiseDlg.cs

示例15: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monsoon.PreferencesDialog
     this.Events = ((Gdk.EventMask)(256));
     this.Name = "Monsoon.PreferencesDialog";
     this.Title = Mono.Unix.Catalog.GetString("Monsoon Preferences");
     // Internal child Monsoon.PreferencesDialog.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.prefNotebook = new Gtk.Notebook();
     this.prefNotebook.CanFocus = true;
     this.prefNotebook.Name = "prefNotebook";
     this.prefNotebook.CurrentPage = 0;
     // Container child prefNotebook.Gtk.Notebook+NotebookChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.frame7 = new Gtk.Frame();
     this.frame7.Name = "frame7";
     this.frame7.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame7.Gtk.Container+ContainerChild
     this.GtkAlignment10 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment10.Name = "GtkAlignment10";
     this.GtkAlignment10.LeftPadding = ((uint)(12));
     // Container child GtkAlignment10.Gtk.Container+ContainerChild
     this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.comboToolbarStyle = Gtk.ComboBox.NewText();
     this.comboToolbarStyle.Name = "comboToolbarStyle";
     this.table1.Add(this.comboToolbarStyle);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.comboToolbarStyle]));
     w2.TopAttach = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.lblToolbarStyle = new Gtk.Label();
     this.lblToolbarStyle.Name = "lblToolbarStyle";
     this.lblToolbarStyle.Xalign = 0F;
     this.lblToolbarStyle.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.table1.Add(this.lblToolbarStyle);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.lblToolbarStyle]));
     w3.TopAttach = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.loadDialogCheckButton = new Gtk.CheckButton();
     this.loadDialogCheckButton.CanFocus = true;
     this.loadDialogCheckButton.Name = "loadDialogCheckButton";
     this.loadDialogCheckButton.Label = Mono.Unix.Catalog.GetString("Enable Load Torrent confirmation dialog");
     this.loadDialogCheckButton.DrawIndicator = true;
     this.loadDialogCheckButton.UseUnderline = true;
     this.table1.Add(this.loadDialogCheckButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.loadDialogCheckButton]));
     w4.RightAttach = ((uint)(2));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment10.Add(this.table1);
     this.frame7.Add(this.GtkAlignment10);
     this.GtkLabel13 = new Gtk.Label();
     this.GtkLabel13.Name = "GtkLabel13";
     this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>Display Options</b>");
     this.GtkLabel13.UseMarkup = true;
     this.frame7.LabelWidget = this.GtkLabel13;
     this.vbox3.Add(this.frame7);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame7]));
     w7.Position = 0;
     w7.Expand = false;
     w7.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.frame8 = new Gtk.Frame();
     this.frame8.Name = "frame8";
     this.frame8.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame8.Gtk.Container+ContainerChild
     this.GtkAlignment11 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment11.Name = "GtkAlignment11";
     this.GtkAlignment11.LeftPadding = ((uint)(12));
     // Container child GtkAlignment11.Gtk.Container+ContainerChild
     this.table2 = new Gtk.Table(((uint)(3)), ((uint)(1)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.enableNotificationsCheckButton = new Gtk.CheckButton();
     this.enableNotificationsCheckButton.CanFocus = true;
     this.enableNotificationsCheckButton.Name = "enableNotificationsCheckButton";
     this.enableNotificationsCheckButton.Label = Mono.Unix.Catalog.GetString("Enable notifications on torrent completion");
     this.enableNotificationsCheckButton.DrawIndicator = true;
     this.enableNotificationsCheckButton.UseUnderline = true;
     this.table2.Add(this.enableNotificationsCheckButton);
//.........这里部分代码省略.........
开发者ID:ArsenShnurkov,项目名称:monsoon,代码行数:101,代码来源:Monsoon.PreferencesDialog.cs


注:本文中的Gtk.HBox.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。