Esempio n. 1
0
 public PropertyGrid(EditorManager manager)
 {
     this._editorManager         = manager;
     this._expand                = new PropertyGridExpand(this._editorManager, this);
     this._sw.HScrollbar.Visible = true;
     this._sw.VScrollbar.Visible = true;
     this.container              = (Gtk.Container) new EventBox();
     this._sw.AddWithViewport((Widget)this.container);
     this.container.Name = "CocoStudio.ToolKit.PropertyGrid.EventBox";
     this._sw.Name       = "CocoStudio.ToolKit.PropertyGrid.CompactScrolledWindow";
     this.Add((Widget)this._propertyTable);
 }
Esempio n. 2
0
        public GeneralTitle(EditorManager em)
        {
            this.contentEM    = em;
            this.hBox         = new HBox();
            this._imageWidget = new ImageView();
            this.TitleTable   = new Table(1U, 1U, false);
            Table table = new Table(2U, 1U, false);

            table.Attach((Widget)this._imageWidget, 0U, 1U, 0U, 1U, AttachOptions.Shrink, AttachOptions.Fill, 0U, 0U);
            this._imageWidget.Show();
            this.labelTable  = new Table(2U, 1U, false);
            table.RowSpacing = 6U;
            table.Attach((Widget)this.labelTable, 0U, 1U, 1U, 2U, AttachOptions.Fill, AttachOptions.Fill, 0U, 0U);
            this.labelTable.Show();
            table.Show();
            table.WidthRequest = 38;
            Alignment alignment1 = new Alignment(0.5f, 0.5f, 1f, 1f);

            alignment1.LeftPadding  = 15U;
            alignment1.TopPadding   = 15U;
            alignment1.RightPadding = 15U;
            alignment1.Add((Widget)table);
            alignment1.ShowAll();
            this.hBox.Add((Widget)alignment1);
            Box.BoxChild boxChild1 = this.hBox[(Widget)alignment1] as Box.BoxChild;
            boxChild1.Position = 0;
            boxChild1.Expand   = false;
            boxChild1.Fill     = false;
            VSeparator vseparator = new VSeparator();
            Alignment  alignment2 = new Alignment(0.5f, 0.5f, 1f, 1f);

            alignment2.LeftPadding   = 8U;
            alignment2.TopPadding    = 8U;
            alignment2.BottomPadding = 8U;
            alignment2.Add((Widget)vseparator);
            alignment2.ShowAll();
            vseparator.Show();
            this.hBox.Add((Widget)alignment2);
            Box.BoxChild boxChild2 = this.hBox[(Widget)alignment2] as Box.BoxChild;
            boxChild2.Position            = 1;
            boxChild2.Expand              = false;
            boxChild2.Fill                = false;
            this.ThirdTable               = new Table(2U, 2U, false);
            this.ThirdTable.RowSpacing    = 16U;
            this.ThirdTable.ColumnSpacing = 10U;
            Alignment alignment3 = new Alignment(0.5f, 0.5f, 1f, 1f);

            alignment3.LeftPadding   = 1U;
            alignment3.TopPadding    = 16U;
            alignment3.BottomPadding = 16U;
            alignment3.RightPadding  = 30U;
            alignment3.Add((Widget)this.ThirdTable);
            alignment3.ShowAll();
            this.ThirdTable.Show();
            this.hBox.Add((Widget)alignment3);
            Box.BoxChild boxChild3 = this.hBox[(Widget)this.ThirdTable] as Box.BoxChild;
            boxChild3.Position = 2;
            boxChild3.Expand   = true;
            boxChild3.Fill     = true;
            this.hBox.ShowAll();
        }
Esempio n. 3
0
 public PropertyGridExpand(EditorManager editorManager, PropertyGrid parent)
 {
     this.em           = editorManager;
     this.objectParent = parent;
 }