public TreeNodeNavigator(ExtensibleTreeView pad, Gtk.TreeIter iter)
 {
     this.pad = pad;
     tree = pad.Tree;
     store = pad.Store;
     MoveToIter (iter);
 }
Exemple #2
0
        private void InitializePortsList(Gtk.TreeView portsList)
        {
            var viewModel = DataContext as SerialPortSelectorViewModel;

            var column = new Gtk.TreeViewColumn()
            {
                Title = SerialPortSelectorViewModel.PortColumnTitle
            };
            var cellRenderer = new Gtk.CellRendererText();

            column.PackStart(cellRenderer, true);
            column.SetCellDataFunc(cellRenderer, (l, c, m, i) => VisualHelpers.CellTextColumnRenderer <SerialPortViewModel>(l, c, m, i, p => p.PortName));
            ////column.Sizing = Gtk.TreeViewColumnSizing.Fixed;
            ////column.FixedWidth = Properties.Settings.Default.MenuLayoutLongNameColWidth;
            ////column.Resizable = true;
            portsList.AppendColumn(column);

            portsList.Selection.Changed       += HandleSelectedPortChanged;
            portsList.Selection.SelectFunction = ShouldSelectPort;

            var serialPortsModel = new Gtk.ListStore(typeof(SerialPortViewModel));

            serialPortsModel.SynchronizeCollection(viewModel.AvailableSerialPorts);

            // TODO: Disable ports appropriately -- see ShouldSelect
            // TODO: Customize renderer somehow for disabled items to draw differently --
            // Tinkering with CellRendererText.Foreground does not work as desired.
            portsList.Model = serialPortsModel;

            viewModel.AvailableSerialPorts.CollectionChanged += HandleAvailablePortsChanged;
        }
        Gtk.TreeView BuildTreeViewDest()
        {
            var toret        = new Gtk.TreeView();
            var artistColumn = new Gtk.TreeViewColumn {
                Title = "Selected artist"
            };
            var songColumn = new Gtk.TreeViewColumn {
                Title = "Selected song title"
            };

            // Add the columns to the TreeView
            toret.AppendColumn(artistColumn);
            toret.AppendColumn(songColumn);

            // Create a model that will hold two strings - Artist Name and Song Title
            var musicListStore = new Gtk.ListStore(typeof(string), typeof(string));
            var artistNameCell = new Gtk.CellRendererText();
            var songTitleCell  = new Gtk.CellRendererText();

            artistColumn.PackStart(artistNameCell, true);
            songColumn.PackStart(songTitleCell, true);

            artistColumn.AddAttribute(artistNameCell, "text", 0);
            songColumn.AddAttribute(songTitleCell, "text", 1);

            toret.Selection.Mode = Gtk.SelectionMode.None;
            toret.Model          = musicListStore;
            toret.Selection.Mode = Gtk.SelectionMode.Multiple;

            return(toret);
        }
Exemple #4
0
        public IGenerateAction InitalizeSelection(CodeGenerationOptions options, Gtk.TreeView treeView)
        {
            OverrideMethods overrideMethods = new OverrideMethods(options);

            overrideMethods.Initialize(treeView);
            return(overrideMethods);
        }
        public IGenerateAction InitalizeSelection(CodeGenerationOptions options, Gtk.TreeView treeView)
        {
            var createToString = new CreateWriteLine(options);

            createToString.Initialize(treeView);
            return(createToString);
        }
 public TreeNodeNavigator(ExtensibleTreeView pad, Gtk.TreeIter iter)
 {
     this.pad = pad;
     tree     = pad.Tree;
     store    = pad.Store;
     MoveToIter(iter);
 }
        private static void SetDragImage(Gtk.TreeView menuLayout, Gtk.DragBeginArgs args)
        {
            var selection         = menuLayout.Selection;
            var firstSelectedPath = selection.GetSelectedRows().First();

            Gtk.TreeIter iter;
            if (menuLayout.Model.GetIter(out iter, firstSelectedPath))
            {
                var        firstDraggedItem = menuLayout.Model.GetValue(iter, 0) as FileNodeViewModel;
                string     text;
                Gdk.Pixbuf icon;
                if (selection.CountSelectedRows() > 1)
                {
                    text = "<Multiple Items>";
                    icon = firstDraggedItem is FolderViewModel ? DragMultipleItemsFolderImage : DragMultipleItemsProgramImage;
                }
                else
                {
                    text = firstDraggedItem.LongName;
                    icon = firstDraggedItem.Icon;
                }
                var dragWidget = new DragDropImage(icon, text);
                Gtk.Drag.SetIconWidget(args.Context, dragWidget, 0, 0);
            }
        }
        protected ResXEditorListViewContent(ResXData data) : base(data)
        {
            store = new Gtk.ListStore(typeof(ResXNode));
            store.Data[ResXDataKey] = data;
            treeView = new Gtk.TreeView(store)
            {
                EnableGridLines = Gtk.TreeViewGridLines.Both,
            };
            crt = new Gtk.CellRendererText();

            treeView.ButtonPressEvent += OnTreeViewButtonPress;
            foreach (var node in data.Nodes)
            {
                names.Add(node.Name);
                if (SkipNode(node))
                {
                    continue;
                }

                store.InsertWithValues(-1, node);
            }

            AddPlaceholder();

            AddTreeViewColumns();
        }
 public IGenerateAction InitalizeSelection(CodeGenerationOptions options, Gtk.TreeView treeView)
 {
     PropertyGenerator.CreateProperty createProperty = new PropertyGenerator.CreateProperty(options);
     createProperty.ReadOnly = true;
     createProperty.Initialize(treeView);
     return(createProperty);
 }
		public SignalsEditorBackend (SignalsEditorFrontend frontend)
		{
			this.frontend = frontend;
			
			tree = new Gtk.TreeView ();
			store = new Gtk.TreeStore (typeof(string), typeof(string), typeof(bool), typeof(bool), typeof(bool), typeof(int));
			tree.Model = store;
			tree.RowActivated += new Gtk.RowActivatedHandler (OnRowActivated);
			
			Gtk.CellRendererText crtSignal = new Gtk.CellRendererText ();
			
			Gtk.CellRendererText crtHandler = new Gtk.CellRendererText ();
			crtHandler.Editable = true;
			crtHandler.Edited += new Gtk.EditedHandler (OnHandlerEdited);
			
			Gtk.CellRendererToggle crtogAfter = new Gtk.CellRendererToggle ();
			crtogAfter.Activatable = true;
			crtogAfter.Toggled += new Gtk.ToggledHandler (OnAfterToggled);
			
			tree.AppendColumn (Catalog.GetString ("Signal"), crtSignal, "text", ColSignal, "weight", ColSignalTextWeight);
			tree.AppendColumn (Catalog.GetString ("Handler"), crtHandler, "markup", ColHandler, "visible", ColIsSignal);
			tree.AppendColumn (Catalog.GetString ("After"), crtogAfter, "active", ColAfter, "visible", ColHasHandler);
			tree.Columns[0].Resizable = true;
			tree.Columns[1].Resizable = true;
			tree.Columns[2].Resizable = true;
			Add (tree);
			ShowAll ();
		}
Exemple #11
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Monoplayer.windows.player.list_view
     Stetic.BinContainer.Attach(this);
     this.WidthRequest  = 400;
     this.HeightRequest = 400;
     this.Name          = "Monoplayer.windows.player.list_view";
     // Container child Monoplayer.windows.player.list_view.Gtk.Container+ContainerChild
     this.scrolledwindow1                  = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus         = true;
     this.scrolledwindow1.Name             = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType       = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.tv_list              = new Gtk.TreeView();
     this.tv_list.CanFocus     = true;
     this.tv_list.Name         = "tv_list";
     this.tv_list.RulesHint    = true;
     this.tv_list.SearchColumn = 1;
     this.scrolledwindow1.Add(this.tv_list);
     this.Add(this.scrolledwindow1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.Show();
     this.tv_list.RowActivated += new Gtk.RowActivatedHandler(this.OnTvListRowActivated);
 }
Exemple #12
0
        public SignalsEditorBackend(SignalsEditorFrontend frontend)
        {
            this.frontend = frontend;

            tree               = new Gtk.TreeView();
            store              = new Gtk.TreeStore(typeof(string), typeof(string), typeof(bool), typeof(bool), typeof(bool), typeof(SignalDescriptor), typeof(Signal), typeof(int));
            tree.Model         = store;
            tree.RowActivated += new Gtk.RowActivatedHandler(OnRowActivated);

            Gtk.CellRendererText crtSignal = new Gtk.CellRendererText();

            Gtk.CellRendererText crtHandler = new Gtk.CellRendererText();
            crtHandler.Editable = true;
            crtHandler.Edited  += new Gtk.EditedHandler(OnHandlerEdited);

            Gtk.CellRendererToggle crtogAfter = new Gtk.CellRendererToggle();
            crtogAfter.Activatable = true;
            crtogAfter.Toggled    += new Gtk.ToggledHandler(OnAfterToggled);

            tree.AppendColumn(Catalog.GetString("Signal"), crtSignal, "text", ColSignal, "weight", ColSignalTextWeight);
            tree.AppendColumn(Catalog.GetString("Handler"), crtHandler, "markup", ColHandler, "visible", ColIsSignal);
            tree.AppendColumn(Catalog.GetString("After"), crtogAfter, "active", ColAfter, "visible", ColHasHandler);
            tree.Columns[0].Resizable = true;
            tree.Columns[1].Resizable = true;
            tree.Columns[2].Resizable = true;
            Add(tree);
            ShowAll();
        }
Exemple #13
0
        public IGenerateAction InitalizeSelection(CodeGenerationOptions options, Gtk.TreeView treeView)
        {
            var createEventMethod = new CreateEventMethod(options);

            createEventMethod.Initialize(treeView);
            return(createEventMethod);
        }
Exemple #14
0
 protected override void CollapseTreeView(Atk.Object obj)
 {
     RunInGuiThread(delegate {
         Gtk.TreeView widget = GailTestApp.MainClass.GiveMeARealTreeView();
         widget.CollapseAll();
     });
 }
        public IGenerateAction InitalizeSelection(CodeGenerationOptions options, Gtk.TreeView treeView)
        {
            CreateProperty createProperty = new CreateProperty(options);

            createProperty.Initialize(treeView);
            return(createProperty);
        }
