Removed wxPropertyGridInterface::ClearPropertyValue() (use SetPropertyValue(defaultValue) instead)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-10-06 15:10:00 +00:00
parent 6cd1aa9d38
commit ba9ed9d0c6
4 changed files with 4 additions and 47 deletions

View File

@@ -667,8 +667,8 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
{
//
// Clear property value
RT_START_TEST(ClearPropertyValue)
// Test property default values
RT_START_TEST(Default_Values)
wxPGVIterator it;
@@ -676,8 +676,8 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
!it.AtEnd();
it.Next() )
{
RT_MSG(wxString::Format(wxT("Clearing value of '%s'"),it.GetProperty()->GetLabel().c_str()));
pgman->ClearPropertyValue(it.GetProperty());
wxPGProperty* p = it.GetProperty();
pgman->SetPropertyValue(p, p->GetDefaultValue());
}
// Recreate grid
@@ -1126,28 +1126,6 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
OnColourScheme(evt);
}
{
// Test ClearPropertyValue
RT_START_TEST(ClearPropertyValue)
for ( i=0; i<3; i++ )
{
wxPropertyGridPage* page = pgman->GetPage(i);
// Iterate over all properties.
wxPropertyGridIterator it;
for ( it = page->GetIterator();
!it.AtEnd();
it++ )
{
wxLogDebug((*it)->GetLabel());
pgman->ClearPropertyValue( *it );
}
}
}
{
RT_START_TEST(ManagerClear)
pgman->Clear();