예제 #1
0
        public ExportToHtmlDialog(string default_file) :
            base(Catalog.GetString("Destination for HTML Export"),
                 null, Gtk.FileChooserAction.Save, new object[] {})
        {
            AddButton(Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
            AddButton(Gtk.Stock.Save, Gtk.ResponseType.Ok);

            DefaultResponse = Gtk.ResponseType.Ok;

            Gtk.Table table = new Gtk.Table(2, 2, false);

            export_linked          = new Gtk.CheckButton(Catalog.GetString("Export linked notes"));
            export_linked.Toggled += OnExportLinkedToggled;
            table.Attach(export_linked, 0, 2, 0, 1, Gtk.AttachOptions.Fill, 0, 0, 0);

            export_linked_all =
                new Gtk.CheckButton(Catalog.GetString("Include all other linked notes"));
            table.Attach(export_linked_all,
                         1, 2, 1, 2, Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill, 0, 20, 0);

            ExtraWidget = table;

            DoOverwriteConfirmation = true;
            LocalOnly = true;

            ShowAll();
            LoadPreferences(default_file);
            SetExportLinkedAllSensitivity();
        }
예제 #2
0
        public void Initialize(EditSession prop)
        {
            if (prop.Property.PropertyType != typeof(int))
            {
                throw new ApplicationException("OptIntRange editor does not support editing values of type " + prop.Property.PropertyType);
            }

            double min = (double)Int32.MinValue;
            double max = (double)Int32.MaxValue;

            //if (omin == null)
            //    omin = prop.Minimum;
            //if (omax == null)
            //    omax = prop.Maximum;

            if (omin != null)
            {
                min = (double)Convert.ChangeType(omin, typeof(double));
            }
            if (omax != null)
            {
                max = (double)Convert.ChangeType(omax, typeof(double));
            }

            check = new Gtk.CheckButton();
            check.Show();
            check.Toggled += check_Toggled;
            PackStart(check, false, false, 0);

            spin = new Gtk.SpinButton(min, max, 1.0);
            spin.Show();
            spin.HasFrame      = false;
            spin.ValueChanged += spin_ValueChanged;
            PackStart(spin, true, true, 0);
        }
예제 #3
0
		public void Initialize (PropertyDescriptor prop)
		{
			if (prop.PropertyType != typeof(int))
				throw new ApplicationException ("OptIntRange editor does not support editing values of type " + prop.PropertyType);

			double min = (double) Int32.MinValue;
			double max = (double) Int32.MaxValue;
			
			if (omin == null)
				omin = prop.Minimum;
			if (omax == null)
				omax = prop.Maximum;
			
			if (omin != null)
				min = (double) Convert.ChangeType (omin, typeof(double));
			if (omax != null)
				max = (double) Convert.ChangeType (omax, typeof(double));
			
			check = new Gtk.CheckButton ();
			check.Show ();
			check.Toggled += check_Toggled;
			PackStart (check, false, false, 0);

			spin = new Gtk.SpinButton (min, max, 1.0);
			spin.Show ();
			spin.HasFrame = false;
			spin.ValueChanged += spin_ValueChanged;
			PackStart (spin, true, true, 0);
		}
예제 #4
0
		public override void Initialize ()
		{
			NeedsEventBox = false;
			Widget = new Gtk.CheckButton ();
			Widget.Toggled += HandleWidgetActivated;
			Widget.Show ();
		}
예제 #5
0
public ExportToHtmlDialog (string default_file) :
		base (Catalog.GetString ("Destination for HTML Export"),
		      null, Gtk.FileChooserAction.Save, new object[] {})
		{
			AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
			AddButton (Gtk.Stock.Save, Gtk.ResponseType.Ok);

			DefaultResponse = Gtk.ResponseType.Ok;

			Gtk.Table table = new Gtk.Table (2, 2, false);

			export_linked = new Gtk.CheckButton (Catalog.GetString ("Export linked notes"));
			export_linked.Toggled += OnExportLinkedToggled;
			table.Attach (export_linked, 0, 2, 0, 1, Gtk.AttachOptions.Fill, 0, 0, 0);

			export_linked_all =
			        new Gtk.CheckButton (Catalog.GetString ("Include all other linked notes"));
			table.Attach (export_linked_all,
			              1, 2, 1, 2, Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill, 0, 20, 0);

			ExtraWidget = table;

			DoOverwriteConfirmation = true;
			LocalOnly = true;

			ShowAll ();
			LoadPreferences (default_file);
		}
예제 #6
0
 public override void Initialize()
 {
     NeedsEventBox   = false;
     Widget          = new Gtk.CheckButton();
     Widget.Toggled += HandleWidgetActivated;
     Widget.Show();
 }
예제 #7
0
 public CustomOptions()
 {
     this.Spacing  = 10;
     SelectionOnly = new Gtk.CheckButton {
         Label = "Selection Only"
     };
     this.PackStart(SelectionOnly, false, false, 10);
 }
        void RegisterCheck(Gtk.CheckButton check, PackagingProject project, Package package)
        {
            PackageInfo pi = new PackageInfo();

            pi.Check   = check;
            pi.Project = project;
            pi.Package = package;
            packages.Add(pi);
        }
        protected override object CreateNativeWidget <T> ()
        {
            var cb = new Gtk.CheckButton("Provide Code Sample");

            cb.TooltipText = "Check to provide a sample implementation for the command/component";
            cb.Active      = wizard.ProvideCodeSample;
            cb.Toggled    += (sender, e) => wizard.ProvideCodeSample = cb.Active;
            return(cb);
        }
		public override bool Initialize (ChangeSet changeSet)
		{
			if (changeSet.Repository is GitRepository) {
				pushCheckbox = new Gtk.CheckButton (GettextCatalog.GetString ("Push changes to remote repository after commit"));
				Add (pushCheckbox);
				ShowAll ();
				return true;
			} else
				return false;
		}
        void AddPackageBuilder(Gtk.VBox parent, PackagingProject project, PackageBuilder pb)
        {
            Gtk.CheckButton check = new Gtk.CheckButton(pb.DefaultName);
            check.Show();
            parent.PackStart(check, false, false, 0);
            Package pkg = new Package(pb);

            pkg.Name = pb.DefaultName;
            RegisterCheck(check, project, pkg);
        }
예제 #12
0
        private Gtk.CheckButton CreateCheckBox(string caption, object o, MemberInfo member, object[] attributes)
        {
            Gtk.CheckButton widget = new Gtk.CheckButton();

            widget.Label  = caption;
            widget.Active = (bool)GetValue(member, o);

            widget.Toggled += delegate(object sender, EventArgs e) {
                SetValue(member, o, widget.Active);
            };

            return(widget);
        }
예제 #13
0
        public ContractLongLeaseAddressRemoveCabineDlg(Cabine[] cabines)
        {
            this.Build();

            foreach (var cabine in cabines)
            {
                var check = new Gtk.CheckButton(String.Format("({0}) {1}", cabine.Number, cabine.Name));
                check.Toggled += Check_Toggled;
                vboxCabines.PackStart(check);
                Widgets.Add(cabine, check);
                check.Show();
            }
        }
 public override bool Initialize(ChangeSet changeSet)
 {
     if (changeSet.Repository is GitRepository)
     {
         pushCheckbox = new Gtk.CheckButton(GettextCatalog.GetString("Push changes to remote repository after commit"));
         Add(pushCheckbox);
         ShowAll();
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #15
0
        public override void Initialize(OptionsDialog dialog, object dataObject)
        {
            base.Initialize(dialog, dataObject);

            config = (RunConfigInfo)dataObject;
            editor = RunConfigurationService.CreateEditorForConfiguration(config.EditedConfig);

            box         = new Gtk.VBox();
            box.Spacing = 12;
            userConf    = new Gtk.CheckButton(GettextCatalog.GetString("User-specific configuration"));
            box.PackEnd(userConf, false, false, 0);
            box.PackEnd(new Gtk.HSeparator(), false, false, 0);
            box.ShowAll();

            editor.Changed += Editor_Changed;
        }
예제 #16
0
        private Gtk.CheckButton CreateCheckBox(string caption, object o, MemberInfo member, object[] attributes)
        {
            var widget = new Gtk.CheckButton {
                Label = caption
            };

            if (GetValue(member, o) is bool b)
            {
                widget.Active = b;
            }

            widget.Toggled += delegate(object?sender, EventArgs e) {
                SetValue(member, o, widget.Active);
            };

            return(widget);
        }
        private static void AddCheckProperty(Gtk.VBox vbox, string labelText, Gtk.CheckButton checkButton, ConfigurationProperty <bool> property)
        {
            var hbox = new Gtk.HBox();

            checkButton.Active = property.Value;
            hbox.PackStart(checkButton, false, false, 0);

            var label = new Gtk.Label
            {
                Text   = GettextCatalog.GetString(labelText),
                Xalign = 0
            };

            hbox.PackStart(label, true, true, 0);

            vbox.PackStart(hbox, false, false, 0);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize();
     // Widget CBinding.CompilerPanel
     Stetic.BinContainer.Attach(this);
     this.Name = "CBinding.CompilerPanel";
     // Container child CBinding.CompilerPanel.Gtk.Container+ContainerChild
     this.table2               = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
     this.table2.Name          = "table2";
     this.table2.RowSpacing    = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.compilerComboBox      = Gtk.ComboBox.NewText();
     this.compilerComboBox.Name = "compilerComboBox";
     this.table2.Add(this.compilerComboBox);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table2[this.compilerComboBox]));
     w1.TopAttach    = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.LeftAttach   = ((uint)(1));
     w1.RightAttach  = ((uint)(2));
     w1.XOptions     = ((Gtk.AttachOptions)(4));
     w1.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.useCcacheCheckBox               = new Gtk.CheckButton();
     this.useCcacheCheckBox.CanFocus      = true;
     this.useCcacheCheckBox.Name          = "useCcacheCheckBox";
     this.useCcacheCheckBox.Label         = Mono.Unix.Catalog.GetString("Use ccache");
     this.useCcacheCheckBox.DrawIndicator = true;
     this.useCcacheCheckBox.UseUnderline  = true;
     this.table2.Add(this.useCcacheCheckBox);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.useCcacheCheckBox]));
     w2.TopAttach    = ((uint)(2));
     w2.BottomAttach = ((uint)(3));
     w2.LeftAttach   = ((uint)(1));
     w2.RightAttach  = ((uint)(2));
     w2.XOptions     = ((Gtk.AttachOptions)(4));
     w2.YOptions     = ((Gtk.AttachOptions)(4));
     this.Add(this.table2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.compilerComboBox.Changed += new System.EventHandler(this.OnCompilerComboBoxChanged);
 }
        void DisableChecks(Gtk.Widget w)
        {
            Gtk.CheckButton c = w as Gtk.CheckButton;
            if (c != null)
            {
                c.Active = false;
                return;
            }

            Gtk.Container co = w as Gtk.Container;
            if (co != null)
            {
                foreach (Gtk.Widget cw in co.Children)
                {
                    DisableChecks(cw);
                }
            }
        }
 protected virtual void Build() {
     Stetic.Gui.Initialize();
     // Widget CBinding.CompilerPanel
     Stetic.BinContainer.Attach(this);
     this.Name = "CBinding.CompilerPanel";
     // Container child CBinding.CompilerPanel.Gtk.Container+ContainerChild
     this.table2 = new Gtk.Table(((uint)(3)), ((uint)(3)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.compilerComboBox = Gtk.ComboBox.NewText();
     this.compilerComboBox.Name = "compilerComboBox";
     this.table2.Add(this.compilerComboBox);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table2[this.compilerComboBox]));
     w1.TopAttach = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.LeftAttach = ((uint)(1));
     w1.RightAttach = ((uint)(2));
     w1.XOptions = ((Gtk.AttachOptions)(4));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.useCcacheCheckBox = new Gtk.CheckButton();
     this.useCcacheCheckBox.CanFocus = true;
     this.useCcacheCheckBox.Name = "useCcacheCheckBox";
     this.useCcacheCheckBox.Label = Mono.Unix.Catalog.GetString("Use ccache");
     this.useCcacheCheckBox.DrawIndicator = true;
     this.useCcacheCheckBox.UseUnderline = true;
     this.table2.Add(this.useCcacheCheckBox);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.useCcacheCheckBox]));
     w2.TopAttach = ((uint)(2));
     w2.BottomAttach = ((uint)(3));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     this.Add(this.table2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.compilerComboBox.Changed += new System.EventHandler(this.OnCompilerComboBoxChanged);
 }
        public override Gtk.Widget CreatePanelWidget()
        {
            var vbox = new Gtk.VBox();

            vbox.Spacing = 6;

            var restoreSectionLabel = new Gtk.Label(GetBoldMarkup("DNX Restore"));

            restoreSectionLabel.UseMarkup = true;
            restoreSectionLabel.Xalign    = 0;
            vbox.PackStart(restoreSectionLabel, false, false, 0);

            restoreCheckBox             = new Gtk.CheckButton(GettextCatalog.GetString("Automatically restore dependencies."));
            restoreCheckBox.Active      = originalRestoreDependenciesSetting;
            restoreCheckBox.BorderWidth = 10;
            vbox.PackStart(restoreCheckBox, false, false, 0);

            var outputSectionLabel = new Gtk.Label(GetBoldMarkup("DNX Output"));

            outputSectionLabel.UseMarkup = true;
            outputSectionLabel.Xalign    = 0;
            vbox.PackStart(outputSectionLabel, false, false, 0);

            var outputVerbosityHBox = new Gtk.HBox();

            outputVerbosityHBox.BorderWidth = 10;
            outputVerbosityHBox.Spacing     = 6;
            var outputVerbosityLabel = new Gtk.Label(GettextCatalog.GetString("Verbosity:"));

            outputVerbosityLabel.Xalign = 0;
            outputVerbosityHBox.PackStart(outputVerbosityLabel, false, false, 0);

            logLevelsComboBox = Gtk.ComboBox.NewText();
            outputVerbosityHBox.PackStart(logLevelsComboBox, true, true, 0);

            AddLogLevelsToComboBox();

            vbox.PackStart(outputVerbosityHBox, false, false, 0);
            vbox.ShowAll();
            return(vbox);
        }
        public override Control CreatePanelWidget()
        {
            var vbox = new Gtk.VBox();

            vbox.Spacing = 6;

            var restoreSectionLabel = new Gtk.Label(GetBoldMarkup(GettextCatalog.GetString("Run Custom Tool")));

            restoreSectionLabel.UseMarkup = true;
            restoreSectionLabel.Xalign    = 0;
            vbox.PackStart(restoreSectionLabel, false, false, 0);

            runCustomToolOnBuildCheckButton             = new Gtk.CheckButton(GettextCatalog.GetString("Run custom tools on build"));
            runCustomToolOnBuildCheckButton.TooltipText = GettextCatalog.GetString("Custom tools will be run when the project or solution is built.");
            runCustomToolOnBuildCheckButton.Active      = CustomToolServiceExtensions.RunCustomToolOnBuildEnabled.Value;
            runCustomToolOnBuildCheckButton.BorderWidth = 10;
            vbox.PackStart(runCustomToolOnBuildCheckButton, false, false, 0);

            vbox.ShowAll();

            return(vbox);
        }
        public NoteOfTheDayPreferences()
            : base(false, 12)
        {
            Gtk.Label label = new Gtk.Label (
                    Catalog.GetString (
                        "Change the <b>Today: Template</b> note to customize " +
                        "the text that new Today notes have."));
            label.UseMarkup = true;
            label.Wrap = true;
            label.Show ();
            PackStart (label, true, true, 0);

            use_yesterday_check = new Gtk.CheckButton(
                Catalog.GetString("_Use yesterday note as template."));
            use_yesterday_check.UseUnderline = true;
            use_yesterdat_check.Show();
            PackStart (use_yesterday_check, false, false, 0);

            // Check if preference has been set before
            if (Preferences.Get(NoteOfTheDay.NOTD_YESTERDAY) == null){
                // Default value
                use_yesterday_check.Active = true;
            }else if ((bool) Preferences.Get(NoteOfTheDay.NOTD_YESTERDAY)){
                use_yesterday_check.Active = true;
            }else{
                use_yesterday_check.Active = false;
            }
            use_yesterday_check.Toggled += OnYesterdayCheckToggled;

            open_template_button = new Gtk.Button (
                    Catalog.GetString ("_Open Today: Template"));
            open_template_button.UseUnderline = true;
            open_template_button.Clicked += OpenTemplateButtonClicked;
            open_template_button.Show ();
            PackStart (open_template_button, false, false, 0);

            ShowAll ();
        }
        public override Gtk.Widget CreatePanelWidget()
        {
            var vbox = new Gtk.VBox ();
            vbox.Spacing = 6;

            var restoreSectionLabel = new Gtk.Label (GetBoldMarkup ("DNX Restore"));
            restoreSectionLabel.UseMarkup = true;
            restoreSectionLabel.Xalign = 0;
            vbox.PackStart (restoreSectionLabel, false, false, 0);

            restoreCheckBox = new Gtk.CheckButton (GettextCatalog.GetString ("Automatically restore dependencies."));
            restoreCheckBox.Active = originalRestoreDependenciesSetting;
            restoreCheckBox.BorderWidth = 10;
            vbox.PackStart (restoreCheckBox, false, false, 0);

            var outputSectionLabel = new Gtk.Label (GetBoldMarkup ("DNX Output"));
            outputSectionLabel.UseMarkup = true;
            outputSectionLabel.Xalign = 0;
            vbox.PackStart (outputSectionLabel, false, false, 0);

            var outputVerbosityHBox = new Gtk.HBox ();
            outputVerbosityHBox.BorderWidth = 10;
            outputVerbosityHBox.Spacing = 6;
            var outputVerbosityLabel = new Gtk.Label (GettextCatalog.GetString ("Verbosity:"));
            outputVerbosityLabel.Xalign = 0;
            outputVerbosityHBox.PackStart (outputVerbosityLabel, false, false, 0);

            logLevelsComboBox = Gtk.ComboBox.NewText ();
            outputVerbosityHBox.PackStart (logLevelsComboBox, true, true, 0);

            AddLogLevelsToComboBox ();

            vbox.PackStart (outputVerbosityHBox, false, false, 0);
            vbox.ShowAll ();
            return vbox;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Adroit.Gui.DeleteProjectDialog
     this.Name = "Adroit.Gui.DeleteProjectDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth = ((uint)(6));
     this.Resizable = false;
     this.AllowGrow = false;
     this.HasSeparator = false;
     // Internal child Adroit.Gui.DeleteProjectDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.Spacing = 12;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 12;
     this.hbox2.BorderWidth = ((uint)(6));
     // Container child hbox2.Gtk.Box+BoxChild
     this.image2 = new Gtk.Image();
     this.image2.Name = "image2";
     this.image2.Yalign = 0F;
     this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-question", Gtk.IconSize.Dialog, 48);
     this.hbox2.Add(this.image2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.image2]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("<span weight=\"bold\" size=\"larger\">Do you really want to delete the project?</span>\n\nThis will remove the project and all associated tasks.");
     this.label2.UseMarkup = true;
     this.label2.Wrap = true;
     this.vbox3.Add(this.label2);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.m_dontShowCheckbox = new Gtk.CheckButton();
     this.m_dontShowCheckbox.CanFocus = true;
     this.m_dontShowCheckbox.Name = "m_dontShowCheckbox";
     this.m_dontShowCheckbox.Label = Mono.Unix.Catalog.GetString("Don't show this message again");
     this.m_dontShowCheckbox.DrawIndicator = true;
     this.m_dontShowCheckbox.UseUnderline = true;
     this.vbox3.Add(this.m_dontShowCheckbox);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.m_dontShowCheckbox]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     w1.Add(this.hbox2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w1[this.hbox2]));
     w6.Position = 0;
     w6.Expand = false;
     w6.Fill = false;
     // Internal child Adroit.Gui.DeleteProjectDialog.ActionArea
     Gtk.HButtonBox w7 = this.ActionArea;
     w7.Name = "dialog1_ActionArea";
     w7.Spacing = 6;
     w7.BorderWidth = ((uint)(5));
     w7.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonCancel]));
     w8.Expand = false;
     w8.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w7[this.buttonOk]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 477;
     this.DefaultHeight = 200;
     this.buttonCancel.HasDefault = true;
     this.Show();
 }
예제 #26
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CacheListWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CacheListWidget";
     // Container child ocmgtk.CacheListWidget.Gtk.Container+ContainerChild
     this.cacheListContents             = new Gtk.VBox();
     this.cacheListContents.Name        = "cacheListContents";
     this.cacheListContents.Spacing     = 6;
     this.cacheListContents.BorderWidth = ((uint)(6));
     // Container child cacheListContents.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.searchImage        = new Gtk.Image();
     this.searchImage.Name   = "searchImage";
     this.searchImage.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.SearchIcon.svg");
     this.hbox2.Add(this.searchImage);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.searchImage]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.nameEntry               = new Gtk.Entry();
     this.nameEntry.CanFocus      = true;
     this.nameEntry.Name          = "nameEntry";
     this.nameEntry.IsEditable    = true;
     this.nameEntry.InvisibleChar = '●';
     this.hbox2.Add(this.nameEntry);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.nameEntry]));
     w2.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.clearNameButton           = new Gtk.Button();
     this.clearNameButton.Sensitive = false;
     this.clearNameButton.CanFocus  = true;
     this.clearNameButton.Name      = "clearNameButton";
     // Container child clearNameButton.Gtk.Container+ContainerChild
     this.clearImage2        = new Gtk.Image();
     this.clearImage2.Name   = "clearImage2";
     this.clearImage2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16);
     this.clearNameButton.Add(this.clearImage2);
     this.clearNameButton.Label = null;
     this.hbox2.Add(this.clearNameButton);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.clearNameButton]));
     w4.Position = 2;
     w4.Expand   = false;
     w4.Fill     = false;
     this.cacheListContents.Add(this.hbox2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.cacheListContents[this.hbox2]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child cacheListContents.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.distanceImage        = new Gtk.Image();
     this.distanceImage.Name   = "distanceImage";
     this.distanceImage.Pixbuf = Gdk.Pixbuf.LoadFromResource("ocmgtk.icons.scalable.DistIcon.svg");
     this.hbox1.Add(this.distanceImage);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.distanceImage]));
     w6.Position = 0;
     w6.Expand   = false;
     w6.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.distanceEntry               = new Gtk.Entry();
     this.distanceEntry.CanFocus      = true;
     this.distanceEntry.Name          = "distanceEntry";
     this.distanceEntry.IsEditable    = true;
     this.distanceEntry.InvisibleChar = '●';
     this.hbox1.Add(this.distanceEntry);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.distanceEntry]));
     w7.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.distanceLabel           = new Gtk.Label();
     this.distanceLabel.Name      = "distanceLabel";
     this.distanceLabel.LabelProp = Mono.Unix.Catalog.GetString("km");
     this.hbox1.Add(this.distanceLabel);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.distanceLabel]));
     w8.Position = 2;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.clearDistanceButton           = new Gtk.Button();
     this.clearDistanceButton.Sensitive = false;
     this.clearDistanceButton.CanFocus  = true;
     this.clearDistanceButton.Name      = "clearDistanceButton";
     // Container child clearDistanceButton.Gtk.Container+ContainerChild
     this.clearImage        = new Gtk.Image();
     this.clearImage.Name   = "clearImage";
     this.clearImage.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16);
     this.clearDistanceButton.Add(this.clearImage);
     this.clearDistanceButton.Label = null;
     this.hbox1.Add(this.clearDistanceButton);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.clearDistanceButton]));
     w10.Position = 3;
     w10.Expand   = false;
     w10.Fill     = false;
     this.cacheListContents.Add(this.hbox1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.cacheListContents[this.hbox1]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     // Container child cacheListContents.Gtk.Box+BoxChild
     this.statusAlign      = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.statusAlign.Name = "statusAlign";
     // Container child statusAlign.Gtk.Container+ContainerChild
     this.statusInfo              = new Gtk.Button();
     this.statusInfo.Sensitive    = false;
     this.statusInfo.CanFocus     = true;
     this.statusInfo.Name         = "statusInfo";
     this.statusInfo.FocusOnClick = false;
     this.statusInfo.Relief       = ((Gtk.ReliefStyle)(2));
     // Container child statusInfo.Gtk.Container+ContainerChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.image317        = new Gtk.Image();
     this.image317.Name   = "image317";
     this.image317.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Menu, 16);
     this.hbox3.Add(this.image317);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox3[this.image317]));
     w12.Position = 0;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.infoStatus           = new Gtk.Label();
     this.infoStatus.Name      = "infoStatus";
     this.infoStatus.LabelProp = Mono.Unix.Catalog.GetString("Loading...");
     this.hbox3.Add(this.infoStatus);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox3[this.infoStatus]));
     w13.Position = 1;
     w13.Expand   = false;
     w13.Fill     = false;
     this.statusInfo.Add(this.hbox3);
     this.statusInfo.Label = null;
     this.statusAlign.Add(this.statusInfo);
     this.cacheListContents.Add(this.statusAlign);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.cacheListContents[this.statusAlign]));
     w16.Position = 2;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child cacheListContents.Gtk.Box+BoxChild
     this.statusTable               = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.statusTable.Name          = "statusTable";
     this.statusTable.RowSpacing    = ((uint)(6));
     this.statusTable.ColumnSpacing = ((uint)(6));
     // Container child statusTable.Gtk.Table+TableChild
     this.archiveCheck               = new Gtk.CheckButton();
     this.archiveCheck.CanFocus      = true;
     this.archiveCheck.Name          = "archiveCheck";
     this.archiveCheck.Label         = Mono.Unix.Catalog.GetString("Archived");
     this.archiveCheck.Active        = true;
     this.archiveCheck.DrawIndicator = true;
     this.archiveCheck.UseUnderline  = true;
     this.statusTable.Add(this.archiveCheck);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.statusTable[this.archiveCheck]));
     w17.TopAttach    = ((uint)(1));
     w17.BottomAttach = ((uint)(2));
     w17.LeftAttach   = ((uint)(2));
     w17.RightAttach  = ((uint)(3));
     w17.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child statusTable.Gtk.Table+TableChild
     this.availCheck               = new Gtk.CheckButton();
     this.availCheck.CanFocus      = true;
     this.availCheck.Name          = "availCheck";
     this.availCheck.Label         = Mono.Unix.Catalog.GetString("Available");
     this.availCheck.Active        = true;
     this.availCheck.DrawIndicator = true;
     this.availCheck.UseUnderline  = true;
     this.statusTable.Add(this.availCheck);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.statusTable[this.availCheck]));
     w18.TopAttach    = ((uint)(1));
     w18.BottomAttach = ((uint)(2));
     w18.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child statusTable.Gtk.Table+TableChild
     this.foundCheck               = new Gtk.CheckButton();
     this.foundCheck.CanFocus      = true;
     this.foundCheck.Name          = "foundCheck";
     this.foundCheck.Label         = Mono.Unix.Catalog.GetString("Found");
     this.foundCheck.Active        = true;
     this.foundCheck.DrawIndicator = true;
     this.foundCheck.UseUnderline  = true;
     this.statusTable.Add(this.foundCheck);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.statusTable[this.foundCheck]));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     // Container child statusTable.Gtk.Table+TableChild
     this.mineCheck               = new Gtk.CheckButton();
     this.mineCheck.CanFocus      = true;
     this.mineCheck.Name          = "mineCheck";
     this.mineCheck.Label         = Mono.Unix.Catalog.GetString("Mine");
     this.mineCheck.Active        = true;
     this.mineCheck.DrawIndicator = true;
     this.mineCheck.UseUnderline  = true;
     this.statusTable.Add(this.mineCheck);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.statusTable[this.mineCheck]));
     w20.LeftAttach  = ((uint)(2));
     w20.RightAttach = ((uint)(3));
     w20.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child statusTable.Gtk.Table+TableChild
     this.notAvailCheck               = new Gtk.CheckButton();
     this.notAvailCheck.CanFocus      = true;
     this.notAvailCheck.Name          = "notAvailCheck";
     this.notAvailCheck.Label         = Mono.Unix.Catalog.GetString("Not Available");
     this.notAvailCheck.Active        = true;
     this.notAvailCheck.DrawIndicator = true;
     this.notAvailCheck.UseUnderline  = true;
     this.statusTable.Add(this.notAvailCheck);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.statusTable[this.notAvailCheck]));
     w21.TopAttach    = ((uint)(1));
     w21.BottomAttach = ((uint)(2));
     w21.LeftAttach   = ((uint)(1));
     w21.RightAttach  = ((uint)(2));
     w21.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child statusTable.Gtk.Table+TableChild
     this.notFoundCheck               = new Gtk.CheckButton();
     this.notFoundCheck.CanFocus      = true;
     this.notFoundCheck.Name          = "notFoundCheck";
     this.notFoundCheck.Label         = Mono.Unix.Catalog.GetString("Not Found");
     this.notFoundCheck.Active        = true;
     this.notFoundCheck.DrawIndicator = true;
     this.notFoundCheck.UseUnderline  = true;
     this.statusTable.Add(this.notFoundCheck);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.statusTable[this.notFoundCheck]));
     w22.LeftAttach  = ((uint)(1));
     w22.RightAttach = ((uint)(2));
     w22.YOptions    = ((Gtk.AttachOptions)(4));
     this.cacheListContents.Add(this.statusTable);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.cacheListContents[this.statusTable]));
     w23.Position = 3;
     w23.Expand   = false;
     w23.Fill     = false;
     // Container child cacheListContents.Gtk.Box+BoxChild
     this.cacheListScroll            = new Gtk.ScrolledWindow();
     this.cacheListScroll.CanFocus   = true;
     this.cacheListScroll.Name       = "cacheListScroll";
     this.cacheListScroll.ShadowType = ((Gtk.ShadowType)(1));
     // Container child cacheListScroll.Gtk.Container+ContainerChild
     this.cacheListTree              = new Gtk.TreeView();
     this.cacheListTree.CanFocus     = true;
     this.cacheListTree.Name         = "cacheListTree";
     this.cacheListTree.EnableSearch = false;
     this.cacheListScroll.Add(this.cacheListTree);
     this.cacheListContents.Add(this.cacheListScroll);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.cacheListContents[this.cacheListScroll]));
     w25.Position = 4;
     this.Add(this.cacheListContents);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.statusInfo.Hide();
     this.Hide();
     this.nameEntry.Changed              += new System.EventHandler(this.OnChanged);
     this.nameEntry.Activated            += new System.EventHandler(this.OnNameActivated);
     this.clearNameButton.Clicked        += new System.EventHandler(this.OnClearNameClick);
     this.distanceEntry.Changed          += new System.EventHandler(this.OnChanged);
     this.distanceEntry.Activated        += new System.EventHandler(this.OnDistActivated);
     this.clearDistanceButton.Clicked    += new System.EventHandler(this.OnClearDistClicked);
     this.statusInfo.Clicked             += new System.EventHandler(this.OnStatusClick);
     this.notFoundCheck.Toggled          += new System.EventHandler(this.OnFoundStatusToggle);
     this.notAvailCheck.Toggled          += new System.EventHandler(this.OnAvailStatusToggle);
     this.mineCheck.Toggled              += new System.EventHandler(this.OnFoundStatusToggle);
     this.foundCheck.Toggled             += new System.EventHandler(this.OnFoundStatusToggle);
     this.availCheck.Toggled             += new System.EventHandler(this.OnAvailStatusToggle);
     this.archiveCheck.Toggled           += new System.EventHandler(this.OnAvailStatusToggle);
     this.cacheListTree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPress);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.BoundCalendar
     Stetic.BinContainer.Attach(this);
     this.Name = "ControlWrappers.BoundCalendar";
     // Container child ControlWrappers.BoundCalendar.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.calBound = new Gtk.Calendar();
     this.calBound.CanFocus = true;
     this.calBound.Name = "calBound";
     this.calBound.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
     this.vbox1.Add(this.calBound);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.calBound]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // 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.lblHour = new Gtk.Label();
     this.lblHour.Name = "lblHour";
     this.lblHour.LabelProp = Mono.Unix.Catalog.GetString("H:");
     this.hbox1.Add(this.lblHour);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblHour]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.sbHour = new Gtk.SpinButton(0, 23, 1);
     this.sbHour.CanFocus = true;
     this.sbHour.Name = "sbHour";
     this.sbHour.Adjustment.PageIncrement = 10;
     this.sbHour.ClimbRate = 1;
     this.sbHour.Numeric = true;
     this.hbox1.Add(this.sbHour);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbHour]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.lblMinute = new Gtk.Label();
     this.lblMinute.Name = "lblMinute";
     this.lblMinute.LabelProp = Mono.Unix.Catalog.GetString("M:");
     this.hbox1.Add(this.lblMinute);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.lblMinute]));
     w4.Position = 2;
     w4.Expand = false;
     w4.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.sbMinute = new Gtk.SpinButton(0, 59, 1);
     this.sbMinute.CanFocus = true;
     this.sbMinute.Name = "sbMinute";
     this.sbMinute.Adjustment.PageIncrement = 10;
     this.sbMinute.ClimbRate = 1;
     this.sbMinute.Numeric = true;
     this.hbox1.Add(this.sbMinute);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbMinute]));
     w5.Position = 3;
     w5.Expand = false;
     w5.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.cbNullDateTime = new Gtk.CheckButton();
     this.cbNullDateTime.CanFocus = true;
     this.cbNullDateTime.Name = "cbNullDateTime";
     this.cbNullDateTime.Label = "";
     this.cbNullDateTime.Active = true;
     this.cbNullDateTime.DrawIndicator = true;
     this.cbNullDateTime.UseUnderline = true;
     this.hbox1.Add(this.cbNullDateTime);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.cbNullDateTime]));
     w6.Position = 4;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.calBound.DaySelected += new System.EventHandler(this.CalendarDaySelected);
     this.calBound.DaySelectedDoubleClick += new System.EventHandler(this.CalendarDaySelectedDoubleClick);
     this.sbHour.ValueChanged += new System.EventHandler(this.HourValueChanged);
     this.sbMinute.ValueChanged += new System.EventHandler(this.MinuteValueChanged);
     this.cbNullDateTime.Toggled += new System.EventHandler(this.NullDateTimeToggled);
 }
예제 #28
0
        private Atk.Object GetAccessible(BasicWidgetType type, string text, object preWidget, bool real, bool embeddedImage)
        {
            Atk.Object     accessible = null;
            Gtk.Widget     widget     = null;
            Gtk.Adjustment adj        = new Gtk.Adjustment(50, 0, 100, 1, 10, 20);
            switch (type)
            {
            case BasicWidgetType.Label:
                widget = new Gtk.Label();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealLabel();
                }
                ((Gtk.Label)widget).Text = text;
                break;

            case BasicWidgetType.NormalButton:
                widget = new Gtk.Button();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealButton(embeddedImage);
                }
                ((Gtk.Button)widget).Label = text;
                break;

            case BasicWidgetType.Window:
                widget = new Gtk.Window(text);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealWindow();
                }
                break;

            case BasicWidgetType.CheckBox:
                widget = new Gtk.CheckButton();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealCheckBox(embeddedImage);
                }
                ((Gtk.CheckButton)widget).Label = text;
                break;

            case BasicWidgetType.RadioButton:
                if (!real)
                {
                    throw new NotSupportedException("We cannot use non-real radio buttons because of some wierd behaviour");
                }

                widget = GailTestApp.MainClass.GiveMeARealRadioButton(embeddedImage);
                RunInGuiThread(delegate {
                    ((Gtk.CheckButton)widget).Label = text;
                });
                break;

            case BasicWidgetType.StatusBar:
                widget = new Gtk.Statusbar();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealStatusbar();
                }
                ((Gtk.Statusbar)widget).Push(0, text);
                break;

            case BasicWidgetType.TextBoxEntry:
                if (!real)
                {
                    throw new NotSupportedException();
                }

                widget = GailTestApp.MainClass.GiveMeARealEntry(true);
                RunInGuiThread(delegate {
                    ((Gtk.Entry)widget).Text = text;
                });
                break;

            case BasicWidgetType.RichTextBox:
            case BasicWidgetType.TextBoxView:
                if (!real)
                {
                    throw new NotSupportedException();
                }

                widget = GailTestApp.MainClass.GiveMeARealTextView();
                RunInGuiThread(delegate {
                    ((Gtk.TextView)widget).Buffer.Text = text;
                });
                break;

            case BasicWidgetType.PasswordCharTextBoxEntry:
                if (!real)
                {
                    throw new NotSupportedException();
                }

                widget = GailTestApp.MainClass.GiveMeARealEntry(false);
                RunInGuiThread(delegate {
                    ((Gtk.Entry)widget).Text = text;
                });
                break;

            case BasicWidgetType.HScrollBar:
                widget = new Gtk.HScrollbar(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealHScrollbar();
                }
                break;

            case BasicWidgetType.VScrollBar:
                widget = new Gtk.VScrollbar(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealVScrollbar();
                }
                break;

            case BasicWidgetType.ProgressBar:
                widget = new Gtk.ProgressBar(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealProgressBar();
                }
                break;

            case BasicWidgetType.Spinner:
                widget = new Gtk.SpinButton(adj, 1, 2);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealSpinButton();
                }
                break;

            case BasicWidgetType.PictureBox:
                widget = new Gtk.Image();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealImage(embeddedImage);
                }
                break;

            case BasicWidgetType.ListView:
            case BasicWidgetType.TreeView:
                Gtk.TreeStore store       = null;
                List <string> columnNames = new List <String> ();
                XmlDocument   xml         = new XmlDocument();
                xml.LoadXml(text);
                foreach (XmlElement th in xml.GetElementsByTagName("th"))
                {
                    foreach (XmlElement td in th.GetElementsByTagName("td"))
                    {
                        columnNames.Add(td.InnerText);
                    }
                }
                if (columnNames.Count == 0)
                {
                    columnNames.Add(string.Empty);
                }
                if (columnNames.Count == 1)
                {
                    store = new Gtk.TreeStore(typeof(string));
                }
                else if (columnNames.Count == 2)
                {
                    store = new Gtk.TreeStore(typeof(string), typeof(string));
                }
                else if (columnNames.Count == 3)
                {
                    store = new Gtk.TreeStore(typeof(string), typeof(string), typeof(string));
                }
                else
                {
                    Assert.Fail("This test only supports 1-3 columns; got " + columnNames.Count);
                }
                Gtk.TreeIter[] iters = new Gtk.TreeIter [8];
                XmlElement     root  = xml.DocumentElement;
                for (XmlNode node = root.FirstChild; node != null; node = node.NextSibling)
                {
                    if (node.Name == "tr")
                    {
                        AddToTreeStore(store, iters, 0, node);
                    }
                }
                widget = new Gtk.TreeView(store);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealTreeView();
                    RunInGuiThread(delegate {
                        ((Gtk.TreeView)widget).Model = store;
                    });
                }

                RunInGuiThread(delegate {
                    Gtk.TreeView treeView = (Gtk.TreeView)widget;
                    int i;
                    for (i = treeView.Columns.Length - 1; i >= 0; i--)
                    {
                        treeView.RemoveColumn(treeView.Columns [i]);
                    }
                    i = 0;
                    foreach (string columnName in columnNames)
                    {
                        Gtk.TreeViewColumn col = new Gtk.TreeViewColumn();
                        col.Title = columnName;
                        treeView.AppendColumn(col);
                        Gtk.CellRendererText cell = new Gtk.CellRendererText();
                        col.PackStart(cell, true);
                        col.AddAttribute(cell, "text", i++);
                    }
                    ((Gtk.TreeView)widget).HeadersClickable = text.Contains("<th>");
                    ((Gtk.TreeView)widget).HeadersVisible   = ((Gtk.TreeView)widget).HeadersClickable;
                });
                break;

            case BasicWidgetType.ContainerPanel:
                widget = new Gtk.Frame();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealFrame();
                }
                break;

            case BasicWidgetType.HSplitContainer:
                widget = new Gtk.HPaned();
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealHPaned();
                }
                break;

            case BasicWidgetType.VTrackBar:
                widget = new Gtk.VScale(adj);
                if (real)
                {
                    widget = GailTestApp.MainClass.GiveMeARealVScale();
                }
                break;

            case BasicWidgetType.ComboBoxDropDownEntry:
            case BasicWidgetType.ComboBoxDropDownList:
            case BasicWidgetType.ComboBoxSimple:
                throw new NotSupportedException("You have to use the GetObject overload that receives a name array");

            default:
                throw new NotImplementedException("The widget finder backend still hasn't got support for " +
                                                  type.ToString());
            }

            accessible            = widget.Accessible;
            mappings [accessible] = widget;

            return(accessible);
        }