Exemple #16
0
        public TreeViewHandler()
        {
            tree = new Gtk.TreeView();
            UpdateModel();
            tree.HeadersVisible = false;

            var col    = new Gtk.TreeViewColumn();
            var pbcell = new Gtk.CellRendererPixbuf();

            col.PackStart(pbcell, false);
            col.SetAttributes(pbcell, "pixbuf", 1);
            textCell = new Gtk.CellRendererText();
            col.PackStart(textCell, true);
            col.SetAttributes(textCell, "text", 0);
            tree.AppendColumn(col);


            tree.ShowExpanders = true;

            Control            = new Gtk.ScrolledWindow();
            Control.ShadowType = Gtk.ShadowType.In;
            Control.Add(tree);

            tree.Events           |= Gdk.EventMask.ButtonPressMask;
            tree.ButtonPressEvent += HandleTreeButtonPressEvent;
        }
 public TreeViewExample()
 {
     Gtk.Window window = new Gtk.Window("TreeView Example");
     window.SetSizeRequest(500, 200);
     Gtk.TreeView tree = new Gtk.TreeView();
     window.Add(tree);
     Gtk.TreeViewColumn Parent = new Gtk.TreeViewColumn();
     Parent.Title = "Parent";
     Gtk.CellRendererText Parent1 = new Gtk.CellRendererText();
     Parent.PackStart(Parent1, true);
     Gtk.TreeViewColumn ChildColoumn1 = new Gtk.TreeViewColumn();
     ChildColoumn1.Title = "Column 1";
     Gtk.CellRendererText Child1 = new Gtk.CellRendererText();
     ChildColoumn1.PackStart(Child1, true);
     Gtk.TreeViewColumn ChildColumn2 = new Gtk.TreeViewColumn();
     ChildColumn2.Title = "Column 2";
     Gtk.CellRendererText Child2 = new Gtk.CellRendererText();
     ChildColumn2.PackStart(Child2, true);
     tree.AppendColumn(Parent);
     tree.AppendColumn(ChildColoumn1);
     tree.AppendColumn(ChildColumn2);
     Parent.AddAttribute(Parent1, "text", 0);
     ChildColoumn1.AddAttribute(Child1, "text", 1);
     ChildColumn2.AddAttribute(Child2, "text", 2);
     Gtk.TreeStore Tree = new Gtk.TreeStore(typeof(string), typeof(string), typeof(string));
     Gtk.TreeIter  iter = Tree.AppendValues("Parent1");
     Tree.AppendValues(iter, "Child1", "Node 1");
     iter = Tree.AppendValues("Parent2");
     Tree.AppendValues(iter, "Child1", "Node 1", "Node 2");
     tree.Model = Tree;
     window.ShowAll();
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 0;
     this.HeightRequest = 0;
     this.Name = "Mono.Upnp.GtkClient.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.list = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox = new Gtk.VBox();
     this.infoBox.Name = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller = new Gtk.Label();
     this.infoFiller.Name = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
Exemple #19
0
 private void Populate(Gtk.TreeView treeView, bool?used = null, bool?isChange = null)
 {
     foreach (var key in App.Instance.Wallet.GetKeys())
     {
         _Store.AppendValues(key, key.Address.ToString(), DisplayKey(key.Private), key.Used ? "Yes" : "No", key.Change ? "Yes" : "No");
     }
     ;
 }
 /// <summary>
 /// Initializes a new instance of the in-place editor for a text cell.
 /// </summary>
 /// <param name="owner">The visual owning the element being edited.</param>
 /// <param name="column">The column in the Gtk.TreeView being edited.</param>
 /// <param name="cell">The text cell renderer to use.</param>
 /// <param name="maxLength">The maximum length of the string to allow.</param>
 public TextCellInPlaceEditor(Gtk.TreeView owner, Gtk.TreeViewColumn column, Gtk.CellRendererText cell, int maxLength)
     : this(owner, maxLength, null)
 {
     cell.Editable        = true;
     cell.EditingStarted += CellEditingStarted;
     EditingObject        = new TextCellInPlaceEditorObjectData(null, column);
     Renderer             = cell;
 }
 void OnCursorChanged(object sender, EventArgs e)
 {
     Gtk.TreeView      treeView  = Utils.dynamic_cast <Gtk.TreeView>(sender);
     Gtk.TreeSelection selection = treeView.Selection;
     Gtk.TreeModel     treeModel = null;
     Gtk.TreeIter      treeIter;
     selection.GetSelected(out treeModel, out treeIter);
     _selectedCommand = treeModel.GetValue(treeIter, 0).ToString();
 }
Exemple #22
0
 public ChatViewManager(Notebook notebook, Gtk.TreeView treeView)
 {
     f_Notebook = notebook;
     f_TreeView = treeView;
     SyncedChats = new List<ChatView>();
     SyncManager = new ChatViewSyncManager();
     SyncManager.ChatAdded += OnChatAdded;
     SyncManager.ChatSynced += OnChatSynced;
 }
Exemple #23
0
 public ChatViewManager(Notebook notebook, Gtk.TreeView treeView)
 {
     f_Notebook              = notebook;
     f_TreeView              = treeView;
     SyncedChats             = new List <ChatView>();
     SyncManager             = new ChatViewSyncManager();
     SyncManager.ChatAdded  += OnChatAdded;
     SyncManager.ChatSynced += OnChatSynced;
 }
        /// <summary>
        /// Activate a row in the TreeView. Would be good to find a better way of doing this.
        /// </summary>
        /// <param name="tree">An instance of UserInterface.Views.TreeView.</param>
        /// <param name="path">Path to the row. e.g. ".Simulations.ContinuousWheat.Paddock".</param>
        private void ActivateNode(TreeView tree, string path)
        {
            tree.SelectedNode = path;

            Gtk.TreeView treeView = (Gtk.TreeView)ReflectionUtilities.GetValueOfFieldOrProperty("treeview1", tree);
            Gtk.TreePath treePath = GetTreePath(tree, path);
            treeView.ActivateRow(treePath, treeView.Columns[0]);
            GtkUtilities.WaitForGtkEvents();
        }
Exemple #25
0
        public static Gtk.TreeStore DataBind(this Gtk.TreeView tree, SyncItem data)
        {
            Gtk.TreeStore syncItems = new Gtk.TreeStore(typeof(SyncItem));

            var iter = syncItems.AppendValues(data);

            SetChildItems(syncItems, iter, data.ChildItems.Values);

            return(syncItems);
        }
Exemple #26
0
        void Fill(Gtk.TreeView treeView)
        {
            var list = (Gtk.ListStore)treeView.Model;

            list.AppendValues("Eagles", "Hotel California");
            list.AppendValues("AC/DC", "Highway to hell");
            list.AppendValues("Rainbow", "The man on the silver mountain");
            list.AppendValues("Ozzy Osbourne", "Miracle man");
            list.AppendValues("Guns'n'Roses", "Welcome to the jungle");
        }
Exemple #27
0
 public MainWindow() :
     base(Gtk.WindowType.Toplevel)
 {
     this.Build();
     UserView = new Gtk.TreeView();
     Gtk.TreeViewColumn user = new Gtk.TreeViewColumn();
     user.Title = "TestUser";
     UserView.AppendColumn(user);
     frame1.Add(UserView);
 }
Exemple #28
0
        void IPlugin.Init(object context)
        {
            solidIDE   = context as ISolidIDE;
            mainWindow = solidIDE.GetMainWindow();

            // Dock with Tree
            Gtk.ScrolledWindow treeViewScrollWindow = new Gtk.ScrolledWindow();
            Gtk.Viewport       treeViewViewport     = new Gtk.Viewport();
            treeViewScrollWindow.Add(treeViewViewport);
            treeView = new Gtk.TreeView();
            treeViewViewport.Add(treeView);
            treeViewScrollWindow.ShowAll();
            Gtk.TreeViewColumn   col             = new Gtk.TreeViewColumn();
            Gtk.CellRendererText colAssemblyCell = new Gtk.CellRendererText();
            col.PackStart(colAssemblyCell, true);
            col.AddAttribute(colAssemblyCell, "text", 0);
            treeView.AppendColumn(col);
            treeView.Model          = new Gtk.TreeStore(typeof(string), typeof(Tool <Gdk.Event, Cairo.Context, Model>), typeof(Shape));
            treeView.RowActivated  += HandleRowActivated;
            treeView.CursorChanged += HandleCursorChanged;
            Gtk.Drag.SourceSet(
                treeView,
                Gdk.ModifierType.Button1Mask,
                new Gtk.TargetEntry[] { new Gtk.TargetEntry("application/x-solidide.shape", Gtk.TargetFlags.App, 0) },
                Gdk.DragAction.Copy
                );

            /*treeView.EnableModelDragSource(
             * Gdk.ModifierType.None,
             * new Gtk.TargetEntry[] { new TargetEntry("application/SolidIDE", 0, 0) },
             * Gdk.DragAction.Default);*/
            treeView.DragBegin   += HandleTreeViewDragBegin;
            treeView.DragDataGet += HandleTreeViewDragDataGet;
            //treeView.DragDrop += HandleTreeViewDragDrop;

            toolboxDockItem                = mainWindow.DockFrame.AddItem("Toolbox");
            toolboxDockItem.Behavior       = DockItemBehavior.Normal;
            toolboxDockItem.Expand         = true;
            toolboxDockItem.DrawFrame      = true;
            toolboxDockItem.Label          = "Toolbox";
            toolboxDockItem.Content        = treeViewScrollWindow;
            toolboxDockItem.DefaultVisible = true;
            toolboxDockItem.Visible        = true;

            UpdateToolbox();

            // Menu
            var viewMenuItem = solidIDE.GetMenuItem <Gtk.ImageMenuItem>("View");

            solidIDE.GetMenuItem <Gtk.TearoffMenuItem>("View", "TearoffView");
            var toolboxMenuItem = solidIDE.GetMenuItem <Gtk.ImageMenuItem>("View", "Toolbox");

            toolboxMenuItem.Activated += HandleShowToolboxActivated;
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.CronValueEditor
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.selectAllAction = new Gtk.Action("selectAllAction", null, null, "gtk-select-all");
     w2.Add(this.selectAllAction, null);
     this.clearAction = new Gtk.Action("clearAction", null, null, "gtk-clear");
     w2.Add(this.clearAction, null);
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ControlWrappers.CronValueEditor";
     // Container child ControlWrappers.CronValueEditor.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.tvList = new Gtk.TreeView();
     this.tvList.CanFocus = true;
     this.tvList.Name = "tvList";
     this.tvList.EnableSearch = false;
     this.tvList.HeadersVisible = false;
     this.scrolledwindow2.Add(this.tvList);
     this.vbox2.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2]));
     w4.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='selectAllAction' action='selectAllAction'/><toolitem name='clearAction' action='clearAction'/></toolbar></ui>");
     this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
     this.toolbar1.Name = "toolbar1";
     this.toolbar1.ShowArrow = false;
     this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar1.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
     this.selectAllAction.Activated += new System.EventHandler(this.SelectAllActivated);
     this.clearAction.Activated += new System.EventHandler(this.ClearActivated);
     this.tvList.CursorChanged += new System.EventHandler(this.TreeListCursorChanged);
 }
        public TreeViewBuilder(Gtk.TreeView treeView)
        {
            _TreeView = treeView;
            _TreeStore = new Gtk.TreeStore (typeof (Gdk.Pixbuf),	typeof (Dossier));

            SetRenderers();
            SetColumns();

            SetDataFunctions();

            _TreeView.Model = _TreeStore;
        }
        public TreeViewBuilder(Gtk.TreeView treeView)
        {
            _TreeView  = treeView;
            _TreeStore = new Gtk.TreeStore(typeof(Gdk.Pixbuf), typeof(Dossier));

            SetRenderers();
            SetColumns();

            SetDataFunctions();

            _TreeView.Model = _TreeStore;
        }
Exemple #32
0
        private void InitKeysPane(Gtk.TreeView treeView, bool?used = null, bool?isChange = null)
        {
            _Store = new Gtk.ListStore(typeof(Key), typeof(string), typeof(string), typeof(string), typeof(string));

            treeView.Selection.Mode = Gtk.SelectionMode.Single;

            treeView.Model = _Store;
            treeView.AppendColumn("Public", new Gtk.CellRendererText(), "text", 1);
            treeView.AppendColumn("Private", new Gtk.CellRendererText(), "text", 2);
            treeView.AppendColumn("Used?", new Gtk.CellRendererText(), "text", 3);
            treeView.AppendColumn("Change?", new Gtk.CellRendererText(), "text", 4);

            Populate(treeView, used, isChange);
        }
Exemple #33
0
        /**
         * returnes true if changed and false if not
         * */
        private bool moveUpSelectedElementInTreeview(Gtk.TreeView target, Gtk.ListStore model)
        {
            Gtk.TreeIter selectedIter;
            Gtk.TreeIter prevIter;

            Gtk.TreePath[] selectedRows = target.Selection.GetSelectedRows();

            if (selectedRows.Length > 0 && getPrevIterFromSelection(out selectedIter, out prevIter, selectedRows[0], model))
            {
                model.MoveBefore(selectedIter, prevIter);
                return(true);
            }
            return(false);
        }
Exemple #34
0
        internal GtkListView(
            List <Gtk.TreeViewColumn> columns,
            Dictionary <int, Gtk.TreeIterCompareFunc> sortFunctionsByColumn,
            Gtk.TreeModelFilterVisibleFunc visibleFunc)
        {
            View = TreeBuilder.CreateTreeView();
            mSortFunctionByColumn = sortFunctionsByColumn;
            mVisibleFunc          = visibleFunc;

            foreach (Gtk.TreeViewColumn column in columns)
            {
                View.AppendColumn(column);
            }
        }
