]> git.saurik.com Git - wxWidgets.git/commitdiff
Updated documentation to acknowledge the fact that properties can have identical...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 14 Sep 2008 13:53:21 +0000 (13:53 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 14 Sep 2008 13:53:21 +0000 (13:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/doxygen/overviews/propgrid.h
include/wx/propgrid/propgridiface.h
interface/wx/propgrid/property.h
interface/wx/propgrid/propgridiface.h

index 0686d5845b3e5a5df1d77f7dde4d90f514ec16c2..6875586de35db2f66637e025cf4cd0f1a85e6cb8 100644 (file)
@@ -1028,12 +1028,16 @@ Few things to note:
 
 @subsection namescope Property Name Scope
 
-- All properties which parent is category or root have their names
-  globally accessible.
+  All properties which parent is category or root can be accessed
+directly by their base name (ie. name given for property in its constructor).
+Other properties can be accessed via "ParentsName.BaseName" notation,
+Naturally, all property names should be unique.
 
-- Sub-properties (i.e. private child properties which have parent that is not category or
-  root or non-aggregate property) can not be accessed globally by their name. Instead, use
-  "<property>.<subproperty>".
+@subsection nonuniquelabels Non-unique Labels
+
+  It is possible to have properties with identical label under same parent.
+However, care must be taken to ensure that each property still has
+unique (base) name.
 
 @subsection boolproperty wxBoolProperty
 
index 68634c80236fdc73291df42274890d66af4cae79..ec4f278b3228695924db21f7a4e6d947867ba68e 100644 (file)
@@ -1004,9 +1004,6 @@ public:
     }
 
     /** Sets label of a property.
-        @remarks
-        This is the only way to set property's name. There is not
-        wxPGProperty::SetLabel() method.
     */
     void SetPropertyLabel( wxPGPropArg id, const wxString& newproplabel );
 
index 2f3f5fb2238dae00f7fcc89cede9c1cf8ae0d395..65e494b41b9954b3306d42498b036536d931c95a 100644 (file)
@@ -1165,6 +1165,12 @@ public:
         m_helpString = helpString;
     }
 
+    /** Sets property's label.
+
+        @remarks
+        - Properties under same parent may have same labels. However,
+        property names must still remain unique.
+    */
     void SetLabel( const wxString& label ) { m_label = label; }
 
     inline void SetName( const wxString& newName );
index 3f433ad1f9e1a54fec8208bd7ca1c2074f604560..ca75a14c9899e3acf6ac9d79d5b825f830b11856 100644 (file)
@@ -765,9 +765,10 @@ public:
     }
 
     /** Sets label of a property.
+
         @remarks
-        This is the only way to set property's name. There is not
-        wxPGProperty::SetLabel() method.
+        - Properties under same parent may have same labels. However,
+        property names must still remain unique.
     */
     void SetPropertyLabel( wxPGPropArg id, const wxString& newproplabel );