예제 #29
0
        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);

            var connect_button = new Gtk.Button(Gtk.Stock.Connect);
            AddActionWidget(connect_button, 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();

            var lowBandWidthCheckBox = new Gtk.CheckButton(_("Use Low Bandwidth Mode"));
            lowBandWidthCheckBox.Active = (bool) Frontend.FrontendConfig["UseLowBandwidthMode"];
            lowBandWidthCheckBox.Clicked += delegate {
                Frontend.FrontendConfig["UseLowBandwidthMode"] =
                    lowBandWidthCheckBox.Active;
                Frontend.FrontendConfig.Save();
            };

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

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

            VBox.Add(vbox);

            ShowAll();
        }
예제 #30
0
 public PropertyEditorToggleButton(string key, Gtk.CheckButton sourceButton) :
     base(key)
 {
     button = sourceButton;
 }
예제 #31
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OffLineLogViewer
     this.WidthRequest    = 600;
     this.HeightRequest   = 400;
     this.Name            = "ocmgtk.OffLineLogViewer";
     this.Title           = Mono.Unix.Catalog.GetString("View Field Notes...");
     this.TypeHint        = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition  = ((Gtk.WindowPosition)(4));
     this.Modal           = true;
     this.BorderWidth     = ((uint)(6));
     this.AllowShrink     = true;
     this.Gravity         = ((Gdk.Gravity)(5));
     this.SkipPagerHint   = true;
     this.SkipTaskbarHint = true;
     // Internal child ocmgtk.OffLineLogViewer.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.Spacing     = 6;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vpaned1          = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name     = "vpaned1";
     this.vpaned1.Position = 250;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.image11        = new Gtk.Image();
     this.image11.Name   = "image11";
     this.image11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.LargeToolbar, 24);
     this.hbox1.Add(this.image11);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image11]));
     w2.Position = 0;
     w2.Expand   = false;
     w2.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.fnFieldNotesLabel           = new Gtk.Label();
     this.fnFieldNotesLabel.Name      = "fnFieldNotesLabel";
     this.fnFieldNotesLabel.LabelProp = Mono.Unix.Catalog.GetString("Please wait...");
     this.hbox1.Add(this.fnFieldNotesLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.fnFieldNotesLabel]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     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.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox3.Add(this.hseparator1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator1]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox2         = new Gtk.HBox();
     this.hbox2.Name    = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     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.logView              = new Gtk.TreeView();
     this.logView.CanFocus     = true;
     this.logView.Name         = "logView";
     this.logView.EnableSearch = false;
     this.scrolledwindow1.Add(this.logView);
     this.hbox2.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.scrolledwindow1]));
     w7.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbuttonbox1             = new Gtk.VButtonBox();
     this.vbuttonbox1.Name        = "vbuttonbox1";
     this.vbuttonbox1.Spacing     = 6;
     this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.viewCacheButton              = new Gtk.Button();
     this.viewCacheButton.Sensitive    = false;
     this.viewCacheButton.CanFocus     = true;
     this.viewCacheButton.Name         = "viewCacheButton";
     this.viewCacheButton.UseUnderline = true;
     this.viewCacheButton.Label        = Mono.Unix.Catalog.GetString("View Cache");
     this.vbuttonbox1.Add(this.viewCacheButton);
     Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.viewCacheButton]));
     w8.Expand = false;
     w8.Fill   = false;
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.deleteButton              = new Gtk.Button();
     this.deleteButton.Sensitive    = false;
     this.deleteButton.CanFocus     = true;
     this.deleteButton.Name         = "deleteButton";
     this.deleteButton.UseStock     = true;
     this.deleteButton.UseUnderline = true;
     this.deleteButton.Label        = "gtk-delete";
     this.vbuttonbox1.Add(this.deleteButton);
     Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.deleteButton]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.delAllButton              = new Gtk.Button();
     this.delAllButton.CanFocus     = true;
     this.delAllButton.Name         = "delAllButton";
     this.delAllButton.UseUnderline = true;
     this.delAllButton.Label        = Mono.Unix.Catalog.GetString("Delete All");
     this.vbuttonbox1.Add(this.delAllButton);
     Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.delAllButton]));
     w10.Position = 2;
     w10.Expand   = false;
     w10.Fill     = false;
     this.hbox2.Add(this.vbuttonbox1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbuttonbox1]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     w11.Padding  = ((uint)(6));
     this.vbox3.Add(this.hbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2]));
     w12.Position = 2;
     this.vpaned1.Add(this.vbox3);
     Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox3]));
     w13.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.fieldNotesDescPane             = new Gtk.Notebook();
     this.fieldNotesDescPane.Sensitive   = false;
     this.fieldNotesDescPane.CanFocus    = true;
     this.fieldNotesDescPane.Name        = "fieldNotesDescPane";
     this.fieldNotesDescPane.CurrentPage = 0;
     this.fieldNotesDescPane.TabPos      = ((Gtk.PositionType)(0));
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.logPane             = new Gtk.VBox();
     this.logPane.Name        = "logPane";
     this.logPane.Spacing     = 6;
     this.logPane.BorderWidth = ((uint)(6));
     // Container child logPane.Gtk.Box+BoxChild
     this.hbox5         = new Gtk.HBox();
     this.hbox5.Name    = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Log Type:");
     this.hbox5.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox5[this.label1]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.logChoice = Gtk.ComboBox.NewText();
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Found it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Didn't Find it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Write Note"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Needs Maintenance"));
     this.logChoice.Name   = "logChoice";
     this.logChoice.Active = 0;
     this.hbox5.Add(this.logChoice);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox5[this.logChoice]));
     w15.Position = 1;
     w15.Expand   = false;
     w15.Fill     = false;
     this.logPane.Add(this.hbox5);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.logPane[this.hbox5]));
     w16.Position = 0;
     w16.Expand   = false;
     w16.Fill     = false;
     // Container child logPane.Gtk.Box+BoxChild
     this.hbox4         = new Gtk.HBox();
     this.hbox4.Name    = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.firstToFindCheck               = new Gtk.CheckButton();
     this.firstToFindCheck.CanFocus      = true;
     this.firstToFindCheck.Name          = "firstToFindCheck";
     this.firstToFindCheck.Label         = Mono.Unix.Catalog.GetString("First To Find");
     this.firstToFindCheck.DrawIndicator = true;
     this.firstToFindCheck.UseUnderline  = true;
     this.hbox4.Add(this.firstToFindCheck);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox4[this.firstToFindCheck]));
     w17.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.saveButton              = new Gtk.Button();
     this.saveButton.CanFocus     = true;
     this.saveButton.Name         = "saveButton";
     this.saveButton.UseStock     = true;
     this.saveButton.UseUnderline = true;
     this.saveButton.Label        = "gtk-save";
     this.hbox4.Add(this.saveButton);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox4[this.saveButton]));
     w18.Position = 1;
     w18.Expand   = false;
     w18.Fill     = false;
     this.logPane.Add(this.hbox4);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.logPane[this.hbox4]));
     w19.Position = 1;
     w19.Expand   = false;
     w19.Fill     = false;
     // Container child logPane.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.logEntry          = new Gtk.TextView();
     this.logEntry.CanFocus = true;
     this.logEntry.Name     = "logEntry";
     this.logEntry.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow.Add(this.logEntry);
     this.logPane.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.logPane[this.GtkScrolledWindow]));
     w21.Position = 2;
     this.fieldNotesDescPane.Add(this.logPane);
     // Notebook tab
     this.logPage           = new Gtk.Label();
     this.logPage.Name      = "logPage";
     this.logPage.LabelProp = Mono.Unix.Catalog.GetString("Field Log");
     this.fieldNotesDescPane.SetTabLabel(this.logPane, this.logPage);
     this.logPage.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     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 = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.wptCombo           = new Gtk.Label();
     this.wptCombo.Name      = "wptCombo";
     this.wptCombo.LabelProp = Mono.Unix.Catalog.GetString("Waypoint:");
     this.hbox3.Add(this.wptCombo);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox3[this.wptCombo]));
     w23.Position = 0;
     w23.Expand   = false;
     w23.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.waypointCombo      = Gtk.ComboBox.NewText();
     this.waypointCombo.Name = "waypointCombo";
     this.hbox3.Add(this.waypointCombo);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox3[this.waypointCombo]));
     w24.Position = 1;
     w24.Expand   = false;
     w24.Fill     = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w25.Position = 0;
     w25.Expand   = false;
     w25.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.mapView                 = new ocmgtk.MapWidget();
     this.mapView.Events          = ((Gdk.EventMask)(256));
     this.mapView.Name            = "mapView";
     this.mapView.ShowNearby      = false;
     this.mapView.ShowAllChildren = false;
     this.vbox2.Add(this.mapView);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox2[this.mapView]));
     w26.Position = 1;
     this.fieldNotesDescPane.Add(this.vbox2);
     Gtk.Notebook.NotebookChild w27 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.vbox2]));
     w27.Position = 1;
     // Notebook tab
     this.label7           = new Gtk.Label();
     this.label7.Name      = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Map");
     this.fieldNotesDescPane.SetTabLabel(this.vbox2, this.label7);
     this.label7.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheDesc        = new ocmgtk.HTMLWidget();
     this.cacheDesc.Events = ((Gdk.EventMask)(256));
     this.cacheDesc.Name   = "cacheDesc";
     this.fieldNotesDescPane.Add(this.cacheDesc);
     Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheDesc]));
     w28.Position = 2;
     // Notebook tab
     this.label5           = new Gtk.Label();
     this.label5.Name      = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Cache Description");
     this.fieldNotesDescPane.SetTabLabel(this.cacheDesc, this.label5);
     this.label5.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheLog        = new ocmgtk.HTMLWidget();
     this.cacheLog.Events = ((Gdk.EventMask)(256));
     this.cacheLog.Name   = "cacheLog";
     this.fieldNotesDescPane.Add(this.cacheLog);
     Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheLog]));
     w29.Position = 3;
     // Notebook tab
     this.label8           = new Gtk.Label();
     this.label8.Name      = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Cache Logs");
     this.fieldNotesDescPane.SetTabLabel(this.cacheLog, this.label8);
     this.label8.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheNotes        = new ocmgtk.NotesWidget();
     this.cacheNotes.Events = ((Gdk.EventMask)(256));
     this.cacheNotes.Name   = "cacheNotes";
     this.fieldNotesDescPane.Add(this.cacheNotes);
     Gtk.Notebook.NotebookChild w30 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheNotes]));
     w30.Position = 4;
     // Notebook tab
     this.notesLabel           = new Gtk.Label();
     this.notesLabel.Name      = "notesLabel";
     this.notesLabel.LabelProp = Mono.Unix.Catalog.GetString("Notes");
     this.fieldNotesDescPane.SetTabLabel(this.cacheNotes, this.notesLabel);
     this.notesLabel.ShowAll();
     this.vpaned1.Add(this.fieldNotesDescPane);
     w1.Add(this.vpaned1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w1[this.vpaned1]));
     w32.Position = 0;
     // Internal child ocmgtk.OffLineLogViewer.ActionArea
     Gtk.HButtonBox w33 = this.ActionArea;
     w33.Name        = "dialog1_ActionArea";
     w33.Spacing     = 10;
     w33.BorderWidth = ((uint)(5));
     w33.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.closeButton              = new Gtk.Button();
     this.closeButton.CanDefault   = true;
     this.closeButton.CanFocus     = true;
     this.closeButton.Name         = "closeButton";
     this.closeButton.UseStock     = true;
     this.closeButton.UseUnderline = true;
     this.closeButton.Label        = "gtk-close";
     this.AddActionWidget(this.closeButton, -7);
     Gtk.ButtonBox.ButtonBoxChild w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w33[this.closeButton]));
     w34.Expand = false;
     w34.Fill   = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth           = 839;
     this.DefaultHeight          = 566;
     this.closeButton.HasDefault = true;
     this.Show();
     this.DeleteEvent              += new Gtk.DeleteEventHandler(this.OnCloseClick);
     this.viewCacheButton.Clicked  += new System.EventHandler(this.OnViewCache);
     this.deleteButton.Clicked     += new System.EventHandler(this.OnDeleteClick);
     this.delAllButton.Clicked     += new System.EventHandler(this.OnDeleteAllClick);
     this.logChoice.Changed        += new System.EventHandler(this.OnLogTypeChange);
     this.firstToFindCheck.Toggled += new System.EventHandler(this.OnFTFCheck);
     this.saveButton.Clicked       += new System.EventHandler(this.OnSaveClick);
     this.closeButton.Clicked      += new System.EventHandler(this.OnCloseClick);
 }
