コード例 #1
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.TreePopupDialog
     this.Name            = "HollyLibrary.TreePopupDialog";
     this.Title           = "TreePopupDialog";
     this.WindowPosition  = ((Gtk.WindowPosition)(4));
     this.Decorated       = false;
     this.SkipPagerHint   = true;
     this.SkipTaskbarHint = true;
     // Container child HollyLibrary.TreePopupDialog.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.Tree                     = new HollyLibrary.HTreeView();
     this.Tree.CanFocus            = true;
     this.Tree.Name                = "Tree";
     this.Tree.HeadersClickable    = true;
     this.Tree.OwnerDraw           = false;
     this.Tree.ItemHeight          = 0;
     this.Tree.NodeIconVisible     = false;
     this.Tree.IsCheckBoxTree      = false;
     this.Tree.IsDragAndDropEnable = false;
     this.Tree.Editable            = false;
     this.GtkScrolledWindow.Add(this.Tree);
     this.Add(this.GtkScrolledWindow);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 322;
     this.DefaultHeight = 325;
     this.Hide();
     this.ButtonPressEvent      += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.Tree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnTreeButtonPressEvent);
     this.Tree.RowActivated     += new Gtk.RowActivatedHandler(this.OnTreeRowActivated);
     this.Tree.CursorChanged    += new System.EventHandler(this.OnTreeCursorChanged);
 }
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.FolderChooserDialog
     this.Name = "HollyLibrary.FolderChooserDialog";
     this.Title = "FolderChooserDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth = ((uint)(2));
     this.Decorated = false;
     this.SkipPagerHint = true;
     this.SkipTaskbarHint = true;
     this.FocusOnMap = false;
     // Container child HollyLibrary.FolderChooserDialog.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     this.vbox1.BorderWidth = ((uint)(4));
     // Container child vbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     this.GtkScrolledWindow.BorderWidth = ((uint)(2));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.FolderTree = new HollyLibrary.HTreeView();
     this.FolderTree.CanFocus = true;
     this.FolderTree.Name = "FolderTree";
     this.FolderTree.HeadersClickable = true;
     this.FolderTree.OwnerDraw = false;
     this.FolderTree.ItemHeight = 0;
     this.FolderTree.NodeIconVisible = true;
     this.FolderTree.IsCheckBoxTree = false;
     this.FolderTree.IsDragAndDropEnable = false;
     this.FolderTree.Editable = false;
     this.GtkScrolledWindow.Add(this.FolderTree);
     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.hseparator1 = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.Xalign = 0F;
     this.label1.LabelProp = "Add new folder:";
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w4.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.TxtNewFolder = new Gtk.Entry();
     this.TxtNewFolder.CanFocus = true;
     this.TxtNewFolder.Name = "TxtNewFolder";
     this.TxtNewFolder.IsEditable = true;
     this.TxtNewFolder.InvisibleChar = '●';
     this.hbox1.Add(this.TxtNewFolder);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.TxtNewFolder]));
     w5.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.BtnNewFolder = new Gtk.Button();
     this.BtnNewFolder.CanFocus = true;
     this.BtnNewFolder.Name = "BtnNewFolder";
     this.BtnNewFolder.UseStock = true;
     this.BtnNewFolder.UseUnderline = true;
     this.BtnNewFolder.Label = "gtk-add";
     this.hbox1.Add(this.BtnNewFolder);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.BtnNewFolder]));
     w6.Position = 2;
     w6.Expand = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w7.Position = 2;
     w7.Expand = false;
     w7.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 355;
     this.DefaultHeight = 271;
     this.Hide();
     this.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.FolderTree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnFolderTreeButtonPressEvent);
     this.FolderTree.CursorChanged += new System.EventHandler(this.OnFolderTreeCursorChanged);
     this.FolderTree.RowActivated += new Gtk.RowActivatedHandler(this.OnFolderTreeRowActivated);
     this.FolderTree.BeforeNodeExpand += new HollyLibrary.NodeEventHandler(this.OnFolderTreeBeforeNodeExpand);
     this.TxtNewFolder.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnTxtNewFolderKeyReleaseEvent);
     this.BtnNewFolder.Clicked += new System.EventHandler(this.OnBtnNewFolderClicked);
     this.BtnNewFolder.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnBtnNewFolderButtonPressEvent);
 }