Exemple #35
0
        public void Apply(Gtk.Widget widget)
        {
            Gtk.TreeView treeView = widget as Gtk.TreeView;
            if (treeView == null)
            {
                Console.WriteLine("TreeViewTemplate.Apply: Invalid widget type for this template");
                return;
            }

            foreach (var col in Columns)
            {
                treeView.AppendColumn(col.Item1, col.Item2, ValuePropertyDataFunc);
            }
        }
    public TreeViewExample()
    {
        // Create a Window
        Gtk.Window window = new Gtk.Window("TreeView Example");
        window.SetSizeRequest(500, 200);

        // Create our TreeView
        Gtk.TreeView tree = new Gtk.TreeView();

        // Add our tree to the window
        window.Add(tree);

        // Create a column for the artist name
        Gtk.TreeViewColumn artistColumn = new Gtk.TreeViewColumn();
        artistColumn.Title = "Artist";

        // Create the text cell that will display the artist name
        Gtk.CellRendererText artistNameCell = new Gtk.CellRendererText();

        // Add the cell to the column
        artistColumn.PackStart(artistNameCell, true);

        // Create a column for the song title
        Gtk.TreeViewColumn songColumn = new Gtk.TreeViewColumn();
        songColumn.Title = "Song Title";

        // Do the same for the song title column
        Gtk.CellRendererText songTitleCell = new Gtk.CellRendererText();
        songColumn.PackStart(songTitleCell, true);

        // Add the columns to the TreeView
        tree.AppendColumn(artistColumn);
        tree.AppendColumn(songColumn);

        // Tell the Cell Renderers which items in the model to display
        artistColumn.AddAttribute(artistNameCell, "text", 0);
        songColumn.AddAttribute(songTitleCell, "text", 1);

        // Create a model that will hold two strings - Artist Name and Song Title
        Gtk.ListStore musicListStore = new Gtk.ListStore(typeof(string), typeof(string));

        // Add some data to the store
        musicListStore.AppendValues("Garbage", "Dog New Tricks");

        // Assign the model to the TreeView
        tree.Model = musicListStore;

        // Show the window and everything on it
        window.ShowAll();
    }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Adroit.Gui.ContextView
     Stetic.BinContainer.Attach(this);
     this.Name = "Adroit.Gui.ContextView";
     // Container child Adroit.Gui.ContextView.Gtk.Container+ContainerChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 186;
     // Container child hpaned1.Gtk.Paned+PanedChild
     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
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     w1.Add(this.treeview1);
     this.scrolledwindow1.Add(w1);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w4.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     Gtk.Viewport w5 = new Gtk.Viewport();
     w5.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport1.Gtk.Container+ContainerChild
     this.treeview2 = new Gtk.TreeView();
     this.treeview2.CanFocus = true;
     this.treeview2.Name = "treeview2";
     w5.Add(this.treeview2);
     this.scrolledwindow2.Add(w5);
     this.hpaned1.Add(this.scrolledwindow2);
     this.Add(this.hpaned1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
		public SendMessagesOverviewWindow()
		{
			// Create window
			Gtk.Window window = new Gtk.Window ( "Verzonden Berichten" );
			window.SetSizeRequest (700, 200);

			// Add tree to window
			Gtk.TreeView tree = new Gtk.TreeView ();
			window.Add (tree);

			// Create the column for displaying the telephone number.
			Gtk.TreeViewColumn numberReceiverColumn = new Gtk.TreeViewColumn ();
			numberReceiverColumn.Title = "Telefoon nummer";
			numberReceiverColumn.MinWidth = 200;
			// Create the text cell that will display the telephone number.
			Gtk.CellRendererText numberReceiverCell = new Gtk.CellRendererText ();
			// Add the cell to the column.
			numberReceiverColumn.PackStart (numberReceiverCell, true);

			// Create the column for displaing the message.
			Gtk.TreeViewColumn messageColumn = new Gtk.TreeViewColumn ();
			messageColumn.Title = "Bericht";
			messageColumn.MinWidth = 300;
			// Create the text cell that will display the message.
			Gtk.CellRendererText messageCell = new Gtk.CellRendererText ();
			messageColumn.PackStart (messageCell, true);

			// Create the column for displaying the date send.
			Gtk.TreeViewColumn sendAtColumn = new Gtk.TreeViewColumn ();
			sendAtColumn.Title = "Verstuurd op";
			sendAtColumn.MinWidth = 200;
			// Create the text cell that will display the date send.
			Gtk.CellRendererText sendAtCell = new Gtk.CellRendererText ();
			sendAtColumn.PackStart (sendAtCell, true);

			tree.AppendColumn (numberReceiverColumn);
			tree.AppendColumn (messageColumn);
			tree.AppendColumn (sendAtColumn);

			// Tell the cell renderers which items in the model to display
			numberReceiverColumn.AddAttribute (numberReceiverCell, "text", 0);
			messageColumn.AddAttribute (messageCell, "text", 1);
			sendAtColumn.AddAttribute (sendAtCell, "text", 2);

			// Assign the model to the TreeView
			tree.Model = this.getMessageList ();
			// Show the window and everythin on it.
			window.ShowAll ();
		}
Exemple #39
0
		public LogWindow() : base("Log Model")
		{
			this.Move(0,0);

			this.SetSizeRequest(600, 500);

			Gtk.TreeView treeviewLog = new Gtk.TreeView();

			Gtk.TreeViewColumn idColumn = new Gtk.TreeViewColumn ();
			idColumn.Title = "Id";

			Gtk.TreeViewColumn typeColumn = new Gtk.TreeViewColumn ();
			typeColumn.Title = "Type";

			Gtk.TreeViewColumn descriptionColumn = new Gtk.TreeViewColumn ();
			descriptionColumn.Title = "Description";

			logListStore = new Gtk.ListStore (typeof (string), typeof (string), typeof (string));

			treeviewLog.AppendColumn(idColumn);
			treeviewLog.AppendColumn(typeColumn);
			treeviewLog.AppendColumn(descriptionColumn);

			treeviewLog.Model = logListStore;




			Gtk.CellRendererText idCell = new Gtk.CellRendererText ();
			idColumn.PackStart(idCell, true);

			Gtk.CellRendererText typeCell = new Gtk.CellRendererText ();
			typeColumn.PackStart(typeCell, true);

			Gtk.CellRendererText descriptionCell = new Gtk.CellRendererText ();
			descriptionColumn.PackStart(descriptionCell, true);

			idColumn.AddAttribute(idCell, "text", 0);
			typeColumn.AddAttribute(typeCell, "text", 1);
			descriptionColumn.AddAttribute(descriptionCell, "text", 2);

			Gtk.ScrolledWindow scWindow = new Gtk.ScrolledWindow();
			scWindow.Add(treeviewLog);

			this.Add(scWindow);

		}
		public FlagsSelectorDialog (Gtk.Window parent, Type enumDesc, ulong flags, string title)
		{
			this.flags = flags;
			this.parent = parent;

			Gtk.ScrolledWindow sc = new Gtk.ScrolledWindow ();
			sc.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sc.ShadowType = Gtk.ShadowType.In;
			sc.BorderWidth = 6;
			
			treeView = new Gtk.TreeView ();
			sc.Add (treeView);
			
			dialog = new Gtk.Dialog ();
			IdeTheme.ApplyTheme (dialog);
			dialog.VBox.Add (sc);
			dialog.AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
			dialog.AddButton (Gtk.Stock.Ok, Gtk.ResponseType.Ok);
			
			store = new Gtk.ListStore (typeof(bool), typeof(string), typeof(ulong));
			treeView.Model = store;
			treeView.HeadersVisible = false;
			
			Gtk.TreeViewColumn col = new Gtk.TreeViewColumn ();
			
			Gtk.CellRendererToggle tog = new Gtk.CellRendererToggle ();
			tog.Toggled += new Gtk.ToggledHandler (OnToggled);
			col.PackStart (tog, false);
			col.AddAttribute (tog, "active", 0);
			
			Gtk.CellRendererText crt = new Gtk.CellRendererText ();
			col.PackStart (crt, true);
			col.AddAttribute (crt, "text", 1);
			
			treeView.AppendColumn (col);

			values = System.Enum.GetValues (enumDesc);
			foreach (object value in values) {
				ulong val = Convert.ToUInt64 (value);
				store.AppendValues ((flags == 0 && val == 0) || ((flags & val) != 0), value.ToString (), val);
			}
		}
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PersonalMoney.ExpensesWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "PersonalMoney.ExpensesWidget";
     // Container child PersonalMoney.ExpensesWidget.Gtk.Container+ContainerChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview = new Gtk.TreeView();
     this.treeview.CanFocus = true;
     this.treeview.Name = "treeview";
     this.GtkScrolledWindow.Add(this.treeview);
     this.Add(this.GtkScrolledWindow);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget DirectoryHistory.UI.FolderList
     Stetic.BinContainer.Attach(this);
     this.Name = "DirectoryHistory.UI.FolderList";
     // Container child DirectoryHistory.UI.FolderList.Gtk.Container+ContainerChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview = new Gtk.TreeView();
     this.treeview.CanFocus = true;
     this.treeview.Name = "treeview";
     this.GtkScrolledWindow.Add(this.treeview);
     this.Add(this.GtkScrolledWindow);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Profiler.HeapSnapshotExplorer
     Stetic.BinContainer.Attach(this);
     this.Name = "Mono.Profiler.HeapSnapshotExplorer";
     // Container child Mono.Profiler.HeapSnapshotExplorer.Gtk.Container+ContainerChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 124;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.Tree = new Gtk.TreeView();
     this.Tree.CanFocus = true;
     this.Tree.Name = "Tree";
     this.GtkScrolledWindow.Add(this.Tree);
     this.hpaned1.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w2 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.GtkScrolledWindow]));
     w2.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
     this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
     this.PerClassStatistics = new Gtk.NodeView();
     this.PerClassStatistics.CanFocus = true;
     this.PerClassStatistics.Name = "PerClassStatistics";
     this.GtkScrolledWindow1.Add(this.PerClassStatistics);
     this.hpaned1.Add(this.GtkScrolledWindow1);
     this.Add(this.hpaned1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.Tree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTreeButtonPress);
     this.PerClassStatistics.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnListButtonPress);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.GroupChatList
     Stetic.BinContainer.Attach(this);
     this.WidthRequest = 150;
     this.Name = "omvviewerlight.GroupChatList";
     // Container child omvviewerlight.GroupChatList.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Group chat members");
     this.vbox3.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.label1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.treeview_members = new Gtk.TreeView();
     this.treeview_members.WidthRequest = 150;
     this.treeview_members.CanFocus = true;
     this.treeview_members.Name = "treeview_members";
     this.GtkScrolledWindow.Add(this.treeview_members);
     this.vbox3.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow]));
     w3.Position = 1;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.TaskForce.Gui.Components.SessionDisplayWidget
     Stetic.BinContainer.Attach(this);
     this.HeightRequest = 200;
     this.Name = "MonoDevelop.TaskForce.Gui.Components.SessionDisplayWidget";
     // Container child MonoDevelop.TaskForce.Gui.Components.SessionDisplayWidget.Gtk.Container+ContainerChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.sessionView1 = new Gtk.TreeView();
     this.sessionView1.HeightRequest = 105;
     this.sessionView1.CanFocus = true;
     this.sessionView1.Name = "sessionView1";
     this.GtkScrolledWindow.Add(this.sessionView1);
     this.Add(this.GtkScrolledWindow);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget SimpleDownloader.TestDownloadWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.quitAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "SimpleDownloader.TestDownloadWindow";
     this.Title = Mono.Unix.Catalog.GetString("TestDownloadWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child SimpleDownloader.TestDownloadWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='quitAction' action='quitAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 141;
     this.hpaned1.BorderWidth = ((uint)(5));
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.expander1 = new Gtk.Expander(null);
     this.expander1.CanFocus = true;
     this.expander1.Name = "expander1";
     this.expander1.Expanded = true;
     // Container child expander1.Gtk.Container+ContainerChild
     this.vbuttonbox2 = new Gtk.VButtonBox();
     this.vbuttonbox2.Name = "vbuttonbox2";
     this.vbuttonbox2.Homogeneous = true;
     this.vbuttonbox2.Spacing = 5;
     this.vbuttonbox2.BorderWidth = ((uint)(5));
     // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     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-add";
     this.vbuttonbox2.Add(this.button1);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button1]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.button2 = new Gtk.Button();
     this.button2.CanFocus = true;
     this.button2.Name = "button2";
     this.button2.UseStock = true;
     this.button2.UseUnderline = true;
     this.button2.Label = "gtk-delete";
     this.vbuttonbox2.Add(this.button2);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.expander1.Add(this.vbuttonbox2);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Download");
     this.GtkLabel3.UseUnderline = true;
     this.expander1.LabelWidget = this.GtkLabel3;
     this.vbox2.Add(this.expander1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1]));
     w6.Position = 0;
     w6.Expand = false;
     // Container child vbox2.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));
     // Container child table1.Gtk.Table+TableChild
     this.label3 = new Gtk.Label();
     this.label3.Name = "label3";
     this.label3.Xalign = 1F;
     this.label3.LabelProp = Mono.Unix.Catalog.GetString("Links:");
     this.table1.Add(this.label3);
     Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
     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 = Mono.Unix.Catalog.GetString("In progress:");
     this.table1.Add(this.label4);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
     w8.TopAttach = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     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.LabelProp = Mono.Unix.Catalog.GetString("27");
     this.table1.Add(this.label5);
     Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
     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.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("13");
     this.table1.Add(this.label6);
     Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
     w10.TopAttach = ((uint)(1));
     w10.BottomAttach = ((uint)(2));
     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.label7 = new Gtk.Label();
     this.label7.Name = "label7";
     this.label7.Xalign = 1F;
     this.label7.LabelProp = Mono.Unix.Catalog.GetString("Done:");
     this.table1.Add(this.label7);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label7]));
     w11.TopAttach = ((uint)(2));
     w11.BottomAttach = ((uint)(3));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     w11.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table1.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("14");
     this.table1.Add(this.label8);
     Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
     w12.TopAttach = ((uint)(2));
     w12.BottomAttach = ((uint)(3));
     w12.LeftAttach = ((uint)(1));
     w12.RightAttach = ((uint)(2));
     w12.XOptions = ((Gtk.AttachOptions)(4));
     w12.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox2.Add(this.table1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
     w13.Position = 1;
     // Container child vbox2.Gtk.Box+BoxChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Current:");
     this.vbox3.Add(this.label1);
     Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.label1]));
     w14.Position = 0;
     w14.Expand = false;
     w14.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.progressCurrent = new Gtk.ProgressBar();
     this.progressCurrent.Name = "progressCurrent";
     this.progressCurrent.Text = "";
     this.vbox3.Add(this.progressCurrent);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressCurrent]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Xalign = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Overall:");
     this.vbox3.Add(this.label2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.progressbar2 = new Gtk.ProgressBar();
     this.progressbar2.Name = "progressbar2";
     this.progressbar2.Text = "";
     this.vbox3.Add(this.progressbar2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressbar2]));
     w17.Position = 3;
     w17.Expand = false;
     w17.Fill = false;
     this.vbox2.Add(this.vbox3);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
     w18.Position = 2;
     w18.Expand = false;
     w18.Fill = false;
     this.hpaned1.Add(this.vbox2);
     Gtk.Paned.PanedChild w19 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox2]));
     w19.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     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.downloadTree = new Gtk.TreeView();
     this.downloadTree.CanFocus = true;
     this.downloadTree.Name = "downloadTree";
     this.scrolledwindow1.Add(this.downloadTree);
     this.hpaned1.Add(this.scrolledwindow1);
     this.vbox1.Add(this.hpaned1);
     Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));
     w22.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 609;
     this.DefaultHeight = 413;
     this.Show();
     this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked);
     this.downloadTree.RowActivated += new Gtk.RowActivatedHandler(this.OnDownloadTreeRowActivated);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.RubyBinding.GeneralOptionsPanel
     Stetic.BinContainer.Attach(this);
     this.CanFocus = true;
     this.Name = "MonoDevelop.RubyBinding.GeneralOptionsPanel";
     // Container child MonoDevelop.RubyBinding.GeneralOptionsPanel.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("Startup File");
     this.label2.Justify = ((Gtk.Justification)(1));
     this.hbox3.Add(this.label2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.projectFilesCB = Gtk.ComboBox.NewText();
     this.projectFilesCB.Name = "projectFilesCB";
     this.hbox3.Add(this.projectFilesCB);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.projectFilesCB]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.vbox1.Add(this.hbox3);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
     this.table2.Name = "table2";
     this.table2.RowSpacing = ((uint)(10));
     this.table2.ColumnSpacing = ((uint)(10));
     this.table2.BorderWidth = ((uint)(3));
     // Container child table2.Gtk.Table+TableChild
     this.addLoadpathButton = new Gtk.Button();
     this.addLoadpathButton.Sensitive = false;
     this.addLoadpathButton.CanFocus = true;
     this.addLoadpathButton.Name = "addLoadpathButton";
     this.addLoadpathButton.UseStock = true;
     this.addLoadpathButton.UseUnderline = true;
     this.addLoadpathButton.Label = "gtk-add";
     this.table2.Add(this.addLoadpathButton);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.addLoadpathButton]));
     w4.LeftAttach = ((uint)(2));
     w4.RightAttach = ((uint)(3));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label8 = new Gtk.Label();
     this.label8.Name = "label8";
     this.label8.LabelProp = Mono.Unix.Catalog.GetString("Load Path:");
     this.table2.Add(this.label8);
     Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.label8]));
     w5.XOptions = ((Gtk.AttachOptions)(4));
     w5.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.loadpathAddEntry = new Gtk.Entry();
     this.loadpathAddEntry.CanFocus = true;
     this.loadpathAddEntry.Name = "loadpathAddEntry";
     this.loadpathAddEntry.IsEditable = true;
     this.loadpathAddEntry.InvisibleChar = '*';
     this.table2.Add(this.loadpathAddEntry);
     Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.loadpathAddEntry]));
     w6.LeftAttach = ((uint)(1));
     w6.RightAttach = ((uint)(2));
     w6.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.loadpathTreeView = new Gtk.TreeView();
     this.loadpathTreeView.CanFocus = true;
     this.loadpathTreeView.Name = "loadpathTreeView";
     this.scrolledwindow1.Add(this.loadpathTreeView);
     this.table2.Add(this.scrolledwindow1);
     Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow1]));
     w8.TopAttach = ((uint)(1));
     w8.BottomAttach = ((uint)(2));
     w8.LeftAttach = ((uint)(1));
     w8.RightAttach = ((uint)(2));
     // Container child table2.Gtk.Table+TableChild
     this.vbox4 = new Gtk.VBox();
     this.vbox4.Name = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.browseButton = new Gtk.Button();
     this.browseButton.CanFocus = true;
     this.browseButton.Name = "browseButton";
     this.browseButton.UseStock = true;
     this.browseButton.UseUnderline = true;
     this.browseButton.Label = "gtk-open";
     this.vbox4.Add(this.browseButton);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.browseButton]));
     w9.Position = 0;
     w9.Expand = false;
     w9.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.removeLoadpathButton = new Gtk.Button();
     this.removeLoadpathButton.Sensitive = false;
     this.removeLoadpathButton.CanFocus = true;
     this.removeLoadpathButton.Name = "removeLoadpathButton";
     this.removeLoadpathButton.UseStock = true;
     this.removeLoadpathButton.UseUnderline = true;
     this.removeLoadpathButton.Label = "gtk-remove";
     this.vbox4.Add(this.removeLoadpathButton);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeLoadpathButton]));
     w10.Position = 1;
     w10.Expand = false;
     w10.Fill = false;
     this.table2.Add(this.vbox4);
     Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table2[this.vbox4]));
     w11.TopAttach = ((uint)(1));
     w11.BottomAttach = ((uint)(2));
     w11.LeftAttach = ((uint)(2));
     w11.RightAttach = ((uint)(3));
     w11.XOptions = ((Gtk.AttachOptions)(4));
     this.vbox1.Add(this.table2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.table2]));
     w12.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.browseButton.Clicked += new System.EventHandler(this.browseButtonClicked);
     this.removeLoadpathButton.Clicked += new System.EventHandler(this.removeLoadpathButtonClicked);
     this.loadpathTreeView.CursorChanged += new System.EventHandler(this.loadpathTreeViewCursorChanged);
     this.loadpathAddEntry.Changed += new System.EventHandler(this.loadpathAddEntryChanged);
     this.addLoadpathButton.Clicked += new System.EventHandler(this.loadpathAddButtonClicked);
 }
        public void Init()
        {
            this.Name = "OpenGraal.GraalIM.RCPlayerList";
            this.Title = global::Mono.Unix.Catalog.GetString("Players");
            this.Icon = global::Gdk.Pixbuf.LoadFromResource("OpenGraal.GraalIM.Resources.rcicon.ico");
            this.WidthRequest = 580;
            this.HeightRequest = 420;
            this._playerlistTabs = new global::Gtk.Notebook();
            this._playerlistTabs.CanFocus = true;
            this._playerlistTabs.Name = "_playerlistTabs";
            this._playerlistTabs.CurrentPage = 0;
            this._playerlistTabs.EnablePopup = true;
            this._playerlistTabs.Scrollable = true;

            this._thisServerLabel = new global::Gtk.Label();
            this._thisServerLabel.CanDefault = true;
            this._thisServerLabel.Name = "StatusTabLabel";
            this._thisServerLabel.LabelProp = global::Mono.Unix.Catalog.GetString("This server");

            this._playerList = new Gtk.TreeView();

            this._playerList.SetSizeRequest(230, 230);

            this._playerListModel = new Gtk.ListStore(typeof(Gdk.Pixbuf), typeof(string), typeof(int));
            //this.tree.Selection.Changed += new System.EventHandler(OnSelectionChanged);
            //this._playerList.CursorChanged += new System.EventHandler(OnSelectionChanged);
            /*
            this._playerList.ButtonPressEvent += new ButtonPressEventHandler(delegate(object o, ButtonPressEventArgs args)
                                                                      {
                System.Console.WriteLine(args.ToString());
            });
            */
            Gtk.CellRendererPixbuf pixbufrender = new Gtk.CellRendererPixbuf();
            Gtk.TreeViewColumn TypeCol = this._playerList.AppendColumn("", new Gtk.CellRendererPixbuf(), "pixbuf", 0);
            TypeCol.SortIndicator = true;
            TypeCol.SortColumnId = 0;
            Gtk.CellRendererPixbuf cellpb = new Gtk.CellRendererPixbuf();
            Gtk.CellRendererText cell = new Gtk.CellRendererText();
            TypeCol.PackStart(cellpb, false);
            TypeCol.PackStart(cell, false);

            Gtk.CellRendererText NickColText = new Gtk.CellRendererText();

            Gtk.TreeViewColumn NickCol = new Gtk.TreeViewColumn ();
            NickCol.PackStart(NickColText,true);
            NickCol.Title = "Artist";
            NickCol.SortIndicator = true;
            NickCol.SortColumnId = 1;

            NickCol.AddAttribute(NickColText, "text", 1);
            this._playerList.AppendColumn(NickCol);

            Gtk.TreeViewColumn AccCol = this._playerList.AppendColumn("Account", new Gtk.CellRendererText(), "text", 2);
            AccCol.SortIndicator = true;
            AccCol.SortColumnId = 2;
            Gtk.TreeViewColumn LvlCol = this._playerList.AppendColumn("Level", new Gtk.CellRendererText(), "text", 3);
            LvlCol.SortIndicator = true;
            LvlCol.SortColumnId = 3;
            Gtk.TreeViewColumn IdCol = this._playerList.AppendColumn("ID", new Gtk.CellRendererText(), "text", 4);
            IdCol.SortIndicator = true;
            IdCol.SortColumnId = 4;

            Gtk.TreeIter iter = _playerListModel.AppendValues("Admins");
            _playerListModel.AppendValues(iter, "Fannypack", "Nu Nu (Yeah Yeah) (double j and haze radio edit)");

            iter = _playerListModel.AppendValues("Players");
            _playerListModel.AppendValues(iter, "Nelly", "Country Grammer");

            this._playerList.FixedHeightMode = false;
            this._playerList.HeadersClickable = true;
            this._playerList.SearchColumn = 1;

            this._playerList.EnableSearch = true;
            this._playerList.EnableTreeLines = true;
            this._playerList.ShowExpanders = true;
            //this.tree.Vadjustment.
            //_playerListModel.AppendValues("", "Loading...", "");

            Gtk.Frame frame2 = new Gtk.Frame();
            this._playerList.Model = _playerListModel;

            this._playerListScroll = new global::Gtk.ScrolledWindow();
            this._playerListScroll.Name = "GtkScrolledWindow";
            this._playerListScroll.ShadowType = ((global::Gtk.ShadowType)(1));

            // Container child GtkScrolledWindow.Gtk.Container+ContainerChild

            this._playerListScroll.Add(this._playerList);

            this._playerlistTabs.Add(this._playerListScroll);
            this._playerlistTabs.SetTabLabel(this._playerListScroll, this._thisServerLabel);
            this._thisServerLabel.ShowAll();
            this.Add(this._playerlistTabs);
        }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.NamePicker
     this.Name = "omvviewerlight.NamePicker";
     this.Title = Mono.Unix.Catalog.GetString("NamePicker");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child omvviewerlight.NamePicker.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.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.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     this.GtkScrolledWindow.Add(this.treeview1);
     this.vbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
     w2.Position = 0;
     // 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.button_select = new Gtk.Button();
     this.button_select.CanFocus = true;
     this.button_select.Name = "button_select";
     this.button_select.UseUnderline = true;
     this.button_select.Label = Mono.Unix.Catalog.GetString("Select");
     this.hbox1.Add(this.button_select);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.button_select]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button_cancel = new Gtk.Button();
     this.button_cancel.CanFocus = true;
     this.button_cancel.Name = "button_cancel";
     this.button_cancel.UseUnderline = true;
     this.button_cancel.Label = Mono.Unix.Catalog.GetString("Cancel");
     this.hbox1.Add(this.button_cancel);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.button_cancel]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.button_select.Clicked += new System.EventHandler(this.OnButtonSelectClicked);
     this.button_cancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
 }
 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.DescriptionWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.DescriptionWidget";
     // Container child ocmgtk.DescriptionWidget.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     this.vbox2.BorderWidth = ((uint)(6));
     // Container child vbox2.Gtk.Box+BoxChild
     this.hintButton = new Gtk.Button();
     this.hintButton.Name = "hintButton";
     this.hintButton.Relief = ((Gtk.ReliefStyle)(2));
     // Container child hintButton.Gtk.Container+ContainerChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("<span fgcolor=\"blue\">Hint</span>");
     this.label1.UseMarkup = true;
     this.hintButton.Add(this.label1);
     this.hintButton.Label = null;
     this.vbox2.Add(this.hintButton);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.hintButton]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.tbugExpander = new Gtk.Expander(null);
     this.tbugExpander.CanFocus = true;
     this.tbugExpander.Name = "tbugExpander";
     // Container child tbugExpander.Gtk.Container+ContainerChild
     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.tbugView = new Gtk.TreeView();
     this.tbugView.CanFocus = true;
     this.tbugView.Name = "tbugView";
     this.scrolledwindow1.Add(this.tbugView);
     this.tbugExpander.Add(this.scrolledwindow1);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.Xalign = 0F;
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Trackables</b>");
     this.GtkLabel2.UseMarkup = true;
     this.GtkLabel2.UseUnderline = true;
     this.tbugExpander.LabelWidget = this.GtkLabel2;
     this.vbox2.Add(this.tbugExpander);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.tbugExpander]));
     w5.Position = 1;
     w5.Expand = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.descAlign = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.descAlign.Name = "descAlign";
     this.vbox2.Add(this.descAlign);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.descAlign]));
     w6.Position = 2;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.hintButton.Clicked += new System.EventHandler(this.onHintClick);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget MonoDevelop.Database.Designer.TriggersEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.TriggersEditorWidget";
     // Container child MonoDevelop.Database.Designer.TriggersEditorWidget.Gtk.Container+ContainerChild
     this.vpaned = new Gtk.VPaned();
     this.vpaned.CanFocus = true;
     this.vpaned.Name = "vpaned";
     this.vpaned.Position = 205;
     // Container child vpaned.Gtk.Paned+PanedChild
     this.hbox = new Gtk.HBox();
     this.hbox.Name = "hbox";
     this.hbox.Spacing = 6;
     // Container child hbox.Gtk.Box+BoxChild
     this.windowTriggers = new Gtk.ScrolledWindow();
     this.windowTriggers.CanFocus = true;
     this.windowTriggers.Name = "windowTriggers";
     this.windowTriggers.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowTriggers.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowTriggers.ShadowType = ((Gtk.ShadowType)(1));
     // Container child windowTriggers.Gtk.Container+ContainerChild
     this.listTriggers = new Gtk.TreeView();
     this.listTriggers.CanFocus = true;
     this.listTriggers.Name = "listTriggers";
     this.listTriggers.HeadersClickable = true;
     this.windowTriggers.Add(this.listTriggers);
     this.hbox.Add(this.windowTriggers);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox[this.windowTriggers]));
     w2.Position = 0;
     // Container child hbox.Gtk.Box+BoxChild
     this.vbuttonbox = new Gtk.VButtonBox();
     this.vbuttonbox.Name = "vbuttonbox";
     this.vbuttonbox.Spacing = 6;
     this.vbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd = new Gtk.Button();
     this.buttonAdd.CanFocus = true;
     this.buttonAdd.Name = "buttonAdd";
     this.buttonAdd.UseStock = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label = "gtk-add";
     this.vbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove = new Gtk.Button();
     this.buttonRemove.Sensitive = false;
     this.buttonRemove.CanFocus = true;
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.UseStock = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label = "gtk-remove";
     this.vbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.hbox.Add(this.vbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox[this.vbuttonbox]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.vpaned.Add(this.hbox);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vpaned[this.hbox]));
     w6.Resize = false;
     // Container child vpaned.Gtk.Paned+PanedChild
     this.frame = new Gtk.Frame();
     this.frame.Name = "frame";
     this.frame.ShadowType = ((Gtk.ShadowType)(0));
     this.frame.LabelXalign = 0F;
     // Container child frame.Gtk.Container+ContainerChild
     this.alignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.alignment.Name = "alignment";
     this.alignment.LeftPadding = ((uint)(12));
     // Container child alignment.Gtk.Container+ContainerChild
     this.sqlEditor = new MonoDevelop.Database.Components.SqlEditorWidget();
     this.sqlEditor.HeightRequest = 80;
     this.sqlEditor.Events = ((Gdk.EventMask)(256));
     this.sqlEditor.Name = "sqlEditor";
     this.sqlEditor.Editable = false;
     this.alignment.Add(this.sqlEditor);
     this.frame.Add(this.alignment);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("Statement");
     this.GtkLabel2.UseMarkup = true;
     this.frame.LabelWidget = this.GtkLabel2;
     this.vpaned.Add(this.frame);
     this.Add(this.vpaned);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.buttonAdd.Clicked += new System.EventHandler(this.AddClicked);
     this.buttonRemove.Clicked += new System.EventHandler(this.RemoveClicked);
 }