예제 #32
0
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "administrator.EditCreateUser")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget administrator.EditCreateUser
         cobj.Title = "EditCreateUser";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "administrator.EditCreateUser";
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 300;
         bindings["administrator.EditCreateUser"] = cobj;
         cobj.Show();
     }
     else {
         if ((id == "administrator.LoginWindow")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget administrator.LoginWindow
             cobj.Title = "Boxerp Server Administrator";
             cobj.WindowPosition = ((Gtk.WindowPosition)(1));
             cobj.Modal = true;
             cobj.Resizable = false;
             cobj.AllowGrow = false;
             cobj.Events = ((Gdk.EventMask)(0));
             cobj.Name = "administrator.LoginWindow";
             // Container child administrator.LoginWindow.Gtk.Container+ContainerChild
             Gtk.VBox w1 = new Gtk.VBox();
             w1.BorderWidth = ((uint)(5));
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w2 = new Gtk.HBox();
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "hbox1";
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Label w3 = new Gtk.Label();
             w3.LabelProp = "Login:"******"label1";
             w3.WidthRequest = 150;
             bindings["label1"] = w3;
             w2.Add(w3);
             Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
             w4.Position = 0;
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Entry w5 = new Gtk.Entry();
             w5.Text = "demo";
             w5.IsEditable = true;
             w5.MaxLength = 100;
             w5.InvisibleChar = '●';
             w5.CanFocus = true;
             w5.Events = ((Gdk.EventMask)(0));
             w5.Name = "entryLogin";
             w5.WidthRequest = 200;
             bindings["entryLogin"] = w5;
             w2.Add(w5);
             Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
             w6.Position = 1;
             w6.Expand = false;
             w6.Fill = false;
             bindings["hbox1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
             w7.Position = 0;
             w7.Expand = false;
             w7.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w8 = new Gtk.HBox();
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "hbox2";
             w8.WidthRequest = 150;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Label w9 = new Gtk.Label();
             w9.LabelProp = "Password:"******"label2";
             bindings["label2"] = w9;
             w8.Add(w9);
             Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9]));
             w10.Position = 0;
             w10.Fill = false;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Entry w11 = new Gtk.Entry();
             w11.Text = "pass";
             w11.IsEditable = true;
             w11.Visibility = false;
             w11.InvisibleChar = '●';
             w11.CanFocus = true;
             w11.Events = ((Gdk.EventMask)(0));
             w11.Name = "entryPassword";
             w11.WidthRequest = 200;
             bindings["entryPassword"] = w11;
             w8.Add(w11);
             Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11]));
             w12.Position = 1;
             w12.Expand = false;
             w12.Fill = false;
             bindings["hbox2"] = w8;
             w1.Add(w8);
             Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w8]));
             w13.Position = 1;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HSeparator w14 = new Gtk.HSeparator();
             w14.Events = ((Gdk.EventMask)(0));
             w14.Name = "hseparator1";
             bindings["hseparator1"] = w14;
             w1.Add(w14);
             Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
             w15.Position = 2;
             w15.Expand = false;
             w15.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w16 = new Gtk.HBox();
             w16.Events = ((Gdk.EventMask)(0));
             w16.Name = "hbox3";
             // Container child hbox3.Gtk.Box+BoxChild
             Gtk.Button w17 = new Gtk.Button();
             w17.CanFocus = true;
             w17.Events = ((Gdk.EventMask)(0));
             w17.Name = "buttonConnect";
             // Container child buttonConnect.Gtk.Container+ContainerChild
             Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w18.Events = ((Gdk.EventMask)(0));
             w18.Name = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w19 = new Gtk.HBox();
             w19.Spacing = 2;
             w19.Events = ((Gdk.EventMask)(0));
             w19.Name = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w20 = new Gtk.Image();
             w20.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-connect", 16, 0);
             w20.Events = ((Gdk.EventMask)(0));
             w20.Name = "image15";
             bindings["image15"] = w20;
             w19.Add(w20);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w22 = new Gtk.Label();
             w22.LabelProp = "Connect";
             w22.Events = ((Gdk.EventMask)(0));
             w22.Name = "GtkLabel";
             bindings["GtkLabel"] = w22;
             w19.Add(w22);
             bindings["GtkHBox"] = w19;
             w18.Add(w19);
             bindings["GtkAlignment"] = w18;
             w17.Add(w18);
             bindings["buttonConnect"] = w17;
             w16.Add(w17);
             Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(w16[w17]));
             w26.PackType = ((Gtk.PackType)(1));
             w26.Position = 0;
             w26.Expand = false;
             w26.Fill = false;
             bindings["hbox3"] = w16;
             w1.Add(w16);
             Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w1[w16]));
             w27.Position = 3;
             w27.Expand = false;
             w27.Fill = false;
             bindings["vbox1"] = w1;
             cobj.Add(w1);
             cobj.DefaultWidth = 370;
             cobj.DefaultHeight = 129;
             bindings["administrator.LoginWindow"] = cobj;
             w3.Show();
             w5.Show();
             w2.Show();
             w9.Show();
             w11.Show();
             w8.Show();
             w14.Show();
             w20.Show();
             w22.Show();
             w19.Show();
             w18.Show();
             w17.Show();
             w16.Show();
             w1.Show();
             cobj.Show();
             cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
             w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w11.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
             w17.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnConnect")));
         }
         else {
             if ((id == "administrator.MainWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget administrator.MainWindow
                 cobj.Title = "Boxerp Administrator";
                 Gtk.UIManager w1 = new Gtk.UIManager();
                 Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
                 Gtk.Action w3 = new Gtk.Action("File", "File", null, null);
                 w3.ShortLabel = "File";
                 bindings["File"] = w3;
                 w2.Add(w3, null);
                 Gtk.Action w4 = new Gtk.Action("Exit", "Exit", null, null);
                 w4.ShortLabel = "Exit";
                 bindings["Exit"] = w4;
                 w2.Add(w4, null);
                 Gtk.Action w5 = new Gtk.Action("Edit", "Edit", null, null);
                 w5.ShortLabel = "Edit";
                 bindings["Edit"] = w5;
                 w2.Add(w5, null);
                 Gtk.Action w6 = new Gtk.Action("Cut", "Cut", null, null);
                 w6.ShortLabel = "Cut";
                 bindings["Cut"] = w6;
                 w2.Add(w6, null);
                 Gtk.Action w7 = new Gtk.Action("Copy", "Copy", null, null);
                 w7.ShortLabel = "Copy";
                 bindings["Copy"] = w7;
                 w2.Add(w7, null);
                 Gtk.Action w8 = new Gtk.Action("Paste", "Paste", null, null);
                 w8.ShortLabel = "Paste";
                 bindings["Paste"] = w8;
                 w2.Add(w8, null);
                 Gtk.Action w9 = new Gtk.Action("Help", "Help", null, null);
                 w9.ShortLabel = "Help";
                 bindings["Help"] = w9;
                 w2.Add(w9, null);
                 Gtk.Action w10 = new Gtk.Action("About", "About", null, null);
                 w10.ShortLabel = "About";
                 bindings["About"] = w10;
                 w2.Add(w10, null);
                 w1.InsertActionGroup(w2, 0);
                 cobj.AddAccelGroup(w1.AccelGroup);
                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                 cobj.DefaultWidth = 800;
                 cobj.DefaultHeight = 600;
                 cobj.Events = ((Gdk.EventMask)(0));
                 cobj.Name = "administrator.MainWindow";
                 // Container child administrator.MainWindow.Gtk.Container+ContainerChild
                 Gtk.VBox w11 = new Gtk.VBox();
                 w11.Events = ((Gdk.EventMask)(0));
                 w11.Name = "vbox1";
                 // Container child vbox1.Gtk.Box+BoxChild
                 w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Exit'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
                 Gtk.MenuBar w12 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
                 w12.Events = ((Gdk.EventMask)(0));
                 w12.Name = "menubar1";
                 bindings["menubar1"] = w12;
                 w11.Add(w12);
                 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w11[w12]));
                 w13.Position = 0;
                 w13.Expand = false;
                 w13.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 w1.AddUiFromString("<ui><toolbar name='toolbar1'/></ui>");
                 Gtk.Toolbar w14 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
                 w14.ShowArrow = false;
                 w14.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
                 w14.IconSize = ((Gtk.IconSize)(3));
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "toolbar1";
                 bindings["toolbar1"] = w14;
                 w11.Add(w14);
                 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w11[w14]));
                 w15.Position = 1;
                 w15.Expand = false;
                 w15.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.VBox w16 = new Gtk.VBox();
                 w16.BorderWidth = ((uint)(5));
                 w16.Events = ((Gdk.EventMask)(0));
                 w16.Name = "vbox2";
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.HBox w17 = new Gtk.HBox();
                 w17.Events = ((Gdk.EventMask)(0));
                 w17.Name = "hbox1";
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Label w18 = new Gtk.Label();
                 w18.LabelProp = "<b>Enterprise:</b>";
                 w18.UseMarkup = true;
                 w18.Ypad = 6;
                 w18.Events = ((Gdk.EventMask)(256));
                 w18.Name = "labelEnterprise";
                 bindings["labelEnterprise"] = w18;
                 w17.Add(w18);
                 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18]));
                 w19.Position = 0;
                 w19.Expand = false;
                 w19.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Entry w20 = new Gtk.Entry();
                 w20.IsEditable = true;
                 w20.InvisibleChar = '●';
                 w20.CanFocus = true;
                 w20.Events = ((Gdk.EventMask)(0));
                 w20.Name = "entryEnterprise";
                 bindings["entryEnterprise"] = w20;
                 w17.Add(w20);
                 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20]));
                 w21.Position = 1;
                 w21.Expand = false;
                 w21.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Button w22 = new Gtk.Button();
                 Gtk.Tooltips w23 = new Gtk.Tooltips();
                 w23.SetTip(w22, "Añadir un Hecho", "Añadir un Hecho");
                 w22.CanFocus = true;
                 w22.Events = ((Gdk.EventMask)(0));
                 w22.Name = "buttonFindEnterprise";
                 w22.HasDefault = true;
                 // Container child buttonFindEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w24.Events = ((Gdk.EventMask)(0));
                 w24.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w25 = new Gtk.HBox();
                 w25.Spacing = 2;
                 w25.Events = ((Gdk.EventMask)(0));
                 w25.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w26 = new Gtk.Image();
                 w26.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "image1";
                 bindings["image1"] = w26;
                 w25.Add(w26);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w28 = new Gtk.Label();
                 w28.LabelProp = "";
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "GtkLabel";
                 bindings["GtkLabel"] = w28;
                 w25.Add(w28);
                 bindings["GtkHBox"] = w25;
                 w24.Add(w25);
                 bindings["GtkAlignment"] = w24;
                 w22.Add(w24);
                 bindings["buttonFindEnterprise"] = w22;
                 w17.Add(w22);
                 Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w17[w22]));
                 w32.Position = 2;
                 w32.Expand = false;
                 w32.Fill = false;
                 bindings["hbox1"] = w17;
                 w16.Add(w17);
                 Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w16[w17]));
                 w33.Position = 0;
                 w33.Expand = false;
                 w33.Fill = false;
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w34 = new Gtk.ScrolledWindow();
                 w34.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w34.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w34.CanFocus = true;
                 w34.Events = ((Gdk.EventMask)(0));
                 w34.Name = "scrolledwindow1";
                 // Container child scrolledwindow1.Gtk.Container+ContainerChild
                 Gtk.Viewport w35 = new Gtk.Viewport();
                 w35.ShadowType = ((Gtk.ShadowType)(0));
                 w35.Events = ((Gdk.EventMask)(0));
                 w35.Name = "GtkViewport";
                 // Container child GtkViewport.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w36 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w36.Events = ((Gdk.EventMask)(256));
                 w36.Name = "ftreeviewEnterprises";
                 bindings["ftreeviewEnterprises"] = w36;
                 w35.Add(w36);
                 bindings["GtkViewport"] = w35;
                 w34.Add(w35);
                 bindings["scrolledwindow1"] = w34;
                 w16.Add(w34);
                 Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(w16[w34]));
                 w39.Position = 1;
                 // Container child vbox2.Gtk.Box+BoxChild
                 Gtk.HBox w40 = new Gtk.HBox();
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "hbox14";
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w41 = new Gtk.Button();
                 w23.SetTip(w41, "Añadir un Hecho", "Añadir un Hecho");
                 w41.CanFocus = true;
                 w41.Events = ((Gdk.EventMask)(0));
                 w41.Name = "buttonNewEnterprise";
                 w41.HasDefault = true;
                 // Container child buttonNewEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w42 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w43 = new Gtk.HBox();
                 w43.Spacing = 2;
                 w43.Events = ((Gdk.EventMask)(0));
                 w43.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w44 = new Gtk.Image();
                 w44.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w44.Events = ((Gdk.EventMask)(0));
                 w44.Name = "image2";
                 bindings["image2"] = w44;
                 w43.Add(w44);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w46 = new Gtk.Label();
                 w46.LabelProp = "";
                 w46.Events = ((Gdk.EventMask)(0));
                 w46.Name = "GtkLabel";
                 bindings["GtkLabel"] = w46;
                 w43.Add(w46);
                 bindings["GtkHBox"] = w43;
                 w42.Add(w43);
                 bindings["GtkAlignment"] = w42;
                 w41.Add(w42);
                 bindings["buttonNewEnterprise"] = w41;
                 w40.Add(w41);
                 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(w40[w41]));
                 w50.PackType = ((Gtk.PackType)(1));
                 w50.Position = 0;
                 w50.Expand = false;
                 w50.Fill = false;
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w51 = new Gtk.Button();
                 w23.SetTip(w51, "Editar el Hecho", "Editar el Hecho");
                 w51.CanFocus = true;
                 w51.Events = ((Gdk.EventMask)(0));
                 w51.Name = "buttonEditEnterprise";
                 // Container child buttonEditEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w52 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w52.Events = ((Gdk.EventMask)(0));
                 w52.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w53 = new Gtk.HBox();
                 w53.Spacing = 2;
                 w53.Events = ((Gdk.EventMask)(0));
                 w53.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w54 = new Gtk.Image();
                 w54.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w54.Events = ((Gdk.EventMask)(0));
                 w54.Name = "image3";
                 bindings["image3"] = w54;
                 w53.Add(w54);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w56 = new Gtk.Label();
                 w56.LabelProp = "";
                 w56.Events = ((Gdk.EventMask)(0));
                 w56.Name = "GtkLabel";
                 bindings["GtkLabel"] = w56;
                 w53.Add(w56);
                 bindings["GtkHBox"] = w53;
                 w52.Add(w53);
                 bindings["GtkAlignment"] = w52;
                 w51.Add(w52);
                 bindings["buttonEditEnterprise"] = w51;
                 w40.Add(w51);
                 Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(w40[w51]));
                 w60.PackType = ((Gtk.PackType)(1));
                 w60.Position = 1;
                 w60.Expand = false;
                 w60.Fill = false;
                 // Container child hbox14.Gtk.Box+BoxChild
                 Gtk.Button w61 = new Gtk.Button();
                 w23.SetTip(w61, "Quitar el Hecho", "Quitar el Hecho");
                 w61.CanFocus = true;
                 w61.Events = ((Gdk.EventMask)(0));
                 w61.Name = "buttonDelEnterprise";
                 // Container child buttonDelEnterprise.Gtk.Container+ContainerChild
                 Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w62.Events = ((Gdk.EventMask)(0));
                 w62.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w63 = new Gtk.HBox();
                 w63.Spacing = 2;
                 w63.Events = ((Gdk.EventMask)(0));
                 w63.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w64 = new Gtk.Image();
                 w64.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w64.Events = ((Gdk.EventMask)(0));
                 w64.Name = "image4";
                 bindings["image4"] = w64;
                 w63.Add(w64);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w66 = new Gtk.Label();
                 w66.LabelProp = "";
                 w66.Events = ((Gdk.EventMask)(0));
                 w66.Name = "GtkLabel";
                 bindings["GtkLabel"] = w66;
                 w63.Add(w66);
                 bindings["GtkHBox"] = w63;
                 w62.Add(w63);
                 bindings["GtkAlignment"] = w62;
                 w61.Add(w62);
                 bindings["buttonDelEnterprise"] = w61;
                 w40.Add(w61);
                 Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(w40[w61]));
                 w70.PackType = ((Gtk.PackType)(1));
                 w70.Position = 2;
                 w70.Expand = false;
                 w70.Fill = false;
                 bindings["hbox14"] = w40;
                 w16.Add(w40);
                 Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(w16[w40]));
                 w71.Position = 2;
                 w71.Expand = false;
                 w71.Fill = false;
                 bindings["vbox2"] = w16;
                 w11.Add(w16);
                 Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(w11[w16]));
                 w72.Position = 2;
                 w72.Expand = false;
                 w72.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w73 = new Gtk.HSeparator();
                 w73.Events = ((Gdk.EventMask)(0));
                 w73.Name = "hseparator2";
                 bindings["hseparator2"] = w73;
                 w11.Add(w73);
                 Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(w11[w73]));
                 w74.Position = 3;
                 w74.Expand = false;
                 w74.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w75 = new Gtk.HBox();
                 w75.Homogeneous = true;
                 w75.Events = ((Gdk.EventMask)(0));
                 w75.Name = "hbox2";
                 // Container child hbox2.Gtk.Box+BoxChild
                 Gtk.VBox w76 = new Gtk.VBox();
                 w76.BorderWidth = ((uint)(5));
                 w76.Events = ((Gdk.EventMask)(0));
                 w76.Name = "vbox3";
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.HBox w77 = new Gtk.HBox();
                 w77.Events = ((Gdk.EventMask)(0));
                 w77.Name = "hbox3";
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w78 = new Gtk.Label();
                 w78.LabelProp = "<b>User:</b>";
                 w78.UseMarkup = true;
                 w78.Ypad = 6;
                 w78.Events = ((Gdk.EventMask)(256));
                 w78.Name = "labelUser";
                 bindings["labelUser"] = w78;
                 w77.Add(w78);
                 Gtk.Box.BoxChild w79 = ((Gtk.Box.BoxChild)(w77[w78]));
                 w79.Position = 0;
                 w79.Expand = false;
                 w79.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w80 = new Gtk.Entry();
                 w80.IsEditable = true;
                 w80.InvisibleChar = '●';
                 w80.CanFocus = true;
                 w80.Events = ((Gdk.EventMask)(0));
                 w80.Name = "entryUser";
                 bindings["entryUser"] = w80;
                 w77.Add(w80);
                 Gtk.Box.BoxChild w81 = ((Gtk.Box.BoxChild)(w77[w80]));
                 w81.Position = 1;
                 w81.Expand = false;
                 w81.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Button w82 = new Gtk.Button();
                 w23.SetTip(w82, "Añadir un Hecho", "Añadir un Hecho");
                 w82.CanFocus = true;
                 w82.Events = ((Gdk.EventMask)(0));
                 w82.Name = "buttonFindUser";
                 w82.HasDefault = true;
                 // Container child buttonFindUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w83 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w83.Events = ((Gdk.EventMask)(0));
                 w83.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w84 = new Gtk.HBox();
                 w84.Spacing = 2;
                 w84.Events = ((Gdk.EventMask)(0));
                 w84.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w85 = new Gtk.Image();
                 w85.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w85.Events = ((Gdk.EventMask)(0));
                 w85.Name = "image5";
                 bindings["image5"] = w85;
                 w84.Add(w85);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w87 = new Gtk.Label();
                 w87.LabelProp = "";
                 w87.Events = ((Gdk.EventMask)(0));
                 w87.Name = "GtkLabel";
                 bindings["GtkLabel"] = w87;
                 w84.Add(w87);
                 bindings["GtkHBox"] = w84;
                 w83.Add(w84);
                 bindings["GtkAlignment"] = w83;
                 w82.Add(w83);
                 bindings["buttonFindUser"] = w82;
                 w77.Add(w82);
                 Gtk.Box.BoxChild w91 = ((Gtk.Box.BoxChild)(w77[w82]));
                 w91.Position = 2;
                 w91.Expand = false;
                 w91.Fill = false;
                 bindings["hbox3"] = w77;
                 w76.Add(w77);
                 Gtk.Box.BoxChild w92 = ((Gtk.Box.BoxChild)(w76[w77]));
                 w92.Position = 0;
                 w92.Expand = false;
                 w92.Fill = false;
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w93 = new Gtk.ScrolledWindow();
                 w93.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w93.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w93.CanFocus = true;
                 w93.Events = ((Gdk.EventMask)(0));
                 w93.Name = "scrolledwindow2";
                 // Container child scrolledwindow2.Gtk.Container+ContainerChild
                 Gtk.Viewport w94 = new Gtk.Viewport();
                 w94.ShadowType = ((Gtk.ShadowType)(0));
                 w94.Events = ((Gdk.EventMask)(0));
                 w94.Name = "GtkViewport1";
                 // Container child GtkViewport1.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w95 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w95.Events = ((Gdk.EventMask)(256));
                 w95.Name = "ftreeviewUsers";
                 bindings["ftreeviewUsers"] = w95;
                 w94.Add(w95);
                 bindings["GtkViewport1"] = w94;
                 w93.Add(w94);
                 bindings["scrolledwindow2"] = w93;
                 w76.Add(w93);
                 Gtk.Box.BoxChild w98 = ((Gtk.Box.BoxChild)(w76[w93]));
                 w98.Position = 1;
                 // Container child vbox3.Gtk.Box+BoxChild
                 Gtk.HBox w99 = new Gtk.HBox();
                 w99.Events = ((Gdk.EventMask)(0));
                 w99.Name = "hbox15";
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w100 = new Gtk.Button();
                 w23.SetTip(w100, "Añadir un Hecho", "Añadir un Hecho");
                 w100.CanFocus = true;
                 w100.Events = ((Gdk.EventMask)(0));
                 w100.Name = "buttonNewUser";
                 w100.HasDefault = true;
                 // Container child buttonNewUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w101.Events = ((Gdk.EventMask)(0));
                 w101.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w102 = new Gtk.HBox();
                 w102.Spacing = 2;
                 w102.Events = ((Gdk.EventMask)(0));
                 w102.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w103 = new Gtk.Image();
                 w103.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w103.Events = ((Gdk.EventMask)(0));
                 w103.Name = "image6";
                 bindings["image6"] = w103;
                 w102.Add(w103);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w105 = new Gtk.Label();
                 w105.LabelProp = "";
                 w105.Events = ((Gdk.EventMask)(0));
                 w105.Name = "GtkLabel";
                 bindings["GtkLabel"] = w105;
                 w102.Add(w105);
                 bindings["GtkHBox"] = w102;
                 w101.Add(w102);
                 bindings["GtkAlignment"] = w101;
                 w100.Add(w101);
                 bindings["buttonNewUser"] = w100;
                 w99.Add(w100);
                 Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(w99[w100]));
                 w109.PackType = ((Gtk.PackType)(1));
                 w109.Position = 0;
                 w109.Expand = false;
                 w109.Fill = false;
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w110 = new Gtk.Button();
                 w23.SetTip(w110, "Editar el Hecho", "Editar el Hecho");
                 w110.CanFocus = true;
                 w110.Events = ((Gdk.EventMask)(0));
                 w110.Name = "buttonEditUser";
                 // Container child buttonEditUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w111 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w111.Events = ((Gdk.EventMask)(0));
                 w111.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w112 = new Gtk.HBox();
                 w112.Spacing = 2;
                 w112.Events = ((Gdk.EventMask)(0));
                 w112.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w113 = new Gtk.Image();
                 w113.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w113.Events = ((Gdk.EventMask)(0));
                 w113.Name = "image7";
                 bindings["image7"] = w113;
                 w112.Add(w113);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w115 = new Gtk.Label();
                 w115.LabelProp = "";
                 w115.Events = ((Gdk.EventMask)(0));
                 w115.Name = "GtkLabel";
                 bindings["GtkLabel"] = w115;
                 w112.Add(w115);
                 bindings["GtkHBox"] = w112;
                 w111.Add(w112);
                 bindings["GtkAlignment"] = w111;
                 w110.Add(w111);
                 bindings["buttonEditUser"] = w110;
                 w99.Add(w110);
                 Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(w99[w110]));
                 w119.PackType = ((Gtk.PackType)(1));
                 w119.Position = 1;
                 w119.Expand = false;
                 w119.Fill = false;
                 // Container child hbox15.Gtk.Box+BoxChild
                 Gtk.Button w120 = new Gtk.Button();
                 w23.SetTip(w120, "Quitar el Hecho", "Quitar el Hecho");
                 w120.CanFocus = true;
                 w120.Events = ((Gdk.EventMask)(0));
                 w120.Name = "buttonDelUser";
                 // Container child buttonDelUser.Gtk.Container+ContainerChild
                 Gtk.Alignment w121 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w121.Events = ((Gdk.EventMask)(0));
                 w121.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w122 = new Gtk.HBox();
                 w122.Spacing = 2;
                 w122.Events = ((Gdk.EventMask)(0));
                 w122.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w123 = new Gtk.Image();
                 w123.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w123.Events = ((Gdk.EventMask)(0));
                 w123.Name = "image8";
                 bindings["image8"] = w123;
                 w122.Add(w123);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w125 = new Gtk.Label();
                 w125.LabelProp = "";
                 w125.Events = ((Gdk.EventMask)(0));
                 w125.Name = "GtkLabel";
                 bindings["GtkLabel"] = w125;
                 w122.Add(w125);
                 bindings["GtkHBox"] = w122;
                 w121.Add(w122);
                 bindings["GtkAlignment"] = w121;
                 w120.Add(w121);
                 bindings["buttonDelUser"] = w120;
                 w99.Add(w120);
                 Gtk.Box.BoxChild w129 = ((Gtk.Box.BoxChild)(w99[w120]));
                 w129.PackType = ((Gtk.PackType)(1));
                 w129.Position = 2;
                 w129.Expand = false;
                 w129.Fill = false;
                 bindings["hbox15"] = w99;
                 w76.Add(w99);
                 Gtk.Box.BoxChild w130 = ((Gtk.Box.BoxChild)(w76[w99]));
                 w130.Position = 2;
                 w130.Expand = false;
                 w130.Fill = false;
                 bindings["vbox3"] = w76;
                 w75.Add(w76);
                 Gtk.Box.BoxChild w131 = ((Gtk.Box.BoxChild)(w75[w76]));
                 w131.Position = 0;
                 // Container child hbox2.Gtk.Box+BoxChild
                 Gtk.VBox w132 = new Gtk.VBox();
                 w132.BorderWidth = ((uint)(5));
                 w132.Events = ((Gdk.EventMask)(0));
                 w132.Name = "vbox4";
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.HBox w133 = new Gtk.HBox();
                 w133.Events = ((Gdk.EventMask)(0));
                 w133.Name = "hbox4";
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Label w134 = new Gtk.Label();
                 w134.LabelProp = "<b>Group:</b>";
                 w134.UseMarkup = true;
                 w134.Ypad = 6;
                 w134.Events = ((Gdk.EventMask)(256));
                 w134.Name = "labelGroup";
                 bindings["labelGroup"] = w134;
                 w133.Add(w134);
                 Gtk.Box.BoxChild w135 = ((Gtk.Box.BoxChild)(w133[w134]));
                 w135.Position = 0;
                 w135.Expand = false;
                 w135.Fill = false;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Entry w136 = new Gtk.Entry();
                 w136.IsEditable = true;
                 w136.InvisibleChar = '●';
                 w136.CanFocus = true;
                 w136.Events = ((Gdk.EventMask)(0));
                 w136.Name = "entryGroup";
                 bindings["entryGroup"] = w136;
                 w133.Add(w136);
                 Gtk.Box.BoxChild w137 = ((Gtk.Box.BoxChild)(w133[w136]));
                 w137.Position = 1;
                 w137.Expand = false;
                 w137.Fill = false;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.Button w138 = new Gtk.Button();
                 w23.SetTip(w138, "Añadir un Hecho", "Añadir un Hecho");
                 w138.CanFocus = true;
                 w138.Events = ((Gdk.EventMask)(0));
                 w138.Name = "buttonFindGroup";
                 w138.HasDefault = true;
                 // Container child buttonFindGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w139 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w139.Events = ((Gdk.EventMask)(0));
                 w139.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w140 = new Gtk.HBox();
                 w140.Spacing = 2;
                 w140.Events = ((Gdk.EventMask)(0));
                 w140.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w141 = new Gtk.Image();
                 w141.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                 w141.Events = ((Gdk.EventMask)(0));
                 w141.Name = "image9";
                 bindings["image9"] = w141;
                 w140.Add(w141);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w143 = new Gtk.Label();
                 w143.LabelProp = "";
                 w143.Events = ((Gdk.EventMask)(0));
                 w143.Name = "GtkLabel";
                 bindings["GtkLabel"] = w143;
                 w140.Add(w143);
                 bindings["GtkHBox"] = w140;
                 w139.Add(w140);
                 bindings["GtkAlignment"] = w139;
                 w138.Add(w139);
                 bindings["buttonFindGroup"] = w138;
                 w133.Add(w138);
                 Gtk.Box.BoxChild w147 = ((Gtk.Box.BoxChild)(w133[w138]));
                 w147.Position = 2;
                 w147.Expand = false;
                 w147.Fill = false;
                 bindings["hbox4"] = w133;
                 w132.Add(w133);
                 Gtk.Box.BoxChild w148 = ((Gtk.Box.BoxChild)(w132[w133]));
                 w148.Position = 0;
                 w148.Expand = false;
                 w148.Fill = false;
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.ScrolledWindow w149 = new Gtk.ScrolledWindow();
                 w149.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w149.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                 w149.CanFocus = true;
                 w149.Events = ((Gdk.EventMask)(0));
                 w149.Name = "scrolledwindow3";
                 // Container child scrolledwindow3.Gtk.Container+ContainerChild
                 Gtk.Viewport w150 = new Gtk.Viewport();
                 w150.ShadowType = ((Gtk.ShadowType)(0));
                 w150.Events = ((Gdk.EventMask)(0));
                 w150.Name = "GtkViewport2";
                 // Container child GtkViewport2.Gtk.Container+ContainerChild
                 Boxerp.Client.GtkSharp.Lib.FilteredListView w151 = new Boxerp.Client.GtkSharp.Lib.FilteredListView();
                 w151.Events = ((Gdk.EventMask)(256));
                 w151.Name = "ftreeviewGroups";
                 bindings["ftreeviewGroups"] = w151;
                 w150.Add(w151);
                 bindings["GtkViewport2"] = w150;
                 w149.Add(w150);
                 bindings["scrolledwindow3"] = w149;
                 w132.Add(w149);
                 Gtk.Box.BoxChild w154 = ((Gtk.Box.BoxChild)(w132[w149]));
                 w154.Position = 1;
                 // Container child vbox4.Gtk.Box+BoxChild
                 Gtk.HBox w155 = new Gtk.HBox();
                 w155.Events = ((Gdk.EventMask)(0));
                 w155.Name = "hbox16";
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w156 = new Gtk.Button();
                 w23.SetTip(w156, "Añadir un Hecho", "Añadir un Hecho");
                 w156.CanFocus = true;
                 w156.Events = ((Gdk.EventMask)(0));
                 w156.Name = "buttonNewGroup";
                 w156.HasDefault = true;
                 // Container child buttonNewGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w157 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w157.Events = ((Gdk.EventMask)(0));
                 w157.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w158 = new Gtk.HBox();
                 w158.Spacing = 2;
                 w158.Events = ((Gdk.EventMask)(0));
                 w158.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w159 = new Gtk.Image();
                 w159.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-new", 16, 0);
                 w159.Events = ((Gdk.EventMask)(0));
                 w159.Name = "image10";
                 bindings["image10"] = w159;
                 w158.Add(w159);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w161 = new Gtk.Label();
                 w161.LabelProp = "";
                 w161.Events = ((Gdk.EventMask)(0));
                 w161.Name = "GtkLabel";
                 bindings["GtkLabel"] = w161;
                 w158.Add(w161);
                 bindings["GtkHBox"] = w158;
                 w157.Add(w158);
                 bindings["GtkAlignment"] = w157;
                 w156.Add(w157);
                 bindings["buttonNewGroup"] = w156;
                 w155.Add(w156);
                 Gtk.Box.BoxChild w165 = ((Gtk.Box.BoxChild)(w155[w156]));
                 w165.PackType = ((Gtk.PackType)(1));
                 w165.Position = 0;
                 w165.Expand = false;
                 w165.Fill = false;
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w166 = new Gtk.Button();
                 w23.SetTip(w166, "Editar el Hecho", "Editar el Hecho");
                 w166.CanFocus = true;
                 w166.Events = ((Gdk.EventMask)(0));
                 w166.Name = "buttonEditGroup";
                 // Container child buttonEditGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w167 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w167.Events = ((Gdk.EventMask)(0));
                 w167.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w168 = new Gtk.HBox();
                 w168.Spacing = 2;
                 w168.Events = ((Gdk.EventMask)(0));
                 w168.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w169 = new Gtk.Image();
                 w169.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-edit", 16, 0);
                 w169.Events = ((Gdk.EventMask)(0));
                 w169.Name = "image11";
                 bindings["image11"] = w169;
                 w168.Add(w169);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w171 = new Gtk.Label();
                 w171.LabelProp = "";
                 w171.Events = ((Gdk.EventMask)(0));
                 w171.Name = "GtkLabel";
                 bindings["GtkLabel"] = w171;
                 w168.Add(w171);
                 bindings["GtkHBox"] = w168;
                 w167.Add(w168);
                 bindings["GtkAlignment"] = w167;
                 w166.Add(w167);
                 bindings["buttonEditGroup"] = w166;
                 w155.Add(w166);
                 Gtk.Box.BoxChild w175 = ((Gtk.Box.BoxChild)(w155[w166]));
                 w175.PackType = ((Gtk.PackType)(1));
                 w175.Position = 1;
                 w175.Expand = false;
                 w175.Fill = false;
                 // Container child hbox16.Gtk.Box+BoxChild
                 Gtk.Button w176 = new Gtk.Button();
                 w23.SetTip(w176, "Quitar el Hecho", "Quitar el Hecho");
                 w176.CanFocus = true;
                 w176.Events = ((Gdk.EventMask)(0));
                 w176.Name = "buttonDelGroup";
                 // Container child buttonDelGroup.Gtk.Container+ContainerChild
                 Gtk.Alignment w177 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w177.Events = ((Gdk.EventMask)(0));
                 w177.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w178 = new Gtk.HBox();
                 w178.Spacing = 2;
                 w178.Events = ((Gdk.EventMask)(0));
                 w178.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w179 = new Gtk.Image();
                 w179.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-delete", 16, 0);
                 w179.Events = ((Gdk.EventMask)(0));
                 w179.Name = "image12";
                 bindings["image12"] = w179;
                 w178.Add(w179);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w181 = new Gtk.Label();
                 w181.LabelProp = "";
                 w181.Events = ((Gdk.EventMask)(0));
                 w181.Name = "GtkLabel";
                 bindings["GtkLabel"] = w181;
                 w178.Add(w181);
                 bindings["GtkHBox"] = w178;
                 w177.Add(w178);
                 bindings["GtkAlignment"] = w177;
                 w176.Add(w177);
                 bindings["buttonDelGroup"] = w176;
                 w155.Add(w176);
                 Gtk.Box.BoxChild w185 = ((Gtk.Box.BoxChild)(w155[w176]));
                 w185.PackType = ((Gtk.PackType)(1));
                 w185.Position = 2;
                 w185.Expand = false;
                 w185.Fill = false;
                 bindings["hbox16"] = w155;
                 w132.Add(w155);
                 Gtk.Box.BoxChild w186 = ((Gtk.Box.BoxChild)(w132[w155]));
                 w186.Position = 2;
                 w186.Expand = false;
                 w186.Fill = false;
                 bindings["vbox4"] = w132;
                 w75.Add(w132);
                 Gtk.Box.BoxChild w187 = ((Gtk.Box.BoxChild)(w75[w132]));
                 w187.Position = 1;
                 bindings["hbox2"] = w75;
                 w11.Add(w75);
                 Gtk.Box.BoxChild w188 = ((Gtk.Box.BoxChild)(w11[w75]));
                 w188.Position = 4;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w189 = new Gtk.HSeparator();
                 w189.Events = ((Gdk.EventMask)(0));
                 w189.Name = "hseparator1";
                 bindings["hseparator1"] = w189;
                 w11.Add(w189);
                 Gtk.Box.BoxChild w190 = ((Gtk.Box.BoxChild)(w11[w189]));
                 w190.Position = 6;
                 w190.Expand = false;
                 w190.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.Statusbar w191 = new Gtk.Statusbar();
                 w191.Events = ((Gdk.EventMask)(0));
                 w191.Name = "statusbar1";
                 bindings["statusbar1"] = w191;
                 w11.Add(w191);
                 Gtk.Box.BoxChild w192 = ((Gtk.Box.BoxChild)(w11[w191]));
                 w192.Position = 7;
                 w192.Expand = false;
                 w192.Fill = false;
                 bindings["vbox1"] = w11;
                 cobj.Add(w11);
                 bindings["administrator.MainWindow"] = cobj;
                 w12.Show();
                 w14.Show();
                 w18.Show();
                 w20.Show();
                 w26.Show();
                 w28.Show();
                 w25.Show();
                 w24.Show();
                 w22.Show();
                 w17.Show();
                 w36.Show();
                 w35.Show();
                 w34.Show();
                 w44.Show();
                 w46.Show();
                 w43.Show();
                 w42.Show();
                 w41.Show();
                 w54.Show();
                 w56.Show();
                 w53.Show();
                 w52.Show();
                 w51.Show();
                 w64.Show();
                 w66.Show();
                 w63.Show();
                 w62.Show();
                 w61.Show();
                 w40.Show();
                 w16.Show();
                 w73.Show();
                 w78.Show();
                 w80.Show();
                 w85.Show();
                 w87.Show();
                 w84.Show();
                 w83.Show();
                 w82.Show();
                 w77.Show();
                 w95.Show();
                 w94.Show();
                 w93.Show();
                 w103.Show();
                 w105.Show();
                 w102.Show();
                 w101.Show();
                 w100.Show();
                 w113.Show();
                 w115.Show();
                 w112.Show();
                 w111.Show();
                 w110.Show();
                 w123.Show();
                 w125.Show();
                 w122.Show();
                 w121.Show();
                 w120.Show();
                 w99.Show();
                 w76.Show();
                 w134.Show();
                 w136.Show();
                 w141.Show();
                 w143.Show();
                 w140.Show();
                 w139.Show();
                 w138.Show();
                 w133.Show();
                 w151.Show();
                 w150.Show();
                 w149.Show();
                 w159.Show();
                 w161.Show();
                 w158.Show();
                 w157.Show();
                 w156.Show();
                 w169.Show();
                 w171.Show();
                 w168.Show();
                 w167.Show();
                 w166.Show();
                 w179.Show();
                 w181.Show();
                 w178.Show();
                 w177.Show();
                 w176.Show();
                 w155.Show();
                 w132.Show();
                 w75.Show();
                 w189.Show();
                 w191.Show();
                 w11.Show();
                 cobj.Show();
                 cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                 w20.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise")));
                 w22.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindEnterprise")));
                 w61.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelEnterpriseClicked")));
                 w51.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditEnterpriseClicked")));
                 w41.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewEnterpriseClicked")));
                 w80.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser")));
                 w82.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindUser")));
                 w120.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelUserClicked")));
                 w110.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditUserClicked")));
                 w100.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewUserClicked")));
                 w136.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup")));
                 w138.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnFindGroup")));
                 w176.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnDelGroupClicked")));
                 w166.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnEditGroupClicked")));
                 w156.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNewGroupClicked")));
             }
             else {
                 if ((id == "administrator.EditUserWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget administrator.EditUserWindow
                     cobj.Title = "User";
                     cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "administrator.EditUserWindow";
                     // Container child administrator.EditUserWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w1 = new Gtk.VBox();
                     w1.Events = ((Gdk.EventMask)(0));
                     w1.Name = "vbox1";
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.Notebook w2 = new Gtk.Notebook();
                     w2.CanFocus = true;
                     w2.Events = ((Gdk.EventMask)(0));
                     w2.Name = "notebook1";
                     // Container child notebook1.Gtk.Notebook+NotebookChild
                     Gtk.VBox w3 = new Gtk.VBox();
                     w3.Events = ((Gdk.EventMask)(0));
                     w3.Name = "vbox2";
                     // Container child vbox2.Gtk.Box+BoxChild
                     Gtk.Table w4 = new Gtk.Table(((uint)(5)), ((uint)(2)), false);
                     w4.RowSpacing = ((uint)(1));
                     w4.ColumnSpacing = ((uint)(5));
                     w4.BorderWidth = ((uint)(5));
                     w4.Events = ((Gdk.EventMask)(0));
                     w4.Name = "table1";
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.CheckButton w5 = new Gtk.CheckButton();
                     w5.Label = "";
                     w5.DrawIndicator = true;
                     w5.CanFocus = true;
                     w5.Events = ((Gdk.EventMask)(0));
                     w5.Name = "checkActive";
                     bindings["checkActive"] = w5;
                     w4.Add(w5);
                     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(w4[w5]));
                     w6.BottomAttach = ((uint)(5));
                     w6.LeftAttach = ((uint)(1));
                     w6.RightAttach = ((uint)(2));
                     w6.TopAttach = ((uint)(4));
                     w6.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w7 = new Gtk.Label();
                     w7.LabelProp = "Active:";
                     w7.Events = ((Gdk.EventMask)(0));
                     w7.Name = "label4";
                     bindings["label4"] = w7;
                     w4.Add(w7);
                     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(w4[w7]));
                     w8.BottomAttach = ((uint)(5));
                     w8.TopAttach = ((uint)(4));
                     w8.YOptions = ((Gtk.AttachOptions)(4));
                     w8.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w9 = new Gtk.Entry();
                     w9.IsEditable = true;
                     w9.Visibility = false;
                     w9.InvisibleChar = '●';
                     w9.CanFocus = true;
                     w9.Events = ((Gdk.EventMask)(0));
                     w9.Name = "entryPassword";
                     bindings["entryPassword"] = w9;
                     w4.Add(w9);
                     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(w4[w9]));
                     w10.BottomAttach = ((uint)(4));
                     w10.LeftAttach = ((uint)(1));
                     w10.RightAttach = ((uint)(2));
                     w10.TopAttach = ((uint)(3));
                     w10.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w11 = new Gtk.Entry();
                     w11.IsEditable = true;
                     w11.InvisibleChar = '●';
                     w11.CanFocus = true;
                     w11.Events = ((Gdk.EventMask)(0));
                     w11.Name = "entryEmail";
                     bindings["entryEmail"] = w11;
                     w4.Add(w11);
                     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(w4[w11]));
                     w12.BottomAttach = ((uint)(3));
                     w12.LeftAttach = ((uint)(1));
                     w12.RightAttach = ((uint)(2));
                     w12.TopAttach = ((uint)(2));
                     w12.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w13 = new Gtk.Entry();
                     w13.IsEditable = true;
                     w13.InvisibleChar = '●';
                     w13.CanFocus = true;
                     w13.Events = ((Gdk.EventMask)(0));
                     w13.Name = "entryRealName";
                     bindings["entryRealName"] = w13;
                     w4.Add(w13);
                     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(w4[w13]));
                     w14.BottomAttach = ((uint)(2));
                     w14.LeftAttach = ((uint)(1));
                     w14.RightAttach = ((uint)(2));
                     w14.TopAttach = ((uint)(1));
                     w14.YOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w15 = new Gtk.Label();
                     w15.LabelProp = "Password:"******"label14";
                     bindings["label14"] = w15;
                     w4.Add(w15);
                     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(w4[w15]));
                     w16.BottomAttach = ((uint)(4));
                     w16.TopAttach = ((uint)(3));
                     w16.YOptions = ((Gtk.AttachOptions)(4));
                     w16.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w17 = new Gtk.Label();
                     w17.LabelProp = "Email:";
                     w17.Events = ((Gdk.EventMask)(0));
                     w17.Name = "label13";
                     bindings["label13"] = w17;
                     w4.Add(w17);
                     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(w4[w17]));
                     w18.BottomAttach = ((uint)(3));
                     w18.TopAttach = ((uint)(2));
                     w18.YOptions = ((Gtk.AttachOptions)(4));
                     w18.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w19 = new Gtk.Label();
                     w19.LabelProp = "Real Name:";
                     w19.Events = ((Gdk.EventMask)(0));
                     w19.Name = "label12";
                     bindings["label12"] = w19;
                     w4.Add(w19);
                     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(w4[w19]));
                     w20.BottomAttach = ((uint)(2));
                     w20.TopAttach = ((uint)(1));
                     w20.YOptions = ((Gtk.AttachOptions)(4));
                     w20.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Label w21 = new Gtk.Label();
                     w21.LabelProp = "User Name:";
                     w21.Events = ((Gdk.EventMask)(0));
                     w21.Name = "label10";
                     bindings["label10"] = w21;
                     w4.Add(w21);
                     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(w4[w21]));
                     w22.YOptions = ((Gtk.AttachOptions)(4));
                     w22.XOptions = ((Gtk.AttachOptions)(4));
                     // Container child table1.Gtk.Table+TableChild
                     Gtk.Entry w23 = new Gtk.Entry();
                     w23.IsEditable = true;
                     w23.InvisibleChar = '●';
                     w23.CanFocus = true;
                     w23.Events = ((Gdk.EventMask)(0));
                     w23.Name = "entryUserName";
                     bindings["entryUserName"] = w23;
                     w4.Add(w23);
                     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(w4[w23]));
                     w24.LeftAttach = ((uint)(1));
                     w24.RightAttach = ((uint)(2));
                     w24.YOptions = ((Gtk.AttachOptions)(4));
                     bindings["table1"] = w4;
                     w3.Add(w4);
                     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w3[w4]));
                     w25.Position = 0;
                     w25.Expand = false;
                     w25.Fill = false;
                     // Container child vbox2.Gtk.Box+BoxChild
                     Boxerp.Client.GtkSharp.Lib.DoubleListView w26 = new Boxerp.Client.GtkSharp.Lib.DoubleListView();
                     w26.Events = ((Gdk.EventMask)(256));
                     w26.Name = "dtreeview";
                     bindings["dtreeview"] = w26;
                     w3.Add(w26);
                     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w3[w26]));
                     w27.Position = 1;
                     bindings["vbox2"] = w3;
                     w2.Add(w3);
                     Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(w2[w3]));
                     w28.TabExpand = false;
                     // Notebook tab
                     Gtk.Label w29 = new Gtk.Label();
                     w29.LabelProp = "Properties";
                     w29.Events = ((Gdk.EventMask)(0));
                     w29.Name = "label1";
                     bindings["label1"] = w29;
                     w2.SetTabLabel(w3, w29);
                     // Container child notebook1.Gtk.Notebook+NotebookChild
                     Gtk.VBox w30 = new Gtk.VBox();
                     w30.Events = ((Gdk.EventMask)(0));
                     w30.Name = "vbox3";
                     bindings["vbox3"] = w30;
                     w2.Add(w30);
                     Gtk.Notebook.NotebookChild w31 = ((Gtk.Notebook.NotebookChild)(w2[w30]));
                     w31.Position = 1;
                     w31.TabExpand = false;
                     // Notebook tab
                     Gtk.Label w32 = new Gtk.Label();
                     w32.LabelProp = "Permissions";
                     w32.Events = ((Gdk.EventMask)(0));
                     w32.Name = "label1";
                     bindings["label1"] = w32;
                     w2.SetTabLabel(w30, w32);
                     bindings["notebook1"] = w2;
                     w1.Add(w2);
                     Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(w1[w2]));
                     w33.Position = 0;
                     w33.Padding = ((uint)(5));
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HButtonBox w34 = new Gtk.HButtonBox();
                     w34.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                     w34.Spacing = 2;
                     w34.BorderWidth = ((uint)(5));
                     w34.Events = ((Gdk.EventMask)(0));
                     w34.Name = "hbuttonbox1";
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w35 = new Gtk.Button();
                     w35.CanFocus = true;
                     w35.Events = ((Gdk.EventMask)(0));
                     w35.Name = "buttonCancel";
                     // Container child buttonCancel.Gtk.Container+ContainerChild
                     Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w36.Events = ((Gdk.EventMask)(0));
                     w36.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w37 = new Gtk.HBox();
                     w37.Spacing = 2;
                     w37.Events = ((Gdk.EventMask)(0));
                     w37.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w38 = new Gtk.Image();
                     w38.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                     w38.Events = ((Gdk.EventMask)(0));
                     w38.Name = "image13";
                     bindings["image13"] = w38;
                     w37.Add(w38);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w40 = new Gtk.Label();
                     w40.LabelProp = "Cancel";
                     w40.Events = ((Gdk.EventMask)(0));
                     w40.Name = "GtkLabel";
                     bindings["GtkLabel"] = w40;
                     w37.Add(w40);
                     bindings["GtkHBox"] = w37;
                     w36.Add(w37);
                     bindings["GtkAlignment"] = w36;
                     w35.Add(w36);
                     bindings["buttonCancel"] = w35;
                     w34.Add(w35);
                     Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w35]));
                     w44.Expand = false;
                     w44.Fill = false;
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w45 = new Gtk.Button();
                     w45.CanFocus = true;
                     w45.Events = ((Gdk.EventMask)(0));
                     w45.Name = "buttonOk";
                     // Container child buttonOk.Gtk.Container+ContainerChild
                     Gtk.Alignment w46 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w46.Events = ((Gdk.EventMask)(0));
                     w46.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w47 = new Gtk.HBox();
                     w47.Spacing = 2;
                     w47.Events = ((Gdk.EventMask)(0));
                     w47.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w48 = new Gtk.Image();
                     w48.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                     w48.Events = ((Gdk.EventMask)(0));
                     w48.Name = "image14";
                     bindings["image14"] = w48;
                     w47.Add(w48);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w50 = new Gtk.Label();
                     w50.LabelProp = "Ok";
                     w50.Events = ((Gdk.EventMask)(0));
                     w50.Name = "GtkLabel";
                     bindings["GtkLabel"] = w50;
                     w47.Add(w50);
                     bindings["GtkHBox"] = w47;
                     w46.Add(w47);
                     bindings["GtkAlignment"] = w46;
                     w45.Add(w46);
                     bindings["buttonOk"] = w45;
                     w34.Add(w45);
                     Gtk.ButtonBox.ButtonBoxChild w54 = ((Gtk.ButtonBox.ButtonBoxChild)(w34[w45]));
                     w54.Position = 1;
                     w54.Expand = false;
                     w54.Fill = false;
                     bindings["hbuttonbox1"] = w34;
                     w1.Add(w34);
                     Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(w1[w34]));
                     w55.PackType = ((Gtk.PackType)(1));
                     w55.Position = 1;
                     w55.Expand = false;
                     w55.Fill = false;
                     bindings["vbox1"] = w1;
                     cobj.Add(w1);
                     cobj.DefaultWidth = 400;
                     cobj.DefaultHeight = 273;
                     bindings["administrator.EditUserWindow"] = cobj;
                     w5.Show();
                     w7.Show();
                     w9.Show();
                     w11.Show();
                     w13.Show();
                     w15.Show();
                     w17.Show();
                     w19.Show();
                     w21.Show();
                     w23.Show();
                     w4.Show();
                     w26.Show();
                     w3.Show();
                     w29.Show();
                     w30.Show();
                     w32.Show();
                     w2.Show();
                     w38.Show();
                     w40.Show();
                     w37.Show();
                     w36.Show();
                     w35.Show();
                     w48.Show();
                     w50.Show();
                     w47.Show();
                     w46.Show();
                     w45.Show();
                     w34.Show();
                     w1.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose")));
                     w35.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancelClicked")));
                     w45.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked")));
                 }
             }
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1)) {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) {
             field.SetValue(obj, widget);
         }
     }
 }
예제 #33
0
		static BooleanEditorCell ()
		{
			Gtk.CheckButton cb = new Gtk.CheckButton ();
			indicatorSize = (int) cb.StyleGetProperty ("indicator-size");
			indicatorSpacing = (int) cb.StyleGetProperty ("indicator-spacing");
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.FSharp.Formatting.FormattingPanelWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.FSharp.Formatting.FormattingPanelWidget";
     // Container child MonoDevelop.FSharp.Formatting.FormattingPanelWidget.Gtk.Container+ContainerChild
     this.container = new Gtk.VBox();
     this.container.Name = "container";
     this.container.Spacing = 12;
     // Container child container.Gtk.Box+BoxChild
     this.Indentation = new Gtk.Label();
     this.Indentation.Name = "Indentation";
     this.Indentation.Xalign = 0F;
     this.Indentation.LabelProp = Mono.Unix.Catalog.GetString("<b>Indentation</b>");
     this.Indentation.UseMarkup = true;
     this.container.Add(this.Indentation);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.container[this.Indentation]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child container.Gtk.Box+BoxChild
     this.hboxIndentation = new Gtk.HBox();
     this.hboxIndentation.Name = "hboxIndentation";
     // Container child hboxIndentation.Gtk.Box+BoxChild
     this.indentationSpacer = new Gtk.Label();
     this.indentationSpacer.WidthRequest = 18;
     this.indentationSpacer.Name = "indentationSpacer";
     this.hboxIndentation.Add(this.indentationSpacer);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hboxIndentation[this.indentationSpacer]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hboxIndentation.Gtk.Box+BoxChild
     this.vboxIndentation = new Gtk.VBox();
     this.vboxIndentation.Name = "vboxIndentation";
     this.vboxIndentation.Spacing = 6;
     // Container child vboxIndentation.Gtk.Box+BoxChild
     this.indentCaseLabels = new Gtk.CheckButton();
     this.indentCaseLabels.CanFocus = true;
     this.indentCaseLabels.Name = "indentCaseLabels";
     this.indentCaseLabels.Label = Mono.Unix.Catalog.GetString("Indent case labels");
     this.indentCaseLabels.DrawIndicator = true;
     this.indentCaseLabels.UseUnderline = true;
     this.vboxIndentation.Add(this.indentCaseLabels);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vboxIndentation[this.indentCaseLabels]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     this.hboxIndentation.Add(this.vboxIndentation);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hboxIndentation[this.vboxIndentation]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.container.Add(this.hboxIndentation);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.container[this.hboxIndentation]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // Container child container.Gtk.Box+BoxChild
     this.LabelIndentation = new Gtk.Label();
     this.LabelIndentation.Name = "LabelIndentation";
     this.LabelIndentation.Xalign = 0F;
     this.LabelIndentation.LabelProp = Mono.Unix.Catalog.GetString("<b>Label Indentation</b>");
     this.LabelIndentation.UseMarkup = true;
     this.container.Add(this.LabelIndentation);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.container[this.LabelIndentation]));
     w6.Position = 2;
     w6.Expand = false;
     w6.Fill = false;
     // Container child container.Gtk.Box+BoxChild
     this.hboxLabelIndentation = new Gtk.HBox();
     this.hboxLabelIndentation.Name = "hboxLabelIndentation";
     // Container child hboxLabelIndentation.Gtk.Box+BoxChild
     this.labelIndentationSpacer = new Gtk.Label();
     this.labelIndentationSpacer.WidthRequest = 18;
     this.labelIndentationSpacer.Name = "labelIndentationSpacer";
     this.hboxLabelIndentation.Add(this.labelIndentationSpacer);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxLabelIndentation[this.labelIndentationSpacer]));
     w7.Position = 0;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hboxLabelIndentation.Gtk.Box+BoxChild
     this.vboxLabelIndentation = new Gtk.VBox();
     this.vboxLabelIndentation.Name = "vboxLabelIndentation";
     this.vboxLabelIndentation.Spacing = 6;
     // Container child vboxLabelIndentation.Gtk.Box+BoxChild
     this.indentGotoLabelsLeftJustify = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Place goto labels in leftmost column"));
     this.indentGotoLabelsLeftJustify.CanFocus = true;
     this.indentGotoLabelsLeftJustify.Name = "indentGotoLabelsLeftJustify";
     this.indentGotoLabelsLeftJustify.Active = true;
     this.indentGotoLabelsLeftJustify.DrawIndicator = true;
     this.indentGotoLabelsLeftJustify.UseUnderline = true;
     this.indentGotoLabelsLeftJustify.Group = new GLib.SList(System.IntPtr.Zero);
     this.vboxLabelIndentation.Add(this.indentGotoLabelsLeftJustify);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vboxLabelIndentation[this.indentGotoLabelsLeftJustify]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child vboxLabelIndentation.Gtk.Box+BoxChild
     this.indentGotoLabelsUpOneLevel = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Place goto labels one indent less than current"));
     this.indentGotoLabelsUpOneLevel.CanFocus = true;
     this.indentGotoLabelsUpOneLevel.Name = "indentGotoLabelsUpOneLevel";
     this.indentGotoLabelsUpOneLevel.DrawIndicator = true;
     this.indentGotoLabelsUpOneLevel.UseUnderline = true;
     this.indentGotoLabelsUpOneLevel.Group = this.indentGotoLabelsLeftJustify.Group;
     this.vboxLabelIndentation.Add(this.indentGotoLabelsUpOneLevel);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vboxLabelIndentation[this.indentGotoLabelsUpOneLevel]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vboxLabelIndentation.Gtk.Box+BoxChild
     this.indentGotoLabelsNormally = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Indent goto labels normally"));
     this.indentGotoLabelsNormally.CanFocus = true;
     this.indentGotoLabelsNormally.Name = "indentGotoLabelsNormally";
     this.indentGotoLabelsNormally.DrawIndicator = true;
     this.indentGotoLabelsNormally.UseUnderline = true;
     this.indentGotoLabelsNormally.Group = this.indentGotoLabelsLeftJustify.Group;
     this.vboxLabelIndentation.Add(this.indentGotoLabelsNormally);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vboxLabelIndentation[this.indentGotoLabelsNormally]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.hboxLabelIndentation.Add(this.vboxLabelIndentation);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hboxLabelIndentation[this.vboxLabelIndentation]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     this.container.Add(this.hboxLabelIndentation);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.container[this.hboxLabelIndentation]));
     w12.Position = 3;
     w12.Expand = false;
     w12.Fill = false;
     this.Add(this.container);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
예제 #35
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.ResizeImageDialog
     this.Name = "Pinta.ResizeImageDialog";
     this.Title = Mono.Unix.Catalog.GetString("Resize Image");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     this.DefaultWidth = 300;
     this.DefaultHeight = 200;
     // Internal child Pinta.ResizeImageDialog.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.Active = true;
     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;
     this.hbox3.Add(this.widthSpinner);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.widthSpinner]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("pixels");
     this.hbox3.Add(this.label4);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w11.Position = 2;
     w11.Expand = false;
     w11.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Height:");
     this.hbox4.Add(this.label3);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3]));
     w12.Position = 0;
     w12.Expand = false;
     w12.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.heightSpinner = new Gtk.SpinButton(1, 10000, 1);
     this.heightSpinner.Sensitive = false;
     this.heightSpinner.CanFocus = true;
     this.heightSpinner.Name = "heightSpinner";
     this.heightSpinner.Adjustment.PageIncrement = 10;
     this.heightSpinner.ClimbRate = 1;
     this.heightSpinner.Numeric = true;
     this.hbox4.Add(this.heightSpinner);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.heightSpinner]));
     w13.Position = 1;
     w13.Expand = false;
     w13.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("pixels");
     this.hbox4.Add(this.label5);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5]));
     w14.Position = 2;
     w14.Expand = false;
     w14.Fill = false;
     this.vbox2.Add(this.hbox4);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
     w15.Position = 3;
     w15.Expand = false;
     w15.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.aspectCheckbox = new Gtk.CheckButton();
     this.aspectCheckbox.Sensitive = false;
     this.aspectCheckbox.CanFocus = true;
     this.aspectCheckbox.Name = "aspectCheckbox";
     this.aspectCheckbox.Label = Mono.Unix.Catalog.GetString("Maintain aspect ratio");
     this.aspectCheckbox.Active = true;
     this.aspectCheckbox.DrawIndicator = true;
     this.aspectCheckbox.UseUnderline = true;
     this.vbox2.Add(this.aspectCheckbox);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.aspectCheckbox]));
     w16.Position = 4;
     w16.Expand = false;
     w16.Fill = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w17.Position = 0;
     w17.Expand = false;
     w17.Fill = false;
     // Internal child Pinta.ResizeImageDialog.ActionArea
     Gtk.HButtonBox w18 = this.ActionArea;
     w18.Name = "dialog1_ActionArea";
     w18.Spacing = 10;
     w18.BorderWidth = ((uint)(5));
     w18.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w18[this.buttonCancel]));
     w19.Expand = false;
     w19.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w20 = ((Gtk.ButtonBox.ButtonBoxChild)(w18[this.buttonOk]));
     w20.Position = 1;
     w20.Expand = false;
     w20.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