コード例 #3
0
 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.FolderChooserDialog
     this.Name            = "HollyLibrary.FolderChooserDialog";
     this.Title           = "FolderChooserDialog";
     this.WindowPosition  = ((Gtk.WindowPosition)(4));
     this.BorderWidth     = ((uint)(2));
     this.Decorated       = false;
     this.SkipPagerHint   = true;
     this.SkipTaskbarHint = true;
     this.FocusOnMap      = false;
     // Container child HollyLibrary.FolderChooserDialog.Gtk.Container+ContainerChild
     this.vbox1             = new Gtk.VBox();
     this.vbox1.Name        = "vbox1";
     this.vbox1.Spacing     = 6;
     this.vbox1.BorderWidth = ((uint)(4));
     // Container child vbox1.Gtk.Box+BoxChild
     this.GtkScrolledWindow             = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name        = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType  = ((Gtk.ShadowType)(1));
     this.GtkScrolledWindow.BorderWidth = ((uint)(2));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.FolderTree                     = new HollyLibrary.HTreeView();
     this.FolderTree.CanFocus            = true;
     this.FolderTree.Name                = "FolderTree";
     this.FolderTree.HeadersClickable    = true;
     this.FolderTree.OwnerDraw           = false;
     this.FolderTree.ItemHeight          = 0;
     this.FolderTree.NodeIconVisible     = true;
     this.FolderTree.IsCheckBoxTree      = false;
     this.FolderTree.IsDragAndDropEnable = false;
     this.FolderTree.Editable            = false;
     this.GtkScrolledWindow.Add(this.FolderTree);
     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.hseparator1      = new Gtk.HSeparator();
     this.hseparator1.Name = "hseparator1";
     this.vbox1.Add(this.hseparator1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
     w3.Position = 1;
     w3.Expand   = false;
     w3.Fill     = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hbox1         = new Gtk.HBox();
     this.hbox1.Name    = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label1           = new Gtk.Label();
     this.label1.Name      = "label1";
     this.label1.Xalign    = 0F;
     this.label1.LabelProp = "Add new folder:";
     this.hbox1.Add(this.label1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
     w4.Position = 0;
     // Container child hbox1.Gtk.Box+BoxChild
     this.TxtNewFolder               = new Gtk.Entry();
     this.TxtNewFolder.CanFocus      = true;
     this.TxtNewFolder.Name          = "TxtNewFolder";
     this.TxtNewFolder.IsEditable    = true;
     this.TxtNewFolder.InvisibleChar = '●';
     this.hbox1.Add(this.TxtNewFolder);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.TxtNewFolder]));
     w5.Position = 1;
     // Container child hbox1.Gtk.Box+BoxChild
     this.BtnNewFolder              = new Gtk.Button();
     this.BtnNewFolder.CanFocus     = true;
     this.BtnNewFolder.Name         = "BtnNewFolder";
     this.BtnNewFolder.UseStock     = true;
     this.BtnNewFolder.UseUnderline = true;
     this.BtnNewFolder.Label        = "gtk-add";
     this.hbox1.Add(this.BtnNewFolder);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.BtnNewFolder]));
     w6.Position = 2;
     w6.Expand   = false;
     this.vbox1.Add(this.hbox1);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
     w7.Position = 2;
     w7.Expand   = false;
     w7.Fill     = false;
     this.Add(this.vbox1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 355;
     this.DefaultHeight = 271;
     this.Hide();
     this.ButtonPressEvent              += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.FolderTree.ButtonPressEvent   += new Gtk.ButtonPressEventHandler(this.OnFolderTreeButtonPressEvent);
     this.FolderTree.CursorChanged      += new System.EventHandler(this.OnFolderTreeCursorChanged);
     this.FolderTree.RowActivated       += new Gtk.RowActivatedHandler(this.OnFolderTreeRowActivated);
     this.FolderTree.BeforeNodeExpand   += new HollyLibrary.NodeEventHandler(this.OnFolderTreeBeforeNodeExpand);
     this.TxtNewFolder.KeyReleaseEvent  += new Gtk.KeyReleaseEventHandler(this.OnTxtNewFolderKeyReleaseEvent);
     this.BtnNewFolder.Clicked          += new System.EventHandler(this.OnBtnNewFolderClicked);
     this.BtnNewFolder.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnBtnNewFolderButtonPressEvent);
 }