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:
@@ -293,13 +293,6 @@ public:
|
||||
return InsertPage(-1, label, bmp, pageObj);
|
||||
}
|
||||
|
||||
void ClearModifiedStatus ( wxPGPropArg id );
|
||||
|
||||
void ClearModifiedStatus ()
|
||||
{
|
||||
m_pPropGrid->ClearModifiedStatus();
|
||||
}
|
||||
|
||||
/** Deletes all all properties and all pages.
|
||||
*/
|
||||
virtual void Clear();
|
||||
|
@@ -206,11 +206,7 @@ public:
|
||||
|
||||
/** Resets modified status of all properties.
|
||||
*/
|
||||
void ClearModifiedStatus()
|
||||
{
|
||||
SetPropertyModifiedStatus(m_pState->m_properties, false);
|
||||
m_pState->m_anyModified = false;
|
||||
}
|
||||
void ClearModifiedStatus();
|
||||
|
||||
/** Collapses given category or property with children.
|
||||
Returns true if actually collapses.
|
||||
|
@@ -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