예제 #36
0
        void InitializeWidget()
        {
            _viewModel.Init();

            // one row per option and one per group
            tblContainer.NRows         = (uint)(_viewModel.GroupedOptions.Sum(x => x.Count()) + _viewModel.GroupedOptions.Count()) + 1;
            tblContainer.NColumns      = 2;
            tblContainer.RowSpacing    = 0;
            tblContainer.ColumnSpacing = 0;
            tblContainer.BorderWidth   = 0;

            uint r = 0;

            var btn = new Gtk.Button();

            btn.Label        = "Reset to defaults";
            btn.WidthRequest = 150;
            btn.Clicked     += (sender, e) =>
            {
                _viewModel.ResetToDefaults();

                foreach (var item in tblContainer.Children)
                {
                    item.Destroy();
                }

                InitializeWidget();
            };
            tblContainer.Attach(btn, 0, 2, r, r + 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Fill, 0, 0);
            r++;

            foreach (var optionGroup in _viewModel.GroupedOptions)
            {
                // group label
                var grouplbl = new Gtk.Label();
                grouplbl.SetAlignment(0f, 0.5f);
                grouplbl.HeightRequest = 40;
                grouplbl.Markup        = $"<b> {optionGroup.Key}</b>";

                var box = new Gtk.EventBox();
                box.ModifyBg(Gtk.StateType.Normal, _groupHeaderColor);
                box.Add(grouplbl);
                tblContainer.Attach(box, 0, 2, r, r + 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Fill, 0, 0);
                r++;

                foreach (var option in optionGroup)
                {
                    // name label
                    var lbl = new Gtk.Label(option.Name)
                    {
                        TooltipText = option.Description
                    };
                    lbl.SetAlignment(0f, 0.5f);
                    lbl.HeightRequest = 30;
                    AddToTable(r, 0, lbl);

                    var type = option.PropertyType;
                    if (type == typeof(bool))
                    {
                        var chk = new Gtk.CheckButton {
                            Active = (bool)option.Property.GetValue(_viewModel.Options)
                        };
                        chk.Clicked += (sender, e) =>
                        {
                            option.Property.SetValue(_viewModel.Options, chk.Active);
                            _viewModel.IsDirty = true;
                        };
                        AddToTable(r, 1, chk);
                    }
                    else if (type == typeof(int))
                    {
                        var val  = (int)option.Property.GetValue(_viewModel.Options);
                        var spin = new Gtk.SpinButton(0, 10, 1)
                        {
                            Value = val, WidthChars = 3
                        };
                        spin.ValueChanged += (sender, e) =>
                        {
                            option.Property.SetValue(_viewModel.Options, (int)spin.Value);
                            _viewModel.IsDirty = true;
                        };
                        AddToTable(r, 1, spin);
                    }
                    else if (type == typeof(byte))
                    {
                        var val  = (byte)option.Property.GetValue(_viewModel.Options);
                        var spin = new Gtk.SpinButton(0, 10, 1)
                        {
                            Value = val, WidthChars = 3
                        };
                        spin.ValueChanged += (sender, e) =>
                        {
                            option.Property.SetValue(_viewModel.Options, (byte)spin.Value);
                            _viewModel.IsDirty = true;
                        };
                        AddToTable(r, 1, spin);
                    }
                    else if (type == typeof(string))
                    {
                        var val = (string)option.Property.GetValue(_viewModel.Options);
                        var txt = new Gtk.Entry(val);
                        txt.Alignment = 0;
                        txt.Changed  += (sender, e) =>
                        {
                            option.Property.SetValue(_viewModel.Options, txt.Text);
                            _viewModel.IsDirty = true;
                        };
                        AddToTable(r, 1, txt);
                    }
                    else if (type == typeof(string[]))
                    {
                        var vals = (string[])option.Property.GetValue(_viewModel.Options);
                        var val  = string.Join(Environment.NewLine, vals);
                        var txt  = new Gtk.TextView(new Gtk.TextBuffer(new Gtk.TextTagTable()));
                        txt.LeftMargin  = 5;
                        txt.RightMargin = 5;
                        txt.BorderWidth = 1;
                        txt.SetSizeRequest(320, 150);
                        txt.Buffer.Text     = val;
                        txt.Buffer.Changed += (sender, e) =>
                        {
                            var newVals = txt.Buffer.Text.Split(Environment.NewLine.ToCharArray());
                            option.Property.SetValue(_viewModel.Options, newVals);
                            _viewModel.IsDirty = true;
                        };

                        var frame = new Gtk.Frame();
                        frame.Shadow      = Gtk.ShadowType.In;
                        frame.BorderWidth = 5;
                        frame.Child       = txt;

                        AddToTable(r, 1, frame);
                    }
                    else if (type.IsEnum)
                    {
                        var val    = option.Property.GetValue(_viewModel.Options);
                        var values = Enum.GetNames(type);
                        var cmb    = new Gtk.ComboBox(values);
                        cmb.Active   = Array.IndexOf(values, val.ToString());
                        cmb.Changed += (sender, e) =>
                        {
                            option.Property.SetValue(_viewModel.Options, Enum.Parse(type, cmb.ActiveText));
                            _viewModel.IsDirty = true;
                        };
                        AddToTable(r, 1, cmb);
                    }

                    r++;
                }
            }

            alContainer.ShowAll();
        }
예제 #37
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget LinuxGUITest.BalanceBoardInformation
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     Gtk.UIManager       w2 = new Gtk.UIManager();
     Gtk.ActionGroup     w3 = new Gtk.ActionGroup("Default");
     this.BalanceBoardAction            = new Gtk.Action("BalanceBoardAction", Mono.Unix.Catalog.GetString("BalanceBoard"), null, null);
     this.BalanceBoardAction.ShortLabel = Mono.Unix.Catalog.GetString("BalanceBoard");
     w3.Add(this.BalanceBoardAction, null);
     this.DisconnectAction            = new Gtk.Action("DisconnectAction", Mono.Unix.Catalog.GetString("Disconnect"), null, null);
     this.DisconnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect");
     w3.Add(this.DisconnectAction, null);
     w2.InsertActionGroup(w3, 0);
     this.Name = "LinuxGUITest.BalanceBoardInformation";
     // Container child LinuxGUITest.BalanceBoardInformation.Gtk.Container+ContainerChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w2.AddUiFromString("<ui><menubar name='menubar1'><menu action='BalanceBoardAction'><menuitem action='DisconnectAction'/></menu></menubar></ui>");
     this.menubar1      = ((Gtk.MenuBar)(w2.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w4.Position = 0;
     w4.Expand   = false;
     w4.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hseparator2      = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.vbox1.Add(this.hseparator2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator2]));
     w5.Position = 1;
     w5.Expand   = false;
     w5.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.checkboxLed               = new Gtk.CheckButton();
     this.checkboxLed.CanFocus      = true;
     this.checkboxLed.Name          = "checkboxLed";
     this.checkboxLed.Label         = Mono.Unix.Catalog.GetString("Led");
     this.checkboxLed.DrawIndicator = true;
     this.checkboxLed.UseUnderline  = true;
     this.hbox4.Add(this.checkboxLed);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.checkboxLed]));
     w6.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.lblButton           = new Gtk.Label();
     this.lblButton.Name      = "lblButton";
     this.lblButton.LabelProp = Mono.Unix.Catalog.GetString("Button");
     this.hbox4.Add(this.lblButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.lblButton]));
     w7.Position = 1;
     w7.Expand   = false;
     w7.Fill     = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.entryButton               = new Gtk.Entry();
     this.entryButton.CanFocus      = true;
     this.entryButton.Name          = "entryButton";
     this.entryButton.IsEditable    = false;
     this.entryButton.InvisibleChar = '●';
     this.hbox4.Add(this.entryButton);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.entryButton]));
     w8.Position = 2;
     this.vbox1.Add(this.hbox4);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4]));
     w9.Position = 2;
     w9.Expand   = false;
     w9.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name        = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.table4               = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table4.Name          = "table4";
     this.table4.RowSpacing    = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.entryBottomLeft               = new Gtk.Entry();
     this.entryBottomLeft.CanFocus      = true;
     this.entryBottomLeft.Name          = "entryBottomLeft";
     this.entryBottomLeft.IsEditable    = false;
     this.entryBottomLeft.InvisibleChar = '●';
     this.table4.Add(this.entryBottomLeft);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomLeft]));
     w10.TopAttach    = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryBottomRight               = new Gtk.Entry();
     this.entryBottomRight.CanFocus      = true;
     this.entryBottomRight.Name          = "entryBottomRight";
     this.entryBottomRight.IsEditable    = false;
     this.entryBottomRight.InvisibleChar = '●';
     this.table4.Add(this.entryBottomRight);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomRight]));
     w11.TopAttach    = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.LeftAttach   = ((uint)(1));
     w11.RightAttach  = ((uint)(2));
     w11.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryTopLeft               = new Gtk.Entry();
     this.entryTopLeft.CanFocus      = true;
     this.entryTopLeft.Name          = "entryTopLeft";
     this.entryTopLeft.IsEditable    = false;
     this.entryTopLeft.InvisibleChar = '●';
     this.table4.Add(this.entryTopLeft);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table4[this.entryTopLeft]));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryTopRight               = new Gtk.Entry();
     this.entryTopRight.CanFocus      = true;
     this.entryTopRight.Name          = "entryTopRight";
     this.entryTopRight.IsEditable    = false;
     this.entryTopRight.InvisibleChar = '●';
     this.table4.Add(this.entryTopRight);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table4[this.entryTopRight]));
     w13.LeftAttach  = ((uint)(1));
     w13.RightAttach = ((uint)(2));
     w13.YOptions    = ((Gtk.AttachOptions)(4));
     this.vbox3.Add(this.table4);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.table4]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3         = new Gtk.HBox();
     this.hbox3.Name    = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.lblTotalWeight           = new Gtk.Label();
     this.lblTotalWeight.Name      = "lblTotalWeight";
     this.lblTotalWeight.LabelProp = Mono.Unix.Catalog.GetString("Total Weight");
     this.hbox3.Add(this.lblTotalWeight);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblTotalWeight]));
     w15.Position = 0;
     w15.Expand   = false;
     w15.Fill     = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryTotalWeight               = new Gtk.Entry();
     this.entryTotalWeight.CanFocus      = true;
     this.entryTotalWeight.Name          = "entryTotalWeight";
     this.entryTotalWeight.IsEditable    = false;
     this.entryTotalWeight.InvisibleChar = '●';
     this.hbox3.Add(this.entryTotalWeight);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryTotalWeight]));
     w16.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryAverageWeight               = new Gtk.Entry();
     this.entryAverageWeight.CanFocus      = true;
     this.entryAverageWeight.Name          = "entryAverageWeight";
     this.entryAverageWeight.IsEditable    = false;
     this.entryAverageWeight.InvisibleChar = '●';
     this.hbox3.Add(this.entryAverageWeight);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryAverageWeight]));
     w17.PackType = ((Gtk.PackType)(1));
     w17.Position = 2;
     // Container child hbox3.Gtk.Box+BoxChild
     this.labelAverageWeight           = new Gtk.Label();
     this.labelAverageWeight.Name      = "labelAverageWeight";
     this.labelAverageWeight.LabelProp = Mono.Unix.Catalog.GetString("Average");
     this.hbox3.Add(this.labelAverageWeight);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.labelAverageWeight]));
     w18.PackType = ((Gtk.PackType)(1));
     w18.Position = 3;
     w18.Expand   = false;
     w18.Fill     = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w19.Position = 1;
     w19.Expand   = false;
     w19.Fill     = false;
     this.GtkAlignment.Add(this.vbox3);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Weight Sensors</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel2;
     this.vbox1.Add(this.frame1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1]));
     w22.Position = 3;
     w22.Expand   = false;
     w22.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame2            = new Gtk.Frame();
     this.frame2.Name       = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment1             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name        = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.drawingareaBalance      = new Gtk.DrawingArea();
     this.drawingareaBalance.Name = "drawingareaBalance";
     this.GtkAlignment1.Add(this.drawingareaBalance);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel3           = new Gtk.Label();
     this.GtkLabel3.Name      = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Balance</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel3;
     this.vbox1.Add(this.frame2);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2]));
     w25.Position = 4;
     // 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.btnUpdateBattery              = new Gtk.Button();
     this.btnUpdateBattery.CanFocus     = true;
     this.btnUpdateBattery.Name         = "btnUpdateBattery";
     this.btnUpdateBattery.UseUnderline = true;
     this.btnUpdateBattery.Label        = Mono.Unix.Catalog.GetString("Update Battery");
     this.hbox1.Add(this.btnUpdateBattery);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnUpdateBattery]));
     w26.Position = 0;
     w26.Expand   = false;
     w26.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.progressbar1      = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.hbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox1[this.progressbar1]));
     w27.Position = 1;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w28.Position = 5;
     w28.Expand   = false;
     w28.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     w1.SetUiManager(w2);
     this.Show();
     this.DisconnectAction.Activated     += new System.EventHandler(this.OnDisconnectActionActivated);
     this.checkboxLed.Pressed            += new System.EventHandler(this.OnCheckboxLedPressed);
     this.drawingareaBalance.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingareaBalanceExposeEvent);
     this.btnUpdateBattery.Pressed       += new System.EventHandler(this.OnBtnUpdateBatteryPressed);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Tomboy.TomboyConfiguration
     Stetic.BinContainer.Attach(this);
     this.Name = "Tomboy.TomboyConfiguration";
     // Container child Tomboy.TomboyConfiguration.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     this.frame1.BorderWidth = ((uint)(1));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.deriveTitleCheckButton = new Gtk.CheckButton();
     this.deriveTitleCheckButton.CanFocus = true;
     this.deriveTitleCheckButton.Name = "deriveTitleCheckButton";
     this.deriveTitleCheckButton.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Use note content as note title when no title is specified.");
     this.deriveTitleCheckButton.DrawIndicator = true;
     this.deriveTitleCheckButton.UseUnderline = true;
     this.vbox2.Add(this.deriveTitleCheckButton);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.deriveTitleCheckButton]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     this.GtkAlignment.Add(this.vbox2);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>Default New Note Title</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel3;
     this.vbox1.Add(this.frame1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     w4.Padding = ((uint)(5));
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame2 = new Gtk.Frame();
     this.frame2.Name = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     this.frame2.BorderWidth = ((uint)(1));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.contentFirstRadioButton = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("First pane is content, second pane is title."));
     this.contentFirstRadioButton.CanFocus = true;
     this.contentFirstRadioButton.Name = "contentFirstRadioButton";
     this.contentFirstRadioButton.Active = true;
     this.contentFirstRadioButton.DrawIndicator = true;
     this.contentFirstRadioButton.UseUnderline = true;
     this.contentFirstRadioButton.Group = new GLib.SList(System.IntPtr.Zero);
     this.vbox3.Add(this.contentFirstRadioButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.contentFirstRadioButton]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.titleFirstRadioButton = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("First pane is title, second pane is content."));
     this.titleFirstRadioButton.CanFocus = true;
     this.titleFirstRadioButton.Name = "titleFirstRadioButton";
     this.titleFirstRadioButton.DrawIndicator = true;
     this.titleFirstRadioButton.UseUnderline = true;
     this.titleFirstRadioButton.Group = this.contentFirstRadioButton.Group;
     this.vbox3.Add(this.titleFirstRadioButton);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.titleFirstRadioButton]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     this.GtkAlignment1.Add(this.vbox3);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>New Note Title and Content Entry</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel2;
     this.vbox1.Add(this.frame2);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = Mono.Unix.Catalog.GetString("(ymt5gui) mt5 to objf");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(3));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox2         = new Gtk.VBox();
     this.vbox2.Name    = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame1      = new Gtk.Frame();
     this.frame1.Name = "frame1";
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name        = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox4         = new Gtk.VBox();
     this.vbox4.Name    = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.checkbutton2               = new Gtk.CheckButton();
     this.checkbutton2.CanFocus      = true;
     this.checkbutton2.Name          = "checkbutton2";
     this.checkbutton2.Label         = Mono.Unix.Catalog.GetString("extract all mt5 from directory");
     this.checkbutton2.DrawIndicator = true;
     this.checkbutton2.UseUnderline  = true;
     this.vbox4.Add(this.checkbutton2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton2]));
     w1.Position = 0;
     w1.Expand   = false;
     w1.Fill     = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.filechooserbutton1      = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Sélectionner un fichier"), ((Gtk.FileChooserAction)(0)));
     this.filechooserbutton1.Name = "filechooserbutton1";
     this.vbox4.Add(this.filechooserbutton1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox4[this.filechooserbutton1]));
     w2.Position = 1;
     w2.Expand   = false;
     w2.Fill     = false;
     this.GtkAlignment.Add(this.vbox4);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel2           = new Gtk.Label();
     this.GtkLabel2.Name      = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>M</b>T5 path");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget  = this.GtkLabel2;
     this.vbox2.Add(this.frame1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1]));
     w5.Position = 0;
     w5.Expand   = false;
     w5.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame2      = new Gtk.Frame();
     this.frame2.Name = "frame2";
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment1             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name        = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.vbox3         = new Gtk.VBox();
     this.vbox3.Name    = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.frame4            = new Gtk.Frame();
     this.frame4.Name       = "frame4";
     this.frame4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame4.Gtk.Container+ContainerChild
     this.GtkAlignment3             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name        = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.filechooserbutton2      = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Sélectionner un fichier"), ((Gtk.FileChooserAction)(2)));
     this.filechooserbutton2.Name = "filechooserbutton2";
     this.GtkAlignment3.Add(this.filechooserbutton2);
     this.frame4.Add(this.GtkAlignment3);
     this.GtkLabel6           = new Gtk.Label();
     this.GtkLabel6.Name      = "GtkLabel6";
     this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("Output path to objf");
     this.GtkLabel6.UseMarkup = true;
     this.frame4.LabelWidget  = this.GtkLabel6;
     this.vbox3.Add(this.frame4);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame4]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.checkbutton1               = new Gtk.CheckButton();
     this.checkbutton1.CanFocus      = true;
     this.checkbutton1.Name          = "checkbutton1";
     this.checkbutton1.Label         = Mono.Unix.Catalog.GetString("do not use triangle strip (obj compatible)");
     this.checkbutton1.Active        = true;
     this.checkbutton1.DrawIndicator = true;
     this.checkbutton1.UseUnderline  = true;
     this.vbox3.Add(this.checkbutton1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.checkbutton1]));
     w9.Position = 1;
     w9.Expand   = false;
     w9.Fill     = false;
     this.GtkAlignment1.Add(this.vbox3);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel5           = new Gtk.Label();
     this.GtkLabel5.Name      = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>O</b>bjf pathes");
     this.GtkLabel5.UseMarkup = true;
     this.frame2.LabelWidget  = this.GtkLabel5;
     this.vbox2.Add(this.frame2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame2]));
     w12.Position = 1;
     w12.Expand   = false;
     w12.Fill     = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame3      = new Gtk.Frame();
     this.frame3.Name = "frame3";
     // Container child frame3.Gtk.Container+ContainerChild
     this.GtkAlignment2             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name        = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button2              = new Gtk.Button();
     this.button2.CanFocus     = true;
     this.button2.Name         = "button2";
     this.button2.UseUnderline = true;
     this.button2.Label        = Mono.Unix.Catalog.GetString("Generate");
     this.hbox1.Add(this.button2);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.button2]));
     w13.Position = 0;
     w13.Expand   = false;
     w13.Fill     = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox1         = new Gtk.VBox();
     this.vbox1.Name    = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.progressbar1      = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.vbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1]));
     w14.Position = 0;
     w14.Expand   = false;
     w14.Fill     = false;
     this.hbox1.Add(this.vbox1);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
     w15.Position = 1;
     this.GtkAlignment2.Add(this.hbox1);
     this.frame3.Add(this.GtkAlignment2);
     this.GtkLabel10           = new Gtk.Label();
     this.GtkLabel10.Name      = "GtkLabel10";
     this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>M</b>t52objf");
     this.GtkLabel10.UseMarkup = true;
     this.frame3.LabelWidget   = this.GtkLabel10;
     this.vbox2.Add(this.frame3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame3]));
     w18.Position = 2;
     w18.Expand   = false;
     w18.Fill     = false;
     this.Add(this.vbox2);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 764;
     this.DefaultHeight = 218;
     this.Show();
     this.DeleteEvent          += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.checkbutton2.Toggled += new System.EventHandler(this.onMt5DirectoryToggle);
     this.button2.Clicked      += new System.EventHandler(this.OnButton2Clicked);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monsoon.CreateTorrentDialog
     this.Name = "Monsoon.CreateTorrentDialog";
     this.Title = Mono.Unix.Catalog.GetString("Create a torrent");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Internal child Monsoon.CreateTorrentDialog.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.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.vbox5 = new Gtk.VBox();
     this.vbox5.Name = "vbox5";
     this.vbox5.Spacing = 6;
     // Container child vbox5.Gtk.Box+BoxChild
     this.selectFileHbox = new Gtk.HBox();
     this.selectFileHbox.Name = "selectFileHbox";
     this.selectFileHbox.Spacing = 6;
     // Container child selectFileHbox.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Path:");
     this.selectFileHbox.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.selectFileHbox[this.label1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     this.vbox5.Add(this.selectFileHbox);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox5[this.selectFileHbox]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(1)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.fileRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Single File"));
     this.fileRadioButton.CanFocus = true;
     this.fileRadioButton.Name = "fileRadioButton";
     this.fileRadioButton.Active = true;
     this.fileRadioButton.DrawIndicator = true;
     this.fileRadioButton.UseUnderline = true;
     this.fileRadioButton.Group = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.fileRadioButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.fileRadioButton]));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.folderRadioButton = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Folder"));
     this.folderRadioButton.CanFocus = true;
     this.folderRadioButton.Name = "folderRadioButton";
     this.folderRadioButton.DrawIndicator = true;
     this.folderRadioButton.UseUnderline = true;
     this.folderRadioButton.Group = this.fileRadioButton.Group;
     this.table1.Add(this.folderRadioButton);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.folderRadioButton]));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox5.Add(this.table1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox5[this.table1]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     this.GtkAlignment2.Add(this.vbox5);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Select source</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel2;
     this.vbox2.Add(this.frame1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1]));
     w9.Position = 0;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame2 = new Gtk.Frame();
     this.frame2.Name = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.trackerEntry = new Gtk.Entry();
     this.trackerEntry.CanFocus = true;
     this.trackerEntry.Name = "trackerEntry";
     this.trackerEntry.IsEditable = true;
     this.trackerEntry.InvisibleChar = '●';
     this.vbox3.Add(this.trackerEntry);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.trackerEntry]));
     w10.Position = 0;
     w10.Expand = false;
     w10.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     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.trackerTreeView = new Gtk.TreeView();
     this.trackerTreeView.CanFocus = true;
     this.trackerTreeView.Name = "trackerTreeView";
     this.scrolledwindow1.Add(this.trackerTreeView);
     this.vbox3.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow1]));
     w12.Position = 1;
     this.hbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
     w13.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbox4 = new Gtk.VBox();
     this.vbox4.Name = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.addTrackerButton = new Gtk.Button();
     this.addTrackerButton.Sensitive = false;
     this.addTrackerButton.CanFocus = true;
     this.addTrackerButton.Name = "addTrackerButton";
     this.addTrackerButton.UseUnderline = true;
     // Container child addTrackerButton.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-add", Gtk.IconSize.Menu, 16);
     w15.Add(w16);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w18 = new Gtk.Label();
     w18.LabelProp = Mono.Unix.Catalog.GetString("Add");
     w18.UseUnderline = true;
     w15.Add(w18);
     w14.Add(w15);
     this.addTrackerButton.Add(w14);
     this.vbox4.Add(this.addTrackerButton);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox4[this.addTrackerButton]));
     w22.Position = 0;
     w22.Expand = false;
     w22.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.removeTrackerButton = new Gtk.Button();
     this.removeTrackerButton.Sensitive = false;
     this.removeTrackerButton.CanFocus = true;
     this.removeTrackerButton.Name = "removeTrackerButton";
     this.removeTrackerButton.UseUnderline = true;
     // Container child removeTrackerButton.Gtk.Container+ContainerChild
     Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     Gtk.HBox w24 = new Gtk.HBox();
     w24.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w25 = new Gtk.Image();
     w25.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
     w24.Add(w25);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w27 = new Gtk.Label();
     w27.LabelProp = Mono.Unix.Catalog.GetString("Remove");
     w27.UseUnderline = true;
     w24.Add(w27);
     w23.Add(w24);
     this.removeTrackerButton.Add(w23);
     this.vbox4.Add(this.removeTrackerButton);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeTrackerButton]));
     w31.Position = 1;
     w31.Expand = false;
     w31.Fill = false;
     this.hbox2.Add(this.vbox4);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox4]));
     w32.Position = 1;
     w32.Expand = false;
     w32.Fill = false;
     this.GtkAlignment3.Add(this.hbox2);
     this.frame2.Add(this.GtkAlignment3);
     this.GtkLabel5 = new Gtk.Label();
     this.GtkLabel5.Name = "GtkLabel5";
     this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>Set a tracker</b>");
     this.GtkLabel5.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel5;
     this.vbox2.Add(this.frame2);
     Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame2]));
     w35.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame3 = new Gtk.Frame();
     this.frame3.Name = "frame3";
     this.frame3.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame3.Gtk.Container+ContainerChild
     this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.Gtk.Container+ContainerChild
     this.vbox6 = new Gtk.VBox();
     this.vbox6.Name = "vbox6";
     this.vbox6.Spacing = 6;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Comment:");
     this.hbox4.Add(this.label3);
     Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3]));
     w36.Position = 0;
     w36.Expand = false;
     w36.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.commentEntry = new Gtk.Entry();
     this.commentEntry.CanFocus = true;
     this.commentEntry.Name = "commentEntry";
     this.commentEntry.IsEditable = true;
     this.commentEntry.InvisibleChar = '●';
     this.hbox4.Add(this.commentEntry);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox4[this.commentEntry]));
     w37.Position = 1;
     this.vbox6.Add(this.hbox4);
     Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox4]));
     w38.Position = 0;
     w38.Expand = false;
     w38.Fill = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox5 = new Gtk.HBox();
     this.hbox5.Name = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.startSeedingCheckBox = new Gtk.CheckButton();
     this.startSeedingCheckBox.CanFocus = true;
     this.startSeedingCheckBox.Name = "startSeedingCheckBox";
     this.startSeedingCheckBox.Label = Mono.Unix.Catalog.GetString("Start seeding");
     this.startSeedingCheckBox.Active = true;
     this.startSeedingCheckBox.DrawIndicator = true;
     this.startSeedingCheckBox.UseUnderline = true;
     this.hbox5.Add(this.startSeedingCheckBox);
     Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox5[this.startSeedingCheckBox]));
     w39.Position = 0;
     this.vbox6.Add(this.hbox5);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox5]));
     w40.Position = 1;
     w40.Expand = false;
     w40.Fill = false;
     // Container child vbox6.Gtk.Box+BoxChild
     this.hbox6 = new Gtk.HBox();
     this.hbox6.Name = "hbox6";
     this.hbox6.Spacing = 6;
     // Container child hbox6.Gtk.Box+BoxChild
     this.hiddenFilesCheckBox = new Gtk.CheckButton();
     this.hiddenFilesCheckBox.CanFocus = true;
     this.hiddenFilesCheckBox.Name = "hiddenFilesCheckBox";
     this.hiddenFilesCheckBox.Label = Mono.Unix.Catalog.GetString("Ignore hidden files");
     this.hiddenFilesCheckBox.Active = true;
     this.hiddenFilesCheckBox.DrawIndicator = true;
     this.hiddenFilesCheckBox.UseUnderline = true;
     this.hbox6.Add(this.hiddenFilesCheckBox);
     Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.hbox6[this.hiddenFilesCheckBox]));
     w41.Position = 0;
     this.vbox6.Add(this.hbox6);
     Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox6]));
     w42.Position = 2;
     w42.Expand = false;
     w42.Fill = false;
     this.GtkAlignment4.Add(this.vbox6);
     this.frame3.Add(this.GtkAlignment4);
     this.GtkLabel8 = new Gtk.Label();
     this.GtkLabel8.Name = "GtkLabel8";
     this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>Miscellaneous</b>");
     this.GtkLabel8.UseMarkup = true;
     this.frame3.LabelWidget = this.GtkLabel8;
     this.vbox2.Add(this.frame3);
     Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame3]));
     w45.Position = 2;
     w45.Expand = false;
     w45.Fill = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w46.Position = 0;
     // Internal child Monsoon.CreateTorrentDialog.ActionArea
     Gtk.HButtonBox w47 = this.ActionArea;
     w47.Name = "GtkDialog_ActionArea";
     w47.Spacing = 6;
     w47.BorderWidth = ((uint)(5));
     w47.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w48 = ((Gtk.ButtonBox.ButtonBoxChild)(w47[this.buttonCancel]));
     w48.Expand = false;
     w48.Fill = false;
     // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.Sensitive = false;
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w49 = ((Gtk.ButtonBox.ButtonBoxChild)(w47[this.buttonOk]));
     w49.Position = 1;
     w49.Expand = false;
     w49.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 403;
     this.DefaultHeight = 438;
     this.Show();
     this.folderRadioButton.Toggled += new System.EventHandler(this.OnFolderRadioButtonToggled);
     this.fileRadioButton.Toggled += new System.EventHandler(this.OnFileRadioButtonToggled);
     this.trackerEntry.Changed += new System.EventHandler(this.OnTrackerEntryChanged);
     this.addTrackerButton.Clicked += new System.EventHandler(this.OnAddTrackerButtonClicked);
     this.removeTrackerButton.Clicked += new System.EventHandler(this.OnRemoveTrackerButtonClicked);
     this.buttonOk.Clicked += new System.EventHandler(this.OnCreateButtonClicked);
 }
예제 #41
0
        public override void HandleBuildToolBar(Gtk.Toolbar tb)
        {
            base.HandleBuildToolBar(tb);


            #region Show Arrows

            //Arrow separator.

            if (arrowSep == null)
            {
                arrowSep = new Gtk.SeparatorToolItem();

                showOtherArrowOptions = false;
            }

            tb.AppendItem(arrowSep);


            if (arrowLabel == null)
            {
                arrowLabel = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Arrow")));
            }

            tb.AppendItem(arrowLabel);


            //Show arrow 1.

            showArrowOneBox        = new Gtk.CheckButton("1");
            showArrowOneBox.Active = previousSettings1.Show;

            showArrowOneBox.Toggled += (o, e) =>
            {
                //Determine whether to change the visibility of Arrow options in the toolbar based on the updated Arrow showing/hiding.
                if (!showArrowOneBox.Active && !showArrowTwoBox.Active)
                {
                    if (showOtherArrowOptions)
                    {
                        tb.Remove(arrowSizeLabel);
                        tb.Remove(arrowSizeMinus);
                        tb.Remove(arrowSize);
                        tb.Remove(arrowSizePlus);
                        tb.Remove(arrowAngleOffsetLabel);
                        tb.Remove(arrowAngleOffsetMinus);
                        tb.Remove(arrowAngleOffset);
                        tb.Remove(arrowAngleOffsetPlus);
                        tb.Remove(arrowLengthOffsetLabel);
                        tb.Remove(arrowLengthOffsetMinus);
                        tb.Remove(arrowLengthOffset);
                        tb.Remove(arrowLengthOffsetPlus);

                        showOtherArrowOptions = false;
                    }
                }
                else
                {
                    if (!showOtherArrowOptions)
                    {
                        tb.Add(arrowSizeLabel);
                        tb.Add(arrowSizeMinus);
                        tb.Add(arrowSize);
                        tb.Add(arrowSizePlus);
                        tb.Add(arrowAngleOffsetLabel);
                        tb.Add(arrowAngleOffsetMinus);
                        tb.Add(arrowAngleOffset);
                        tb.Add(arrowAngleOffsetPlus);
                        tb.Add(arrowLengthOffsetLabel);
                        tb.Add(arrowLengthOffsetMinus);
                        tb.Add(arrowLengthOffset);
                        tb.Add(arrowLengthOffsetPlus);

                        showOtherArrowOptions = true;
                    }
                }

                LineCurveSeriesEngine activeEngine = (LineCurveSeriesEngine)ActiveShapeEngine;

                if (activeEngine != null)
                {
                    activeEngine.Arrow1.Show = showArrowOneBox.Active;

                    DrawActiveShape(false, false, true, false, false);

                    storePreviousSettings();
                }
            };

            tb.AddWidgetItem(showArrowOneBox);


            //Show arrow 2.

            showArrowTwoBox        = new Gtk.CheckButton("2");
            showArrowTwoBox.Active = previousSettings2.Show;

            showArrowTwoBox.Toggled += (o, e) =>
            {
                //Determine whether to change the visibility of Arrow options in the toolbar based on the updated Arrow showing/hiding.
                if (!showArrowOneBox.Active && !showArrowTwoBox.Active)
                {
                    if (showOtherArrowOptions)
                    {
                        tb.Remove(arrowSizeLabel);
                        tb.Remove(arrowSizeMinus);
                        tb.Remove(arrowSize);
                        tb.Remove(arrowSizePlus);
                        tb.Remove(arrowAngleOffsetLabel);
                        tb.Remove(arrowAngleOffsetMinus);
                        tb.Remove(arrowAngleOffset);
                        tb.Remove(arrowAngleOffsetPlus);
                        tb.Remove(arrowLengthOffsetLabel);
                        tb.Remove(arrowLengthOffsetMinus);
                        tb.Remove(arrowLengthOffset);
                        tb.Remove(arrowLengthOffsetPlus);

                        showOtherArrowOptions = false;
                    }
                }
                else
                {
                    if (!showOtherArrowOptions)
                    {
                        tb.Add(arrowSizeLabel);
                        tb.Add(arrowSizeMinus);
                        tb.Add(arrowSize);
                        tb.Add(arrowSizePlus);
                        tb.Add(arrowAngleOffsetLabel);
                        tb.Add(arrowAngleOffsetMinus);
                        tb.Add(arrowAngleOffset);
                        tb.Add(arrowAngleOffsetPlus);
                        tb.Add(arrowLengthOffsetLabel);
                        tb.Add(arrowLengthOffsetMinus);
                        tb.Add(arrowLengthOffset);
                        tb.Add(arrowLengthOffsetPlus);

                        showOtherArrowOptions = true;
                    }
                }

                LineCurveSeriesEngine activeEngine = (LineCurveSeriesEngine)ActiveShapeEngine;

                if (activeEngine != null)
                {
                    activeEngine.Arrow2.Show = showArrowTwoBox.Active;

                    DrawActiveShape(false, false, true, false, false);

                    storePreviousSettings();
                }
            };

            tb.AddWidgetItem(showArrowTwoBox);

            #endregion Show Arrows


            #region Arrow Size

            if (arrowSizeLabel == null)
            {
                arrowSizeLabel = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Size")));
            }

            if (arrowSizeMinus == null)
            {
                arrowSizeMinus          = new ToolBarButton("Toolbar.MinusButton.png", "", Catalog.GetString("Decrease arrow size"));
                arrowSizeMinus.Clicked += new EventHandler(arrowSizeMinus_Clicked);
            }

            if (arrowSize == null)
            {
                arrowSize = new ToolBarComboBox(65, 7, true,
                                                "3", "4", "5", "6", "7", "8", "9", "10", "12", "15", "18",
                                                "20", "25", "30", "40", "50", "60", "70", "80", "90", "100");

                arrowSize.ComboBox.Changed += (o, e) =>
                {
                    if (arrowSize.ComboBox.ActiveText.Length < 1)
                    {
                        //Ignore the change until the user enters something.
                        return;
                    }
                    else
                    {
                        double newSize = 10d;

                        if (arrowSize.ComboBox.ActiveText == "-")
                        {
                            //The user is trying to enter a negative value: change it to 1.
                            newSize = 1d;
                        }
                        else
                        {
                            if (Double.TryParse(arrowSize.ComboBox.ActiveText, out newSize))
                            {
                                if (newSize < 1d)
                                {
                                    //Less than 1: change it to 1.
                                    newSize = 1d;
                                }
                                else if (newSize > 100d)
                                {
                                    //Greater than 100: change it to 100.
                                    newSize = 100d;
                                }
                            }
                            else
                            {
                                //Not a number: wait until the user enters something.
                                return;
                            }
                        }

                        (arrowSize.ComboBox as Gtk.ComboBoxEntry).Entry.Text = newSize.ToString();

                        LineCurveSeriesEngine activeEngine = (LineCurveSeriesEngine)ActiveShapeEngine;

                        if (activeEngine != null)
                        {
                            activeEngine.Arrow1.ArrowSize = newSize;
                            activeEngine.Arrow2.ArrowSize = newSize;

                            DrawActiveShape(false, false, true, false, false);

                            storePreviousSettings();
                        }
                    }
                };
            }

            if (arrowSizePlus == null)
            {
                arrowSizePlus          = new ToolBarButton("Toolbar.PlusButton.png", "", Catalog.GetString("Increase arrow size"));
                arrowSizePlus.Clicked += new EventHandler(arrowSizePlus_Clicked);
            }

            #endregion Arrow Size


            #region Angle Offset

            if (arrowAngleOffsetLabel == null)
            {
                arrowAngleOffsetLabel = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Angle")));
            }

            if (arrowAngleOffsetMinus == null)
            {
                arrowAngleOffsetMinus          = new ToolBarButton("Toolbar.MinusButton.png", "", Catalog.GetString("Decrease angle offset"));
                arrowAngleOffsetMinus.Clicked += new EventHandler(arrowAngleOffsetMinus_Clicked);
            }

            if (arrowAngleOffset == null)
            {
                arrowAngleOffset = new ToolBarComboBox(65, 9, true,
                                                       "-30", "-25", "-20", "-15", "-10", "-5", "0", "5", "10", "15", "20", "25", "30");

                arrowAngleOffset.ComboBox.Changed += (o, e) =>
                {
                    if (arrowAngleOffset.ComboBox.ActiveText.Length < 1)
                    {
                        //Ignore the change until the user enters something.
                        return;
                    }
                    else if (arrowAngleOffset.ComboBox.ActiveText == "-")
                    {
                        //The user is trying to enter a negative value: ignore the change until the user enters more.
                        return;
                    }
                    else
                    {
                        double newAngle = 15d;

                        if (Double.TryParse(arrowAngleOffset.ComboBox.ActiveText, out newAngle))
                        {
                            if (newAngle < -89d)
                            {
                                //Less than -89: change it to -89.
                                newAngle = -89d;
                            }
                            else if (newAngle > 89d)
                            {
                                //Greater than 89: change it to 89.
                                newAngle = 89d;
                            }
                        }
                        else
                        {
                            //Not a number: wait until the user enters something.
                            return;
                        }

                        (arrowAngleOffset.ComboBox as Gtk.ComboBoxEntry).Entry.Text = newAngle.ToString();

                        LineCurveSeriesEngine activeEngine = (LineCurveSeriesEngine)ActiveShapeEngine;

                        if (activeEngine != null)
                        {
                            activeEngine.Arrow1.AngleOffset = newAngle;
                            activeEngine.Arrow2.AngleOffset = newAngle;

                            DrawActiveShape(false, false, true, false, false);

                            storePreviousSettings();
                        }
                    }
                };
            }

            if (arrowAngleOffsetPlus == null)
            {
                arrowAngleOffsetPlus          = new ToolBarButton("Toolbar.PlusButton.png", "", Catalog.GetString("Increase angle offset"));
                arrowAngleOffsetPlus.Clicked += new EventHandler(arrowAngleOffsetPlus_Clicked);
            }

            #endregion Angle Offset


            #region Length Offset

            if (arrowLengthOffsetLabel == null)
            {
                arrowLengthOffsetLabel = new ToolBarLabel(string.Format(" {0}: ", Catalog.GetString("Length")));
            }

            if (arrowLengthOffsetMinus == null)
            {
                arrowLengthOffsetMinus          = new ToolBarButton("Toolbar.MinusButton.png", "", Catalog.GetString("Decrease length offset"));
                arrowLengthOffsetMinus.Clicked += new EventHandler(arrowLengthOffsetMinus_Clicked);
            }

            if (arrowLengthOffset == null)
            {
                arrowLengthOffset = new ToolBarComboBox(65, 8, true,
                                                        "-30", "-25", "-20", "-15", "-10", "-5", "0", "5", "10", "15", "20", "25", "30");

                arrowLengthOffset.ComboBox.Changed += (o, e) =>
                {
                    if (arrowLengthOffset.ComboBox.ActiveText.Length < 1)
                    {
                        //Ignore the change until the user enters something.
                        return;
                    }
                    else if (arrowLengthOffset.ComboBox.ActiveText == "-")
                    {
                        //The user is trying to enter a negative value: ignore the change until the user enters more.
                        return;
                    }
                    else
                    {
                        double newLength = 10d;

                        if (Double.TryParse(arrowLengthOffset.ComboBox.ActiveText, out newLength))
                        {
                            if (newLength < -100d)
                            {
                                //Less than -100: change it to -100.
                                newLength = -100d;
                            }
                            else if (newLength > 100d)
                            {
                                //Greater than 100: change it to 100.
                                newLength = 100d;
                            }
                        }
                        else
                        {
                            //Not a number: wait until the user enters something.
                            return;
                        }

                        (arrowLengthOffset.ComboBox as Gtk.ComboBoxEntry).Entry.Text = newLength.ToString();

                        LineCurveSeriesEngine activeEngine = (LineCurveSeriesEngine)ActiveShapeEngine;

                        if (activeEngine != null)
                        {
                            activeEngine.Arrow1.LengthOffset = newLength;
                            activeEngine.Arrow2.LengthOffset = newLength;

                            DrawActiveShape(false, false, true, false, false);

                            storePreviousSettings();
                        }
                    }
                };
            }

            if (arrowLengthOffsetPlus == null)
            {
                arrowLengthOffsetPlus          = new ToolBarButton("Toolbar.PlusButton.png", "", Catalog.GetString("Increase length offset"));
                arrowLengthOffsetPlus.Clicked += new EventHandler(arrowLengthOffsetPlus_Clicked);
            }

            #endregion Length Offset


            if (showOtherArrowOptions)
            {
                tb.Add(arrowSizeLabel);
                tb.Add(arrowSizeMinus);
                tb.Add(arrowSize);
                tb.Add(arrowSizePlus);
                tb.Add(arrowAngleOffsetLabel);
                tb.Add(arrowAngleOffsetMinus);
                tb.Add(arrowAngleOffset);
                tb.Add(arrowAngleOffsetPlus);
                tb.Add(arrowLengthOffsetLabel);
                tb.Add(arrowLengthOffsetMinus);
                tb.Add(arrowLengthOffset);
                tb.Add(arrowLengthOffsetPlus);
            }
        }
