public NodeEditorWidget (DotNetProject project, AddinRegistry reg, ExtensionNodeType ntype, AddinDescription parentAddinDescription, string parentPath, ExtensionNodeDescription node) { this.node = node; this.project = project; tips = new Tooltips (); Spacing = 0; // Header Label label = new Label (); label.Wrap = true; label.WidthRequest = 480; string txt = "<b>" + node.NodeName + "</b>"; if (ntype.Description.Length > 0) txt += "\n" + GLib.Markup.EscapeText (ntype.Description); label.Markup = txt; label.Xalign = 0f; PackStart (label, false, false, 6); PackStart (new HSeparator (), false, false, 0); // Attributes grid = new PropertyGrid (); grid.CurrentObject = new NodeWrapper (project, reg, ntype, parentAddinDescription, parentPath, node); PackStart (grid, true, true, 0); ShowAll (); grid.ShowHelp = true; grid.ShowToolbar = false; }
public PropertyPad() { frame = new InvisibleFrame(); #if MAC isNative = true; if (isNative) { nativeGrid = new MacPropertyGrid(); propertyGrid = nativeGrid; nativeGrid.PropertyGridChanged += Grid_Changed; gtkWidget = new GtkNSViewHost(nativeGrid); frame.Add(gtkWidget); } else { #endif grid = new pg.PropertyGrid(); propertyGrid = grid; grid.Changed += Grid_Changed; frame.Add(grid); #if MAC } #endif frame.ShowAll(); }
public PropertyPad() { frame = new InvisibleFrame(); #if MAC isNative = FeatureSwitchService.IsFeatureEnabled("NativePropertyPanel") ?? false; if (isNative) { nativeGrid = new MacPropertyGrid(); propertyGrid = nativeGrid; gtkWidget = Components.Mac.GtkMacInterop.NSViewToGtkWidget(nativeGrid); gtkWidget.CanFocus = true; gtkWidget.Sensitive = true; gtkWidget.Focused += Widget_Focused; nativeGrid.Focused += PropertyGrid_Focused; frame.Add(gtkWidget); } else { #endif grid = new pg.PropertyGrid(); propertyGrid = grid; grid.Changed += Grid_Changed; frame.Add(grid); #if MAC } #endif frame.ShowAll(); }
public PropertyPad () { grid = new pg.PropertyGrid (); frame = new InvisibleFrame (); frame.Add (grid); frame.ShowAll (); }
public PropertyPad() { grid = new pg.PropertyGrid(); frame = new MonoDevelop.Components.InvisibleFrame(); frame.Add(grid); frame.ShowAll(); }
public PropertyPad() { grid = new pg.PropertyGrid(); frame = new InvisibleFrame(); frame.Add(grid); frame.ShowAll(); }
public ComponentInfoPanel() { this.Build(); propertyGrid = new PropertyGrid(); this.configurationExpander.Add(propertyGrid); this.configurationExpander.ShowAll(); this.errorTextView.InitColorTags(); }
public PropertyPad () { grid = new pg.PropertyGrid (); frame = new MonoDevelop.Components.InvisibleFrame (); frame.Add (grid); frame.ShowAll (); }
public PropertyPad () { grid = new pg.PropertyGrid (); frame = new MonoDevelop.Components.InvisibleFrame (); frame.Add (grid); frame.ShowAll (); DesignerSupport.Service.SetPad (this); }
public PropertyPad() { grid = new pg.PropertyGrid(); frame = new MonoDevelop.Components.InvisibleFrame(); frame.Add(grid); frame.ShowAll(); DesignerSupport.Service.SetPad(this); }
public ComponentInfoPanel() { this.Build(); //set EventBox VisibleWindow to invisible so it is only used to trap events this.VisibleWindow = false; this.AboveChild = false; //this.Events = Gdk.EventMask.AllEventsMask; propertyGrid = new PropertyGrid(); this.configurationExpander.Add(propertyGrid); this.configurationExpander.ShowAll(); this.errorTextView.InitColorTags(); }
public PropertyGridTable (EditorManager editorManager, PropertyGrid parentGrid) { Mono.TextEditor.GtkWorkarounds.FixContainerLeak (this); this.editorManager = editorManager; WidgetFlags |= Gtk.WidgetFlags.AppPaintable; Events |= Gdk.EventMask.PointerMotionMask; CanFocus = true; resizeCursor = new Cursor (CursorType.SbHDoubleArrow); handCursor = new Cursor (CursorType.Hand1); discloseDown = Gdk.Pixbuf.LoadFromResource ("disclose-arrow-down.png"); discloseUp = Gdk.Pixbuf.LoadFromResource ("disclose-arrow-up.png"); }
public PropertyGridTree (EditorManager editorManager, PropertyGrid parentGrid) { this.editorManager = editorManager; this.parentGrid = parentGrid; propertyRows = new Hashtable (); store = new TreeStore (typeof (string), typeof(object), typeof(bool), typeof(object)); tree = new InternalTree (this, store); CellRendererText crt; TreeViewColumn col; col = new TreeViewColumn (); col.Title = Catalog.GetString ("Property"); crt = new CellRendererPropertyGroup (tree); crt.Xpad = 0; col.PackStart (crt, true); col.SetCellDataFunc (crt, new TreeCellDataFunc (GroupData)); col.Resizable = true; col.Expand = false; col.Sizing = TreeViewColumnSizing.Fixed; col.FixedWidth = 180; tree.AppendColumn (col); editorColumn = new TreeViewColumn (); editorColumn.Title = Catalog.GetString ("Value"); CellRendererProperty crp = new CellRendererProperty (tree); editorColumn.PackStart (crp, true); editorColumn.SetCellDataFunc (crp, new TreeCellDataFunc (PropertyData)); editorColumn.Sizing = TreeViewColumnSizing.Fixed; editorColumn.Resizable = false; editorColumn.Expand = true; tree.AppendColumn (editorColumn); tree.HeadersVisible = false; this.ShadowType = Gtk.ShadowType.None; this.HscrollbarPolicy = Gtk.PolicyType.Never; Add (tree); ShowAll (); tree.Selection.Changed += OnSelectionChanged; }
public BaseInfoPanel() { this.Build(); //set EventBox VisibleWindow to invisible so it is only used to trap events this.VisibleWindow = false; this.AboveChild = false; //this.Events = Gdk.EventMask.AllEventsMask; propertyGrid = new PropertyGrid(); this.errorTextView.InitColorTags(); // HERZUM SPRINT 4.2: TLAB-225 this.componentInfoExpander.Expanded = false; propertyGrid.ShowToolbar = false; propertyGrid.PropertySort=PropertySort.Alphabetical; this.ResizeMode = ResizeMode.Immediate; // END HERZUM SPRINT 4.2: TLAB-225 }
public PropertyGrid (ServiceContainer parentServices) { this.parentServices = parentServices; grid = new MonoDevelop.Components.PropertyGrid.PropertyGrid (); this.PackEnd (grid, true, true, 0); components = new ListStore (typeof (string), typeof (IComponent)); combo = new ComboBox (components); CellRenderer rdr = new CellRendererText (); combo.PackStart (rdr, true); combo.AddAttribute (rdr, "text", 0); this.PackStart (combo, false, false, 3); //for selecting nothing, i.e. deselect all components.AppendValues (new object[] { "", null} ); combo.Changed += new EventHandler (combo_Changed); InitialiseServices(); }
public TableRow(PropertyGrid parentGrid) { this.parentGrid = parentGrid; }
public TableRow(PropertyGrid parentGrid) { this.parentGrid = parentGrid; Accessible = new AccessibilityElementProxy(); Accessible.SetRole(AtkCocoa.Roles.AXRow); }