X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/939d936402b4ac38310531ed39b4fd05afe29531..18e8e19b946931e18ed45fee2137257212c79fa3:/interface/wx/propgrid/propgridiface.h diff --git a/interface/wx/propgrid/propgridiface.h b/interface/wx/propgrid/propgridiface.h index d5aabb60e8..32932af310 100644 --- a/interface/wx/propgrid/propgridiface.h +++ b/interface/wx/propgrid/propgridiface.h @@ -16,6 +16,10 @@ @remarks - In separate wxPropertyGrid component this class was known as wxPropertyContainerMethods. + - wxPropertyGridInterface's property operation member functions all accept + a special wxPGPropArg id argument, using which you can refer to properties + either by their pointer (for performance) or by their name (for conveniency). + @library{wxpropgrid} @category{propgrid} */ @@ -147,15 +151,21 @@ public: //@{ /** Returns iterator class instance. + @param flags - See @ref propgrid_iterator_flags. Value wxPG_ITERATE_DEFAULT causes - iteration over everything except private child properties. + See @ref propgrid_iterator_flags. Value wxPG_ITERATE_DEFAULT causes + iteration over everything except private child properties. + @param firstProp - Property to start iteration from. If NULL, then first child of root is used. + Property to start iteration from. If NULL, then first child of root is used. + @param startPos - Either wxTOP or wxBOTTOM. wxTOP will indicate that iterations start from - the first property from the top, and wxBOTTOM means that the iteration will - instead begin from bottommost valid item. + Either wxTOP or wxBOTTOM. wxTOP will indicate that iterations start from + the first property from the top, and wxBOTTOM means that the iteration will + instead begin from bottommost valid item. + + wxPython Note: Instead of ++ operator, use Next() method, and instead of + * operator, use GetProperty() method. */ wxPropertyGridIterator GetIterator( int flags = wxPG_ITERATE_DEFAULT, wxPGProperty* firstProp = NULL ) { @@ -428,7 +438,10 @@ public: containers. @param flags - See @ref propgrid_iterator_flags. + See @ref propgrid_iterator_flags. + + wxPython Note: Instead of ++ operator, use Next() method, and instead of + * operator, use GetProperty() method. */ virtual wxPGVIterator GetVIterator( int flags ) const; @@ -646,12 +659,21 @@ public: Value of attribute. @param argFlags Optional. Use wxPG_RECURSE to set the attribute to child properties recursively. + + @remarks Setting attribute's value to Null variant will simply remove it + from property's set of attributes. */ void SetPropertyAttribute( wxPGPropArg id, const wxString& attrName, wxVariant value, long argFlags = 0 ) { DoSetPropertyAttribute(id,attrName,value,argFlags); } + /** Sets property attribute for all applicapple properties. + Be sure to use this method only after all properties have been + added to the grid. + */ + void SetPropertyAttributeAll( const wxString& attrName, wxVariant value ); + /** Sets attributes from a wxPGAttributeStorage. */ void SetPropertyAttributes( wxPGPropArg id, const wxPGAttributeStorage& attributes ) @@ -913,7 +935,7 @@ public: void SetPropertyValueString( wxPGPropArg id, const wxString& value ); /** Sets value (wxVariant&) of a property. - + @remarks Use wxPropertyGrid::ChangePropertyValue() instead if you need to run through validation process and send property change event. @@ -934,7 +956,7 @@ public: wxPGProperty* GetPropertyByNameA( const wxString& name ) const; static wxPGEditor* GetEditorByName( const wxString& editorName ); - + virtual void RefreshProperty( wxPGProperty* p ) = 0; };