예제 #42
0
        public ValueReferenceEditor(Project p, ValueReferenceGroup vrg, int rows, string frameText=null)
            : base(1.0F,1.0F,1.0F,1.0F)
        {
            Project = p;

            valueReferenceGroup = vrg;
            maxBounds = new int[valueReferenceGroup.GetNumValueReferences()];
            widgetPositions = new Tuple<uint,uint>[maxBounds.Count];
            widgets = new Gtk.Widget[maxBounds.Count];

            table = new Gtk.Table(2, 2, false);
            uint x=0,y=0;

            int cnt=0;
            foreach (ValueReference r in valueReferenceGroup.GetValueReferences()) {
                int index = cnt;
                cnt++;

                if (y >= rows) {
                    y = 0;
                    x += 3;
                }

                widgetPositions[index] = new Tuple<uint,uint>(x,y);

                if (r.ConstantsMapping != null) {
                    ComboBoxFromConstants comboBox = new ComboBoxFromConstants();
                    comboBox.SetConstantsMapping(r.ConstantsMapping);

                    comboBox.Changed += delegate(object sender, EventArgs e) {
                        r.SetValue(comboBox.ActiveValue);
                    };

                    dataModifiedExternalEvent += delegate() {
                        comboBox.ActiveValue = r.GetIntValue();
                    };

                    table.Attach(new Gtk.Label(r.Name), x+0,x+1,y,y+1);
                    table.Attach(comboBox, x+1,x+2,y,y+1);
                    widgets[index] = comboBox;

                    goto loopEnd;
                }
                // ConstantsMapping == null

                switch(r.ValueType) {
                    case DataValueType.String:
                    default:
                        {
                            table.Attach(new Gtk.Label(r.Name), x+0,x+1, y, y+1);
                            Gtk.Entry entry = new Gtk.Entry();
                            if (!r.Editable)
                                entry.Sensitive = false;
                            dataModifiedExternalEvent += delegate() {
                                entry.Text = r.GetStringValue();
                                OnDataModifiedInternal();
                            };
                            table.Attach(entry, x+1,x+2, y, y+1);
                            widgets[index] = entry;
                            break;
                        }
                    case DataValueType.Byte:
                    case DataValueType.HalfByte:
            byteCase:
                        {
                            table.Attach(new Gtk.Label(r.Name), x+0,x+1, y, y+1);
                            SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0,255);
                            if (!r.Editable)
                                spinButton.Sensitive = false;
                            if (r.ValueType == DataValueType.HalfByte) {
                                spinButton.Digits = 1;
                                spinButton.Adjustment.Upper = 15;
                            }
                            else
                                spinButton.Digits = 2;
                            spinButton.ValueChanged += delegate(object sender, EventArgs e) {
                                Gtk.SpinButton button = sender as Gtk.SpinButton;
                                if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index]) {
                                    r.SetValue(button.ValueAsInt);
                                }
                                else
                                    button.Value = maxBounds[index];
                                OnDataModifiedInternal();
                            };
                            dataModifiedExternalEvent += delegate() {
                                spinButton.Value = r.GetIntValue();
                            };
                            table.Attach(spinButton, x+1,x+2, y, y+1);
                            widgets[index] = spinButton;
                        }
                        break;

                    case DataValueType.WarpDestIndex:
                        {
                            Gtk.Button newDestButton = new Gtk.Button("New\nDestination");
                            newDestButton.Clicked += delegate(object sender, EventArgs e) {
                                WarpSourceData warpData = (WarpSourceData)r.Data;
                                WarpDestGroup destGroup = warpData.GetReferencedDestGroup();
                                // Check if there's unused destination data
                                // already
                                for (int i=0; i<destGroup.GetNumWarpDests(); i++) {
                                    WarpDestData destData = destGroup.GetWarpDest(i);
                                    if (destData.GetNumReferences() == 0) {
                                        Gtk.MessageDialog d = new Gtk.MessageDialog(null,
                                                Gtk.DialogFlags.DestroyWithParent,
                                                Gtk.MessageType.Warning,
                                                Gtk.ButtonsType.YesNo,
                                                "Destination index " + i.ToString("X2") + " is not used by any sources. Use this index?\n\n(\"No\" will create a new destination instead.)");
                                        Gtk.ResponseType response = (Gtk.ResponseType)d.Run();
                                        d.Destroy();

                                        if (response == Gtk.ResponseType.Yes)
                                            warpData.SetDestData(destGroup.GetWarpDest(i));
                                        else if (response == Gtk.ResponseType.No)
                                            warpData.SetDestData(destGroup.AddDestData());
                                        break;
                                    }
                                }
                            };
                            table.Attach(newDestButton, x+2,x+3, y, y+2);
                        }
                        goto byteCase;

                    case DataValueType.Word:
                        {
                            table.Attach(new Gtk.Label(r.Name), x+0,x+1, y, y+1);
                            SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0,0xffff);
                            if (!r.Editable)
                                spinButton.Sensitive = false;
                            spinButton.Digits = 4;
                            spinButton.ValueChanged += delegate(object sender, EventArgs e) {
                                Gtk.SpinButton button = sender as Gtk.SpinButton;
                                if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index]) {
                                    r.SetValue(button.ValueAsInt);
                                }
                                else
                                    button.Value = maxBounds[index];
                                OnDataModifiedInternal();
                            };
                            dataModifiedExternalEvent += delegate() {
                                spinButton.Value = r.GetIntValue();
                            };
                            table.Attach(spinButton, x+1,x+2, y, y+1);
                            widgets[index] = spinButton;
                        }
                        break;
                    case DataValueType.ByteBit:
                        {
                            table.Attach(new Gtk.Label(r.Name), x+0,x+1, y, y+1);
                            Gtk.CheckButton checkButton = new Gtk.CheckButton();
                            checkButton.CanFocus = false;
                            if (!r.Editable)
                                checkButton.Sensitive = false;
                            checkButton.Toggled += delegate(object sender, EventArgs e) {
                                Gtk.CheckButton button = sender as Gtk.CheckButton;
                                r.SetValue(button.Active ? 1 : 0);
                                OnDataModifiedInternal();
                            };
                            dataModifiedExternalEvent += delegate() {
                                checkButton.Active = r.GetIntValue() == 1;
                            };
                            table.Attach(checkButton, x+1,x+2, y, y+1);
                            widgets[index] = checkButton;
                        }
                        break;
                    case DataValueType.ByteBits:
                        {
                            table.Attach(new Gtk.Label(r.Name), x+0,x+1, y, y+1);
                            SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0,r.MaxValue);
                            if (!r.Editable)
                                spinButton.Sensitive = false;
                            spinButton.Digits = (uint)((r.MaxValue+0xf)/0x10);
                            spinButton.ValueChanged += delegate(object sender, EventArgs e) {
                                Gtk.SpinButton button = sender as Gtk.SpinButton;
                                if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index]) {
                                    r.SetValue(button.ValueAsInt);
                                }
                                else
                                    button.Value = maxBounds[index];
                                OnDataModifiedInternal();
                            };
                            dataModifiedExternalEvent += delegate() {
                                spinButton.Value = r.GetIntValue();
                            };
                            table.Attach(spinButton, x+1,x+2, y, y+1);
                            widgets[index] = spinButton;
                        }
                        break;
                    case DataValueType.ObjectPointer:
                        {
                            table.Attach(new Gtk.Label(r.Name), x+0,x+1, y, y+1);

                            Gtk.Entry entry = new Gtk.Entry();
                            if (!r.Editable)
                                entry.Sensitive = false;
                            entry.Changed += delegate(object sender, EventArgs e) {
                                UpdatePointerTextBox(sender as Gtk.Entry, r);
                                OnDataModifiedInternal();
                            };
                            table.Attach(entry, x+1,x+2, y, y+1);
                            widgets[index] = entry;

                            pointerFrame = new Gtk.Frame();
                            pointerFrame.Label = "Pointer data (possibly shared)";
                            pointerFrame.BorderWidth = 5;

                            y++;
                            table.Attach(pointerFrame, x+0,x+2, y, y+1);

                            dataModifiedExternalEvent += delegate() {
                                entry.Text = r.GetStringValue();
                                UpdatePointerTextBox(entry, r);
                            };
                        }
                        break;
                }

            loopEnd:
                y++;
            }

            table.ColumnSpacing = 6;

            if (frameText != null) {
                var frame = new Gtk.Frame(frameText);
                frame.Add(table);
                this.Add(frame);
            }
            else
                this.Add(table);

            this.ShowAll();

            Data lastData = null;
            foreach (ValueReference r in valueReferenceGroup.GetValueReferences()) {
                if (lastData != r.Data) {
                    lastData = r.Data;
                    r.Data.AddDataModifiedHandler(OnDataModifiedExternal);
                    // Destroy handler
                    this.Destroyed += delegate(object sender, EventArgs e) {
                        r.Data.RemoveDataModifiedHandler(OnDataModifiedExternal);
                    };
                }
            }

            // Initial values
            if (dataModifiedExternalEvent != null)
                dataModifiedExternalEvent();
        }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog
     this.Name = "MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog";
     this.TypeHint = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     this.SkipTaskbarHint = true;
     this.HasSeparator = false;
     // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.tableGeneral = new Gtk.Table(((uint)(7)), ((uint)(2)), false);
     this.tableGeneral.Name = "tableGeneral";
     this.tableGeneral.RowSpacing = ((uint)(6));
     this.tableGeneral.ColumnSpacing = ((uint)(6));
     this.tableGeneral.BorderWidth = ((uint)(6));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.comboProvider = new Gtk.ComboBox();
     this.comboProvider.Name = "comboProvider";
     this.tableGeneral.Add(this.comboProvider);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.tableGeneral[this.comboProvider]));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(4));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryName = new Gtk.Entry();
     this.entryName.CanDefault = true;
     this.entryName.CanFocus = true;
     this.entryName.Name = "entryName";
     this.entryName.IsEditable = true;
     this.entryName.ActivatesDefault = true;
     this.entryName.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryName);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryName]));
     w3.TopAttach = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.LeftAttach = ((uint)(1));
     w3.RightAttach = ((uint)(2));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryServer = new Gtk.Entry();
     this.entryServer.CanFocus = true;
     this.entryServer.Name = "entryServer";
     this.entryServer.IsEditable = true;
     this.entryServer.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryServer);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryServer]));
     w4.TopAttach = ((uint)(2));
     w4.BottomAttach = ((uint)(3));
     w4.LeftAttach = ((uint)(1));
     w4.RightAttach = ((uint)(2));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.entryUsername = new Gtk.Entry();
     this.entryUsername.CanFocus = true;
     this.entryUsername.Name = "entryUsername";
     this.entryUsername.IsEditable = true;
     this.entryUsername.InvisibleChar = '●';
     this.tableGeneral.Add(this.entryUsername);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.tableGeneral[this.entryUsername]));
     w5.TopAttach = ((uint)(4));
     w5.BottomAttach = ((uint)(5));
     w5.LeftAttach = ((uint)(1));
     w5.RightAttach = ((uint)(2));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.hboxDatabase = new Gtk.HBox();
     this.hboxDatabase.Name = "hboxDatabase";
     this.hboxDatabase.Spacing = 6;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.comboDatabase = Gtk.ComboBoxEntry.NewText();
     this.comboDatabase.Name = "comboDatabase";
     this.hboxDatabase.Add(this.comboDatabase);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.comboDatabase]));
     w6.Position = 0;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.buttonRefresh = new Gtk.Button();
     this.buttonRefresh.CanFocus = true;
     this.buttonRefresh.Name = "buttonRefresh";
     this.buttonRefresh.UseStock = true;
     this.buttonRefresh.UseUnderline = true;
     this.buttonRefresh.Label = "gtk-refresh";
     this.hboxDatabase.Add(this.buttonRefresh);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonRefresh]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hboxDatabase.Gtk.Box+BoxChild
     this.buttonOpen = new Gtk.Button();
     this.buttonOpen.CanFocus = true;
     this.buttonOpen.Name = "buttonOpen";
     this.buttonOpen.UseStock = true;
     this.buttonOpen.UseUnderline = true;
     this.buttonOpen.Label = "gtk-open";
     this.hboxDatabase.Add(this.buttonOpen);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonOpen]));
     w8.Position = 2;
     w8.Expand = false;
     w8.Fill = false;
     this.tableGeneral.Add(this.hboxDatabase);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxDatabase]));
     w9.TopAttach = ((uint)(6));
     w9.BottomAttach = ((uint)(7));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.hboxPassword = new Gtk.HBox();
     this.hboxPassword.Name = "hboxPassword";
     this.hboxPassword.Spacing = 6;
     // Container child hboxPassword.Gtk.Box+BoxChild
     this.entryPassword = new Gtk.Entry();
     this.entryPassword.CanFocus = true;
     this.entryPassword.Name = "entryPassword";
     this.entryPassword.IsEditable = true;
     this.entryPassword.Visibility = false;
     this.entryPassword.InvisibleChar = '●';
     this.hboxPassword.Add(this.entryPassword);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.entryPassword]));
     w10.Position = 0;
     // Container child hboxPassword.Gtk.Box+BoxChild
     this.checkSavePassword = new Gtk.CheckButton();
     this.checkSavePassword.CanFocus = true;
     this.checkSavePassword.Name = "checkSavePassword";
     this.checkSavePassword.Label = Mono.Unix.Catalog.GetString("Save Password");
     this.checkSavePassword.Active = true;
     this.checkSavePassword.DrawIndicator = true;
     this.checkSavePassword.UseUnderline = true;
     this.hboxPassword.Add(this.checkSavePassword);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hboxPassword[this.checkSavePassword]));
     w11.Position = 1;
     w11.Expand = false;
     this.tableGeneral.Add(this.hboxPassword);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.tableGeneral[this.hboxPassword]));
     w12.TopAttach = ((uint)(5));
     w12.BottomAttach = ((uint)(6));
     w12.LeftAttach = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Type");
     this.tableGeneral.Add(this.label3);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label3]));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 0F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Name");
     this.tableGeneral.Add(this.label4);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label4]));
     w14.TopAttach = ((uint)(1));
     w14.BottomAttach = ((uint)(2));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xalign = 0F;
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Server");
     this.tableGeneral.Add(this.label5);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label5]));
     w15.TopAttach = ((uint)(2));
     w15.BottomAttach = ((uint)(3));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.Xalign = 0F;
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Port");
     this.tableGeneral.Add(this.label6);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label6]));
     w16.TopAttach = ((uint)(3));
     w16.BottomAttach = ((uint)(4));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 0F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Username");
     this.tableGeneral.Add(this.label7);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label7]));
     w17.TopAttach = ((uint)(4));
     w17.BottomAttach = ((uint)(5));
     w17.XOptions = ((Gtk.AttachOptions)(4));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.Xalign = 0F;
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password");
     this.tableGeneral.Add(this.label8);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label8]));
     w18.TopAttach = ((uint)(5));
     w18.BottomAttach = ((uint)(6));
     w18.XOptions = ((Gtk.AttachOptions)(4));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.label9 = new Gtk.Label();
     this.label9.Name = "label9";
     this.label9.Xalign = 0F;
     this.label9.LabelProp = Mono.Unix.Catalog.GetString("Database");
     this.tableGeneral.Add(this.label9);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.tableGeneral[this.label9]));
     w19.TopAttach = ((uint)(6));
     w19.BottomAttach = ((uint)(7));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableGeneral.Gtk.Table+TableChild
     this.spinPort = new Gtk.SpinButton(1, 65535, 1);
     this.spinPort.CanFocus = true;
     this.spinPort.Name = "spinPort";
     this.spinPort.Adjustment.PageIncrement = 10;
     this.spinPort.ClimbRate = 1;
     this.spinPort.Numeric = true;
     this.spinPort.Value = 1;
     this.tableGeneral.Add(this.spinPort);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.tableGeneral[this.spinPort]));
     w20.TopAttach = ((uint)(3));
     w20.BottomAttach = ((uint)(4));
     w20.LeftAttach = ((uint)(1));
     w20.RightAttach = ((uint)(2));
     w20.XOptions = ((Gtk.AttachOptions)(4));
     w20.YOptions = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.tableGeneral);
     Gtk.Notebook.NotebookChild w21 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableGeneral]));
     w21.TabExpand = false;
     // Notebook tab
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("General");
     this.notebook.SetTabLabel(this.tableGeneral, this.label1);
     this.label1.ShowAll();
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.tableAdvanced = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
     this.tableAdvanced.Name = "tableAdvanced";
     this.tableAdvanced.RowSpacing = ((uint)(6));
     this.tableAdvanced.ColumnSpacing = ((uint)(6));
     this.tableAdvanced.BorderWidth = ((uint)(6));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.checkCustom = new Gtk.CheckButton();
     this.checkCustom.CanFocus = true;
     this.checkCustom.Name = "checkCustom";
     this.checkCustom.Label = Mono.Unix.Catalog.GetString("Use custom connection string");
     this.checkCustom.DrawIndicator = true;
     this.checkCustom.UseUnderline = true;
     this.tableAdvanced.Add(this.checkCustom);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.checkCustom]));
     w22.TopAttach = ((uint)(2));
     w22.BottomAttach = ((uint)(3));
     w22.RightAttach = ((uint)(2));
     w22.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.label10 = new Gtk.Label();
     this.label10.Name = "label10";
     this.label10.Xalign = 0F;
     this.label10.LabelProp = Mono.Unix.Catalog.GetString("Min Pool Size");
     this.tableAdvanced.Add(this.label10);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label10]));
     w23.XOptions = ((Gtk.AttachOptions)(4));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.label11 = new Gtk.Label();
     this.label11.Name = "label11";
     this.label11.Xalign = 0F;
     this.label11.LabelProp = Mono.Unix.Catalog.GetString("Max Pool Size");
     this.tableAdvanced.Add(this.label11);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.label11]));
     w24.TopAttach = ((uint)(1));
     w24.BottomAttach = ((uint)(2));
     w24.XOptions = ((Gtk.AttachOptions)(4));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.scrolledwindow = new Gtk.ScrolledWindow();
     this.scrolledwindow.Sensitive = false;
     this.scrolledwindow.CanFocus = true;
     this.scrolledwindow.Name = "scrolledwindow";
     this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow.Gtk.Container+ContainerChild
     this.textConnectionString = new Gtk.TextView();
     this.textConnectionString.CanFocus = true;
     this.textConnectionString.Name = "textConnectionString";
     this.scrolledwindow.Add(this.textConnectionString);
     this.tableAdvanced.Add(this.scrolledwindow);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.scrolledwindow]));
     w26.TopAttach = ((uint)(3));
     w26.BottomAttach = ((uint)(4));
     w26.RightAttach = ((uint)(2));
     w26.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.spinMaxPoolSize = new Gtk.SpinButton(1, 100, 1);
     this.spinMaxPoolSize.CanFocus = true;
     this.spinMaxPoolSize.Name = "spinMaxPoolSize";
     this.spinMaxPoolSize.Adjustment.PageIncrement = 10;
     this.spinMaxPoolSize.ClimbRate = 1;
     this.spinMaxPoolSize.Numeric = true;
     this.spinMaxPoolSize.Value = 5;
     this.tableAdvanced.Add(this.spinMaxPoolSize);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMaxPoolSize]));
     w27.TopAttach = ((uint)(1));
     w27.BottomAttach = ((uint)(2));
     w27.LeftAttach = ((uint)(1));
     w27.RightAttach = ((uint)(2));
     w27.XOptions = ((Gtk.AttachOptions)(4));
     w27.YOptions = ((Gtk.AttachOptions)(4));
     // Container child tableAdvanced.Gtk.Table+TableChild
     this.spinMinPoolSize = new Gtk.SpinButton(1, 100, 1);
     this.spinMinPoolSize.CanFocus = true;
     this.spinMinPoolSize.Name = "spinMinPoolSize";
     this.spinMinPoolSize.Adjustment.PageIncrement = 10;
     this.spinMinPoolSize.ClimbRate = 1;
     this.spinMinPoolSize.Numeric = true;
     this.spinMinPoolSize.Value = 1;
     this.tableAdvanced.Add(this.spinMinPoolSize);
     Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.tableAdvanced[this.spinMinPoolSize]));
     w28.LeftAttach = ((uint)(1));
     w28.RightAttach = ((uint)(2));
     w28.XOptions = ((Gtk.AttachOptions)(4));
     w28.YOptions = ((Gtk.AttachOptions)(4));
     this.notebook.Add(this.tableAdvanced);
     Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.tableAdvanced]));
     w29.Position = 1;
     w29.TabExpand = false;
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Advanced");
     this.notebook.SetTabLabel(this.tableAdvanced, this.label2);
     this.label2.ShowAll();
     w1.Add(this.notebook);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w1[this.notebook]));
     w30.Position = 0;
     w30.Expand = false;
     w30.Fill = false;
     // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.ActionArea
     Gtk.HButtonBox w31 = this.ActionArea;
     w31.Name = "dialog1_ActionArea";
     w31.Spacing = 6;
     w31.BorderWidth = ((uint)(5));
     w31.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonCancel]));
     w32.Expand = false;
     w32.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w31[this.buttonOk]));
     w33.Position = 1;
     w33.Expand = false;
     w33.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 606;
     this.DefaultHeight = 351;
     this.entryName.HasDefault = true;
     this.Show();
     this.spinPort.Changed += new System.EventHandler(this.PortChanged);
     this.entryPassword.Changed += new System.EventHandler(this.PasswordChanged);
     this.buttonRefresh.Clicked += new System.EventHandler(this.RefreshClicked);
     this.buttonOpen.Clicked += new System.EventHandler(this.OpenClicked);
     this.entryUsername.Changed += new System.EventHandler(this.UsernameChanged);
     this.entryServer.Changed += new System.EventHandler(this.ServerChanged);
     this.entryName.Changed += new System.EventHandler(this.NameChanged);
     this.comboProvider.Changed += new System.EventHandler(this.ProviderChanged);
     this.spinMinPoolSize.Changed += new System.EventHandler(this.MinPoolSizeChanged);
     this.spinMaxPoolSize.Changed += new System.EventHandler(this.MaxPoolSizeChanged);
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClicked);
     this.buttonOk.Clicked += new System.EventHandler(this.OnOkClicked);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Gedcom.UI.GTK.Widgets.NameView
     Stetic.BinContainer.Attach(this);
     this.Name = "Gedcom.UI.GTK.Widgets.NameView";
     // Container child Gedcom.UI.GTK.Widgets.NameView.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.NamesTreeView = new Gtk.TreeView();
     this.NamesTreeView.CanFocus = true;
     this.NamesTreeView.Name = "NamesTreeView";
     this.scrolledwindow2.Add(this.NamesTreeView);
     this.hbox1.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow2]));
     w2.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.notebook1 = new Gtk.Notebook();
     this.notebook1.CanFocus = true;
     this.notebook1.Name = "notebook1";
     this.notebook1.CurrentPage = 0;
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.table1 = new Gtk.Table(((uint)(7)), ((uint)(4)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     this.table1.BorderWidth = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.GivenEntry = new Gtk.Entry();
     this.GivenEntry.CanFocus = true;
     this.GivenEntry.Name = "GivenEntry";
     this.GivenEntry.IsEditable = true;
     this.GivenEntry.InvisibleChar = '●';
     this.table1.Add(this.GivenEntry);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.GivenEntry]));
     w3.TopAttach = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.LeftAttach = ((uint)(1));
     w3.RightAttach = ((uint)(4));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     this.table1.Add(this.hbox2);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
     w4.TopAttach = ((uint)(3));
     w4.BottomAttach = ((uint)(4));
     w4.LeftAttach = ((uint)(3));
     w4.RightAttach = ((uint)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 1F;
     this.label1.LabelProp = "Nickname:";
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w5.TopAttach = ((uint)(5));
     w5.BottomAttach = ((uint)(6));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 1F;
     this.label2.LabelProp = "Prefix:";
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w6.XOptions = ((Gtk.AttachOptions)(4));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 1F;
     this.label3.LabelProp = "Given:";
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w7.TopAttach = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 1F;
     this.label4.LabelProp = "Surname Prefix:";
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w8.TopAttach = ((uint)(2));
     w8.BottomAttach = ((uint)(3));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xalign = 1F;
     this.label5.LabelProp = "Surname:";
     this.table1.Add(this.label5);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
     w9.TopAttach = ((uint)(3));
     w9.BottomAttach = ((uint)(4));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.Xalign = 1F;
     this.label6.LabelProp = "Suffix:";
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w10.TopAttach = ((uint)(4));
     w10.BottomAttach = ((uint)(5));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.NameSourceButton = new Gtk.Button();
     this.NameSourceButton.CanFocus = true;
     this.NameSourceButton.Name = "NameSourceButton";
     // Container child NameSourceButton.Gtk.Container+ContainerChild
     this.image438 = new Gtk.Image();
     this.image438.Name = "image438";
     this.image438.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-index", Gtk.IconSize.Button, 20);
     this.NameSourceButton.Add(this.image438);
     this.NameSourceButton.Label = null;
     this.table1.Add(this.NameSourceButton);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.NameSourceButton]));
     w12.TopAttach = ((uint)(5));
     w12.BottomAttach = ((uint)(6));
     w12.LeftAttach = ((uint)(3));
     w12.RightAttach = ((uint)(4));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.NicknameEntry = new Gtk.Entry();
     this.NicknameEntry.CanFocus = true;
     this.NicknameEntry.Name = "NicknameEntry";
     this.NicknameEntry.IsEditable = true;
     this.NicknameEntry.InvisibleChar = '●';
     this.table1.Add(this.NicknameEntry);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.NicknameEntry]));
     w13.TopAttach = ((uint)(5));
     w13.BottomAttach = ((uint)(6));
     w13.LeftAttach = ((uint)(1));
     w13.RightAttach = ((uint)(2));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.PreferedCheckbox = new Gtk.CheckButton();
     this.PreferedCheckbox.CanFocus = true;
     this.PreferedCheckbox.Name = "PreferedCheckbox";
     this.PreferedCheckbox.Label = "Use as prefered name";
     this.PreferedCheckbox.DrawIndicator = true;
     this.PreferedCheckbox.UseUnderline = true;
     this.table1.Add(this.PreferedCheckbox);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.PreferedCheckbox]));
     w14.TopAttach = ((uint)(6));
     w14.BottomAttach = ((uint)(7));
     w14.RightAttach = ((uint)(4));
     w14.XOptions = ((Gtk.AttachOptions)(1));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.PrefixComboBoxEntry = new Gtk.ComboBoxEntry();
     this.PrefixComboBoxEntry.Name = "PrefixComboBoxEntry";
     this.table1.Add(this.PrefixComboBoxEntry);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.PrefixComboBoxEntry]));
     w15.LeftAttach = ((uint)(1));
     w15.RightAttach = ((uint)(2));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.SuffixComboBoxEntry = new Gtk.ComboBoxEntry();
     this.SuffixComboBoxEntry.Name = "SuffixComboBoxEntry";
     this.table1.Add(this.SuffixComboBoxEntry);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.SuffixComboBoxEntry]));
     w16.TopAttach = ((uint)(4));
     w16.BottomAttach = ((uint)(5));
     w16.LeftAttach = ((uint)(1));
     w16.RightAttach = ((uint)(2));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.SurnameEntry = new Gtk.Entry();
     this.SurnameEntry.CanFocus = true;
     this.SurnameEntry.Name = "SurnameEntry";
     this.SurnameEntry.IsEditable = true;
     this.SurnameEntry.InvisibleChar = '●';
     this.table1.Add(this.SurnameEntry);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.SurnameEntry]));
     w17.TopAttach = ((uint)(3));
     w17.BottomAttach = ((uint)(4));
     w17.LeftAttach = ((uint)(1));
     w17.RightAttach = ((uint)(4));
     w17.XOptions = ((Gtk.AttachOptions)(4));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.SurnamePrefixComboBoxEntry = new Gtk.ComboBoxEntry();
     this.SurnamePrefixComboBoxEntry.Name = "SurnamePrefixComboBoxEntry";
     this.table1.Add(this.SurnamePrefixComboBoxEntry);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.SurnamePrefixComboBoxEntry]));
     w18.TopAttach = ((uint)(2));
     w18.BottomAttach = ((uint)(3));
     w18.LeftAttach = ((uint)(1));
     w18.RightAttach = ((uint)(2));
     w18.XOptions = ((Gtk.AttachOptions)(4));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     this.notebook1.Add(this.table1);
     // Notebook tab
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.LabelProp = "Name";
     this.notebook1.SetTabLabel(this.table1, this.label7);
     this.label7.ShowAll();
     // Container child notebook1.Gtk.Notebook+NotebookChild
     this.NotesView = new Gedcom.UI.GTK.Widgets.NotesView();
     this.NotesView.Events = ((Gdk.EventMask)(256));
     this.NotesView.Name = "NotesView";
     this.NotesView.DataNotes = false;
     this.NotesView.ListOnly = false;
     this.NotesView.NoteOnly = false;
     this.notebook1.Add(this.NotesView);
     Gtk.Notebook.NotebookChild w20 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.NotesView]));
     w20.Position = 1;
     // Notebook tab
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = "Notes";
     this.notebook1.SetTabLabel(this.NotesView, this.label8);
     this.label8.ShowAll();
     this.hbox1.Add(this.notebook1);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.notebook1]));
     w21.Position = 1;
     w21.Expand = false;
     w21.Fill = false;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.NameSourceButton.Clicked += new System.EventHandler(this.OnNameSourceButton_Clicked);
     this.NotesView.ShowSourceCitation += new System.EventHandler<Gedcom.UI.Common.SourceCitationArgs>(this.OnNotesView_ShowSourceCitation);
     this.NotesView.SelectNewNote += new System.EventHandler<Gedcom.UI.Common.NoteArgs>(this.OnNotesView_SelectNewNote);
 }
예제 #45
0
        public ValueReferenceEditor(Project p, ValueReferenceGroup vrg, int rows, string frameText = null)
            : base(1.0F, 1.0F, 1.0F, 1.0F)
        {
            Project = p;

            valueReferenceGroup  = vrg;
            maxBounds            = new int[valueReferenceGroup.GetNumValueReferences()];
            widgetPositions      = new Tuple <uint, uint> [maxBounds.Count];
            widgets              = new Gtk.Widget[maxBounds.Count];
            helpButtonContainers = new Gtk.Container[maxBounds.Count];

            table = new Gtk.Table(2, 2, false);
            uint x = 0, y = 0;

            int cnt = 0;

            foreach (ValueReference r in valueReferenceGroup.GetValueReferences())
            {
                int index = cnt;
                cnt++;

                if (y >= rows)
                {
                    y  = 0;
                    x += 3;
                }

                widgetPositions[index] = new Tuple <uint, uint>(x, y);

                // If it has a ConstantsMapping, use a combobox instead of anything else
                if (r.ConstantsMapping != null)
                {
                    ComboBoxFromConstants comboBox = new ComboBoxFromConstants(false);
                    comboBox.SetConstantsMapping(r.ConstantsMapping);

                    comboBox.Changed += delegate(object sender, EventArgs e) {
                        r.SetValue(comboBox.ActiveValue);
                        OnDataModifiedInternal();
                    };

                    dataModifiedExternalEvent += delegate() {
                        comboBox.ActiveValue = r.GetIntValue();
                    };

                    table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);
                    table.Attach(comboBox, x + 1, x + 2, y, y + 1);
                    widgets[index] = comboBox;

                    helpButtonContainers[index] = new Gtk.HBox();
                    table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);

                    goto loopEnd;
                }
                // ConstantsMapping == null

                switch (r.ValueType)
                {
                case DataValueType.String:
                default:
                {
                    table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);
                    Gtk.Entry entry = new Gtk.Entry();
                    if (!r.Editable)
                    {
                        entry.Sensitive = false;
                    }
                    dataModifiedExternalEvent += delegate() {
                        entry.Text = r.GetStringValue();
                        OnDataModifiedInternal();
                    };
                    table.Attach(entry, x + 1, x + 2, y, y + 1);
                    widgets[index] = entry;

                    helpButtonContainers[index] = new Gtk.HBox();
                    table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);
                    break;
                }

                case DataValueType.Byte:
                case DataValueType.HalfByte:
byteCase:
                    {
                        table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);
                        SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0, 255);
                        if (!r.Editable)
                        {
                            spinButton.Sensitive = false;
                        }
                        if (r.ValueType == DataValueType.HalfByte)
                        {
                            spinButton.Digits           = 1;
                            spinButton.Adjustment.Upper = 15;
                        }
                        else
                        {
                            spinButton.Digits = 2;
                        }
                        spinButton.ValueChanged += delegate(object sender, EventArgs e) {
                            Gtk.SpinButton button = sender as Gtk.SpinButton;
                            if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index])
                            {
                                r.SetValue(button.ValueAsInt);
                            }
                            else
                            {
                                button.Value = maxBounds[index];
                            }
                            OnDataModifiedInternal();
                        };
                        dataModifiedExternalEvent += delegate() {
                            spinButton.Value = r.GetIntValue();
                        };
                        table.Attach(spinButton, x + 1, x + 2, y, y + 1);
                        widgets[index] = spinButton;

                        helpButtonContainers[index] = new Gtk.HBox();
                        table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);
                    }
                    break;

                case DataValueType.WarpDestIndex:
                {
                    Gtk.Button newDestButton = new Gtk.Button("New\nDestination");
                    newDestButton.Clicked += delegate(object sender, EventArgs e) {
                        WarpSourceData warpData  = (WarpSourceData)r.Data;
                        WarpDestGroup  destGroup = warpData.GetReferencedDestGroup();
                        // Check if there's unused destination data
                        // already
                        for (int i = 0; i < destGroup.GetNumWarpDests(); i++)
                        {
                            WarpDestData destData = destGroup.GetWarpDest(i);
                            if (destData.GetNumReferences() == 0)
                            {
                                Gtk.MessageDialog d = new Gtk.MessageDialog(null,
                                                                            Gtk.DialogFlags.DestroyWithParent,
                                                                            Gtk.MessageType.Warning,
                                                                            Gtk.ButtonsType.YesNo,
                                                                            "Destination index " + i.ToString("X2") + " is not used by any sources. Use this index?\n\n(\"No\" will create a new destination instead.)");
                                Gtk.ResponseType response = (Gtk.ResponseType)d.Run();
                                d.Destroy();

                                if (response == Gtk.ResponseType.Yes)
                                {
                                    warpData.SetDestData(destGroup.GetWarpDest(i));
                                }
                                else if (response == Gtk.ResponseType.No)
                                {
                                    warpData.SetDestData(destGroup.AddDestData());
                                }
                                break;
                            }
                        }
                    };
                    table.Attach(newDestButton, x + 2, x + 3, y, y + 2);
                }
                    goto byteCase;

                case DataValueType.Word:
                {
                    table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);
                    SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0, 0xffff);
                    if (!r.Editable)
                    {
                        spinButton.Sensitive = false;
                    }
                    spinButton.Digits        = 4;
                    spinButton.ValueChanged += delegate(object sender, EventArgs e) {
                        Gtk.SpinButton button = sender as Gtk.SpinButton;
                        if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index])
                        {
                            r.SetValue(button.ValueAsInt);
                        }
                        else
                        {
                            button.Value = maxBounds[index];
                        }
                        OnDataModifiedInternal();
                    };
                    dataModifiedExternalEvent += delegate() {
                        spinButton.Value = r.GetIntValue();
                    };
                    table.Attach(spinButton, x + 1, x + 2, y, y + 1);
                    widgets[index] = spinButton;

                    helpButtonContainers[index] = new Gtk.HBox();
                    table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);
                }
                break;

                case DataValueType.ByteBit:
                {
                    table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);
                    Gtk.CheckButton checkButton = new Gtk.CheckButton();
                    checkButton.CanFocus = false;
                    if (!r.Editable)
                    {
                        checkButton.Sensitive = false;
                    }
                    checkButton.Toggled += delegate(object sender, EventArgs e) {
                        Gtk.CheckButton button = sender as Gtk.CheckButton;
                        r.SetValue(button.Active ? 1 : 0);
                        OnDataModifiedInternal();
                    };
                    dataModifiedExternalEvent += delegate() {
                        checkButton.Active = r.GetIntValue() == 1;
                    };
                    table.Attach(checkButton, x + 1, x + 2, y, y + 1);
                    widgets[index] = checkButton;

                    helpButtonContainers[index] = new Gtk.HBox();
                    table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);
                }
                break;

                case DataValueType.ByteBits:
                case DataValueType.WordBits:
                {
                    table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);
                    SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0, r.MaxValue);
                    if (!r.Editable)
                    {
                        spinButton.Sensitive = false;
                    }
                    spinButton.Digits        = (uint)Math.Pow(r.MaxValue, ((double)1) / 16) + 1;
                    spinButton.ValueChanged += delegate(object sender, EventArgs e) {
                        Gtk.SpinButton button = sender as Gtk.SpinButton;
                        if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index])
                        {
                            r.SetValue(button.ValueAsInt);
                        }
                        else
                        {
                            button.Value = maxBounds[index];
                        }
                        OnDataModifiedInternal();
                    };
                    dataModifiedExternalEvent += delegate() {
                        spinButton.Value = r.GetIntValue();
                    };
                    table.Attach(spinButton, x + 1, x + 2, y, y + 1);
                    widgets[index] = spinButton;

                    helpButtonContainers[index] = new Gtk.HBox();
                    table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);
                }
                break;

                case DataValueType.ObjectPointer:
                {
                    table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1);

                    Gtk.Entry entry = new Gtk.Entry();
                    if (!r.Editable)
                    {
                        entry.Sensitive = false;
                    }
                    entry.Changed += delegate(object sender, EventArgs e) {
                        UpdatePointerTextBox(sender as Gtk.Entry, r);
                        OnDataModifiedInternal();
                    };
                    table.Attach(entry, x + 1, x + 2, y, y + 1);
                    widgets[index] = entry;

                    pointerFrame             = new Gtk.Frame();
                    pointerFrame.Label       = "Pointer data (possibly shared)";
                    pointerFrame.BorderWidth = 5;

                    y++;
                    table.Attach(pointerFrame, x + 0, x + 2, y, y + 1);

                    dataModifiedExternalEvent += delegate() {
                        entry.Text = r.GetStringValue();
                        UpdatePointerTextBox(entry, r);
                    };

                    helpButtonContainers[index] = new Gtk.HBox();
                    table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0);
                }
                break;
                }

loopEnd:
                y++;
            }

            table.ColumnSpacing = 6;

            if (frameText != null)
            {
                var frame = new Gtk.Frame(frameText);
                frame.Add(table);
                this.Add(frame);
            }
            else
            {
                this.Add(table);
            }

            this.ShowAll();

            Data lastData = null;

            foreach (ValueReference r in valueReferenceGroup.GetValueReferences())
            {
                if (lastData != r.Data)
                {
                    lastData = r.Data;
                    r.Data.AddDataModifiedHandler(OnDataModifiedExternal);
                    // Destroy handler
                    this.Destroyed += delegate(object sender, EventArgs e) {
                        r.Data.RemoveDataModifiedHandler(OnDataModifiedExternal);
                    };
                }
            }

            // Initial values
            if (dataModifiedExternalEvent != null)
            {
                dataModifiedExternalEvent();
            }

            UpdateHelpButtons();
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget SqueezeCenter.Configuration
     Stetic.BinContainer.Attach(this);
     this.Name = "SqueezeCenter.Configuration";
     // Container child SqueezeCenter.Configuration.Gtk.Container+ContainerChild
     this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), 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.UseStock = true;
     this.button1.UseUnderline = true;
     this.button1.Label = "gtk-save";
     this.table1.Add(this.button1);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.button1]));
     w1.TopAttach = ((uint)(5));
     w1.BottomAttach = ((uint)(6));
     w1.LeftAttach = ((uint)(1));
     w1.RightAttach = ((uint)(2));
     w1.XOptions = ((Gtk.AttachOptions)(4));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.chkLoadInBackground = new Gtk.CheckButton();
     this.chkLoadInBackground.CanFocus = true;
     this.chkLoadInBackground.Name = "chkLoadInBackground";
     this.chkLoadInBackground.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Load items in background");
     this.chkLoadInBackground.DrawIndicator = true;
     this.chkLoadInBackground.UseUnderline = true;
     this.table1.Add(this.chkLoadInBackground);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.chkLoadInBackground]));
     w2.TopAttach = ((uint)(3));
     w2.BottomAttach = ((uint)(4));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.XOptions = ((Gtk.AttachOptions)(0));
     // Container child table1.Gtk.Table+TableChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 0F;
     this.label2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Comma-seperated list of radios to load");
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w3.TopAttach = ((uint)(4));
     w3.BottomAttach = ((uint)(5));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.Xalign = 0F;
     this.label5.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Host-name of SqueezeCenter server");
     this.table1.Add(this.label5);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.Xalign = 0F;
     this.label6.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Port of the SqueezeCenter server cli interface");
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w5.TopAttach = ((uint)(1));
     w5.BottomAttach = ((uint)(2));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 0F;
     this.label7.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Port of the SqueezeCenter server web interface");
     this.table1.Add(this.label7);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label7]));
     w6.TopAttach = ((uint)(2));
     w6.BottomAttach = ((uint)(3));
     w6.XOptions = ((Gtk.AttachOptions)(4));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.Xalign = 0F;
     this.label8.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Load artist, albums and radio in the background when loading DO. \nIf set to unchecked, these items are loaded when DO is loading causing a delay until all items are loaded.");
     this.label8.Wrap = true;
     this.table1.Add(this.label8);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
     w7.TopAttach = ((uint)(3));
     w7.BottomAttach = ((uint)(4));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtHost = new Gtk.Entry();
     this.txtHost.CanFocus = true;
     this.txtHost.Name = "txtHost";
     this.txtHost.IsEditable = true;
     this.txtHost.InvisibleChar = '●';
     this.table1.Add(this.txtHost);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.txtHost]));
     w8.LeftAttach = ((uint)(1));
     w8.RightAttach = ((uint)(2));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtPortCli = new Gtk.Entry();
     this.txtPortCli.CanFocus = true;
     this.txtPortCli.Name = "txtPortCli";
     this.txtPortCli.IsEditable = true;
     this.txtPortCli.InvisibleChar = '●';
     this.table1.Add(this.txtPortCli);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.txtPortCli]));
     w9.TopAttach = ((uint)(1));
     w9.BottomAttach = ((uint)(2));
     w9.LeftAttach = ((uint)(1));
     w9.RightAttach = ((uint)(2));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtPortWeb = new Gtk.Entry();
     this.txtPortWeb.CanFocus = true;
     this.txtPortWeb.Name = "txtPortWeb";
     this.txtPortWeb.IsEditable = true;
     this.txtPortWeb.InvisibleChar = '●';
     this.table1.Add(this.txtPortWeb);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.txtPortWeb]));
     w10.TopAttach = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.LeftAttach = ((uint)(1));
     w10.RightAttach = ((uint)(2));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.txtRadios = new Gtk.Entry();
     this.txtRadios.CanFocus = true;
     this.txtRadios.Name = "txtRadios";
     this.txtRadios.IsEditable = true;
     this.txtRadios.InvisibleChar = '●';
     this.table1.Add(this.txtRadios);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.txtRadios]));
     w11.TopAttach = ((uint)(4));
     w11.BottomAttach = ((uint)(5));
     w11.LeftAttach = ((uint)(1));
     w11.RightAttach = ((uint)(2));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     this.Add(this.table1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.button1.Clicked += new System.EventHandler(this.OntbnSaveClicked);
 }
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "SharpTranslator.ReversibleCombos")) {
         Gtk.Bin cobj = ((Gtk.Bin)(obj));
         // Widget SharpTranslator.ReversibleCombos
         BinContainer.Attach(cobj);
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "SharpTranslator.ReversibleCombos";
         // Container child SharpTranslator.ReversibleCombos.Gtk.Container+ContainerChild
         Gtk.HBox w1 = new Gtk.HBox();
         w1.Spacing = 5;
         w1.BorderWidth = ((uint)(5));
         w1.Events = ((Gdk.EventMask)(0));
         w1.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w2 = new Gtk.Label();
         w2.LabelProp = "Source:";
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "labelSource";
         bindings["labelSource"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
         w3.Position = 0;
         w3.Expand = false;
         w3.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w4 = Gtk.ComboBox.NewText();
         w4.Events = ((Gdk.EventMask)(0));
         w4.Name = "comboSource";
         bindings["comboSource"] = w4;
         w1.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
         w5.Position = 1;
         w5.Expand = false;
         w5.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w6 = new Gtk.VSeparator();
         w6.Events = ((Gdk.EventMask)(0));
         w6.Name = "vseparator1";
         bindings["vseparator1"] = w6;
         w1.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w6]));
         w7.Position = 2;
         w7.Expand = false;
         w7.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.CheckButton w8 = new Gtk.CheckButton();
         w8.Label = "reverse";
         w8.DrawIndicator = true;
         w8.BorderWidth = ((uint)(5));
         w8.CanFocus = true;
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "checkbuttonReverse";
         bindings["checkbuttonReverse"] = w8;
         w1.Add(w8);
         Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w8]));
         w9.Position = 3;
         w9.Expand = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w10 = new Gtk.VSeparator();
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "vseparator2";
         bindings["vseparator2"] = w10;
         w1.Add(w10);
         Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w10]));
         w11.Position = 4;
         w11.Expand = false;
         w11.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w12 = new Gtk.Label();
         w12.LabelProp = "Target:";
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "labelTarget";
         bindings["labelTarget"] = w12;
         w1.Add(w12);
         Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
         w13.Position = 5;
         w13.Expand = false;
         w13.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w14 = Gtk.ComboBox.NewText();
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "comboTarget";
         bindings["comboTarget"] = w14;
         w1.Add(w14);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
         w15.Position = 6;
         w15.Expand = false;
         w15.Fill = false;
         bindings["hbox1"] = w1;
         cobj.Add(w1);
         bindings["SharpTranslator.ReversibleCombos"] = cobj;
         w2.Show();
         w4.Show();
         w6.Show();
         w8.Show();
         w10.Show();
         w12.Show();
         w14.Show();
         w1.Show();
         cobj.Show();
     }
     else {
         if ((id == "SharpTranslator.AboutDialog")) {
             Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
             // Widget SharpTranslator.AboutDialog
             cobj.Title = "AboutDialog";
             cobj.WindowPosition = ((Gtk.WindowPosition)(4));
             cobj.HasSeparator = false;
             cobj.Events = ((Gdk.EventMask)(256));
             cobj.Name = "SharpTranslator.AboutDialog";
             // Internal child SharpTranslator.AboutDialog.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.TextView w2 = new Gtk.TextView();
             w2.Buffer.Text = "\n         SharpTranslator\n\n    Version 0.1.3  (October 2006)\n\n    License: GPL\n\n    Author: Carlos Ble <http://www.shidix.com/carlosble>\n\n    English-Spanish dictionary was taken from i2e:\n          (Alfredo Casademunt, Jose Luis Triviño)\n\n";
             w2.CanFocus = true;
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "textview1";
             bindings["textview1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
             w3.Position = 0;
             // Container child dialog_VBox.Gtk.Box+BoxChild
             Gtk.HSeparator w4 = new Gtk.HSeparator();
             w4.Events = ((Gdk.EventMask)(0));
             w4.Name = "hseparator1";
             bindings["hseparator1"] = w4;
             w1.Add(w4);
             Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
             w5.Position = 1;
             w5.Expand = false;
             w5.Fill = false;
             bindings["dialog_VBox"] = w1;
             // Internal child SharpTranslator.AboutDialog.ActionArea
             Gtk.HButtonBox w6 = cobj.ActionArea;
             w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
             w6.Spacing = 10;
             w6.BorderWidth = ((uint)(5));
             w6.Events = ((Gdk.EventMask)(256));
             w6.Name = "SharpTranslator.AboutDialog_ActionArea";
             // Container child SharpTranslator.AboutDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
             Gtk.Button w7 = new Gtk.Button();
             w7.CanFocus = true;
             w7.Events = ((Gdk.EventMask)(0));
             w7.Name = "buttonClose";
             w7.CanDefault = true;
             // Container child buttonClose.Gtk.Container+ContainerChild
             Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "GtkAlignment";
             // Container child GtkAlignment.Gtk.Container+ContainerChild
             Gtk.HBox w9 = new Gtk.HBox();
             w9.Spacing = 2;
             w9.Events = ((Gdk.EventMask)(0));
             w9.Name = "GtkHBox";
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Image w10 = new Gtk.Image();
             w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-close", 16, 0);
             w10.Events = ((Gdk.EventMask)(0));
             w10.Name = "image1";
             bindings["image1"] = w10;
             w9.Add(w10);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w12 = new Gtk.Label();
             w12.LabelProp = "Close";
             w12.Events = ((Gdk.EventMask)(0));
             w12.Name = "GtkLabel";
             bindings["GtkLabel"] = w12;
             w9.Add(w12);
             bindings["GtkHBox"] = w9;
             w8.Add(w9);
             bindings["GtkAlignment"] = w8;
             w7.Add(w8);
             bindings["buttonClose"] = w7;
             cobj.AddActionWidget(w7, 0);
             Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
             w16.Expand = false;
             w16.Fill = false;
             bindings["SharpTranslator.AboutDialog_ActionArea"] = w6;
             cobj.DefaultWidth = 487;
             cobj.DefaultHeight = 303;
             bindings["SharpTranslator.AboutDialog"] = cobj;
             w2.Show();
             w4.Show();
             w1.Show();
             w10.Show();
             w12.Show();
             w9.Show();
             w8.Show();
             w7.Show();
             w6.Show();
             cobj.Show();
             w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
         }
         else {
             if ((id == "SharpTranslator.LearnWindow")) {
                 Gtk.Window cobj = ((Gtk.Window)(obj));
                 // Widget SharpTranslator.LearnWindow
                 cobj.Title = "LearnWindow";
                 cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                 cobj.Resizable = false;
                 cobj.AllowGrow = false;
                 cobj.Events = ((Gdk.EventMask)(0));
                 cobj.Name = "SharpTranslator.LearnWindow";
                 // Container child SharpTranslator.LearnWindow.Gtk.Container+ContainerChild
                 Gtk.VBox w1 = new Gtk.VBox();
                 w1.Spacing = 5;
                 w1.BorderWidth = ((uint)(3));
                 w1.Events = ((Gdk.EventMask)(0));
                 w1.Name = "vbox1";
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w2 = new Gtk.HBox();
                 w2.BorderWidth = ((uint)(3));
                 w2.Events = ((Gdk.EventMask)(0));
                 w2.Name = "hbox5";
                 // Container child hbox5.Gtk.Box+BoxChild
                 Gtk.Label w3 = new Gtk.Label();
                 w3.LabelProp = "Type of item:";
                 w3.Events = ((Gdk.EventMask)(0));
                 w3.Name = "label1";
                 bindings["label1"] = w3;
                 w2.Add(w3);
                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                 w4.Position = 0;
                 w4.Expand = false;
                 w4.Fill = false;
                 // Container child hbox5.Gtk.Box+BoxChild
                 Gtk.HBox w5 = new Gtk.HBox();
                 w5.Events = ((Gdk.EventMask)(0));
                 w5.Name = "hbox4";
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.CheckButton w6 = new Gtk.CheckButton();
                 w6.Label = "Word";
                 w6.Active = true;
                 w6.DrawIndicator = true;
                 w6.CanFocus = true;
                 w6.Events = ((Gdk.EventMask)(0));
                 w6.Name = "checkbWord";
                 bindings["checkbWord"] = w6;
                 w5.Add(w6);
                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w5[w6]));
                 w7.Position = 0;
                 // Container child hbox4.Gtk.Box+BoxChild
                 Gtk.CheckButton w8 = new Gtk.CheckButton();
                 w8.Label = "Expression";
                 w8.DrawIndicator = true;
                 w8.CanFocus = true;
                 w8.Events = ((Gdk.EventMask)(0));
                 w8.Name = "checkbExpression";
                 bindings["checkbExpression"] = w8;
                 w5.Add(w8);
                 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w5[w8]));
                 w9.Position = 1;
                 bindings["hbox4"] = w5;
                 w2.Add(w5);
                 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w2[w5]));
                 w10.Position = 1;
                 w10.Expand = false;
                 bindings["hbox5"] = w2;
                 w1.Add(w2);
                 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w2]));
                 w11.Position = 0;
                 w11.Expand = false;
                 w11.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 SharpTranslator.ReversibleCombos w12 = new SharpTranslator.ReversibleCombos();
                 w12.Events = ((Gdk.EventMask)(256));
                 w12.Name = "rCombos";
                 bindings["rCombos"] = w12;
                 w1.Add(w12);
                 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
                 w13.Position = 1;
                 w13.Expand = false;
                 w13.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HBox w14 = new Gtk.HBox();
                 w14.Spacing = 5;
                 w14.BorderWidth = ((uint)(3));
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "hbox3";
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w15 = new Gtk.Label();
                 w15.LabelProp = "Text:";
                 w15.Events = ((Gdk.EventMask)(0));
                 w15.Name = "labelText";
                 bindings["labelText"] = w15;
                 w14.Add(w15);
                 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w14[w15]));
                 w16.Position = 0;
                 w16.Expand = false;
                 w16.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w17 = new Gtk.Entry();
                 w17.IsEditable = true;
                 w17.InvisibleChar = '●';
                 w17.CanFocus = true;
                 w17.Events = ((Gdk.EventMask)(0));
                 w17.Name = "entryText";
                 bindings["entryText"] = w17;
                 w14.Add(w17);
                 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w14[w17]));
                 w18.Position = 1;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Label w19 = new Gtk.Label();
                 w19.LabelProp = "Translation:";
                 w19.Events = ((Gdk.EventMask)(0));
                 w19.Name = "label3";
                 bindings["label3"] = w19;
                 w14.Add(w19);
                 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(w14[w19]));
                 w20.Position = 2;
                 w20.Expand = false;
                 w20.Fill = false;
                 // Container child hbox3.Gtk.Box+BoxChild
                 Gtk.Entry w21 = new Gtk.Entry();
                 w21.IsEditable = true;
                 w21.InvisibleChar = '●';
                 w21.CanFocus = true;
                 w21.Events = ((Gdk.EventMask)(0));
                 w21.Name = "entryTranslation";
                 bindings["entryTranslation"] = w21;
                 w14.Add(w21);
                 Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(w14[w21]));
                 w22.Position = 3;
                 bindings["hbox3"] = w14;
                 w1.Add(w14);
                 Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(w1[w14]));
                 w23.Position = 2;
                 w23.Expand = false;
                 w23.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HSeparator w24 = new Gtk.HSeparator();
                 w24.Events = ((Gdk.EventMask)(0));
                 w24.Name = "hseparator1";
                 bindings["hseparator1"] = w24;
                 w1.Add(w24);
                 Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(w1[w24]));
                 w25.Position = 3;
                 w25.Expand = false;
                 w25.Fill = false;
                 // Container child vbox1.Gtk.Box+BoxChild
                 Gtk.HButtonBox w26 = new Gtk.HButtonBox();
                 w26.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                 w26.Spacing = 3;
                 w26.BorderWidth = ((uint)(3));
                 w26.Events = ((Gdk.EventMask)(0));
                 w26.Name = "hbuttonbox1";
                 // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w27 = new Gtk.Button();
                 w27.CanFocus = true;
                 w27.Events = ((Gdk.EventMask)(0));
                 w27.Name = "buttonCancel";
                 // Container child buttonCancel.Gtk.Container+ContainerChild
                 Gtk.Alignment w28 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w28.Events = ((Gdk.EventMask)(0));
                 w28.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w29 = new Gtk.HBox();
                 w29.Spacing = 2;
                 w29.Events = ((Gdk.EventMask)(0));
                 w29.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w30 = new Gtk.Image();
                 w30.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0);
                 w30.Events = ((Gdk.EventMask)(0));
                 w30.Name = "image2";
                 bindings["image2"] = w30;
                 w29.Add(w30);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w32 = new Gtk.Label();
                 w32.LabelProp = "Cancel";
                 w32.Events = ((Gdk.EventMask)(0));
                 w32.Name = "GtkLabel";
                 bindings["GtkLabel"] = w32;
                 w29.Add(w32);
                 bindings["GtkHBox"] = w29;
                 w28.Add(w29);
                 bindings["GtkAlignment"] = w28;
                 w27.Add(w28);
                 bindings["buttonCancel"] = w27;
                 w26.Add(w27);
                 Gtk.ButtonBox.ButtonBoxChild w36 = ((Gtk.ButtonBox.ButtonBoxChild)(w26[w27]));
                 w36.Expand = false;
                 w36.Fill = false;
                 // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w37 = new Gtk.Button();
                 w37.CanFocus = true;
                 w37.Events = ((Gdk.EventMask)(0));
                 w37.Name = "buttonAccept";
                 // Container child buttonAccept.Gtk.Container+ContainerChild
                 Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w38.Events = ((Gdk.EventMask)(0));
                 w38.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w39 = new Gtk.HBox();
                 w39.Spacing = 2;
                 w39.Events = ((Gdk.EventMask)(0));
                 w39.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w40 = new Gtk.Image();
                 w40.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                 w40.Events = ((Gdk.EventMask)(0));
                 w40.Name = "image3";
                 bindings["image3"] = w40;
                 w39.Add(w40);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w42 = new Gtk.Label();
                 w42.LabelProp = "Accept";
                 w42.Events = ((Gdk.EventMask)(0));
                 w42.Name = "GtkLabel";
                 bindings["GtkLabel"] = w42;
                 w39.Add(w42);
                 bindings["GtkHBox"] = w39;
                 w38.Add(w39);
                 bindings["GtkAlignment"] = w38;
                 w37.Add(w38);
                 bindings["buttonAccept"] = w37;
                 w26.Add(w37);
                 Gtk.ButtonBox.ButtonBoxChild w46 = ((Gtk.ButtonBox.ButtonBoxChild)(w26[w37]));
                 w46.Position = 1;
                 w46.Expand = false;
                 w46.Fill = false;
                 bindings["hbuttonbox1"] = w26;
                 w1.Add(w26);
                 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(w1[w26]));
                 w47.Position = 4;
                 w47.Expand = false;
                 w47.Fill = false;
                 bindings["vbox1"] = w1;
                 cobj.Add(w1);
                 cobj.DefaultWidth = 586;
                 cobj.DefaultHeight = 194;
                 bindings["SharpTranslator.LearnWindow"] = cobj;
                 w3.Show();
                 w6.Show();
                 w8.Show();
                 w5.Show();
                 w2.Show();
                 w12.Show();
                 w15.Show();
                 w17.Show();
                 w19.Show();
                 w21.Show();
                 w14.Show();
                 w24.Show();
                 w30.Show();
                 w32.Show();
                 w29.Show();
                 w28.Show();
                 w27.Show();
                 w40.Show();
                 w42.Show();
                 w39.Show();
                 w38.Show();
                 w37.Show();
                 w26.Show();
                 w1.Show();
                 cobj.Show();
                 cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnClose")));
                 w37.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAccept")));
             }
             else {
                 if ((id == "SharpTranslator.MainWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget SharpTranslator.MainWindow
                     cobj.Title = "SharpTranslator";
                     Gtk.UIManager w1 = new Gtk.UIManager();
                     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
                     Gtk.Action w3 = new Gtk.Action("File", "File", null, null);
                     w3.ShortLabel = "Archivo";
                     bindings["File"] = w3;
                     w2.Add(w3, null);
                     Gtk.Action w4 = new Gtk.Action("Edit", "Edit", null, null);
                     w4.ShortLabel = "Editar";
                     bindings["Edit"] = w4;
                     w2.Add(w4, null);
                     Gtk.Action w5 = new Gtk.Action("Learn", "Learn", null, "gtk-new");
                     w5.ShortLabel = "Learn";
                     bindings["Learn"] = w5;
                     w2.Add(w5, null);
                     Gtk.Action w6 = new Gtk.Action("floppy", null, null, "gtk-floppy");
                     bindings["floppy"] = w6;
                     w2.Add(w6, null);
                     Gtk.Action w7 = new Gtk.Action("LearnWords", "Learn words", null, "gtk-new");
                     w7.ShortLabel = "Learn ";
                     bindings["LearnWords"] = w7;
                     w2.Add(w7, null);
                     Gtk.Action w8 = new Gtk.Action("AddLanguage", "Add Language", null, "gtk-add");
                     w8.ShortLabel = "Exit";
                     bindings["AddLanguage"] = w8;
                     w2.Add(w8, null);
                     Gtk.Action w9 = new Gtk.Action("Cut", "Cut", null, "gtk-cut");
                     w9.ShortLabel = "Cut";
                     bindings["Cut"] = w9;
                     w2.Add(w9, null);
                     Gtk.Action w10 = new Gtk.Action("Copy", "Copy", null, "gtk-copy");
                     w10.ShortLabel = "Copy";
                     bindings["Copy"] = w10;
                     w2.Add(w10, null);
                     Gtk.Action w11 = new Gtk.Action("Paste", "Paste", null, "gtk-paste");
                     w11.ShortLabel = "Paste";
                     bindings["Paste"] = w11;
                     w2.Add(w11, null);
                     Gtk.Action w12 = new Gtk.Action("Help", "Help", null, null);
                     w12.ShortLabel = "Help";
                     bindings["Help"] = w12;
                     w2.Add(w12, null);
                     Gtk.Action w13 = new Gtk.Action("About", "About", null, "gnome-stock-about");
                     w13.ShortLabel = "About";
                     bindings["About"] = w13;
                     w2.Add(w13, null);
                     Gtk.Action w14 = new Gtk.Action("ImportDictionary", "Import Dictionary", null, "gnome-stock-book-blue");
                     w14.ShortLabel = "Import Dictionary";
                     bindings["ImportDictionary"] = w14;
                     w2.Add(w14, null);
                     Gtk.Action w15 = new Gtk.Action("Preferences", "Preferences", null, "gtk-preferences");
                     w15.ShortLabel = "Preferences";
                     bindings["Preferences"] = w15;
                     w2.Add(w15, null);
                     Gtk.Action w16 = new Gtk.Action("Close", "Close", null, "gtk-close");
                     w16.ShortLabel = "Close";
                     bindings["Close"] = w16;
                     w2.Add(w16, null);
                     w1.InsertActionGroup(w2, 0);
                     cobj.AddAccelGroup(w1.AccelGroup);
                     cobj.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-properties", 16, 0);
                     cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                     cobj.DefaultWidth = 60;
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "SharpTranslator.MainWindow";
                     // Container child SharpTranslator.MainWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w17 = new Gtk.VBox();
                     w17.Events = ((Gdk.EventMask)(0));
                     w17.Name = "vbox1";
                     // Container child vbox1.Gtk.Box+BoxChild
                     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='LearnWords'/><menuitem action='AddLanguage'/><menuitem action='ImportDictionary'/><menuitem action='Close'/></menu><menu action='Edit'><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/><menuitem action='Preferences'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
                     Gtk.MenuBar w18 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
                     w18.Events = ((Gdk.EventMask)(0));
                     w18.Name = "menubar1";
                     bindings["menubar1"] = w18;
                     w17.Add(w18);
                     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w17[w18]));
                     w19.Position = 0;
                     w19.Expand = false;
                     w19.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='Learn'/></toolbar></ui>");
                     Gtk.Toolbar w20 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1")));
                     w20.ShowArrow = false;
                     w20.Tooltips = false;
                     w20.ToolbarStyle = ((Gtk.ToolbarStyle)(2));
                     w20.IconSize = ((Gtk.IconSize)(2));
                     w20.Events = ((Gdk.EventMask)(0));
                     w20.Name = "toolbar1";
                     bindings["toolbar1"] = w20;
                     w17.Add(w20);
                     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(w17[w20]));
                     w21.Position = 1;
                     w21.Expand = false;
                     w21.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     SharpTranslator.ReversibleCombos w22 = new SharpTranslator.ReversibleCombos();
                     w22.Events = ((Gdk.EventMask)(256));
                     w22.Name = "rCombos";
                     bindings["rCombos"] = w22;
                     w17.Add(w22);
                     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(w17[w22]));
                     w23.Position = 2;
                     w23.Expand = false;
                     w23.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.ScrolledWindow w24 = new Gtk.ScrolledWindow();
                     w24.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                     w24.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                     w24.CanFocus = true;
                     w24.Events = ((Gdk.EventMask)(0));
                     w24.Name = "scrolledwindow1";
                     // Container child scrolledwindow1.Gtk.Container+ContainerChild
                     Gtk.TreeView w25 = new Gtk.TreeView();
                     w25.CanFocus = true;
                     w25.Events = ((Gdk.EventMask)(0));
                     w25.Name = "treeviewResults";
                     bindings["treeviewResults"] = w25;
                     w24.Add(w25);
                     bindings["scrolledwindow1"] = w24;
                     w17.Add(w24);
                     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w17[w24]));
                     w27.Position = 3;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HBox w28 = new Gtk.HBox();
                     w28.Spacing = 5;
                     w28.BorderWidth = ((uint)(3));
                     w28.Events = ((Gdk.EventMask)(0));
                     w28.Name = "hbox3";
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Label w29 = new Gtk.Label();
                     w29.LabelProp = "Word:";
                     w29.Events = ((Gdk.EventMask)(0));
                     w29.Name = "labelWord";
                     bindings["labelWord"] = w29;
                     w28.Add(w29);
                     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(w28[w29]));
                     w30.Position = 0;
                     w30.Expand = false;
                     w30.Fill = false;
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Entry w31 = new Gtk.Entry();
                     w31.IsEditable = true;
                     w31.InvisibleChar = '●';
                     w31.CanFocus = true;
                     w31.Events = ((Gdk.EventMask)(0));
                     w31.Name = "entryKeyword";
                     w31.CanDefault = true;
                     bindings["entryKeyword"] = w31;
                     w28.Add(w31);
                     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w28[w31]));
                     w32.Position = 1;
                     // Container child hbox3.Gtk.Box+BoxChild
                     Gtk.Button w33 = new Gtk.Button();
                     Gtk.Tooltips w34 = new Gtk.Tooltips();
                     w34.SetTip(w33, "Search keyword", "Search keyword");
                     w33.CanFocus = true;
                     w33.Events = ((Gdk.EventMask)(0));
                     w33.Name = "buttonSearch";
                     // Container child buttonSearch.Gtk.Container+ContainerChild
                     Gtk.Alignment w35 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w35.Events = ((Gdk.EventMask)(0));
                     w35.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w36 = new Gtk.HBox();
                     w36.Spacing = 2;
                     w36.Events = ((Gdk.EventMask)(0));
                     w36.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w37 = new Gtk.Image();
                     w37.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                     w37.Events = ((Gdk.EventMask)(0));
                     w37.Name = "image4";
                     bindings["image4"] = w37;
                     w36.Add(w37);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w39 = new Gtk.Label();
                     w39.LabelProp = "Search";
                     w39.Events = ((Gdk.EventMask)(0));
                     w39.Name = "GtkLabel";
                     bindings["GtkLabel"] = w39;
                     w36.Add(w39);
                     bindings["GtkHBox"] = w36;
                     w35.Add(w36);
                     bindings["GtkAlignment"] = w35;
                     w33.Add(w35);
                     bindings["buttonSearch"] = w33;
                     w28.Add(w33);
                     Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(w28[w33]));
                     w43.Position = 2;
                     w43.Expand = false;
                     w43.Fill = false;
                     bindings["hbox3"] = w28;
                     w17.Add(w28);
                     Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w17[w28]));
                     w44.Position = 4;
                     w44.Expand = false;
                     w44.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HBox w45 = new Gtk.HBox();
                     w45.Spacing = 5;
                     w45.BorderWidth = ((uint)(3));
                     w45.Events = ((Gdk.EventMask)(0));
                     w45.Name = "hbox4";
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Label w46 = new Gtk.Label();
                     w46.LabelProp = "Expression:";
                     w46.Events = ((Gdk.EventMask)(0));
                     w46.Name = "labelExpression";
                     bindings["labelExpression"] = w46;
                     w45.Add(w46);
                     Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(w45[w46]));
                     w47.Position = 0;
                     w47.Expand = false;
                     w47.Fill = false;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Entry w48 = new Gtk.Entry();
                     w48.IsEditable = true;
                     w48.InvisibleChar = '●';
                     w48.CanFocus = true;
                     w48.Events = ((Gdk.EventMask)(0));
                     w48.Name = "entryExpression";
                     bindings["entryExpression"] = w48;
                     w45.Add(w48);
                     Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(w45[w48]));
                     w49.Position = 1;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Button w50 = new Gtk.Button();
                     w34.SetTip(w50, "Search keyword", "Search keyword");
                     w50.CanFocus = true;
                     w50.Events = ((Gdk.EventMask)(0));
                     w50.Name = "buttonSearchExpression";
                     // Container child buttonSearchExpression.Gtk.Container+ContainerChild
                     Gtk.Alignment w51 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w51.Events = ((Gdk.EventMask)(0));
                     w51.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w52 = new Gtk.HBox();
                     w52.Spacing = 2;
                     w52.Events = ((Gdk.EventMask)(0));
                     w52.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w53 = new Gtk.Image();
                     w53.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-find", 16, 0);
                     w53.Events = ((Gdk.EventMask)(0));
                     w53.Name = "image5";
                     bindings["image5"] = w53;
                     w52.Add(w53);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w55 = new Gtk.Label();
                     w55.LabelProp = "Search";
                     w55.Events = ((Gdk.EventMask)(0));
                     w55.Name = "GtkLabel";
                     bindings["GtkLabel"] = w55;
                     w52.Add(w55);
                     bindings["GtkHBox"] = w52;
                     w51.Add(w52);
                     bindings["GtkAlignment"] = w51;
                     w50.Add(w51);
                     bindings["buttonSearchExpression"] = w50;
                     w45.Add(w50);
                     Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(w45[w50]));
                     w59.Position = 2;
                     w59.Expand = false;
                     w59.Fill = false;
                     // Container child hbox4.Gtk.Box+BoxChild
                     Gtk.Button w60 = new Gtk.Button();
                     w34.SetTip(w60, "Search keyword", "Search keyword");
                     w60.CanFocus = true;
                     w60.Events = ((Gdk.EventMask)(0));
                     w60.Name = "buttonShowAll";
                     w60.Label = "Show All";
                     bindings["buttonShowAll"] = w60;
                     w45.Add(w60);
                     Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(w45[w60]));
                     w61.Position = 3;
                     w61.Expand = false;
                     w61.Fill = false;
                     bindings["hbox4"] = w45;
                     w17.Add(w45);
                     Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(w17[w45]));
                     w62.Position = 5;
                     w62.Expand = false;
                     w62.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HSeparator w63 = new Gtk.HSeparator();
                     w63.Events = ((Gdk.EventMask)(0));
                     w63.Name = "hseparator1";
                     bindings["hseparator1"] = w63;
                     w17.Add(w63);
                     Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(w17[w63]));
                     w64.Position = 6;
                     w64.Expand = false;
                     w64.Fill = false;
                     // Container child vbox1.Gtk.Box+BoxChild
                     Gtk.HButtonBox w65 = new Gtk.HButtonBox();
                     w65.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                     w65.BorderWidth = ((uint)(3));
                     w65.Events = ((Gdk.EventMask)(0));
                     w65.Name = "hbuttonbox1";
                     // Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w66 = new Gtk.Button();
                     w66.CanFocus = true;
                     w66.Events = ((Gdk.EventMask)(0));
                     w66.Name = "buttonClose";
                     // Container child buttonClose.Gtk.Container+ContainerChild
                     Gtk.Alignment w67 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                     w67.Events = ((Gdk.EventMask)(0));
                     w67.Name = "GtkAlignment";
                     // Container child GtkAlignment.Gtk.Container+ContainerChild
                     Gtk.HBox w68 = new Gtk.HBox();
                     w68.Spacing = 2;
                     w68.Events = ((Gdk.EventMask)(0));
                     w68.Name = "GtkHBox";
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Image w69 = new Gtk.Image();
                     w69.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-close", 16, 0);
                     w69.Events = ((Gdk.EventMask)(0));
                     w69.Name = "image6";
                     bindings["image6"] = w69;
                     w68.Add(w69);
                     // Container child GtkHBox.Gtk.Container+ContainerChild
                     Gtk.Label w71 = new Gtk.Label();
                     w71.LabelProp = "Close";
                     w71.Events = ((Gdk.EventMask)(0));
                     w71.Name = "GtkLabel";
                     bindings["GtkLabel"] = w71;
                     w68.Add(w71);
                     bindings["GtkHBox"] = w68;
                     w67.Add(w68);
                     bindings["GtkAlignment"] = w67;
                     w66.Add(w67);
                     bindings["buttonClose"] = w66;
                     w65.Add(w66);
                     Gtk.ButtonBox.ButtonBoxChild w75 = ((Gtk.ButtonBox.ButtonBoxChild)(w65[w66]));
                     w75.Expand = false;
                     w75.Fill = false;
                     bindings["hbuttonbox1"] = w65;
                     w17.Add(w65);
                     Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(w17[w65]));
                     w76.Position = 7;
                     w76.Expand = false;
                     w76.Fill = false;
                     bindings["vbox1"] = w17;
                     cobj.Add(w17);
                     cobj.DefaultHeight = 480;
                     bindings["SharpTranslator.MainWindow"] = cobj;
                     w18.Show();
                     w20.Show();
                     w22.Show();
                     w25.Show();
                     w24.Show();
                     w29.Show();
                     w31.Show();
                     w37.Show();
                     w39.Show();
                     w36.Show();
                     w35.Show();
                     w33.Show();
                     w28.Show();
                     w46.Show();
                     w48.Show();
                     w53.Show();
                     w55.Show();
                     w52.Show();
                     w51.Show();
                     w50.Show();
                     w60.Show();
                     w45.Show();
                     w63.Show();
                     w69.Show();
                     w71.Show();
                     w68.Show();
                     w67.Show();
                     w66.Show();
                     w65.Show();
                     w17.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                     w5.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLearn")));
                     w7.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLearn")));
                     w13.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnAbout")));
                     w16.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                     w31.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearch")));
                     w33.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearch")));
                     w48.Activated += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearchExpression")));
                     w50.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnSearchExpression")));
                     w60.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnShowAll")));
                     w66.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                 }
             }
         }
     }
     System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance));
     for (int n = 0; (n < fields.Length); n = (n + 1)) {
         System.Reflection.FieldInfo field = fields[n];
         object widget = bindings[field.Name];
         if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) {
             field.SetValue(obj, widget);
         }
     }
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.ExportPOIDialog
     this.WidthRequest = 600;
     this.Name = "ocmgtk.ExportPOIDialog";
     this.Title = Mono.Unix.Catalog.GetString("Export Garmin POI");
     this.TypeHint = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     this.BorderWidth = ((uint)(6));
     this.Resizable = false;
     this.AllowGrow = false;
     this.SkipPagerHint = true;
     this.SkipTaskbarHint = true;
     // Internal child ocmgtk.ExportPOIDialog.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.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("File:");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.fileEntry = new Gtk.Entry();
     this.fileEntry.CanFocus = true;
     this.fileEntry.Name = "fileEntry";
     this.fileEntry.IsEditable = true;
     this.fileEntry.InvisibleChar = '●';
     this.hbox1.Add(this.fileEntry);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileEntry]));
     w3.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.fileButton = new Gtk.Button();
     this.fileButton.CanFocus = true;
     this.fileButton.Name = "fileButton";
     // Container child fileButton.Gtk.Container+ContainerChild
     this.image3 = new Gtk.Image();
     this.image3.Name = "image3";
     this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16);
     this.fileButton.Add(this.image3);
     this.fileButton.Label = null;
     this.hbox1.Add(this.fileButton);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileButton]));
     w5.Position = 2;
     w5.Expand = false;
     w5.Fill = false;
     this.vbox2.Add(this.hbox1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
     w6.Position = 0;
     w6.Expand = false;
     w6.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.table1 = new Gtk.Table(((uint)(9)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.catagoryEntry = new Gtk.Entry();
     this.catagoryEntry.CanFocus = true;
     this.catagoryEntry.Name = "catagoryEntry";
     this.catagoryEntry.Text = Mono.Unix.Catalog.GetString("Geocaches");
     this.catagoryEntry.IsEditable = true;
     this.catagoryEntry.InvisibleChar = '●';
     this.table1.Add(this.catagoryEntry);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.catagoryEntry]));
     w7.TopAttach = ((uint)(2));
     w7.BottomAttach = ((uint)(3));
     w7.LeftAttach = ((uint)(1));
     w7.RightAttach = ((uint)(2));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.descCombo = Gtk.ComboBox.NewText();
     this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Name"));
     this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Hint"));
     this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Type"));
     this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Full Paperless"));
     this.descCombo.Name = "descCombo";
     this.descCombo.Active = 0;
     this.table1.Add(this.descCombo);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.descCombo]));
     w8.TopAttach = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.LeftAttach = ((uint)(1));
     w8.RightAttach = ((uint)(2));
     w8.XOptions = ((Gtk.AttachOptions)(4));
     w8.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.includeBMPCheck = new Gtk.CheckButton();
     this.includeBMPCheck.CanFocus = true;
     this.includeBMPCheck.Name = "includeBMPCheck";
     this.includeBMPCheck.Label = Mono.Unix.Catalog.GetString("BMP Icon:");
     this.includeBMPCheck.DrawIndicator = true;
     this.includeBMPCheck.UseUnderline = true;
     this.hbox2.Add(this.includeBMPCheck);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.includeBMPCheck]));
     w9.Position = 0;
     w9.Expand = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.bmpFile = new Gtk.Entry();
     this.bmpFile.Sensitive = false;
     this.bmpFile.CanFocus = true;
     this.bmpFile.Name = "bmpFile";
     this.bmpFile.IsEditable = true;
     this.bmpFile.InvisibleChar = '●';
     this.hbox2.Add(this.bmpFile);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.bmpFile]));
     w10.Position = 1;
     // Container child hbox2.Gtk.Box+BoxChild
     this.bmpButton = new Gtk.Button();
     this.bmpButton.Sensitive = false;
     this.bmpButton.CanFocus = true;
     this.bmpButton.Name = "bmpButton";
     // Container child bmpButton.Gtk.Container+ContainerChild
     this.image4 = new Gtk.Image();
     this.image4.Name = "image4";
     this.image4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16);
     this.bmpButton.Add(this.image4);
     this.bmpButton.Label = null;
     this.hbox2.Add(this.bmpButton);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.bmpButton]));
     w12.Position = 2;
     w12.Expand = false;
     w12.Fill = false;
     this.table1.Add(this.hbox2);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
     w13.TopAttach = ((uint)(8));
     w13.BottomAttach = ((uint)(9));
     w13.RightAttach = ((uint)(2));
     w13.XOptions = ((Gtk.AttachOptions)(4));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.proxEntry = new Gtk.Entry();
     this.proxEntry.Sensitive = false;
     this.proxEntry.CanFocus = true;
     this.proxEntry.Name = "proxEntry";
     this.proxEntry.Text = Mono.Unix.Catalog.GetString("1");
     this.proxEntry.IsEditable = true;
     this.proxEntry.InvisibleChar = '●';
     this.hbox3.Add(this.proxEntry);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.proxEntry]));
     w14.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.proxCombo = Gtk.ComboBox.NewText();
     this.proxCombo.AppendText(Mono.Unix.Catalog.GetString("kilometers"));
     this.proxCombo.AppendText(Mono.Unix.Catalog.GetString("miles"));
     this.proxCombo.Sensitive = false;
     this.proxCombo.Name = "proxCombo";
     this.proxCombo.Active = 0;
     this.hbox3.Add(this.proxCombo);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.proxCombo]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     this.table1.Add(this.hbox3);
     Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.hbox3]));
     w16.TopAttach = ((uint)(3));
     w16.BottomAttach = ((uint)(4));
     w16.LeftAttach = ((uint)(1));
     w16.RightAttach = ((uint)(2));
     w16.XOptions = ((Gtk.AttachOptions)(4));
     w16.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.includeChildrenCheck = new Gtk.CheckButton();
     this.includeChildrenCheck.CanFocus = true;
     this.includeChildrenCheck.Name = "includeChildrenCheck";
     this.includeChildrenCheck.Label = Mono.Unix.Catalog.GetString("Include Child Waypoints");
     this.includeChildrenCheck.DrawIndicator = true;
     this.includeChildrenCheck.UseUnderline = true;
     this.table1.Add(this.includeChildrenCheck);
     Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.includeChildrenCheck]));
     w17.TopAttach = ((uint)(6));
     w17.BottomAttach = ((uint)(7));
     w17.RightAttach = ((uint)(2));
     w17.XOptions = ((Gtk.AttachOptions)(4));
     w17.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:");
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w18.XOptions = ((Gtk.AttachOptions)(4));
     w18.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 0F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Description:");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w19.TopAttach = ((uint)(1));
     w19.BottomAttach = ((uint)(2));
     w19.XOptions = ((Gtk.AttachOptions)(4));
     w19.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.Xalign = 0F;
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("Category:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w20.TopAttach = ((uint)(2));
     w20.BottomAttach = ((uint)(3));
     w20.XOptions = ((Gtk.AttachOptions)(4));
     w20.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.limitCaches = new Gtk.CheckButton();
     this.limitCaches.CanFocus = true;
     this.limitCaches.Name = "limitCaches";
     this.limitCaches.Label = Mono.Unix.Catalog.GetString("Limit Number of Geocaches");
     this.limitCaches.DrawIndicator = true;
     this.limitCaches.UseUnderline = true;
     this.table1.Add(this.limitCaches);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.limitCaches]));
     w21.TopAttach = ((uint)(4));
     w21.BottomAttach = ((uint)(5));
     w21.XOptions = ((Gtk.AttachOptions)(4));
     w21.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.limitEntry = new Gtk.Entry();
     this.limitEntry.Sensitive = false;
     this.limitEntry.CanFocus = true;
     this.limitEntry.Name = "limitEntry";
     this.limitEntry.Text = Mono.Unix.Catalog.GetString("1000");
     this.limitEntry.IsEditable = true;
     this.limitEntry.InvisibleChar = '●';
     this.table1.Add(this.limitEntry);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry]));
     w22.TopAttach = ((uint)(4));
     w22.BottomAttach = ((uint)(5));
     w22.LeftAttach = ((uint)(1));
     w22.RightAttach = ((uint)(2));
     w22.XOptions = ((Gtk.AttachOptions)(4));
     w22.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.logCheck = new Gtk.CheckButton();
     this.logCheck.CanFocus = true;
     this.logCheck.Name = "logCheck";
     this.logCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Logs");
     this.logCheck.DrawIndicator = true;
     this.logCheck.UseUnderline = true;
     this.table1.Add(this.logCheck);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.logCheck]));
     w23.TopAttach = ((uint)(5));
     w23.BottomAttach = ((uint)(6));
     w23.XOptions = ((Gtk.AttachOptions)(4));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.logEntry = new Gtk.Entry();
     this.logEntry.Sensitive = false;
     this.logEntry.CanFocus = true;
     this.logEntry.Name = "logEntry";
     this.logEntry.Text = Mono.Unix.Catalog.GetString("5");
     this.logEntry.IsEditable = true;
     this.logEntry.InvisibleChar = '●';
     this.table1.Add(this.logEntry);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.logEntry]));
     w24.TopAttach = ((uint)(5));
     w24.BottomAttach = ((uint)(6));
     w24.LeftAttach = ((uint)(1));
     w24.RightAttach = ((uint)(2));
     w24.XOptions = ((Gtk.AttachOptions)(4));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.nameCombo = Gtk.ComboBox.NewText();
     this.nameCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code"));
     this.nameCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Name"));
     this.nameCombo.Name = "nameCombo";
     this.nameCombo.Active = 0;
     this.table1.Add(this.nameCombo);
     Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.nameCombo]));
     w25.LeftAttach = ((uint)(1));
     w25.RightAttach = ((uint)(2));
     w25.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.proximityAlertCheck = new Gtk.CheckButton();
     this.proximityAlertCheck.CanFocus = true;
     this.proximityAlertCheck.Name = "proximityAlertCheck";
     this.proximityAlertCheck.Label = Mono.Unix.Catalog.GetString("Proximity Alert:");
     this.proximityAlertCheck.DrawIndicator = true;
     this.proximityAlertCheck.UseUnderline = true;
     this.table1.Add(this.proximityAlertCheck);
     Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.proximityAlertCheck]));
     w26.TopAttach = ((uint)(3));
     w26.BottomAttach = ((uint)(4));
     w26.XOptions = ((Gtk.AttachOptions)(4));
     w26.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.useHTMLCheck = new Gtk.CheckButton();
     this.useHTMLCheck.CanFocus = true;
     this.useHTMLCheck.Name = "useHTMLCheck";
     this.useHTMLCheck.Label = Mono.Unix.Catalog.GetString("Convert HTML to Plain Text");
     this.useHTMLCheck.DrawIndicator = true;
     this.useHTMLCheck.UseUnderline = true;
     this.table1.Add(this.useHTMLCheck);
     Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.useHTMLCheck]));
     w27.TopAttach = ((uint)(7));
     w27.BottomAttach = ((uint)(8));
     w27.RightAttach = ((uint)(2));
     w27.XOptions = ((Gtk.AttachOptions)(4));
     w27.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment2.Add(this.table1);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel4 = new Gtk.Label();
     this.GtkLabel4.Name = "GtkLabel4";
     this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>POI Options</b>");
     this.GtkLabel4.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel4;
     this.vbox2.Add(this.frame1);
     Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1]));
     w30.Position = 1;
     w30.Expand = false;
     w30.Fill = false;
     w1.Add(this.vbox2);
     Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
     w31.Position = 0;
     w31.Expand = false;
     w31.Fill = false;
     // Internal child ocmgtk.ExportPOIDialog.ActionArea
     Gtk.HButtonBox w32 = this.ActionArea;
     w32.Name = "dialog1_ActionArea";
     w32.Spacing = 10;
     w32.BorderWidth = ((uint)(5));
     w32.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonCancel]));
     w33.Expand = false;
     w33.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonOk]));
     w34.Position = 1;
     w34.Expand = false;
     w34.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 612;
     this.DefaultHeight = 415;
     this.Show();
     this.fileButton.Clicked += new System.EventHandler(this.OnFileClick);
     this.proximityAlertCheck.Toggled += new System.EventHandler(this.OnProxToggle);
     this.logCheck.Toggled += new System.EventHandler(this.OnLogToggle);
     this.limitCaches.Toggled += new System.EventHandler(this.OnCacheToggle);
     this.includeBMPCheck.Toggled += new System.EventHandler(this.OnBMPToggle);
     this.bmpButton.Clicked += new System.EventHandler(this.OnBMPClick);
     this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick);
     this.buttonOk.Clicked += new System.EventHandler(this.OnOKClick);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget LinuxGUITest.BalanceBoardInformation
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     Gtk.UIManager w2 = new Gtk.UIManager();
     Gtk.ActionGroup w3 = new Gtk.ActionGroup("Default");
     this.BalanceBoardAction = new Gtk.Action("BalanceBoardAction", Mono.Unix.Catalog.GetString("BalanceBoard"), null, null);
     this.BalanceBoardAction.ShortLabel = Mono.Unix.Catalog.GetString("BalanceBoard");
     w3.Add(this.BalanceBoardAction, null);
     this.DisconnectAction = new Gtk.Action("DisconnectAction", Mono.Unix.Catalog.GetString("Disconnect"), null, null);
     this.DisconnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect");
     w3.Add(this.DisconnectAction, null);
     w2.InsertActionGroup(w3, 0);
     this.Name = "LinuxGUITest.BalanceBoardInformation";
     // Container child LinuxGUITest.BalanceBoardInformation.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     w2.AddUiFromString("<ui><menubar name='menubar1'><menu action='BalanceBoardAction'><menuitem action='DisconnectAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w2.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hseparator2 = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.vbox1.Add(this.hseparator2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator2]));
     w5.Position = 1;
     w5.Expand = false;
     w5.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.checkboxLed = new Gtk.CheckButton();
     this.checkboxLed.CanFocus = true;
     this.checkboxLed.Name = "checkboxLed";
     this.checkboxLed.Label = Mono.Unix.Catalog.GetString("Led");
     this.checkboxLed.DrawIndicator = true;
     this.checkboxLed.UseUnderline = true;
     this.hbox4.Add(this.checkboxLed);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.checkboxLed]));
     w6.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.lblButton = new Gtk.Label();
     this.lblButton.Name = "lblButton";
     this.lblButton.LabelProp = Mono.Unix.Catalog.GetString("Button");
     this.hbox4.Add(this.lblButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.lblButton]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbox4.Gtk.Box+BoxChild
     this.entryButton = new Gtk.Entry();
     this.entryButton.CanFocus = true;
     this.entryButton.Name = "entryButton";
     this.entryButton.IsEditable = false;
     this.entryButton.InvisibleChar = '●';
     this.hbox4.Add(this.entryButton);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.entryButton]));
     w8.Position = 2;
     this.vbox1.Add(this.hbox4);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4]));
     w9.Position = 2;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.table4 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table4.Name = "table4";
     this.table4.RowSpacing = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.entryBottomLeft = new Gtk.Entry();
     this.entryBottomLeft.CanFocus = true;
     this.entryBottomLeft.Name = "entryBottomLeft";
     this.entryBottomLeft.IsEditable = false;
     this.entryBottomLeft.InvisibleChar = '●';
     this.table4.Add(this.entryBottomLeft);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomLeft]));
     w10.TopAttach = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryBottomRight = new Gtk.Entry();
     this.entryBottomRight.CanFocus = true;
     this.entryBottomRight.Name = "entryBottomRight";
     this.entryBottomRight.IsEditable = false;
     this.entryBottomRight.InvisibleChar = '●';
     this.table4.Add(this.entryBottomRight);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomRight]));
     w11.TopAttach = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.LeftAttach = ((uint)(1));
     w11.RightAttach = ((uint)(2));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryTopLeft = new Gtk.Entry();
     this.entryTopLeft.CanFocus = true;
     this.entryTopLeft.Name = "entryTopLeft";
     this.entryTopLeft.IsEditable = false;
     this.entryTopLeft.InvisibleChar = '●';
     this.table4.Add(this.entryTopLeft);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table4[this.entryTopLeft]));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.entryTopRight = new Gtk.Entry();
     this.entryTopRight.CanFocus = true;
     this.entryTopRight.Name = "entryTopRight";
     this.entryTopRight.IsEditable = false;
     this.entryTopRight.InvisibleChar = '●';
     this.table4.Add(this.entryTopRight);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table4[this.entryTopRight]));
     w13.LeftAttach = ((uint)(1));
     w13.RightAttach = ((uint)(2));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox3.Add(this.table4);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.table4]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.lblTotalWeight = new Gtk.Label();
     this.lblTotalWeight.Name = "lblTotalWeight";
     this.lblTotalWeight.LabelProp = Mono.Unix.Catalog.GetString("Total Weight");
     this.hbox3.Add(this.lblTotalWeight);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblTotalWeight]));
     w15.Position = 0;
     w15.Expand = false;
     w15.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryTotalWeight = new Gtk.Entry();
     this.entryTotalWeight.CanFocus = true;
     this.entryTotalWeight.Name = "entryTotalWeight";
     this.entryTotalWeight.IsEditable = false;
     this.entryTotalWeight.InvisibleChar = '●';
     this.hbox3.Add(this.entryTotalWeight);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryTotalWeight]));
     w16.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.entryAverageWeight = new Gtk.Entry();
     this.entryAverageWeight.CanFocus = true;
     this.entryAverageWeight.Name = "entryAverageWeight";
     this.entryAverageWeight.IsEditable = false;
     this.entryAverageWeight.InvisibleChar = '●';
     this.hbox3.Add(this.entryAverageWeight);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryAverageWeight]));
     w17.PackType = ((Gtk.PackType)(1));
     w17.Position = 2;
     // Container child hbox3.Gtk.Box+BoxChild
     this.labelAverageWeight = new Gtk.Label();
     this.labelAverageWeight.Name = "labelAverageWeight";
     this.labelAverageWeight.LabelProp = Mono.Unix.Catalog.GetString("Average");
     this.hbox3.Add(this.labelAverageWeight);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.labelAverageWeight]));
     w18.PackType = ((Gtk.PackType)(1));
     w18.Position = 3;
     w18.Expand = false;
     w18.Fill = false;
     this.vbox3.Add(this.hbox3);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     this.GtkAlignment.Add(this.vbox3);
     this.frame1.Add(this.GtkAlignment);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Weight Sensors</b>");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel2;
     this.vbox1.Add(this.frame1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1]));
     w22.Position = 3;
     w22.Expand = false;
     w22.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.frame2 = new Gtk.Frame();
     this.frame2.Name = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame2.Gtk.Container+ContainerChild
     this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.drawingareaBalance = new Gtk.DrawingArea();
     this.drawingareaBalance.Name = "drawingareaBalance";
     this.GtkAlignment1.Add(this.drawingareaBalance);
     this.frame2.Add(this.GtkAlignment1);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Balance</b>");
     this.GtkLabel3.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel3;
     this.vbox1.Add(this.frame2);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2]));
     w25.Position = 4;
     // 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.btnUpdateBattery = new Gtk.Button();
     this.btnUpdateBattery.CanFocus = true;
     this.btnUpdateBattery.Name = "btnUpdateBattery";
     this.btnUpdateBattery.UseUnderline = true;
     this.btnUpdateBattery.Label = Mono.Unix.Catalog.GetString("Update Battery");
     this.hbox1.Add(this.btnUpdateBattery);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnUpdateBattery]));
     w26.Position = 0;
     w26.Expand = false;
     w26.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.progressbar1 = new Gtk.ProgressBar();
     this.progressbar1.Name = "progressbar1";
     this.hbox1.Add(this.progressbar1);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox1[this.progressbar1]));
     w27.Position = 1;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w28.Position = 5;
     w28.Expand = false;
     w28.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(w2);
     this.Show();
     this.DisconnectAction.Activated += new System.EventHandler(this.OnDisconnectActionActivated);
     this.checkboxLed.Pressed += new System.EventHandler(this.OnCheckboxLedPressed);
     this.drawingareaBalance.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingareaBalanceExposeEvent);
     this.btnUpdateBattery.Pressed += new System.EventHandler(this.OnBtnUpdateBatteryPressed);
 }