Exemple #53
0
        public GroupChatView(GroupChatModel groupChat)
            : base(groupChat)
        {
            Trace.Call(groupChat);

            _GroupChatModel = groupChat;

            // person list
            Participants = new List<PersonModel>();
            _OutputHPaned = new Gtk.HPaned();

            Gtk.TreeView tv = new Gtk.TreeView();
            _PersonTreeView = tv;
            Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
            PersonScrolledWindow = sw;
            sw.ShadowType = Gtk.ShadowType.None;
            sw.HscrollbarPolicy = Gtk.PolicyType.Never;

            //tv.CanFocus = false;
            tv.BorderWidth = 0;
            tv.Selection.Mode = Gtk.SelectionMode.Multiple;
            sw.Add(tv);

            Gtk.TreeViewColumn column;
            var cellr = new Gtk.CellRendererText() {
                Ellipsize = Pango.EllipsizeMode.End
            };
            IdentityNameCellRenderer = cellr;
            column = new Gtk.TreeViewColumn(String.Empty, cellr);
            column.SortColumnId = 0;
            column.Spacing = 0;
            column.SortIndicator = false;
            column.Expand = true;
            column.Sizing = Gtk.TreeViewColumnSizing.Autosize;
            // FIXME: this callback leaks memory
            column.SetCellDataFunc(cellr, new Gtk.TreeCellDataFunc(RenderPersonIdentityName));
            tv.AppendColumn(column);
            _IdentityNameColumn = column;

            Gtk.ListStore liststore = new Gtk.ListStore(typeof(PersonModel));
            liststore.SetSortColumnId(0, Gtk.SortType.Ascending);
            liststore.SetSortFunc(0, new Gtk.TreeIterCompareFunc(SortPersonListStore));
            _PersonListStore = liststore;

            tv.Model = liststore;
            tv.SearchColumn = 0;
            tv.SearchEqualFunc = (model, col, key, iter) => {
                var person = (PersonModel) model.GetValue(iter, col);
                // Ladies and gentlemen welcome to C
                // 0 means it matched but 0 as bool is false. So if it matches
                // we have to return false. Still not clear? true is false and
                // false is true, weirdo! If you think this is retarded,
                // yes it is.
                return !person.IdentityName.StartsWith(key, StringComparison.InvariantCultureIgnoreCase);
            };
            tv.EnableSearch = true;
            tv.HeadersVisible = false;
            tv.RowActivated += new Gtk.RowActivatedHandler(OnPersonsRowActivated);
            tv.FocusOutEvent += OnPersonTreeViewFocusOutEvent;

            // popup menu
            _PersonMenu = new Gtk.Menu();
            // don't loose the focus else we lose the selection too!
            // see OnPersonTreeViewFocusOutEvent()
            _PersonMenu.TakeFocus = false;
            _PersonMenu.Shown += OnPersonMenuShown;

            _PersonTreeView.ButtonPressEvent += _OnPersonTreeViewButtonPressEvent;
            _PersonTreeView.KeyPressEvent += OnPersonTreeViewKeyPressEvent;
            // frame needed for events when selecting something in the treeview
            _PersonTreeViewFrame = new Gtk.Frame() {
                ShadowType = Gtk.ShadowType.In
            };
            _PersonTreeViewFrame.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(_OnUserListButtonReleaseEvent);
            _PersonTreeViewFrame.Add(sw);

            // topic
            // don't worry, ApplyConfig() will add us to the OutputVBox!
            _OutputVBox = new Gtk.VBox() {
                Spacing = 1
            };

            _TopicTextView = new MessageTextView();
            _TopicTextView.Editable = false;
            _TopicTextView.WrapMode = Gtk.WrapMode.WordChar;
            _TopicScrolledWindow = new Gtk.ScrolledWindow();
            _TopicScrolledWindow.ShadowType = Gtk.ShadowType.In;
            _TopicScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never;
            _TopicScrolledWindow.Add(_TopicTextView);
            // make sure the topic is invisible and remains by default and
            // visible when a topic gets set
            _TopicScrolledWindow.ShowAll();
            _TopicScrolledWindow.Visible = false;
            _TopicScrolledWindow.NoShowAll = true;
            _TopicScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) {
                // predict and set useful topic heigth
                int lineWidth, lineHeight;
                using (var layout = _TopicTextView.CreatePangoLayout("Test Topic")) {
                    layout.GetPixelSize(out lineWidth, out lineHeight);
                }
                var lineSpacing = _TopicTextView.PixelsAboveLines +
                                  _TopicTextView.PixelsBelowLines;
                var it = _TopicTextView.Buffer.StartIter;
                int newLines = 1;
                // move to end of next visual line
                while (_TopicTextView.ForwardDisplayLineEnd(ref it)) {
                    newLines++;
                    // calling ForwardDisplayLineEnd repeatedly stays on the same position
                    // therefor we move one cursor position further
                    it.ForwardCursorPosition();
                }
                newLines = Math.Min(newLines, 3);
                var bestSize = new Gtk.Requisition() {
                    Height = ((lineHeight + lineSpacing) * newLines) + 4
                };
                args.Requisition = bestSize;
            };

            Add(_OutputHPaned);

            //ApplyConfig(Frontend.UserConfig);

            ShowAll();
        }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Gedcom.UI.GTK.Widgets.SourceCitationList
     Stetic.BinContainer.Attach(this);
     this.Events = ((Gdk.EventMask)(256));
     this.Name = "Gedcom.UI.GTK.Widgets.SourceCitationList";
     // Container child Gedcom.UI.GTK.Widgets.SourceCitationList.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     this.vbox1.BorderWidth = ((uint)(6));
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.SourceCitationTreeView = new Gtk.TreeView();
     this.SourceCitationTreeView.CanFocus = true;
     this.SourceCitationTreeView.Name = "SourceCitationTreeView";
     this.SourceCitationTreeView.Reorderable = true;
     this.SourceCitationTreeView.RulesHint = true;
     this.SourceCitationTreeView.SearchColumn = 0;
     this.scrolledwindow1.Add(this.SourceCitationTreeView);
     this.hbox1.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.scrolledwindow1]));
     w2.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.NewSourceCitationButton = new Gtk.Button();
     this.NewSourceCitationButton.CanFocus = true;
     this.NewSourceCitationButton.Name = "NewSourceCitationButton";
     this.NewSourceCitationButton.UseStock = true;
     this.NewSourceCitationButton.UseUnderline = true;
     this.NewSourceCitationButton.Label = "gtk-new";
     this.vbox2.Add(this.NewSourceCitationButton);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.NewSourceCitationButton]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w5.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.SourceCitationTreeView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnSourceCitationTreeView_ButtonPressEvent);
     this.NewSourceCitationButton.Clicked += new System.EventHandler(this.OnNewSourceCitationButton_Clicked);
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize();
     // Widget Monoxide.MainWindow
     Gtk.UIManager w1 = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.refresh = new Gtk.Action("refresh", null, null, "gtk-refresh");
     w2.Add(this.refresh, null);
     this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null);
     this.File.ShortLabel = Mono.Unix.Catalog.GetString("_File");
     w2.Add(this.File, null);
     this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit");
     this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit");
     w2.Add(this.Quit, null);
     this.Tools = new Gtk.Action("Tools", Mono.Unix.Catalog.GetString("_Tools"), null, null);
     this.Tools.ShortLabel = Mono.Unix.Catalog.GetString("_Tools");
     w2.Add(this.Tools, null);
     this.AddinManagerAction = new Gtk.Action("AddinManagerAction", Mono.Unix.Catalog.GetString("Addin Manager..."), null, "AddinManager");
     this.AddinManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("Addin Manager...");
     w2.Add(this.AddinManagerAction, null);
     this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("_View"), null, null);
     this.View.ShortLabel = Mono.Unix.Catalog.GetString("_View");
     w2.Add(this.View, null);
     this.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open");
     this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open...");
     w2.Add(this.Open, null);
     this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("_Help"), null, null);
     this.Help.ShortLabel = Mono.Unix.Catalog.GetString("_Help");
     w2.Add(this.Help, null);
     this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About..."), null, "gtk-about");
     this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About...");
     w2.Add(this.About, null);
     this.Save = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save..."), null, "gtk-save");
     this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save...");
     w2.Add(this.Save, null);
     w1.InsertActionGroup(w2, 0);
     this.AddAccelGroup(w1.AccelGroup);
     this.Name = "Monoxide.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("monoXide 0.2");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child Monoxide.MainWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Open'/><menuitem action='Save'/><separator/><menuitem action='Quit'/></menu><menu action='View'><menuitem action='refresh'/></menu><menu action='Tools'><menuitem action='AddinManagerAction'/><separator/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox2.Add(this.menubar1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.menubar1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     w1.AddUiFromString("<ui><toolbar name='toolbar'><toolitem action='Open'/><separator/><toolitem action='refresh'/><separator/><toolitem action='AddinManagerAction'/></toolbar></ui>");
     this.toolbar = ((Gtk.Toolbar)(w1.GetWidget("/toolbar")));
     this.toolbar.Name = "toolbar";
     this.toolbar.ShowArrow = false;
     this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
     this.toolbar.IconSize = ((Gtk.IconSize)(3));
     this.vbox2.Add(this.toolbar);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.toolbar]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hpaned1 = new Gtk.HPaned();
     this.hpaned1.CanFocus = true;
     this.hpaned1.Name = "hpaned1";
     this.hpaned1.Position = 199;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     this.treeview = new Gtk.TreeView();
     this.treeview.CanFocus = true;
     this.treeview.Name = "treeview";
     this.scrolledwindow1.Add(this.treeview);
     this.hpaned1.Add(this.scrolledwindow1);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
     w6.Resize = false;
     // Container child hpaned1.Gtk.Paned+PanedChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.objectExpander = new Gtk.Expander(null);
     this.objectExpander.CanFocus = true;
     this.objectExpander.Name = "objectExpander";
     // Container child objectExpander.Gtk.Container+ContainerChild
     this.textview = new Gtk.TextView();
     this.textview.CanFocus = true;
     this.textview.Name = "textview";
     this.textview.Editable = false;
     this.objectExpander.Add(this.textview);
     this.objectLabel = new Gtk.Label();
     this.objectLabel.Name = "objectLabel";
     this.objectLabel.LabelProp = Mono.Unix.Catalog.GetString("<empty>");
     this.objectLabel.UseUnderline = true;
     this.objectExpander.LabelWidget = this.objectLabel;
     this.vbox1.Add(this.objectExpander);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.objectExpander]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.notebook = new Gtk.Notebook();
     this.notebook.CanFocus = true;
     this.notebook.Name = "notebook";
     this.notebook.CurrentPage = 0;
     this.notebook.Scrollable = true;
     // Container child notebook.Gtk.Notebook+NotebookChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     this.notebook.Add(this.scrolledwindow2);
     Gtk.Notebook.NotebookChild w9 = ((Gtk.Notebook.NotebookChild)(this.notebook[this.scrolledwindow2]));
     w9.TabExpand = false;
     this.vbox1.Add(this.notebook);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook]));
     w10.Position = 1;
     this.hpaned1.Add(this.vbox1);
     this.vbox2.Add(this.hpaned1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.hpaned1]));
     w12.Position = 2;
     // Container child vbox2.Gtk.Box+BoxChild
     this.statusbar1 = new Gtk.Statusbar();
     this.statusbar1.Name = "statusbar1";
     this.statusbar1.Spacing = 6;
     this.vbox2.Add(this.statusbar1);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar1]));
     w13.Position = 3;
     w13.Expand = false;
     w13.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 698;
     this.DefaultHeight = 490;
     this.Show();
     this.refresh.Activated += new System.EventHandler(this.OnRefreshActivated);
     this.Quit.Activated += new System.EventHandler(this.OnQuitActivated);
     this.AddinManagerAction.Activated += new System.EventHandler(this.OnAddinManagerActivated);
     this.Open.Activated += new System.EventHandler(this.OnOpenActivated);
     this.About.Activated += new System.EventHandler(this.OnAboutActivated);
     this.Save.Activated += new System.EventHandler(this.OnSaveActivated);
     this.treeview.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTreeviewButtonPressEvent);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.GroupSearch
     Stetic.BinContainer.Attach(this);
     this.Name = "omvviewerlight.GroupSearch";
     // Container child omvviewerlight.GroupSearch.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = Mono.Unix.Catalog.GetString("Search for");
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.entry_search = new Gtk.Entry();
     this.entry_search.CanFocus = true;
     this.entry_search.Name = "entry_search";
     this.entry_search.IsEditable = true;
     this.entry_search.InvisibleChar = '●';
     this.hbox1.Add(this.entry_search);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry_search]));
     w2.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.button1 = new Gtk.Button();
     this.button1.CanFocus = true;
     this.button1.Name = "button1";
     this.button1.UseUnderline = true;
     // Container child button1.Gtk.Container+ContainerChild
     Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w4 = new Gtk.HBox();
     w4.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w5 = new Gtk.Image();
     w5.Pixbuf = MainClass.GetResource("status_search_btn.png");
     w4.Add(w5);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w7 = new Gtk.Label();
     w7.LabelProp = Mono.Unix.Catalog.GetString("Search");
     w7.UseUnderline = true;
     w4.Add(w7);
     w3.Add(w4);
     this.button1.Add(w3);
     this.hbox1.Add(this.button1);
     Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1]));
     w11.Position = 2;
     w11.Expand = false;
     w11.Fill = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w12.Position = 0;
     w12.Expand = false;
     w12.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label_search_progress = new Gtk.Label();
     this.label_search_progress.Name = "label_search_progress";
     this.label_search_progress.Xalign = 0F;
     this.label_search_progress.LabelProp = Mono.Unix.Catalog.GetString("Type a name or partial group name to search for and press search");
     this.vbox1.Add(this.label_search_progress);
     Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.label_search_progress]));
     w13.Position = 1;
     w13.Expand = false;
     w13.Fill = false;
     // Container child vbox1.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.treeview1 = new Gtk.TreeView();
     this.treeview1.CanFocus = true;
     this.treeview1.Name = "treeview1";
     this.GtkScrolledWindow.Add(this.treeview1);
     this.vbox1.Add(this.GtkScrolledWindow);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
     w15.Position = 2;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.button_view_group_profile = new Gtk.Button();
     this.button_view_group_profile.CanFocus = true;
     this.button_view_group_profile.Name = "button_view_group_profile";
     this.button_view_group_profile.UseUnderline = true;
     this.button_view_group_profile.Label = Mono.Unix.Catalog.GetString("View full group profile");
     this.hbox2.Add(this.button_view_group_profile);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.button_view_group_profile]));
     w16.Position = 0;
     w16.Expand = false;
     w16.Fill = false;
     this.vbox1.Add(this.hbox2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
     w17.Position = 3;
     w17.Expand = false;
     w17.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked);
     this.button_view_group_profile.Clicked += new System.EventHandler(this.OnButtonViewGroupProfileClicked);
 }
		public InsertTimestampPreferences () : base (false, 12)
		{	
			// Get current values
			String dateFormat = (string) Preferences.Get (
				Preferences.INSERT_TIMESTAMP_FORMAT);

			DateTime now = DateTime.Now;

			// Label
			Gtk.Label label = new Gtk.Label (Catalog.GetString (
				"Choose one of the predefined formats " +
				"or use your own."));
			label.Wrap = true;
			label.Xalign = 0;
			PackStart (label);

			// Use Selected Format
			selected_radio = new Gtk.RadioButton (Catalog.GetString (
				"Use _Selected Format"));
			PackStart (selected_radio);

			// 1st column (visible): formatted date
			// 2nd column (not visible): date format
			store = new Gtk.ListStore (typeof (string),
				typeof (string));
			foreach (String format in formats)
				store.AppendValues (now.ToString (format), format);

			scroll = new Gtk.ScrolledWindow();
			scroll.ShadowType = Gtk.ShadowType.In;
			PackStart (scroll);

			tv = new Gtk.TreeView (store);
			tv.HeadersVisible = false;
			tv.AppendColumn ("Format", new Gtk.CellRendererText (),
				"text", 0);
			scroll.Add (tv);

			// Use Custom Format
			Gtk.HBox customBox = new Gtk.HBox (false, 12);
			PackStart (customBox);

			custom_radio = new Gtk.RadioButton (
				selected_radio, Catalog.GetString ("_Use Custom Format"));
			customBox.PackStart (custom_radio);

			custom_entry = new Gtk.Entry ();
			customBox.PackStart (custom_entry);

			IPropertyEditor entryEditor = Services.Factory.CreatePropertyEditorEntry (
				Preferences.INSERT_TIMESTAMP_FORMAT, custom_entry);
			entryEditor.Setup ();

			// Activate/deactivate widgets
			bool useCustom = true;
			Gtk.TreeIter iter;
			store.GetIterFirst (out iter);

			foreach (object[] row in store) {
				if (dateFormat.Equals (row[1])) {
					// Found format in list
					useCustom = false;
					break;
				}	
				store.IterNext (ref iter);
			}

			if (useCustom) {
				custom_radio.Active = true;
				scroll.Sensitive = false;
			} else {
				selected_radio.Active = true;
				custom_entry.Sensitive = false;
				tv.Selection.SelectIter (iter);
				Gtk.TreePath path = store.GetPath (iter);				
				tv.ScrollToCell (path, null, false, 0, 0);
			}

			// Register Toggled event for one radio button only
			selected_radio.Toggled += OnSelectedRadioToggled;
			tv.Selection.Changed += OnSelectionChanged;

			ShowAll ();
		}
 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "Boxerp.Client.GtkSharp.Lib.QuestionDialog")) {
         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
         // Widget Boxerp.Client.GtkSharp.Lib.QuestionDialog
         cobj.Title = "Question";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Modal = true;
         cobj.HasSeparator = false;
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog";
         // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.VBox
         Gtk.VBox w1 = cobj.VBox;
         w1.BorderWidth = ((uint)(2));
         w1.Events = ((Gdk.EventMask)(256));
         w1.Name = "dialog_VBox";
         // Container child dialog_VBox.Gtk.Box+BoxChild
         Gtk.HBox w2 = new Gtk.HBox();
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Image w3 = new Gtk.Image();
         w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0);
         w3.Events = ((Gdk.EventMask)(0));
         w3.Name = "image";
         bindings["image"] = w3;
         w2.Add(w3);
         Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
         w4.Position = 0;
         w4.Expand = false;
         w4.Fill = false;
         w4.Padding = ((uint)(5));
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w5 = new Gtk.Label();
         w5.LabelProp = "Info";
         w5.Events = ((Gdk.EventMask)(0));
         w5.Name = "label";
         bindings["label"] = w5;
         w2.Add(w5);
         Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
         w6.Position = 1;
         bindings["hbox1"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
         w7.Position = 0;
         w7.Expand = false;
         w7.Fill = false;
         w7.Padding = ((uint)(5));
         bindings["dialog_VBox"] = w1;
         // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.ActionArea
         Gtk.HButtonBox w8 = cobj.ActionArea;
         w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
         w8.Spacing = 10;
         w8.BorderWidth = ((uint)(5));
         w8.Events = ((Gdk.EventMask)(256));
         w8.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea";
         // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w9 = new Gtk.Button();
         w9.CanFocus = true;
         w9.Events = ((Gdk.EventMask)(0));
         w9.Name = "button22";
         w9.CanDefault = true;
         // Container child button22.Gtk.Container+ContainerChild
         Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "GtkAlignment";
         // Container child GtkAlignment.Gtk.Container+ContainerChild
         Gtk.HBox w11 = new Gtk.HBox();
         w11.Spacing = 2;
         w11.Events = ((Gdk.EventMask)(0));
         w11.Name = "GtkHBox";
         // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Image w12 = new Gtk.Image();
         w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-no", 16, 0);
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "image2";
         bindings["image2"] = w12;
         w11.Add(w12);
         // Container child GtkHBox.Gtk.Container+ContainerChild
         Gtk.Label w14 = new Gtk.Label();
         w14.LabelProp = "No";
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "GtkLabel";
         bindings["GtkLabel"] = w14;
         w11.Add(w14);
         bindings["GtkHBox"] = w11;
         w10.Add(w11);
         bindings["GtkAlignment"] = w10;
         w9.Add(w10);
         bindings["button22"] = w9;
         cobj.AddActionWidget(w9, -9);
         Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
         w18.Expand = false;
         w18.Fill = false;
         // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
         Gtk.Button w19 = new Gtk.Button();
         w19.CanFocus = true;
         w19.Events = ((Gdk.EventMask)(0));
         w19.Name = "button24";
         w19.CanDefault = true;
         // Container child button24.Gtk.Container+ContainerChild
         Gtk.Alignment w20 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
         w20.Events = ((Gdk.EventMask)(0));
         w20.Name = "GtkAlignment1";
         // Container child GtkAlignment1.Gtk.Container+ContainerChild
         Gtk.HBox w21 = new Gtk.HBox();
         w21.Spacing = 2;
         w21.Events = ((Gdk.EventMask)(0));
         w21.Name = "GtkHBox1";
         // Container child GtkHBox1.Gtk.Container+ContainerChild
         Gtk.Image w22 = new Gtk.Image();
         w22.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-yes", 16, 0);
         w22.Events = ((Gdk.EventMask)(0));
         w22.Name = "image3";
         bindings["image3"] = w22;
         w21.Add(w22);
         // Container child GtkHBox1.Gtk.Container+ContainerChild
         Gtk.Label w24 = new Gtk.Label();
         w24.LabelProp = "Yes";
         w24.Events = ((Gdk.EventMask)(0));
         w24.Name = "GtkLabel1";
         bindings["GtkLabel1"] = w24;
         w21.Add(w24);
         bindings["GtkHBox1"] = w21;
         w20.Add(w21);
         bindings["GtkAlignment1"] = w20;
         w19.Add(w20);
         bindings["button24"] = w19;
         cobj.AddActionWidget(w19, -8);
         Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w19]));
         w28.Position = 1;
         w28.Expand = false;
         w28.Fill = false;
         bindings["Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea"] = w8;
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 99;
         bindings["Boxerp.Client.GtkSharp.Lib.QuestionDialog"] = cobj;
         w3.Show();
         w5.Show();
         w2.Show();
         w1.Show();
         w12.Show();
         w14.Show();
         w11.Show();
         w10.Show();
         w9.Show();
         w22.Show();
         w24.Show();
         w21.Show();
         w20.Show();
         w19.Show();
         w8.Show();
         cobj.Show();
         w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNo")));
         w19.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnYes")));
     }
     else {
         if ((id == "Boxerp.Client.GtkSharp.Lib.SimpleListView")) {
             Gtk.Bin cobj = ((Gtk.Bin)(obj));
             // Widget Boxerp.Client.GtkSharp.Lib.SimpleListView
             BinContainer.Attach(cobj);
             cobj.Events = ((Gdk.EventMask)(256));
             cobj.Name = "Boxerp.Client.GtkSharp.Lib.SimpleListView";
             // Container child Boxerp.Client.GtkSharp.Lib.SimpleListView.Gtk.Container+ContainerChild
             Gtk.TreeView w1 = new Gtk.TreeView();
             w1.CanFocus = true;
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "treeview";
             bindings["treeview"] = w1;
             cobj.Add(w1);
             bindings["Boxerp.Client.GtkSharp.Lib.SimpleListView"] = cobj;
             w1.Show();
             cobj.Show();
         }
         else {
             if ((id == "Boxerp.Client.GtkSharp.Lib.WarningDialog")) {
                 Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                 // Widget Boxerp.Client.GtkSharp.Lib.WarningDialog
                 cobj.Title = "Warning";
                 cobj.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-warning", 16, 0);
                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                 cobj.HasSeparator = false;
                 cobj.Resizable = false;
                 cobj.AllowGrow = false;
                 cobj.DefaultWidth = 500;
                 cobj.Events = ((Gdk.EventMask)(256));
                 cobj.Name = "Boxerp.Client.GtkSharp.Lib.WarningDialog";
                 // Internal child Boxerp.Client.GtkSharp.Lib.WarningDialog.VBox
                 Gtk.VBox w1 = cobj.VBox;
                 w1.BorderWidth = ((uint)(2));
                 w1.Events = ((Gdk.EventMask)(256));
                 w1.Name = "dialog_VBox";
                 // Container child dialog_VBox.Gtk.Box+BoxChild
                 Gtk.HBox w2 = new Gtk.HBox();
                 w2.Spacing = 5;
                 w2.BorderWidth = ((uint)(5));
                 w2.Events = ((Gdk.EventMask)(0));
                 w2.Name = "hbox1";
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Image w3 = new Gtk.Image();
                 w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_dialog-warning", 16, 0);
                 w3.Events = ((Gdk.EventMask)(0));
                 w3.Name = "image";
                 bindings["image"] = w3;
                 w2.Add(w3);
                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                 w4.Position = 0;
                 w4.Expand = false;
                 w4.Fill = false;
                 // Container child hbox1.Gtk.Box+BoxChild
                 Gtk.Label w5 = new Gtk.Label();
                 w5.LabelProp = "Warning";
                 w5.Events = ((Gdk.EventMask)(0));
                 w5.Name = "label";
                 bindings["label"] = w5;
                 w2.Add(w5);
                 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
                 w6.Position = 1;
                 bindings["hbox1"] = w2;
                 w1.Add(w2);
                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
                 w7.Position = 0;
                 w7.Expand = false;
                 w7.Fill = false;
                 bindings["dialog_VBox"] = w1;
                 // Internal child Boxerp.Client.GtkSharp.Lib.WarningDialog.ActionArea
                 Gtk.HButtonBox w8 = cobj.ActionArea;
                 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                 w8.Spacing = 10;
                 w8.BorderWidth = ((uint)(5));
                 w8.Events = ((Gdk.EventMask)(256));
                 w8.Name = "Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea";
                 // Container child Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                 Gtk.Button w9 = new Gtk.Button();
                 w9.CanFocus = true;
                 w9.Events = ((Gdk.EventMask)(0));
                 w9.Name = "buttonOk";
                 w9.CanDefault = true;
                 // Container child buttonOk.Gtk.Container+ContainerChild
                 Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                 w10.Events = ((Gdk.EventMask)(0));
                 w10.Name = "GtkAlignment";
                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                 Gtk.HBox w11 = new Gtk.HBox();
                 w11.Spacing = 2;
                 w11.Events = ((Gdk.EventMask)(0));
                 w11.Name = "GtkHBox";
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Image w12 = new Gtk.Image();
                 w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                 w12.Events = ((Gdk.EventMask)(0));
                 w12.Name = "image7";
                 bindings["image7"] = w12;
                 w11.Add(w12);
                 // Container child GtkHBox.Gtk.Container+ContainerChild
                 Gtk.Label w14 = new Gtk.Label();
                 w14.LabelProp = "Ok";
                 w14.Events = ((Gdk.EventMask)(0));
                 w14.Name = "GtkLabel";
                 bindings["GtkLabel"] = w14;
                 w11.Add(w14);
                 bindings["GtkHBox"] = w11;
                 w10.Add(w11);
                 bindings["GtkAlignment"] = w10;
                 w9.Add(w10);
                 bindings["buttonOk"] = w9;
                 cobj.AddActionWidget(w9, 0);
                 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
                 w18.Expand = false;
                 w18.Fill = false;
                 bindings["Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea"] = w8;
                 cobj.DefaultHeight = 104;
                 bindings["Boxerp.Client.GtkSharp.Lib.WarningDialog"] = cobj;
                 w3.Show();
                 w5.Show();
                 w2.Show();
                 w1.Show();
                 w12.Show();
                 w14.Show();
                 w11.Show();
                 w10.Show();
                 w9.Show();
                 w8.Show();
                 cobj.Show();
                 w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOk")));
             }
             else {
                 if ((id == "Boxerp.Client.GtkSharp.Lib.WaitWindow")) {
                     Gtk.Window cobj = ((Gtk.Window)(obj));
                     // Widget Boxerp.Client.GtkSharp.Lib.WaitWindow
                     cobj.Title = "Operation in progress...";
                     cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                     cobj.Events = ((Gdk.EventMask)(0));
                     cobj.Name = "Boxerp.Client.GtkSharp.Lib.WaitWindow";
                     // Container child Boxerp.Client.GtkSharp.Lib.WaitWindow.Gtk.Container+ContainerChild
                     Gtk.VBox w1 = new Gtk.VBox();
                     w1.Spacing = 2;
                     w1.BorderWidth = ((uint)(5));
                     w1.Events = ((Gdk.EventMask)(256));
                     w1.Name = "vbox";
                     // Container child vbox.Gtk.Box+BoxChild
                     Gtk.Label w2 = new Gtk.Label();
                     w2.LabelProp = "Please wait";
                     w2.Events = ((Gdk.EventMask)(0));
                     w2.Name = "labelMsg";
                     bindings["labelMsg"] = w2;
                     w1.Add(w2);
                     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
                     w3.Position = 0;
                     // Container child vbox.Gtk.Box+BoxChild
                     Gtk.ProgressBar w4 = new Gtk.ProgressBar();
                     w4.Events = ((Gdk.EventMask)(0));
                     w4.Name = "progressbar";
                     bindings["progressbar"] = w4;
                     w1.Add(w4);
                     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
                     w5.Position = 1;
                     w5.Expand = false;
                     w5.Fill = false;
                     // Container child vbox.Gtk.Box+BoxChild
                     Gtk.HButtonBox w6 = new Gtk.HButtonBox();
                     w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(2));
                     w6.Spacing = 10;
                     w6.BorderWidth = ((uint)(5));
                     w6.Events = ((Gdk.EventMask)(256));
                     w6.Name = "actionArea";
                     // Container child actionArea.Gtk.ButtonBox+ButtonBoxChild
                     Gtk.Button w7 = new Gtk.Button();
                     w7.CanFocus = true;
                     w7.Events = ((Gdk.EventMask)(0));
                     w7.Name = "button";
                     w7.CanDefault = true;
                     // Container child button.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-cancel", 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 = "Cancel";
                     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["button"] = w7;
                     w6.Add(w7);
                     Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
                     w16.Expand = false;
                     w16.Fill = false;
                     bindings["actionArea"] = w6;
                     w1.Add(w6);
                     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[w6]));
                     w17.Position = 2;
                     w17.Expand = false;
                     w17.Fill = false;
                     bindings["vbox"] = w1;
                     cobj.Add(w1);
                     cobj.DefaultWidth = 400;
                     cobj.DefaultHeight = 119;
                     bindings["Boxerp.Client.GtkSharp.Lib.WaitWindow"] = cobj;
                     w2.Show();
                     w4.Show();
                     w10.Show();
                     w12.Show();
                     w9.Show();
                     w8.Show();
                     w7.Show();
                     w6.Show();
                     w1.Show();
                     cobj.Show();
                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                     w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancel")));
                 }
                 else {
                     if ((id == "Boxerp.Client.GtkSharp.Lib.WaitDialog")) {
                         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                         // Widget Boxerp.Client.GtkSharp.Lib.WaitDialog
                         cobj.Title = "Operation in progress...";
                         cobj.WindowPosition = ((Gtk.WindowPosition)(1));
                         cobj.HasSeparator = false;
                         cobj.Events = ((Gdk.EventMask)(256));
                         cobj.Name = "Boxerp.Client.GtkSharp.Lib.WaitDialog";
                         // Internal child Boxerp.Client.GtkSharp.Lib.WaitDialog.VBox
                         Gtk.VBox w1 = cobj.VBox;
                         w1.Spacing = 2;
                         w1.BorderWidth = ((uint)(2));
                         w1.Events = ((Gdk.EventMask)(256));
                         w1.Name = "dialog_VBox";
                         // Container child dialog_VBox.Gtk.Box+BoxChild
                         Gtk.Label w2 = new Gtk.Label();
                         w2.LabelProp = "Please wait";
                         w2.Events = ((Gdk.EventMask)(0));
                         w2.Name = "labelMsg";
                         bindings["labelMsg"] = w2;
                         w1.Add(w2);
                         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
                         w3.Position = 0;
                         // Container child dialog_VBox.Gtk.Box+BoxChild
                         Gtk.ProgressBar w4 = new Gtk.ProgressBar();
                         w4.Events = ((Gdk.EventMask)(0));
                         w4.Name = "progressbar";
                         bindings["progressbar"] = 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 Boxerp.Client.GtkSharp.Lib.WaitDialog.ActionArea
                         Gtk.HButtonBox w6 = cobj.ActionArea;
                         w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(2));
                         w6.Spacing = 10;
                         w6.BorderWidth = ((uint)(5));
                         w6.Events = ((Gdk.EventMask)(256));
                         w6.Name = "actionArea";
                         // Container child actionArea.Gtk.ButtonBox+ButtonBoxChild
                         Gtk.Button w7 = new Gtk.Button();
                         w7.CanFocus = true;
                         w7.Events = ((Gdk.EventMask)(0));
                         w7.Name = "button";
                         w7.CanDefault = true;
                         // Container child button.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-cancel", 16, 0);
                         w10.Events = ((Gdk.EventMask)(0));
                         w10.Name = "image8";
                         bindings["image8"] = w10;
                         w9.Add(w10);
                         // Container child GtkHBox.Gtk.Container+ContainerChild
                         Gtk.Label w12 = new Gtk.Label();
                         w12.LabelProp = "Cancel";
                         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["button"] = w7;
                         cobj.AddActionWidget(w7, -7);
                         Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
                         w16.Expand = false;
                         w16.Fill = false;
                         bindings["actionArea"] = w6;
                         cobj.DefaultWidth = 400;
                         cobj.DefaultHeight = 113;
                         bindings["Boxerp.Client.GtkSharp.Lib.WaitDialog"] = cobj;
                         w2.Show();
                         w4.Show();
                         w1.Show();
                         w10.Show();
                         w12.Show();
                         w9.Show();
                         w8.Show();
                         w7.Show();
                         w6.Show();
                         cobj.Show();
                         cobj.Close += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose")));
                         cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                         w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancel")));
                     }
                     else {
                         if ((id == "Boxerp.Client.GtkSharp.Lib.DoubleListView")) {
                             Gtk.Bin cobj = ((Gtk.Bin)(obj));
                             // Widget Boxerp.Client.GtkSharp.Lib.DoubleListView
                             BinContainer.Attach(cobj);
                             cobj.Events = ((Gdk.EventMask)(256));
                             cobj.Name = "Boxerp.Client.GtkSharp.Lib.DoubleListView";
                             // Container child Boxerp.Client.GtkSharp.Lib.DoubleListView.Gtk.Container+ContainerChild
                             Gtk.VBox w1 = new Gtk.VBox();
                             w1.Events = ((Gdk.EventMask)(0));
                             w1.Name = "vbox2";
                             // Container child vbox2.Gtk.Box+BoxChild
                             Gtk.HBox w2 = new Gtk.HBox();
                             w2.Events = ((Gdk.EventMask)(0));
                             w2.Name = "hbox2";
                             // Container child hbox2.Gtk.Box+BoxChild
                             Gtk.Label w3 = new Gtk.Label();
                             w3.LabelProp = "label1";
                             w3.Events = ((Gdk.EventMask)(0));
                             w3.Name = "labelLeft";
                             bindings["labelLeft"] = w3;
                             w2.Add(w3);
                             Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                             w4.Position = 0;
                             w4.Fill = false;
                             // Container child hbox2.Gtk.Box+BoxChild
                             Gtk.VSeparator w5 = new Gtk.VSeparator();
                             w5.Events = ((Gdk.EventMask)(0));
                             w5.Name = "vseparator1";
                             bindings["vseparator1"] = w5;
                             w2.Add(w5);
                             Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
                             w6.Position = 1;
                             w6.Expand = false;
                             w6.Fill = false;
                             // Container child hbox2.Gtk.Box+BoxChild
                             Gtk.Label w7 = new Gtk.Label();
                             w7.LabelProp = "label2";
                             w7.Events = ((Gdk.EventMask)(0));
                             w7.Name = "labelRight";
                             bindings["labelRight"] = w7;
                             w2.Add(w7);
                             Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w2[w7]));
                             w8.Position = 2;
                             w8.Fill = false;
                             bindings["hbox2"] = w2;
                             w1.Add(w2);
                             Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w2]));
                             w9.Position = 0;
                             w9.Expand = false;
                             // Container child vbox2.Gtk.Box+BoxChild
                             Gtk.HBox w10 = new Gtk.HBox();
                             w10.Spacing = 5;
                             w10.BorderWidth = ((uint)(5));
                             w10.Events = ((Gdk.EventMask)(0));
                             w10.Name = "hbox1";
                             // Container child hbox1.Gtk.Box+BoxChild
                             Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow();
                             w11.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w11.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w11.CanFocus = true;
                             w11.Events = ((Gdk.EventMask)(0));
                             w11.Name = "scrolledwindow1";
                             // Container child scrolledwindow1.Gtk.Container+ContainerChild
                             Gtk.Viewport w12 = new Gtk.Viewport();
                             w12.ShadowType = ((Gtk.ShadowType)(0));
                             w12.Events = ((Gdk.EventMask)(0));
                             w12.Name = "GtkViewport";
                             // Container child GtkViewport.Gtk.Container+ContainerChild
                             Boxerp.Client.GtkSharp.Lib.SimpleListView w13 = new Boxerp.Client.GtkSharp.Lib.SimpleListView();
                             w13.Events = ((Gdk.EventMask)(256));
                             w13.Name = "slistviewLeft";
                             bindings["slistviewLeft"] = w13;
                             w12.Add(w13);
                             bindings["GtkViewport"] = w12;
                             w11.Add(w12);
                             bindings["scrolledwindow1"] = w11;
                             w10.Add(w11);
                             Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w10[w11]));
                             w16.Position = 0;
                             // Container child hbox1.Gtk.Box+BoxChild
                             Gtk.VBox w17 = new Gtk.VBox();
                             w17.Homogeneous = true;
                             w17.Events = ((Gdk.EventMask)(0));
                             w17.Name = "vbox1";
                             // Container child vbox1.Gtk.Box+BoxChild
                             Gtk.Button w18 = new Gtk.Button();
                             w18.CanFocus = true;
                             w18.Events = ((Gdk.EventMask)(0));
                             w18.Name = "button5";
                             // Container child button5.Gtk.Container+ContainerChild
                             Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                             w19.Events = ((Gdk.EventMask)(0));
                             w19.Name = "GtkAlignment";
                             // Container child GtkAlignment.Gtk.Container+ContainerChild
                             Gtk.HBox w20 = new Gtk.HBox();
                             w20.Spacing = 2;
                             w20.Events = ((Gdk.EventMask)(0));
                             w20.Name = "GtkHBox";
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Image w21 = new Gtk.Image();
                             w21.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_left", 16, 0);
                             w21.Events = ((Gdk.EventMask)(0));
                             w21.Name = "image5";
                             bindings["image5"] = w21;
                             w20.Add(w21);
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Label w23 = new Gtk.Label();
                             w23.LabelProp = "";
                             w23.Events = ((Gdk.EventMask)(0));
                             w23.Name = "GtkLabel";
                             bindings["GtkLabel"] = w23;
                             w20.Add(w23);
                             bindings["GtkHBox"] = w20;
                             w19.Add(w20);
                             bindings["GtkAlignment"] = w19;
                             w18.Add(w19);
                             bindings["button5"] = w18;
                             w17.Add(w18);
                             Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w17[w18]));
                             w27.Position = 1;
                             w27.Expand = false;
                             w27.Fill = false;
                             // Container child vbox1.Gtk.Box+BoxChild
                             Gtk.Button w28 = new Gtk.Button();
                             w28.CanFocus = true;
                             w28.Events = ((Gdk.EventMask)(0));
                             w28.Name = "button6";
                             // Container child button6.Gtk.Container+ContainerChild
                             Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                             w29.Events = ((Gdk.EventMask)(0));
                             w29.Name = "GtkAlignment";
                             // Container child GtkAlignment.Gtk.Container+ContainerChild
                             Gtk.HBox w30 = new Gtk.HBox();
                             w30.Spacing = 2;
                             w30.Events = ((Gdk.EventMask)(0));
                             w30.Name = "GtkHBox";
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Image w31 = new Gtk.Image();
                             w31.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_right", 16, 0);
                             w31.Events = ((Gdk.EventMask)(0));
                             w31.Name = "image6";
                             bindings["image6"] = w31;
                             w30.Add(w31);
                             // Container child GtkHBox.Gtk.Container+ContainerChild
                             Gtk.Label w33 = new Gtk.Label();
                             w33.LabelProp = "";
                             w33.Events = ((Gdk.EventMask)(0));
                             w33.Name = "GtkLabel";
                             bindings["GtkLabel"] = w33;
                             w30.Add(w33);
                             bindings["GtkHBox"] = w30;
                             w29.Add(w30);
                             bindings["GtkAlignment"] = w29;
                             w28.Add(w29);
                             bindings["button6"] = w28;
                             w17.Add(w28);
                             Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(w17[w28]));
                             w37.Position = 2;
                             w37.Expand = false;
                             w37.Fill = false;
                             bindings["vbox1"] = w17;
                             w10.Add(w17);
                             Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(w10[w17]));
                             w38.Position = 1;
                             w38.Expand = false;
                             w38.Fill = false;
                             // Container child hbox1.Gtk.Box+BoxChild
                             Gtk.ScrolledWindow w39 = new Gtk.ScrolledWindow();
                             w39.VscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w39.HscrollbarPolicy = ((Gtk.PolicyType)(1));
                             w39.CanFocus = true;
                             w39.Events = ((Gdk.EventMask)(0));
                             w39.Name = "scrolledwindow2";
                             // Container child scrolledwindow2.Gtk.Container+ContainerChild
                             Gtk.Viewport w40 = new Gtk.Viewport();
                             w40.ShadowType = ((Gtk.ShadowType)(0));
                             w40.Events = ((Gdk.EventMask)(0));
                             w40.Name = "GtkViewport1";
                             // Container child GtkViewport1.Gtk.Container+ContainerChild
                             Boxerp.Client.GtkSharp.Lib.SimpleListView w41 = new Boxerp.Client.GtkSharp.Lib.SimpleListView();
                             w41.Events = ((Gdk.EventMask)(256));
                             w41.Name = "slistviewRight";
                             bindings["slistviewRight"] = w41;
                             w40.Add(w41);
                             bindings["GtkViewport1"] = w40;
                             w39.Add(w40);
                             bindings["scrolledwindow2"] = w39;
                             w10.Add(w39);
                             Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w10[w39]));
                             w44.PackType = ((Gtk.PackType)(1));
                             w44.Position = 2;
                             bindings["hbox1"] = w10;
                             w1.Add(w10);
                             Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(w1[w10]));
                             w45.Position = 1;
                             bindings["vbox2"] = w1;
                             cobj.Add(w1);
                             bindings["Boxerp.Client.GtkSharp.Lib.DoubleListView"] = cobj;
                             w3.Show();
                             w5.Show();
                             w7.Show();
                             w2.Show();
                             w13.Show();
                             w12.Show();
                             w11.Show();
                             w21.Show();
                             w23.Show();
                             w20.Show();
                             w19.Show();
                             w18.Show();
                             w31.Show();
                             w33.Show();
                             w30.Show();
                             w29.Show();
                             w28.Show();
                             w17.Show();
                             w41.Show();
                             w40.Show();
                             w39.Show();
                             w10.Show();
                             w1.Show();
                             cobj.Show();
                             w18.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLeftClicked")));
                             w28.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnRightClicked")));
                         }
                         else {
                             if ((id == "Boxerp.Client.GtkSharp.Lib.InfoDialog")) {
                                 Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                                 // Widget Boxerp.Client.GtkSharp.Lib.InfoDialog
                                 cobj.Title = "Info";
                                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                 cobj.HasSeparator = false;
                                 cobj.Events = ((Gdk.EventMask)(256));
                                 cobj.Name = "Boxerp.Client.GtkSharp.Lib.InfoDialog";
                                 // Internal child Boxerp.Client.GtkSharp.Lib.InfoDialog.VBox
                                 Gtk.VBox w1 = cobj.VBox;
                                 w1.BorderWidth = ((uint)(2));
                                 w1.Events = ((Gdk.EventMask)(256));
                                 w1.Name = "dialog_VBox";
                                 // Container child dialog_VBox.Gtk.Box+BoxChild
                                 Gtk.HBox w2 = new Gtk.HBox();
                                 w2.Spacing = 5;
                                 w2.BorderWidth = ((uint)(5));
                                 w2.Events = ((Gdk.EventMask)(0));
                                 w2.Name = "hbox1";
                                 // Container child hbox1.Gtk.Box+BoxChild
                                 Gtk.Image w3 = new Gtk.Image();
                                 w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0);
                                 w3.Events = ((Gdk.EventMask)(0));
                                 w3.Name = "image";
                                 bindings["image"] = w3;
                                 w2.Add(w3);
                                 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
                                 w4.Position = 0;
                                 w4.Expand = false;
                                 w4.Fill = false;
                                 // Container child hbox1.Gtk.Box+BoxChild
                                 Gtk.Label w5 = new Gtk.Label();
                                 w5.LabelProp = "Info";
                                 w5.Events = ((Gdk.EventMask)(0));
                                 w5.Name = "label";
                                 bindings["label"] = w5;
                                 w2.Add(w5);
                                 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
                                 w6.Position = 1;
                                 bindings["hbox1"] = w2;
                                 w1.Add(w2);
                                 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
                                 w7.Position = 0;
                                 w7.Expand = false;
                                 w7.Fill = false;
                                 bindings["dialog_VBox"] = w1;
                                 // Internal child Boxerp.Client.GtkSharp.Lib.InfoDialog.ActionArea
                                 Gtk.HButtonBox w8 = cobj.ActionArea;
                                 w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                                 w8.Spacing = 10;
                                 w8.BorderWidth = ((uint)(5));
                                 w8.Events = ((Gdk.EventMask)(256));
                                 w8.Name = "Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea";
                                 // Container child Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                                 Gtk.Button w9 = new Gtk.Button();
                                 w9.CanFocus = true;
                                 w9.Events = ((Gdk.EventMask)(0));
                                 w9.Name = "button35";
                                 w9.CanDefault = true;
                                 // Container child button35.Gtk.Container+ContainerChild
                                 Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
                                 w10.Events = ((Gdk.EventMask)(0));
                                 w10.Name = "GtkAlignment";
                                 // Container child GtkAlignment.Gtk.Container+ContainerChild
                                 Gtk.HBox w11 = new Gtk.HBox();
                                 w11.Spacing = 2;
                                 w11.Events = ((Gdk.EventMask)(0));
                                 w11.Name = "GtkHBox";
                                 // Container child GtkHBox.Gtk.Container+ContainerChild
                                 Gtk.Image w12 = new Gtk.Image();
                                 w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0);
                                 w12.Events = ((Gdk.EventMask)(0));
                                 w12.Name = "image4";
                                 bindings["image4"] = w12;
                                 w11.Add(w12);
                                 // Container child GtkHBox.Gtk.Container+ContainerChild
                                 Gtk.Label w14 = new Gtk.Label();
                                 w14.LabelProp = "Ok";
                                 w14.Events = ((Gdk.EventMask)(0));
                                 w14.Name = "GtkLabel";
                                 bindings["GtkLabel"] = w14;
                                 w11.Add(w14);
                                 bindings["GtkHBox"] = w11;
                                 w10.Add(w11);
                                 bindings["GtkAlignment"] = w10;
                                 w9.Add(w10);
                                 bindings["button35"] = w9;
                                 cobj.AddActionWidget(w9, 0);
                                 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9]));
                                 w18.Expand = false;
                                 w18.Fill = false;
                                 bindings["Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea"] = w8;
                                 cobj.DefaultWidth = 400;
                                 cobj.DefaultHeight = 104;
                                 bindings["Boxerp.Client.GtkSharp.Lib.InfoDialog"] = cobj;
                                 w3.Show();
                                 w5.Show();
                                 w2.Show();
                                 w1.Show();
                                 w12.Show();
                                 w14.Show();
                                 w11.Show();
                                 w10.Show();
                                 w9.Show();
                                 w8.Show();
                                 cobj.Show();
                                 w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked")));
                             }
                             else {
                                 if ((id == "button7")) {
                                     Gtk.Button cobj = ((Gtk.Button)(obj));
                                     // Widget button7
                                     cobj.CanFocus = true;
                                     cobj.Events = ((Gdk.EventMask)(0));
                                     cobj.Name = "button7";
                                     cobj.CanDefault = true;
                                     cobj.Label = "button7";
                                     bindings["button7"] = cobj;
                                     cobj.Show();
                                 }
                                 else {
                                     if ((id == "Boxerp.Client.GtkSharp.Lib.FilteredListView")) {
                                         Gtk.Bin cobj = ((Gtk.Bin)(obj));
                                         // Widget Boxerp.Client.GtkSharp.Lib.FilteredListView
                                         BinContainer.Attach(cobj);
                                         cobj.Events = ((Gdk.EventMask)(256));
                                         cobj.Name = "Boxerp.Client.GtkSharp.Lib.FilteredListView";
                                         // Container child Boxerp.Client.GtkSharp.Lib.FilteredListView.Gtk.Container+ContainerChild
                                         Gtk.TreeView w1 = new Gtk.TreeView();
                                         w1.CanFocus = true;
                                         w1.Events = ((Gdk.EventMask)(0));
                                         w1.Name = "treeview";
                                         bindings["treeview"] = w1;
                                         cobj.Add(w1);
                                         bindings["Boxerp.Client.GtkSharp.Lib.FilteredListView"] = cobj;
                                         w1.Show();
                                         cobj.Show();
                                     }
                                     else {
                                         if ((id == "Boxerp.Client.GtkSharp.Lib.SimpleTreeView")) {
                                             Gtk.Bin cobj = ((Gtk.Bin)(obj));
                                             // Widget Boxerp.Client.GtkSharp.Lib.SimpleTreeView
                                             BinContainer.Attach(cobj);
                                             cobj.Events = ((Gdk.EventMask)(256));
                                             cobj.Name = "Boxerp.Client.GtkSharp.Lib.SimpleTreeView";
                                             // Container child Boxerp.Client.GtkSharp.Lib.SimpleTreeView.Gtk.Container+ContainerChild
                                             Gtk.TreeView w1 = new Gtk.TreeView();
                                             w1.CanFocus = true;
                                             w1.Events = ((Gdk.EventMask)(0));
                                             w1.Name = "treeview";
                                             bindings["treeview"] = w1;
                                             cobj.Add(w1);
                                             bindings["Boxerp.Client.GtkSharp.Lib.SimpleTreeView"] = cobj;
                                             w1.Show();
                                             cobj.Show();
                                         }
                                         else {
                                             if ((id == "Boxerp.Client.GtkSharp.Lib.LoginWindow")) {
                                                 Gtk.Window cobj = ((Gtk.Window)(obj));
                                                 // Widget Boxerp.Client.GtkSharp.Lib.LoginWindow
                                                 cobj.Title = "LoginWindow";
                                                 cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                                 cobj.Events = ((Gdk.EventMask)(0));
                                                 cobj.Name = "Boxerp.Client.GtkSharp.Lib.LoginWindow";
                                                 cobj.DefaultWidth = 400;
                                                 cobj.DefaultHeight = 300;
                                                 bindings["Boxerp.Client.GtkSharp.Lib.LoginWindow"] = cobj;
                                                 cobj.Show();
                                             }
                                             else {
                                                 if ((id == "MainWindow")) {
                                                     Gtk.Window cobj = ((Gtk.Window)(obj));
                                                     // Widget MainWindow
                                                     cobj.Title = "MainWindow";
                                                     cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                                     cobj.Events = ((Gdk.EventMask)(0));
                                                     cobj.Name = "MainWindow";
                                                     cobj.DefaultWidth = 400;
                                                     cobj.DefaultHeight = 300;
                                                     bindings["MainWindow"] = cobj;
                                                     cobj.Show();
                                                     cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent")));
                                                 }
                                                 else {
                                                     if ((id == "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog")) {
                                                         Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
                                                         // Widget Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog
                                                         cobj.Title = "InfoExtendedDialog";
                                                         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
                                                         cobj.HasSeparator = false;
                                                         cobj.Events = ((Gdk.EventMask)(256));
                                                         cobj.Name = "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog";
                                                         // Internal child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog.VBox
                                                         Gtk.VBox w1 = cobj.VBox;
                                                         w1.BorderWidth = ((uint)(2));
                                                         w1.Events = ((Gdk.EventMask)(256));
                                                         w1.Name = "dialog_VBox";
                                                         bindings["dialog_VBox"] = w1;
                                                         // Internal child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog.ActionArea
                                                         Gtk.HButtonBox w2 = cobj.ActionArea;
                                                         w2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
                                                         w2.Events = ((Gdk.EventMask)(256));
                                                         w2.Name = "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea";
                                                         // Container child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
                                                         Gtk.Button w3 = new Gtk.Button();
                                                         w3.CanFocus = true;
                                                         w3.Events = ((Gdk.EventMask)(0));
                                                         w3.Name = "button6";
                                                         w3.CanDefault = true;
                                                         w3.Label = "button6";
                                                         bindings["button6"] = w3;
                                                         cobj.AddActionWidget(w3, 0);
                                                         Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[w3]));
                                                         w4.Expand = false;
                                                         w4.Fill = false;
                                                         bindings["Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea"] = w2;
                                                         cobj.DefaultWidth = 400;
                                                         cobj.DefaultHeight = 300;
                                                         bindings["Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog"] = cobj;
                                                         w1.Show();
                                                         w3.Show();
                                                         w2.Show();
                                                         cobj.Show();
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     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 MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget";
     // Container child MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.Gtk.Container+ContainerChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 293;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.windowPK = new Gtk.ScrolledWindow();
     this.windowPK.CanFocus = true;
     this.windowPK.Name = "windowPK";
     this.windowPK.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.windowPK.ShadowType = ((Gtk.ShadowType)(1));
     // Container child windowPK.Gtk.Container+ContainerChild
     this.listFK = new Gtk.TreeView();
     this.listFK.CanFocus = true;
     this.listFK.Name = "listFK";
     this.listFK.HeadersClickable = true;
     this.windowPK.Add(this.listFK);
     this.vbox3.Add(this.windowPK);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.windowPK]));
     w2.Position = 0;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox = new Gtk.HButtonBox();
     this.hbuttonbox.Name = "hbuttonbox";
     this.hbuttonbox.Spacing = 6;
     this.hbuttonbox.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonAdd = new Gtk.Button();
     this.buttonAdd.CanFocus = true;
     this.buttonAdd.Name = "buttonAdd";
     this.buttonAdd.UseStock = true;
     this.buttonAdd.UseUnderline = true;
     this.buttonAdd.Label = "gtk-add";
     this.hbuttonbox.Add(this.buttonAdd);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild
     this.buttonRemove = new Gtk.Button();
     this.buttonRemove.Sensitive = false;
     this.buttonRemove.CanFocus = true;
     this.buttonRemove.Name = "buttonRemove";
     this.buttonRemove.UseStock = true;
     this.buttonRemove.UseUnderline = true;
     this.buttonRemove.Label = "gtk-remove";
     this.hbuttonbox.Add(this.buttonRemove);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox3.Add(this.hbuttonbox);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.hpaned.Add(this.vbox3);
     Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned[this.vbox3]));
     w6.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.vboxColumns = new Gtk.VBox();
     this.vboxColumns.Name = "vboxColumns";
     this.vboxColumns.Spacing = 6;
     // Container child vboxColumns.Gtk.Box+BoxChild
     this.frame1 = new Gtk.Frame();
     this.frame1.Name = "frame1";
     this.frame1.ShadowType = ((Gtk.ShadowType)(0));
     this.frame1.LabelXalign = 0F;
     // 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.columnSelecter = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.columnSelecter.Sensitive = false;
     this.columnSelecter.CanFocus = true;
     this.columnSelecter.Name = "columnSelecter";
     this.columnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.columnSelecter.ShadowType = ((Gtk.ShadowType)(1));
     this.columnSelecter.SingleCheck = false;
     this.GtkAlignment2.Add(this.columnSelecter);
     this.frame1.Add(this.GtkAlignment2);
     this.GtkLabel2 = new Gtk.Label();
     this.GtkLabel2.Name = "GtkLabel2";
     this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("Columns");
     this.GtkLabel2.UseMarkup = true;
     this.frame1.LabelWidget = this.GtkLabel2;
     this.vboxColumns.Add(this.frame1);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vboxColumns[this.frame1]));
     w9.Position = 0;
     // Container child vboxColumns.Gtk.Box+BoxChild
     this.frame2 = new Gtk.Frame();
     this.frame2.Name = "frame2";
     this.frame2.ShadowType = ((Gtk.ShadowType)(0));
     this.frame2.LabelXalign = 0F;
     // 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.referenceColumnSelecter = new MonoDevelop.Database.Components.SelectColumnWidget();
     this.referenceColumnSelecter.Sensitive = false;
     this.referenceColumnSelecter.CanFocus = true;
     this.referenceColumnSelecter.Name = "referenceColumnSelecter";
     this.referenceColumnSelecter.VscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.referenceColumnSelecter.HscrollbarPolicy = ((Gtk.PolicyType)(1));
     this.referenceColumnSelecter.ShadowType = ((Gtk.ShadowType)(1));
     this.referenceColumnSelecter.SingleCheck = false;
     this.GtkAlignment3.Add(this.referenceColumnSelecter);
     this.frame2.Add(this.GtkAlignment3);
     this.GtkLabel3 = new Gtk.Label();
     this.GtkLabel3.Name = "GtkLabel3";
     this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Reference Columns");
     this.GtkLabel3.UseMarkup = true;
     this.frame2.LabelWidget = this.GtkLabel3;
     this.vboxColumns.Add(this.frame2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vboxColumns[this.frame2]));
     w12.Position = 1;
     this.hpaned.Add(this.vboxColumns);
     this.Add(this.hpaned);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Gedcom.UI.GTK.Widgets.ScrapBookView
     Stetic.BinContainer.Attach(this);
     this.Events = ((Gdk.EventMask)(256));
     this.Name = "Gedcom.UI.GTK.Widgets.ScrapBookView";
     // Container child Gedcom.UI.GTK.Widgets.ScrapBookView.Gtk.Container+ContainerChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.RecordsScrolledWindow = new Gtk.ScrolledWindow();
     this.RecordsScrolledWindow.CanFocus = true;
     this.RecordsScrolledWindow.Name = "RecordsScrolledWindow";
     this.RecordsScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(2));
     this.RecordsScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child RecordsScrolledWindow.Gtk.Container+ContainerChild
     this.RecordTreeView = new Gtk.TreeView();
     this.RecordTreeView.CanFocus = true;
     this.RecordTreeView.Name = "RecordTreeView";
     this.RecordsScrolledWindow.Add(this.RecordTreeView);
     this.vbox2.Add(this.RecordsScrolledWindow);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.RecordsScrolledWindow]));
     w2.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbuttonbox2 = new Gtk.HButtonBox();
     this.hbuttonbox2.Name = "hbuttonbox2";
     this.hbuttonbox2.Spacing = 6;
     this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.AddRecordButton = new Gtk.Button();
     this.AddRecordButton.CanFocus = true;
     this.AddRecordButton.Name = "AddRecordButton";
     this.AddRecordButton.UseStock = true;
     this.AddRecordButton.UseUnderline = true;
     this.AddRecordButton.Label = "gtk-add";
     this.hbuttonbox2.Add(this.AddRecordButton);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.AddRecordButton]));
     w3.Expand = false;
     w3.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.RemoveRecordButton = new Gtk.Button();
     this.RemoveRecordButton.CanFocus = true;
     this.RemoveRecordButton.Name = "RemoveRecordButton";
     this.RemoveRecordButton.UseStock = true;
     this.RemoveRecordButton.UseUnderline = true;
     this.RemoveRecordButton.Label = "gtk-remove";
     this.hbuttonbox2.Add(this.RemoveRecordButton);
     Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RemoveRecordButton]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.vbox2.Add(this.hbuttonbox2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox2]));
     w5.Position = 1;
     w5.Expand = false;
     w5.Fill = false;
     this.hbox1.Add(this.vbox2);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
     w6.Position = 0;
     w6.Expand = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.vseparator1 = new Gtk.VSeparator();
     this.vseparator1.Name = "vseparator1";
     this.hbox1.Add(this.vseparator1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox1[this.vseparator1]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.DetailsNotebook = new Gtk.Notebook();
     this.DetailsNotebook.CanFocus = true;
     this.DetailsNotebook.Name = "DetailsNotebook";
     this.DetailsNotebook.CurrentPage = 1;
     // Container child DetailsNotebook.Gtk.Notebook+NotebookChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // 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.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = "Title:";
     this.hbox2.Add(this.label1);
     Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.label1]));
     w8.Position = 0;
     w8.Expand = false;
     w8.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.TitleEntry = new Gtk.Entry();
     this.TitleEntry.CanFocus = true;
     this.TitleEntry.Name = "TitleEntry";
     this.TitleEntry.IsEditable = true;
     this.TitleEntry.InvisibleChar = '●';
     this.hbox2.Add(this.TitleEntry);
     Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.TitleEntry]));
     w9.Position = 1;
     this.vbox3.Add(this.hbox2);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2]));
     w10.Position = 0;
     w10.Expand = false;
     w10.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.scrolledwindow2 = new Gtk.ScrolledWindow();
     this.scrolledwindow2.CanFocus = true;
     this.scrolledwindow2.Name = "scrolledwindow2";
     this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow2.Gtk.Container+ContainerChild
     this.FileTreeView = new Gtk.TreeView();
     this.FileTreeView.CanFocus = true;
     this.FileTreeView.Name = "FileTreeView";
     this.scrolledwindow2.Add(this.FileTreeView);
     this.vbox3.Add(this.scrolledwindow2);
     Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.scrolledwindow2]));
     w12.Position = 1;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hbuttonbox3 = new Gtk.HButtonBox();
     this.hbuttonbox3.Name = "hbuttonbox3";
     this.hbuttonbox3.Spacing = 6;
     this.hbuttonbox3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.AddFileButton = new Gtk.Button();
     this.AddFileButton.CanFocus = true;
     this.AddFileButton.Name = "AddFileButton";
     this.AddFileButton.UseStock = true;
     this.AddFileButton.UseUnderline = true;
     this.AddFileButton.Label = "gtk-add";
     this.hbuttonbox3.Add(this.AddFileButton);
     Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.AddFileButton]));
     w13.Expand = false;
     w13.Fill = false;
     // Container child hbuttonbox3.Gtk.ButtonBox+ButtonBoxChild
     this.RemoveFileButton = new Gtk.Button();
     this.RemoveFileButton.CanFocus = true;
     this.RemoveFileButton.Name = "RemoveFileButton";
     this.RemoveFileButton.UseStock = true;
     this.RemoveFileButton.UseUnderline = true;
     this.RemoveFileButton.Label = "gtk-remove";
     this.hbuttonbox3.Add(this.RemoveFileButton);
     Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.RemoveFileButton]));
     w14.Position = 1;
     w14.Expand = false;
     w14.Fill = false;
     this.vbox3.Add(this.hbuttonbox3);
     Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox3]));
     w15.Position = 2;
     w15.Expand = false;
     w15.Fill = false;
     this.DetailsNotebook.Add(this.vbox3);
     // Notebook tab
     this.DetailsLabel = new Gtk.Label();
     this.DetailsLabel.Name = "DetailsLabel";
     this.DetailsLabel.LabelProp = "Details";
     this.DetailsNotebook.SetTabLabel(this.vbox3, this.DetailsLabel);
     this.DetailsLabel.ShowAll();
     // Container child DetailsNotebook.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.DetailsNotebook.Add(this.NotesView);
     Gtk.Notebook.NotebookChild w17 = ((Gtk.Notebook.NotebookChild)(this.DetailsNotebook[this.NotesView]));
     w17.Position = 1;
     // Notebook tab
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.LabelProp = "Notes";
     this.DetailsNotebook.SetTabLabel(this.NotesView, this.label2);
     this.label2.ShowAll();
     this.hbox1.Add(this.DetailsNotebook);
     Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox1[this.DetailsNotebook]));
     w18.Position = 2;
     this.Add(this.hbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.AddRecordButton.Clicked += new System.EventHandler(this.OnAddRecordButton_Clicked);
     this.RemoveRecordButton.Clicked += new System.EventHandler(this.OnRemoveRecordButton_Clicked);
     this.FileTreeView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnFileTreeView_ButtonPressEvent);
     this.AddFileButton.Clicked += new System.EventHandler(this.OnAddFileButton_Clicked);
     this.RemoveFileButton.Clicked += new System.EventHandler(this.OnRemoveFileButton_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);
 }