Moved ClearModifiedStatus() to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -475,6 +475,23 @@ void wxPropertyGridInterface::SetPropertyValueUnspecified( wxPGPropArg id )
|
||||
p->GetParentState()->DoSetPropertyValueUnspecified(p);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGridInterface::ClearModifiedStatus()
|
||||
{
|
||||
unsigned int pageIndex = 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
wxPropertyGridPageState* page = GetPageState(pageIndex);
|
||||
if ( !page ) break;
|
||||
|
||||
page->DoGetRoot()->SetFlagRecursively(wxPG_PROP_MODIFIED, false);
|
||||
|
||||
pageIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// wxPropertyGridInterface property value setting and getting
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user