Author: lluis
Date: 2007-09-07 13:08:35 -0400 (Fri, 07 Sep 2007)
New Revision: 85489

Modified:
   trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog
   
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/IPropertyPadProvider.cs
Log:
* MonoDevelop.DesignerSupport.PropertyGrid/IPropertyPadProvider.cs:
  Added some documentation.

Modified: trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog      
2007-09-07 16:57:00 UTC (rev 85488)
+++ trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/ChangeLog      
2007-09-07 17:08:35 UTC (rev 85489)
@@ -1,5 +1,10 @@
 2007-09-07  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * MonoDevelop.DesignerSupport.PropertyGrid/IPropertyPadProvider.cs: 
Added
+         some documentation.
+
+2007-09-07  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * MonoDevelop.DesignerSupport.addin.xml, 
MonoDevelop.DesignerSupport.mdp,
          Makefile.am,
          
MonoDevelop.DesignerSupport.Projects/PropertyPadTextEditorExtension.cs:

Modified: 
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/IPropertyPadProvider.cs
===================================================================
--- 
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/IPropertyPadProvider.cs
       2007-09-07 16:57:00 UTC (rev 85488)
+++ 
trunk/monodevelop/Extras/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.PropertyGrid/IPropertyPadProvider.cs
       2007-09-07 17:08:35 UTC (rev 85489)
@@ -30,14 +30,34 @@
 
 namespace MonoDevelop.DesignerSupport.PropertyGrid
 {
+       // The property pad service looks for objects implementing 
IPropertyPadProvider
+       // and ICustomPropertyPadProvider in the active command route. 
+       // The command route is a chain of objects that starts at the
+       // object having the focus and goes up to the widget hierarchy (this 
route can be
+       // modified by the objects in it, but that's basically it).
+       
+       // When one of those interfaces is found, the property pad will be 
updated to show
+       // the information provided by them.
+       
        public interface IPropertyPadProvider
        {
+               // Returns the component represented by this PadProvider
                object GetActiveComponent ();
+               
+               // Returns the object which will be used to fill the property 
grid.
+               // It may be different from the object returned by 
GetActiveComponent.
+               // If null, the value of GetActiveComponent is used.
                object GetProvider ();
+               
+               // Called when all editing in the object has finished
                void OnEndEditing (object obj);
+               
+               // Called when there is a change in the property grid
                void OnChanged (object obj);
        }
        
+       // Use this interface to completely replace the property pad by a custom
+       // properties widget.
        public interface ICustomPropertyPadProvider
        {
                Gtk.Widget GetCustomPropertyWidget ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to