Moved wxPropertyGrid::SetPropertyName() to wxPropertyGridInterface

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-09-29 17:01:04 +00:00
parent 704ceca8d2
commit 020b004113
7 changed files with 41 additions and 37 deletions

View File

@@ -448,6 +448,19 @@ wxPGProperty* wxPropertyGridPageState::BaseGetPropertyByName( const wxString& na
return (wxPGProperty*) NULL;
}
// -----------------------------------------------------------------------
void wxPropertyGridPageState::DoSetPropertyName( wxPGProperty* p,
const wxString& newName )
{
wxCHECK_RET( p, wxT("invalid property id") );
if ( p->GetBaseName().Len() ) m_dictName.erase( p->GetBaseName() );
if ( newName.Len() ) m_dictName[newName] = (void*) p;
p->DoSetName(newName);
}
// -----------------------------------------------------------------------
// wxPropertyGridPageState global operations
// -----------------------------------------------------------------------