예제 #50
0
 static BooleanEditorCell()
 {
     Gtk.CheckButton cb = new Gtk.CheckButton();
     indicatorSize    = (int)cb.StyleGetProperty("indicator-size");
     indicatorSpacing = (int)cb.StyleGetProperty("indicator-spacing");
 }
예제 #51
0
 public override void Initialize()
 {
     Widget = new Gtk.CheckButton ();
     Widget.Show ();
 }
예제 #52
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HGDGTK.HGDLogin
     this.Name = "HGDGTK.HGDLogin";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     this.Resizable = false;
     this.AllowGrow = false;
     // Internal child HGDGTK.HGDLogin.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     this.table1.BorderWidth = ((uint)(9));
     // Container child table1.Gtk.Table+TableChild
     this.hostname_cmd = Gtk.ComboBoxEntry.NewText();
     this.hostname_cmd.Name = "hostname_cmd";
     this.table1.Add(this.hostname_cmd);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.hostname_cmd]));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Host:");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label4 = new Gtk.Label();
     this.label4.Name = "label4";
     this.label4.LabelProp = Mono.Unix.Catalog.GetString("User Name:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"password_txt";
     this.password_txt.IsEditable = true;
     this.password_txt.Visibility = false;
     this.password_txt.InvisibleChar = '●';
     this.table1.Add(this.password_txt);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.password_txt]));
     w6.TopAttach = ((uint)(2));
     w6.BottomAttach = ((uint)(3));
     w6.LeftAttach = ((uint)(1));
     w6.RightAttach = ((uint)(2));
     w6.XOptions = ((Gtk.AttachOptions)(4));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.username_cmd = Gtk.ComboBoxEntry.NewText();
     this.username_cmd.Name = "username_cmd";
     this.table1.Add(this.username_cmd);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.username_cmd]));
     w7.TopAttach = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.LeftAttach = ((uint)(1));
     w7.RightAttach = ((uint)(2));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     w1.Add(this.table1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.table1]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.autologin = new Gtk.CheckButton();
     this.autologin.CanFocus = true;
     this.autologin.Name = "autologin";
     this.autologin.Label = Mono.Unix.Catalog.GetString("auto login");
     this.autologin.Active = true;
     this.autologin.DrawIndicator = true;
     this.autologin.UseUnderline = true;
     w1.Add(this.autologin);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.autologin]));
     w9.Position = 1;
     // Internal child HGDGTK.HGDLogin.ActionArea
     Gtk.HButtonBox w10 = this.ActionArea;
     w10.Name = "dialog1_ActionArea";
     w10.Spacing = 10;
     w10.BorderWidth = ((uint)(5));
     w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel]));
     w11.Expand = false;
     w11.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk]));
     w12.Position = 1;
     w12.Expand = false;
     w12.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 185;
     this.Show();
     this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
     this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
 }
        bool FillIdentities(SigningIdentityCombo combo, string preferredPrefix, string excludePrefix,
                            Gtk.CheckButton enabledCheck, Gtk.Image errorImage)
        {
            combo.ClearList();

            var preferred = new List <string> ();
            var other     = new List <string> ();

            foreach (var cert in certs)
            {
                var name = Keychain.GetCertificateCommonName(cert);
                if (excludePrefix != null && name.StartsWith(excludePrefix))
                {
                    continue;
                }
                if (name.StartsWith(preferredPrefix))
                {
                    preferred.Add(name);
                }
                else
                {
                    other.Add(name);
                }
            }

            //disable signing options and show message if no keys found
            if (preferred.Count == 0 && other.Count == 0)
            {
                enabledCheck.Sensitive = false;
                if (errorImage != null)
                {
                    errorImage.Visible = true;
                }
                return(false);
            }
            else
            {
                enabledCheck.Sensitive = true;
                if (errorImage != null)
                {
                    errorImage.Visible = false;
                }
            }

            if (preferred.Count > 0)
            {
                combo.AddItemWithMarkup(GettextCatalog.GetString("<b>Default App Store Identity</b>"), "", null);
                combo.AddSeparator();
                foreach (var name in preferred)
                {
                    combo.AddItem(name, name, null);
                }
            }

            if (other.Count > 0)
            {
                if (preferred.Any())
                {
                    combo.AddSeparator();
                }
                foreach (var name in other)
                {
                    combo.AddItem(name, name, null);
                }
            }
            return(true);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OffLineLogViewer
     this.WidthRequest = 600;
     this.HeightRequest = 400;
     this.Name = "ocmgtk.OffLineLogViewer";
     this.Title = Mono.Unix.Catalog.GetString("View Field Notes...");
     this.TypeHint = ((Gdk.WindowTypeHint)(1));
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Modal = true;
     this.BorderWidth = ((uint)(6));
     this.AllowShrink = true;
     this.Gravity = ((Gdk.Gravity)(5));
     this.SkipPagerHint = true;
     this.SkipTaskbarHint = true;
     // Internal child ocmgtk.OffLineLogViewer.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.Spacing = 6;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.vpaned1 = new Gtk.VPaned();
     this.vpaned1.CanFocus = true;
     this.vpaned1.Name = "vpaned1";
     this.vpaned1.Position = 250;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.image11 = new Gtk.Image();
     this.image11.Name = "image11";
     this.image11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.LargeToolbar, 24);
     this.hbox1.Add(this.image11);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image11]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.fnFieldNotesLabel = new Gtk.Label();
     this.fnFieldNotesLabel.Name = "fnFieldNotesLabel";
     this.fnFieldNotesLabel.LabelProp = Mono.Unix.Catalog.GetString("Please wait...");
     this.hbox1.Add(this.fnFieldNotesLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.fnFieldNotesLabel]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     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.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox3.Add(this.hseparator1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     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.logView = new Gtk.TreeView();
     this.logView.CanFocus = true;
     this.logView.Name = "logView";
     this.logView.EnableSearch = false;
     this.scrolledwindow1.Add(this.logView);
     this.hbox2.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.scrolledwindow1]));
     w7.Position = 0;
     // Container child hbox2.Gtk.Box+BoxChild
     this.vbuttonbox1 = new Gtk.VButtonBox();
     this.vbuttonbox1.Name = "vbuttonbox1";
     this.vbuttonbox1.Spacing = 6;
     this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.viewCacheButton = new Gtk.Button();
     this.viewCacheButton.Sensitive = false;
     this.viewCacheButton.CanFocus = true;
     this.viewCacheButton.Name = "viewCacheButton";
     this.viewCacheButton.UseUnderline = true;
     this.viewCacheButton.Label = Mono.Unix.Catalog.GetString("View Cache");
     this.vbuttonbox1.Add(this.viewCacheButton);
     Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.viewCacheButton]));
     w8.Expand = false;
     w8.Fill = false;
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.deleteButton = new Gtk.Button();
     this.deleteButton.Sensitive = false;
     this.deleteButton.CanFocus = true;
     this.deleteButton.Name = "deleteButton";
     this.deleteButton.UseStock = true;
     this.deleteButton.UseUnderline = true;
     this.deleteButton.Label = "gtk-delete";
     this.vbuttonbox1.Add(this.deleteButton);
     Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.deleteButton]));
     w9.Position = 1;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
     this.delAllButton = new Gtk.Button();
     this.delAllButton.CanFocus = true;
     this.delAllButton.Name = "delAllButton";
     this.delAllButton.UseUnderline = true;
     this.delAllButton.Label = Mono.Unix.Catalog.GetString("Delete All");
     this.vbuttonbox1.Add(this.delAllButton);
     Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.delAllButton]));
     w10.Position = 2;
     w10.Expand = false;
     w10.Fill = false;
     this.hbox2.Add(this.vbuttonbox1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbuttonbox1]));
     w11.Position = 1;
     w11.Expand = false;
     w11.Fill = false;
     w11.Padding = ((uint)(6));
     this.vbox3.Add(this.hbox2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2]));
     w12.Position = 2;
     this.vpaned1.Add(this.vbox3);
     Gtk.Paned.PanedChild w13 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox3]));
     w13.Resize = false;
     // Container child vpaned1.Gtk.Paned+PanedChild
     this.fieldNotesDescPane = new Gtk.Notebook();
     this.fieldNotesDescPane.Sensitive = false;
     this.fieldNotesDescPane.CanFocus = true;
     this.fieldNotesDescPane.Name = "fieldNotesDescPane";
     this.fieldNotesDescPane.CurrentPage = 0;
     this.fieldNotesDescPane.TabPos = ((Gtk.PositionType)(0));
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.logPane = new Gtk.VBox();
     this.logPane.Name = "logPane";
     this.logPane.Spacing = 6;
     this.logPane.BorderWidth = ((uint)(6));
     // Container child logPane.Gtk.Box+BoxChild
     this.hbox5 = new Gtk.HBox();
     this.hbox5.Name = "hbox5";
     this.hbox5.Spacing = 6;
     // Container child hbox5.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Log Type:");
     this.hbox5.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox5[this.label1]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child hbox5.Gtk.Box+BoxChild
     this.logChoice = Gtk.ComboBox.NewText();
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Found it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Didn't Find it"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Write Note"));
     this.logChoice.AppendText(Mono.Unix.Catalog.GetString("Needs Maintenance"));
     this.logChoice.Name = "logChoice";
     this.logChoice.Active = 0;
     this.hbox5.Add(this.logChoice);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox5[this.logChoice]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     this.logPane.Add(this.hbox5);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.logPane[this.hbox5]));
     w16.Position = 0;
     w16.Expand = false;
     w16.Fill = false;
     // Container child logPane.Gtk.Box+BoxChild
     this.hbox4 = new Gtk.HBox();
     this.hbox4.Name = "hbox4";
     this.hbox4.Spacing = 6;
     // Container child hbox4.Gtk.Box+BoxChild
     this.firstToFindCheck = new Gtk.CheckButton();
     this.firstToFindCheck.CanFocus = true;
     this.firstToFindCheck.Name = "firstToFindCheck";
     this.firstToFindCheck.Label = Mono.Unix.Catalog.GetString("First To Find");
     this.firstToFindCheck.DrawIndicator = true;
     this.firstToFindCheck.UseUnderline = true;
     this.hbox4.Add(this.firstToFindCheck);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox4[this.firstToFindCheck]));
     w17.Position = 0;
     // Container child hbox4.Gtk.Box+BoxChild
     this.saveButton = new Gtk.Button();
     this.saveButton.CanFocus = true;
     this.saveButton.Name = "saveButton";
     this.saveButton.UseStock = true;
     this.saveButton.UseUnderline = true;
     this.saveButton.Label = "gtk-save";
     this.hbox4.Add(this.saveButton);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox4[this.saveButton]));
     w18.Position = 1;
     w18.Expand = false;
     w18.Fill = false;
     this.logPane.Add(this.hbox4);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.logPane[this.hbox4]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     // Container child logPane.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.logEntry = new Gtk.TextView();
     this.logEntry.CanFocus = true;
     this.logEntry.Name = "logEntry";
     this.logEntry.WrapMode = ((Gtk.WrapMode)(2));
     this.GtkScrolledWindow.Add(this.logEntry);
     this.logPane.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.logPane[this.GtkScrolledWindow]));
     w21.Position = 2;
     this.fieldNotesDescPane.Add(this.logPane);
     // Notebook tab
     this.logPage = new Gtk.Label();
     this.logPage.Name = "logPage";
     this.logPage.LabelProp = Mono.Unix.Catalog.GetString("Field Log");
     this.fieldNotesDescPane.SetTabLabel(this.logPane, this.logPage);
     this.logPage.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     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 = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.wptCombo = new Gtk.Label();
     this.wptCombo.Name = "wptCombo";
     this.wptCombo.LabelProp = Mono.Unix.Catalog.GetString("Waypoint:");
     this.hbox3.Add(this.wptCombo);
     Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox3[this.wptCombo]));
     w23.Position = 0;
     w23.Expand = false;
     w23.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.waypointCombo = Gtk.ComboBox.NewText();
     this.waypointCombo.Name = "waypointCombo";
     this.hbox3.Add(this.waypointCombo);
     Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox3[this.waypointCombo]));
     w24.Position = 1;
     w24.Expand = false;
     w24.Fill = false;
     this.vbox2.Add(this.hbox3);
     Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox3]));
     w25.Position = 0;
     w25.Expand = false;
     w25.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.mapView = new ocmgtk.MapWidget();
     this.mapView.Events = ((Gdk.EventMask)(256));
     this.mapView.Name = "mapView";
     this.mapView.ShowNearby = false;
     this.mapView.ShowAllChildren = false;
     this.vbox2.Add(this.mapView);
     Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox2[this.mapView]));
     w26.Position = 1;
     this.fieldNotesDescPane.Add(this.vbox2);
     Gtk.Notebook.NotebookChild w27 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.vbox2]));
     w27.Position = 1;
     // Notebook tab
     this.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Map");
     this.fieldNotesDescPane.SetTabLabel(this.vbox2, this.label7);
     this.label7.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheDesc = new ocmgtk.HTMLWidget();
     this.cacheDesc.Events = ((Gdk.EventMask)(256));
     this.cacheDesc.Name = "cacheDesc";
     this.fieldNotesDescPane.Add(this.cacheDesc);
     Gtk.Notebook.NotebookChild w28 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheDesc]));
     w28.Position = 2;
     // Notebook tab
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Cache Description");
     this.fieldNotesDescPane.SetTabLabel(this.cacheDesc, this.label5);
     this.label5.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheLog = new ocmgtk.HTMLWidget();
     this.cacheLog.Events = ((Gdk.EventMask)(256));
     this.cacheLog.Name = "cacheLog";
     this.fieldNotesDescPane.Add(this.cacheLog);
     Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheLog]));
     w29.Position = 3;
     // Notebook tab
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Cache Logs");
     this.fieldNotesDescPane.SetTabLabel(this.cacheLog, this.label8);
     this.label8.ShowAll();
     // Container child fieldNotesDescPane.Gtk.Notebook+NotebookChild
     this.cacheNotes = new ocmgtk.NotesWidget();
     this.cacheNotes.Events = ((Gdk.EventMask)(256));
     this.cacheNotes.Name = "cacheNotes";
     this.fieldNotesDescPane.Add(this.cacheNotes);
     Gtk.Notebook.NotebookChild w30 = ((Gtk.Notebook.NotebookChild)(this.fieldNotesDescPane[this.cacheNotes]));
     w30.Position = 4;
     // Notebook tab
     this.notesLabel = new Gtk.Label();
     this.notesLabel.Name = "notesLabel";
     this.notesLabel.LabelProp = Mono.Unix.Catalog.GetString("Notes");
     this.fieldNotesDescPane.SetTabLabel(this.cacheNotes, this.notesLabel);
     this.notesLabel.ShowAll();
     this.vpaned1.Add(this.fieldNotesDescPane);
     w1.Add(this.vpaned1);
     Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(w1[this.vpaned1]));
     w32.Position = 0;
     // Internal child ocmgtk.OffLineLogViewer.ActionArea
     Gtk.HButtonBox w33 = this.ActionArea;
     w33.Name = "dialog1_ActionArea";
     w33.Spacing = 10;
     w33.BorderWidth = ((uint)(5));
     w33.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.closeButton = new Gtk.Button();
     this.closeButton.CanDefault = true;
     this.closeButton.CanFocus = true;
     this.closeButton.Name = "closeButton";
     this.closeButton.UseStock = true;
     this.closeButton.UseUnderline = true;
     this.closeButton.Label = "gtk-close";
     this.AddActionWidget(this.closeButton, -7);
     Gtk.ButtonBox.ButtonBoxChild w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w33[this.closeButton]));
     w34.Expand = false;
     w34.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 839;
     this.DefaultHeight = 566;
     this.closeButton.HasDefault = true;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnCloseClick);
     this.viewCacheButton.Clicked += new System.EventHandler(this.OnViewCache);
     this.deleteButton.Clicked += new System.EventHandler(this.OnDeleteClick);
     this.delAllButton.Clicked += new System.EventHandler(this.OnDeleteAllClick);
     this.logChoice.Changed += new System.EventHandler(this.OnLogTypeChange);
     this.firstToFindCheck.Toggled += new System.EventHandler(this.OnFTFCheck);
     this.saveButton.Clicked += new System.EventHandler(this.OnSaveClick);
     this.closeButton.Clicked += new System.EventHandler(this.OnCloseClick);
 }
