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:
@@ -462,6 +462,7 @@ void wxPropertyGrid::Init1()
|
||||
m_eventObject = this;
|
||||
m_curFocused = (wxWindow*) NULL;
|
||||
m_tlwHandler = NULL;
|
||||
m_sortFunction = NULL;
|
||||
m_inDoPropertyChanged = 0;
|
||||
m_inCommitChangesFromEditor = 0;
|
||||
m_inDoSelectProperty = 0;
|
||||
@@ -2292,24 +2293,6 @@ void wxPropertyGrid::SwitchState( wxPropertyGridPageState* pNewState )
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGrid::SortChildren( wxPGPropArg id )
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
|
||||
m_pState->SortChildren( p );
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGrid::Sort()
|
||||
{
|
||||
ClearSelection(false); // This must be before state clear
|
||||
|
||||
m_pState->Sort();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// Call to SetSplitterPosition will always disable splitter auto-centering
|
||||
// if parent window is shown.
|
||||
void wxPropertyGrid::DoSetSplitterPosition_( int newxpos, bool refresh, int splitterIndex, bool allPages )
|
||||
|
Reference in New Issue
Block a user