示例#1
0
		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;
			
		}
示例#2
0
        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();
        }
示例#3
0
        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();
        }
示例#4
0
		public PropertyPad ()
		{
			grid = new pg.PropertyGrid ();
			frame = new InvisibleFrame ();
			frame.Add (grid);
			
			frame.ShowAll ();
		}
示例#5
0
        public PropertyPad()
        {
            grid  = new pg.PropertyGrid();
            frame = new MonoDevelop.Components.InvisibleFrame();
            frame.Add(grid);

            frame.ShowAll();
        }
示例#6
0
        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();
 }
示例#8
0
		public PropertyPad ()
		{
			grid = new pg.PropertyGrid ();
			frame = new MonoDevelop.Components.InvisibleFrame ();
			frame.Add (grid);
			
			frame.ShowAll ();
		}
示例#9
0
		public PropertyPad ()
		{
			grid = new pg.PropertyGrid ();
			frame = new MonoDevelop.Components.InvisibleFrame ();
			frame.Add (grid);
			
			frame.ShowAll ();
			DesignerSupport.Service.SetPad (this);
		}
示例#10
0
        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();
        }
示例#12
0
		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");
		}
示例#13
0
		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;
		}
示例#14
0
        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
        }
示例#15
0
		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();
		}
示例#16
0
 public TableRow(PropertyGrid parentGrid)
 {
     this.parentGrid = parentGrid;
 }
示例#17
0
 public TableRow(PropertyGrid parentGrid)
 {
     this.parentGrid = parentGrid;
     Accessible      = new AccessibilityElementProxy();
     Accessible.SetRole(AtkCocoa.Roles.AXRow);
 }