예제 #55
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.GPSDConfig
     this.Name           = "ocmgtk.GPSDConfig";
     this.Title          = Mono.Unix.Catalog.GetString("Configure GPSD...");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth    = ((uint)(6));
     // Internal child ocmgtk.GPSDConfig.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name        = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.table1               = new Gtk.Table(((uint)(4)), ((uint)(3)), false);
     this.table1.Name          = "table1";
     this.table1.RowSpacing    = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.table1.Add(this.hseparator1);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.hseparator1]));
     w2.TopAttach    = ((uint)(2));
     w2.BottomAttach = ((uint)(3));
     w2.RightAttach  = ((uint)(3));
     w2.XOptions     = ((Gtk.AttachOptions)(4));
     w2.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Poll Interval:");
     this.table1.Add(this.label1);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
     w3.TopAttach    = ((uint)(3));
     w3.BottomAttach = ((uint)(4));
     w3.XOptions     = ((Gtk.AttachOptions)(4));
     w3.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label2           = new Gtk.Label();
     this.label2.Name      = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("seconds");
     this.table1.Add(this.label2);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
     w4.TopAttach    = ((uint)(3));
     w4.BottomAttach = ((uint)(4));
     w4.LeftAttach   = ((uint)(2));
     w4.RightAttach  = ((uint)(3));
     w4.XOptions     = ((Gtk.AttachOptions)(4));
     w4.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.pollEntry               = new Gtk.Entry();
     this.pollEntry.CanFocus      = true;
     this.pollEntry.Name          = "pollEntry";
     this.pollEntry.Text          = Mono.Unix.Catalog.GetString("30");
     this.pollEntry.IsEditable    = true;
     this.pollEntry.InvisibleChar = '•';
     this.table1.Add(this.pollEntry);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.pollEntry]));
     w5.TopAttach    = ((uint)(3));
     w5.BottomAttach = ((uint)(4));
     w5.LeftAttach   = ((uint)(1));
     w5.RightAttach  = ((uint)(2));
     w5.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.recenterCheck               = new Gtk.CheckButton();
     this.recenterCheck.CanFocus      = true;
     this.recenterCheck.Name          = "recenterCheck";
     this.recenterCheck.Label         = Mono.Unix.Catalog.GetString("Continuously Recenter Map");
     this.recenterCheck.Active        = true;
     this.recenterCheck.DrawIndicator = true;
     this.recenterCheck.UseUnderline  = true;
     this.table1.Add(this.recenterCheck);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.recenterCheck]));
     w6.TopAttach    = ((uint)(1));
     w6.BottomAttach = ((uint)(2));
     w6.RightAttach  = ((uint)(3));
     w6.XOptions     = ((Gtk.AttachOptions)(4));
     w6.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.startupCheck               = new Gtk.CheckButton();
     this.startupCheck.CanFocus      = true;
     this.startupCheck.Name          = "startupCheck";
     this.startupCheck.Label         = Mono.Unix.Catalog.GetString("Enable On Startup");
     this.startupCheck.DrawIndicator = true;
     this.startupCheck.UseUnderline  = true;
     this.startupCheck.FocusOnClick  = false;
     this.table1.Add(this.startupCheck);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.startupCheck]));
     w7.RightAttach = ((uint)(3));
     w7.XOptions    = ((Gtk.AttachOptions)(4));
     w7.YOptions    = ((Gtk.AttachOptions)(4));
     w1.Add(this.table1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.table1]));
     w8.Position = 0;
     w8.Expand   = false;
     w8.Fill     = false;
     // Internal child ocmgtk.GPSDConfig.ActionArea
     Gtk.HButtonBox w9 = this.ActionArea;
     w9.Name        = "dialog1_ActionArea";
     w9.Spacing     = 10;
     w9.BorderWidth = ((uint)(5));
     w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel              = new Gtk.Button();
     this.buttonCancel.CanDefault   = true;
     this.buttonCancel.CanFocus     = true;
     this.buttonCancel.Name         = "buttonCancel";
     this.buttonCancel.UseStock     = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label        = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel]));
     w10.Expand = false;
     w10.Fill   = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk              = new Gtk.Button();
     this.buttonOk.CanDefault   = true;
     this.buttonOk.CanFocus     = true;
     this.buttonOk.Name         = "buttonOk";
     this.buttonOk.UseStock     = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label        = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk]));
     w11.Position = 1;
     w11.Expand   = false;
     w11.Fill     = false;
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 425;
     this.DefaultHeight = 195;
     this.Show();
     this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
     this.buttonOk.Clicked     += new System.EventHandler(this.OnOK);
 }
예제 #56
0
        private Gtk.CheckButton CreateCheckBox(string caption, object o, MemberInfo member, object[] attributes)
        {
            Gtk.CheckButton widget = new Gtk.CheckButton ();

            widget.Label = caption;
            widget.Active = (bool)GetValue (member, o);

            widget.Toggled += delegate (object sender, EventArgs e) {
                SetValue (member, o, widget.Active);
            };

            return widget;
        }
예제 #57
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.GPXWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.GPXWidget";
     // Container child ocmgtk.GPXWidget.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     this.vbox3.BorderWidth = ((uint)(6));
     // Container child vbox3.Gtk.Box+BoxChild
     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.limitCheck = new Gtk.CheckButton();
     this.limitCheck.CanFocus = true;
     this.limitCheck.Name = "limitCheck";
     this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Caches");
     this.limitCheck.DrawIndicator = true;
     this.limitCheck.UseUnderline = true;
     this.table1.Add(this.limitCheck);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck]));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.limitEntry = new Gtk.Entry();
     this.limitEntry.Sensitive = false;
     this.limitEntry.CanFocus = true;
     this.limitEntry.Name = "limitEntry";
     this.limitEntry.Text = "1000";
     this.limitEntry.IsEditable = true;
     this.limitEntry.InvisibleChar = '•';
     this.table1.Add(this.limitEntry);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry]));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.logLimitCheck = new Gtk.CheckButton();
     this.logLimitCheck.CanFocus = true;
     this.logLimitCheck.Name = "logLimitCheck";
     this.logLimitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Logs");
     this.logLimitCheck.Active = true;
     this.logLimitCheck.DrawIndicator = true;
     this.logLimitCheck.UseUnderline = true;
     this.table1.Add(this.logLimitCheck);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.logLimitCheck]));
     w3.TopAttach = ((uint)(1));
     w3.BottomAttach = ((uint)(2));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.logLimitEntry = new Gtk.Entry();
     this.logLimitEntry.CanFocus = true;
     this.logLimitEntry.Name = "logLimitEntry";
     this.logLimitEntry.Text = Mono.Unix.Catalog.GetString("5");
     this.logLimitEntry.IsEditable = true;
     this.logLimitEntry.InvisibleChar = '•';
     this.table1.Add(this.logLimitEntry);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.logLimitEntry]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.LeftAttach = ((uint)(1));
     w4.RightAttach = ((uint)(2));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox3.Add(this.table1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.table1]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.table2 = new Gtk.Table(((uint)(4)), ((uint)(3)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.attrCheck = new Gtk.CheckButton();
     this.attrCheck.CanFocus = true;
     this.attrCheck.Name = "attrCheck";
     this.attrCheck.Label = Mono.Unix.Catalog.GetString("Include Attributes in Description");
     this.attrCheck.Active = true;
     this.attrCheck.DrawIndicator = true;
     this.attrCheck.UseUnderline = true;
     this.table2.Add(this.attrCheck);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.attrCheck]));
     w6.RightAttach = ((uint)(2));
     w6.XOptions = ((Gtk.AttachOptions)(4));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.autoNameRado = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Auto name on internal drive"));
     this.autoNameRado.CanFocus = true;
     this.autoNameRado.Name = "autoNameRado";
     this.autoNameRado.Active = true;
     this.autoNameRado.DrawIndicator = true;
     this.autoNameRado.UseUnderline = true;
     this.autoNameRado.Group = new GLib.SList(System.IntPtr.Zero);
     this.table2.Add(this.autoNameRado);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2[this.autoNameRado]));
     w7.TopAttach = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.XOptions = ((Gtk.AttachOptions)(4));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.fieldBrowseButton = new Gtk.Button();
     this.fieldBrowseButton.CanFocus = true;
     this.fieldBrowseButton.Name = "fieldBrowseButton";
     // Container child fieldBrowseButton.Gtk.Container+ContainerChild
     this.image21 = new Gtk.Image();
     this.image21.Name = "image21";
     this.image21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Button, 20);
     this.fieldBrowseButton.Add(this.image21);
     this.fieldBrowseButton.Label = null;
     this.table2.Add(this.fieldBrowseButton);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table2[this.fieldBrowseButton]));
     w9.TopAttach = ((uint)(3));
     w9.BottomAttach = ((uint)(4));
     w9.LeftAttach = ((uint)(2));
     w9.RightAttach = ((uint)(3));
     w9.XOptions = ((Gtk.AttachOptions)(4));
     w9.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.fieldNotesEntry = new Gtk.Entry();
     this.fieldNotesEntry.CanFocus = true;
     this.fieldNotesEntry.Name = "fieldNotesEntry";
     this.fieldNotesEntry.Text = "/media/GARMIN/Garmin/geocache_visits.txt";
     this.fieldNotesEntry.IsEditable = true;
     this.fieldNotesEntry.InvisibleChar = '•';
     this.table2.Add(this.fieldNotesEntry);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table2[this.fieldNotesEntry]));
     w10.TopAttach = ((uint)(3));
     w10.BottomAttach = ((uint)(4));
     w10.LeftAttach = ((uint)(1));
     w10.RightAttach = ((uint)(2));
     w10.XOptions = ((Gtk.AttachOptions)(4));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.fileButton2 = new Gtk.Button();
     this.fileButton2.CanFocus = true;
     this.fileButton2.Name = "fileButton2";
     // Container child fileButton2.Gtk.Container+ContainerChild
     this.image5 = new Gtk.Image();
     this.image5.Name = "image5";
     this.image5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16);
     this.fileButton2.Add(this.image5);
     this.fileButton2.Label = null;
     this.table2.Add(this.fileButton2);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2[this.fileButton2]));
     w12.TopAttach = ((uint)(2));
     w12.BottomAttach = ((uint)(3));
     w12.LeftAttach = ((uint)(2));
     w12.RightAttach = ((uint)(3));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.fileEntry = new Gtk.Entry();
     this.fileEntry.CanFocus = true;
     this.fileEntry.Name = "fileEntry";
     this.fileEntry.Text = "/media/GARMIN/Garmin/GPX/geocaches.gpx";
     this.fileEntry.IsEditable = true;
     this.fileEntry.InvisibleChar = '•';
     this.table2.Add(this.fileEntry);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table2[this.fileEntry]));
     w13.TopAttach = ((uint)(2));
     w13.BottomAttach = ((uint)(3));
     w13.LeftAttach = ((uint)(1));
     w13.RightAttach = ((uint)(2));
     w13.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Field Notes File:");
     this.table2.Add(this.label1);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table2[this.label1]));
     w14.TopAttach = ((uint)(3));
     w14.BottomAttach = ((uint)(4));
     w14.XOptions = ((Gtk.AttachOptions)(4));
     w14.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.useFileRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Use specified file:"));
     this.useFileRadio.CanFocus = true;
     this.useFileRadio.Name = "useFileRadio";
     this.useFileRadio.DrawIndicator = true;
     this.useFileRadio.UseUnderline = true;
     this.useFileRadio.Group = this.autoNameRado.Group;
     this.table2.Add(this.useFileRadio);
     Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table2[this.useFileRadio]));
     w15.TopAttach = ((uint)(2));
     w15.BottomAttach = ((uint)(3));
     w15.XOptions = ((Gtk.AttachOptions)(4));
     w15.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox3.Add(this.table2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.table2]));
     w16.Position = 1;
     w16.Expand = false;
     w16.Fill = false;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.logLimitCheck.Toggled += new System.EventHandler(this.OnLogLimitToggle);
     this.limitCheck.Toggled += new System.EventHandler(this.OnLimitToggle);
     this.fileButton2.Clicked += new System.EventHandler(this.OnFileClick);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OCMQueryPage2
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.OCMQueryPage2";
     // Container child ocmgtk.OCMQueryPage2.Gtk.Container+ContainerChild
     this.vbox5 = new Gtk.VBox();
     this.vbox5.Name = "vbox5";
     this.vbox5.Spacing = 6;
     this.vbox5.BorderWidth = ((uint)(6));
     // Container child vbox5.Gtk.Box+BoxChild
     this.frame4 = new Gtk.Frame();
     this.frame4.Name = "frame4";
     this.frame4.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame4.Gtk.Container+ContainerChild
     this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment1.Name = "GtkAlignment1";
     this.GtkAlignment1.LeftPadding = ((uint)(12));
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
     this.table1.Name = "table1";
     this.table1.RowSpacing = ((uint)(6));
     this.table1.ColumnSpacing = ((uint)(6));
     this.table1.BorderWidth = ((uint)(6));
     // Container child table1.Gtk.Table+TableChild
     this.allContRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Has any container size"));
     this.allContRadio.CanFocus = true;
     this.allContRadio.Name = "allContRadio";
     this.allContRadio.Active = true;
     this.allContRadio.DrawIndicator = true;
     this.allContRadio.UseUnderline = true;
     this.allContRadio.Group = new GLib.SList(System.IntPtr.Zero);
     this.table1.Add(this.allContRadio);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.allContRadio]));
     w1.XOptions = ((Gtk.AttachOptions)(4));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.contFrame = new Gtk.Frame();
     this.contFrame.Sensitive = false;
     this.contFrame.Name = "contFrame";
     // Container child contFrame.Gtk.Container+ContainerChild
     this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.largeCheck = new Gtk.CheckButton();
     this.largeCheck.CanFocus = true;
     this.largeCheck.Name = "largeCheck";
     this.largeCheck.Label = Mono.Unix.Catalog.GetString("Large");
     this.largeCheck.DrawIndicator = true;
     this.largeCheck.UseUnderline = true;
     this.table2.Add(this.largeCheck);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.largeCheck]));
     w2.TopAttach = ((uint)(1));
     w2.BottomAttach = ((uint)(2));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.microCheck = new Gtk.CheckButton();
     this.microCheck.CanFocus = true;
     this.microCheck.Name = "microCheck";
     this.microCheck.Label = Mono.Unix.Catalog.GetString("Micro");
     this.microCheck.DrawIndicator = true;
     this.microCheck.UseUnderline = true;
     this.table2.Add(this.microCheck);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2[this.microCheck]));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.notChosenCheck = new Gtk.CheckButton();
     this.notChosenCheck.CanFocus = true;
     this.notChosenCheck.Name = "notChosenCheck";
     this.notChosenCheck.Label = Mono.Unix.Catalog.GetString("Not Chosen");
     this.notChosenCheck.DrawIndicator = true;
     this.notChosenCheck.UseUnderline = true;
     this.table2.Add(this.notChosenCheck);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.notChosenCheck]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.LeftAttach = ((uint)(2));
     w4.RightAttach = ((uint)(3));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.regularCheck = new Gtk.CheckButton();
     this.regularCheck.CanFocus = true;
     this.regularCheck.Name = "regularCheck";
     this.regularCheck.Label = Mono.Unix.Catalog.GetString("Regular");
     this.regularCheck.DrawIndicator = true;
     this.regularCheck.UseUnderline = true;
     this.table2.Add(this.regularCheck);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.regularCheck]));
     w5.LeftAttach = ((uint)(2));
     w5.RightAttach = ((uint)(3));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.smallCheck = new Gtk.CheckButton();
     this.smallCheck.CanFocus = true;
     this.smallCheck.Name = "smallCheck";
     this.smallCheck.Label = Mono.Unix.Catalog.GetString("Small");
     this.smallCheck.DrawIndicator = true;
     this.smallCheck.UseUnderline = true;
     this.table2.Add(this.smallCheck);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.smallCheck]));
     w6.LeftAttach = ((uint)(1));
     w6.RightAttach = ((uint)(2));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.virtualCheck = new Gtk.CheckButton();
     this.virtualCheck.CanFocus = true;
     this.virtualCheck.Name = "virtualCheck";
     this.virtualCheck.Label = Mono.Unix.Catalog.GetString("Virtual");
     this.virtualCheck.DrawIndicator = true;
     this.virtualCheck.UseUnderline = true;
     this.table2.Add(this.virtualCheck);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2[this.virtualCheck]));
     w7.TopAttach = ((uint)(1));
     w7.BottomAttach = ((uint)(2));
     w7.LeftAttach = ((uint)(1));
     w7.RightAttach = ((uint)(2));
     w7.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment.Add(this.table2);
     this.contFrame.Add(this.GtkAlignment);
     this.table1.Add(this.contFrame);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.contFrame]));
     w10.TopAttach = ((uint)(2));
     w10.BottomAttach = ((uint)(3));
     w10.RightAttach = ((uint)(2));
     w10.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.selRado = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Has any of the following sizes:"));
     this.selRado.CanFocus = true;
     this.selRado.Name = "selRado";
     this.selRado.DrawIndicator = true;
     this.selRado.UseUnderline = true;
     this.selRado.Group = this.allContRadio.Group;
     this.table1.Add(this.selRado);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.selRado]));
     w11.TopAttach = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment1.Add(this.table1);
     this.frame4.Add(this.GtkAlignment1);
     this.GtkLabel12 = new Gtk.Label();
     this.GtkLabel12.Name = "GtkLabel12";
     this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>Container Type</b>");
     this.GtkLabel12.UseMarkup = true;
     this.frame4.LabelWidget = this.GtkLabel12;
     this.vbox5.Add(this.frame4);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame4]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox5.Gtk.Box+BoxChild
     this.frame5 = new Gtk.Frame();
     this.frame5.Name = "frame5";
     this.frame5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child frame5.Gtk.Container+ContainerChild
     this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment2.Name = "GtkAlignment2";
     this.GtkAlignment2.LeftPadding = ((uint)(12));
     // Container child GtkAlignment2.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.descCheck = new Gtk.CheckButton();
     this.descCheck.CanFocus = true;
     this.descCheck.Name = "descCheck";
     this.descCheck.Label = Mono.Unix.Catalog.GetString("Description contains the following words:");
     this.descCheck.DrawIndicator = true;
     this.descCheck.UseUnderline = true;
     this.hbox1.Add(this.descCheck);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox1[this.descCheck]));
     w15.Position = 0;
     w15.Expand = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.descEntry = new Gtk.Entry();
     this.descEntry.Sensitive = false;
     this.descEntry.CanFocus = true;
     this.descEntry.Name = "descEntry";
     this.descEntry.IsEditable = true;
     this.descEntry.InvisibleChar = '•';
     this.hbox1.Add(this.descEntry);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox1[this.descEntry]));
     w16.Position = 1;
     this.GtkAlignment2.Add(this.hbox1);
     this.frame5.Add(this.GtkAlignment2);
     this.GtkLabel13 = new Gtk.Label();
     this.GtkLabel13.Name = "GtkLabel13";
     this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Description</b>");
     this.GtkLabel13.UseMarkup = true;
     this.frame5.LabelWidget = this.GtkLabel13;
     this.vbox5.Add(this.frame5);
     Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame5]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     // Container child vbox5.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.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment3.Name = "GtkAlignment3";
     this.GtkAlignment3.LeftPadding = ((uint)(12));
     // Container child GtkAlignment3.Gtk.Container+ContainerChild
     this.vbox7 = new Gtk.VBox();
     this.vbox7.Name = "vbox7";
     this.vbox7.Spacing = 6;
     // Container child vbox7.Gtk.Box+BoxChild
     this.markedCheck = new Gtk.CheckButton();
     this.markedCheck.CanFocus = true;
     this.markedCheck.Name = "markedCheck";
     this.markedCheck.Label = Mono.Unix.Catalog.GetString("Only caches that are marked:");
     this.markedCheck.DrawIndicator = true;
     this.markedCheck.UseUnderline = true;
     this.vbox7.Add(this.markedCheck);
     Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox7[this.markedCheck]));
     w20.Position = 0;
     w20.Expand = false;
     w20.Fill = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.markFrame = new Gtk.Frame();
     this.markFrame.Sensitive = false;
     this.markFrame.Name = "markFrame";
     this.markFrame.ShadowType = ((Gtk.ShadowType)(1));
     // Container child markFrame.Gtk.Container+ContainerChild
     this.GtkAlignment5 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment5.Name = "GtkAlignment5";
     this.GtkAlignment5.LeftPadding = ((uint)(12));
     // Container child GtkAlignment5.Gtk.Container+ContainerChild
     this.table3 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table3.Name = "table3";
     this.table3.RowSpacing = ((uint)(6));
     this.table3.ColumnSpacing = ((uint)(6));
     // Container child table3.Gtk.Table+TableChild
     this.dnfRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Didn't Find It"));
     this.dnfRadio.CanFocus = true;
     this.dnfRadio.Name = "dnfRadio";
     this.dnfRadio.Active = true;
     this.dnfRadio.DrawIndicator = true;
     this.dnfRadio.UseUnderline = true;
     this.dnfRadio.Group = new GLib.SList(System.IntPtr.Zero);
     this.table3.Add(this.dnfRadio);
     Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table3[this.dnfRadio]));
     w21.TopAttach = ((uint)(1));
     w21.BottomAttach = ((uint)(2));
     w21.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.ftfRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("First to Find"));
     this.ftfRadio.CanFocus = true;
     this.ftfRadio.Name = "ftfRadio";
     this.ftfRadio.DrawIndicator = true;
     this.ftfRadio.UseUnderline = true;
     this.ftfRadio.Group = this.dnfRadio.Group;
     this.table3.Add(this.ftfRadio);
     Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table3[this.ftfRadio]));
     w22.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.noDNFRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Not Didn't Find It"));
     this.noDNFRadio.CanFocus = true;
     this.noDNFRadio.Name = "noDNFRadio";
     this.noDNFRadio.DrawIndicator = true;
     this.noDNFRadio.UseUnderline = true;
     this.noDNFRadio.Group = this.dnfRadio.Group;
     this.table3.Add(this.noDNFRadio);
     Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table3[this.noDNFRadio]));
     w23.TopAttach = ((uint)(1));
     w23.BottomAttach = ((uint)(2));
     w23.LeftAttach = ((uint)(1));
     w23.RightAttach = ((uint)(2));
     w23.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table3.Gtk.Table+TableChild
     this.noFTFRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Not First to Find"));
     this.noFTFRadio.CanFocus = true;
     this.noFTFRadio.Name = "noFTFRadio";
     this.noFTFRadio.DrawIndicator = true;
     this.noFTFRadio.UseUnderline = true;
     this.noFTFRadio.Group = this.dnfRadio.Group;
     this.table3.Add(this.noFTFRadio);
     Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table3[this.noFTFRadio]));
     w24.LeftAttach = ((uint)(1));
     w24.RightAttach = ((uint)(2));
     w24.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment5.Add(this.table3);
     this.markFrame.Add(this.GtkAlignment5);
     this.vbox7.Add(this.markFrame);
     Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox7[this.markFrame]));
     w27.Position = 1;
     w27.Expand = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.statusCheck = new Gtk.CheckButton();
     this.statusCheck.CanFocus = true;
     this.statusCheck.Name = "statusCheck";
     this.statusCheck.Label = Mono.Unix.Catalog.GetString("Caches with the following status flags:");
     this.statusCheck.DrawIndicator = true;
     this.statusCheck.UseUnderline = true;
     this.vbox7.Add(this.statusCheck);
     Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox7[this.statusCheck]));
     w28.Position = 2;
     w28.Expand = false;
     w28.Fill = false;
     // Container child vbox7.Gtk.Box+BoxChild
     this.statusFrame = new Gtk.Frame();
     this.statusFrame.Sensitive = false;
     this.statusFrame.Name = "statusFrame";
     this.statusFrame.ShadowType = ((Gtk.ShadowType)(1));
     // Container child statusFrame.Gtk.Container+ContainerChild
     this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment4.Name = "GtkAlignment4";
     this.GtkAlignment4.LeftPadding = ((uint)(12));
     // Container child GtkAlignment4.Gtk.Container+ContainerChild
     this.table4 = new Gtk.Table(((uint)(2)), ((uint)(4)), false);
     this.table4.Name = "table4";
     this.table4.RowSpacing = ((uint)(6));
     this.table4.ColumnSpacing = ((uint)(6));
     // Container child table4.Gtk.Table+TableChild
     this.archiveCheck = new Gtk.CheckButton();
     this.archiveCheck.CanFocus = true;
     this.archiveCheck.Name = "archiveCheck";
     this.archiveCheck.Label = Mono.Unix.Catalog.GetString("Archived");
     this.archiveCheck.Active = true;
     this.archiveCheck.DrawIndicator = true;
     this.archiveCheck.UseUnderline = true;
     this.table4.Add(this.archiveCheck);
     Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table4[this.archiveCheck]));
     w29.TopAttach = ((uint)(1));
     w29.BottomAttach = ((uint)(2));
     w29.LeftAttach = ((uint)(2));
     w29.RightAttach = ((uint)(3));
     w29.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.availCheck = new Gtk.CheckButton();
     this.availCheck.CanFocus = true;
     this.availCheck.Name = "availCheck";
     this.availCheck.Label = Mono.Unix.Catalog.GetString("Available");
     this.availCheck.Active = true;
     this.availCheck.DrawIndicator = true;
     this.availCheck.UseUnderline = true;
     this.table4.Add(this.availCheck);
     Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table4[this.availCheck]));
     w30.TopAttach = ((uint)(1));
     w30.BottomAttach = ((uint)(2));
     w30.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.disabledCheck = new Gtk.CheckButton();
     this.disabledCheck.CanFocus = true;
     this.disabledCheck.Name = "disabledCheck";
     this.disabledCheck.Label = Mono.Unix.Catalog.GetString("Disabled");
     this.disabledCheck.Active = true;
     this.disabledCheck.DrawIndicator = true;
     this.disabledCheck.UseUnderline = true;
     this.table4.Add(this.disabledCheck);
     Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table4[this.disabledCheck]));
     w31.TopAttach = ((uint)(1));
     w31.BottomAttach = ((uint)(2));
     w31.LeftAttach = ((uint)(1));
     w31.RightAttach = ((uint)(2));
     w31.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.foundCheck = new Gtk.CheckButton();
     this.foundCheck.CanFocus = true;
     this.foundCheck.Name = "foundCheck";
     this.foundCheck.Label = Mono.Unix.Catalog.GetString("Found");
     this.foundCheck.Active = true;
     this.foundCheck.DrawIndicator = true;
     this.foundCheck.UseUnderline = true;
     this.table4.Add(this.foundCheck);
     Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table4[this.foundCheck]));
     w32.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.mineCheck = new Gtk.CheckButton();
     this.mineCheck.CanFocus = true;
     this.mineCheck.Name = "mineCheck";
     this.mineCheck.Label = Mono.Unix.Catalog.GetString("Mine");
     this.mineCheck.Active = true;
     this.mineCheck.DrawIndicator = true;
     this.mineCheck.UseUnderline = true;
     this.table4.Add(this.mineCheck);
     Gtk.Table.TableChild w33 = ((Gtk.Table.TableChild)(this.table4[this.mineCheck]));
     w33.LeftAttach = ((uint)(2));
     w33.RightAttach = ((uint)(3));
     w33.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table4.Gtk.Table+TableChild
     this.notFoundCheck = new Gtk.CheckButton();
     this.notFoundCheck.CanFocus = true;
     this.notFoundCheck.Name = "notFoundCheck";
     this.notFoundCheck.Label = Mono.Unix.Catalog.GetString("Not Found");
     this.notFoundCheck.Active = true;
     this.notFoundCheck.DrawIndicator = true;
     this.notFoundCheck.UseUnderline = true;
     this.table4.Add(this.notFoundCheck);
     Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.notFoundCheck]));
     w34.LeftAttach = ((uint)(1));
     w34.RightAttach = ((uint)(2));
     w34.YOptions = ((Gtk.AttachOptions)(4));
     this.GtkAlignment4.Add(this.table4);
     this.statusFrame.Add(this.GtkAlignment4);
     this.vbox7.Add(this.statusFrame);
     Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox7[this.statusFrame]));
     w37.Position = 3;
     w37.Expand = false;
     this.GtkAlignment3.Add(this.vbox7);
     this.frame7.Add(this.GtkAlignment3);
     this.GtkLabel20 = new Gtk.Label();
     this.GtkLabel20.Name = "GtkLabel20";
     this.GtkLabel20.LabelProp = Mono.Unix.Catalog.GetString("<b>Cache Status</b>");
     this.GtkLabel20.UseMarkup = true;
     this.frame7.LabelWidget = this.GtkLabel20;
     this.vbox5.Add(this.frame7);
     Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame7]));
     w40.Position = 2;
     w40.Expand = false;
     w40.Fill = false;
     this.Add(this.vbox5);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.allContRadio.Toggled += new System.EventHandler(this.OnAnyToggle);
     this.descCheck.Toggled += new System.EventHandler(this.OnDescToggled);
     this.markedCheck.Toggled += new System.EventHandler(this.OnMarkedtoggle);
     this.statusCheck.Toggled += new System.EventHandler(this.OnStatusToggle);
 }
예제 #59
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.CurvesDialog
     this.Name = "Pinta.CurvesDialog";
     this.Title = Mono.Unix.Catalog.GetString("Curves");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable = false;
     this.AllowGrow = false;
     this.SkipTaskbarHint = true;
     // Internal child Pinta.CurvesDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.labelMap = new Gtk.Label();
     this.labelMap.Name = "labelMap";
     this.labelMap.LabelProp = Mono.Unix.Catalog.GetString("Transfer Map");
     this.hbox1.Add(this.labelMap);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.labelMap]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hseparatorMap = new Gtk.HSeparator();
     this.hseparatorMap.Name = "hseparatorMap";
     this.hbox1.Add(this.hseparatorMap);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparatorMap]));
     w3.Position = 1;
     w1.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.comboMap = Gtk.ComboBox.NewText();
     this.comboMap.AppendText(Mono.Unix.Catalog.GetString("RGB"));
     this.comboMap.AppendText(Mono.Unix.Catalog.GetString("Luminosity"));
     this.comboMap.Name = "comboMap";
     this.comboMap.Active = 1;
     this.hbox2.Add(this.comboMap);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.comboMap]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.alignment3 = new Gtk.Alignment(1F, 0.5F, 0F, 0F);
     this.alignment3.Name = "alignment3";
     // Container child alignment3.Gtk.Container+ContainerChild
     this.labelPoint = new Gtk.Label();
     this.labelPoint.Name = "labelPoint";
     this.labelPoint.LabelProp = Mono.Unix.Catalog.GetString("(256, 256)");
     this.alignment3.Add(this.labelPoint);
     this.hbox2.Add(this.alignment3);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.alignment3]));
     w7.PackType = ((Gtk.PackType)(1));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     w1.Add(this.hbox2);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox2]));
     w8.Position = 1;
     w8.Expand = false;
     w8.Fill = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.drawing = new Gtk.DrawingArea();
     this.drawing.WidthRequest = 256;
     this.drawing.HeightRequest = 256;
     this.drawing.CanFocus = true;
     this.drawing.Events = ((Gdk.EventMask)(795646));
     this.drawing.Name = "drawing";
     w1.Add(this.drawing);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.drawing]));
     w9.Position = 2;
     w9.Padding = ((uint)(8));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     // Container child hbox3.Gtk.Box+BoxChild
     this.checkRed = new Gtk.CheckButton();
     this.checkRed.CanFocus = true;
     this.checkRed.Name = "checkRed";
     this.checkRed.Label = Mono.Unix.Catalog.GetString("Red  ");
     this.checkRed.Active = true;
     this.checkRed.DrawIndicator = true;
     this.checkRed.UseUnderline = true;
     this.hbox3.Add(this.checkRed);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox3[this.checkRed]));
     w10.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.checkGreen = new Gtk.CheckButton();
     this.checkGreen.CanFocus = true;
     this.checkGreen.Name = "checkGreen";
     this.checkGreen.Label = Mono.Unix.Catalog.GetString("Green");
     this.checkGreen.Active = true;
     this.checkGreen.DrawIndicator = true;
     this.checkGreen.UseUnderline = true;
     this.hbox3.Add(this.checkGreen);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox3[this.checkGreen]));
     w11.Position = 1;
     // Container child hbox3.Gtk.Box+BoxChild
     this.checkBlue = new Gtk.CheckButton();
     this.checkBlue.CanFocus = true;
     this.checkBlue.Name = "checkBlue";
     this.checkBlue.Label = Mono.Unix.Catalog.GetString("Blue ");
     this.checkBlue.Active = true;
     this.checkBlue.DrawIndicator = true;
     this.checkBlue.UseUnderline = true;
     this.hbox3.Add(this.checkBlue);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox3[this.checkBlue]));
     w12.Position = 2;
     // Container child hbox3.Gtk.Box+BoxChild
     this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment1.Name = "alignment1";
     this.hbox3.Add(this.alignment1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox3[this.alignment1]));
     w13.Position = 3;
     // Container child hbox3.Gtk.Box+BoxChild
     this.buttonReset = new Gtk.Button();
     this.buttonReset.WidthRequest = 81;
     this.buttonReset.HeightRequest = 30;
     this.buttonReset.CanFocus = true;
     this.buttonReset.Name = "buttonReset";
     this.buttonReset.UseUnderline = true;
     this.buttonReset.Label = Mono.Unix.Catalog.GetString("Reset");
     this.hbox3.Add(this.buttonReset);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.buttonReset]));
     w14.Position = 4;
     w14.Expand = false;
     w14.Fill = false;
     w1.Add(this.hbox3);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[this.hbox3]));
     w15.Position = 3;
     w15.Expand = false;
     w15.Fill = false;
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.labelTip = new Gtk.Label();
     this.labelTip.Name = "labelTip";
     this.labelTip.LabelProp = Mono.Unix.Catalog.GetString("Tip : Right-click to remove control points.");
     w1.Add(this.labelTip);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w1[this.labelTip]));
     w16.Position = 4;
     w16.Expand = false;
     w16.Fill = false;
     // Internal child Pinta.CurvesDialog.ActionArea
     Gtk.HButtonBox w17 = this.ActionArea;
     w17.Name = "dialog1_ActionArea";
     w17.Spacing = 10;
     w17.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonCancel]));
     w18.Expand = false;
     w18.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w19 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.buttonOk]));
     w19.Position = 1;
     w19.Expand = false;
     w19.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 269;
     this.DefaultHeight = 418;
     this.checkRed.Hide();
     this.checkGreen.Hide();
     this.checkBlue.Hide();
     this.Show();
 }
예제 #60
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget sermon2.LopConf
     Stetic.BinContainer.Attach(this);
     this.Name = "sermon2.LopConf";
     // Container child sermon2.LopConf.Gtk.Container+ContainerChild
     this.frame1            = new Gtk.Frame();
     this.frame1.Name       = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child frame1.Gtk.Container+ContainerChild
     this.GtkAlignment             = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.GtkAlignment.Name        = "GtkAlignment";
     this.GtkAlignment.LeftPadding = ((uint)(12));
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     this.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.escValueLabel           = new Gtk.Label();
     this.escValueLabel.Name      = "escValueLabel";
     this.escValueLabel.LabelProp = Mono.Unix.Catalog.GetString("escape code");
     this.table1.Add(this.escValueLabel);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.escValueLabel]));
     w1.TopAttach    = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.XOptions     = ((Gtk.AttachOptions)(4));
     w1.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.removeButton              = new Gtk.Button();
     this.removeButton.CanFocus     = true;
     this.removeButton.Name         = "removeButton";
     this.removeButton.UseUnderline = true;
     // Container child removeButton.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-delete", 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("remove");
     w6.UseUnderline = true;
     w3.Add(w6);
     w2.Add(w3);
     this.removeButton.Add(w2);
     this.table1.Add(this.removeButton);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.removeButton]));
     w10.TopAttach    = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     w10.LeftAttach   = ((uint)(2));
     w10.RightAttach  = ((uint)(3));
     w10.XOptions     = ((Gtk.AttachOptions)(4));
     w10.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.resetValueLabel           = new Gtk.Label();
     this.resetValueLabel.Name      = "resetValueLabel";
     this.resetValueLabel.LabelProp = Mono.Unix.Catalog.GetString("reset code");
     this.table1.Add(this.resetValueLabel);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.resetValueLabel]));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.spinbutton1          = new Gtk.SpinButton(0, 255, 1);
     this.spinbutton1.CanFocus = true;
     this.spinbutton1.Name     = "spinbutton1";
     this.spinbutton1.Adjustment.PageIncrement = 10;
     this.spinbutton1.ClimbRate = 1;
     this.spinbutton1.Numeric   = true;
     this.spinbutton1.Value     = 66;
     this.spinbutton1.Wrap      = true;
     this.table1.Add(this.spinbutton1);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.spinbutton1]));
     w12.LeftAttach  = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions    = ((Gtk.AttachOptions)(4));
     w12.YOptions    = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.spinbutton2          = new Gtk.SpinButton(0, 255, 1);
     this.spinbutton2.CanFocus = true;
     this.spinbutton2.Name     = "spinbutton2";
     this.spinbutton2.Adjustment.PageIncrement = 10;
     this.spinbutton2.ClimbRate = 1;
     this.spinbutton2.Numeric   = true;
     this.spinbutton2.Value     = 35;
     this.spinbutton2.Wrap      = true;
     this.table1.Add(this.spinbutton2);
     Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.spinbutton2]));
     w13.TopAttach    = ((uint)(1));
     w13.BottomAttach = ((uint)(2));
     w13.LeftAttach   = ((uint)(1));
     w13.RightAttach  = ((uint)(2));
     w13.XOptions     = ((Gtk.AttachOptions)(4));
     w13.YOptions     = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.violationCheckButton               = new Gtk.CheckButton();
     this.violationCheckButton.CanFocus      = true;
     this.violationCheckButton.Name          = "violationCheckButton";
     this.violationCheckButton.Label         = Mono.Unix.Catalog.GetString("report violations");
     this.violationCheckButton.DrawIndicator = true;
     this.violationCheckButton.UseUnderline  = true;
     this.table1.Add(this.violationCheckButton);
     Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.violationCheckButton]));
     w14.LeftAttach  = ((uint)(2));
     w14.RightAttach = ((uint)(3));
     w14.XOptions    = ((Gtk.AttachOptions)(4));
     w14.YOptions    = ((Gtk.AttachOptions)(4));
     this.GtkAlignment.Add(this.table1);
     this.frame1.Add(this.GtkAlignment);
     this.frameLabel           = new Gtk.Label();
     this.frameLabel.Name      = "frameLabel";
     this.frameLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>");
     this.frameLabel.UseMarkup = true;
     this.frame1.LabelWidget   = this.frameLabel;
     this.Add(this.frame1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.removeButton.Released += new System.EventHandler(this.OnRemoveButtonReleased);
 }