Added wxPropertyGrid::SetSortFunction(); moved Sort() and SortChildren() to wxPropertyGridInterface; default sorting is now case-insensitive

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-01-07 18:53:09 +00:00
parent 5f8704a6e3
commit 433969811e
10 changed files with 286 additions and 63 deletions

View File

@@ -1226,6 +1226,30 @@ public:
*/
void SetValidationFailureBehavior( int vfbFlags );
/**
Sorts all properties.
@see SortChildren, wxPropertyGrid::SetSortFunction
*/
void Sort();
/**
Sorts children of a property.
@param id
Name or pointer to a property.
@param recursively
If @true, then children are sorted recursively.
@see Sort, wxPropertyGrid::SetSortFunction
*/
void SortChildren( wxPGPropArg id, bool recursively = false )
{
wxPG_PROP_ARG_CALL_PROLOG()
m_pState->DoSortChildren(p, recursively);
}
#ifdef SWIG
%pythoncode {
def MapType(class_,factory):