Split this out from other changes to keep things sane..

wxDeprecated KeyCode.
wxDeprecated old wxList compat methods.
Replaced a large number of them in the gtk build already, but there are
still plenty more so feel free to help nuke them as you find them.
s/^I/    / and s/TRUE/true/ etc. a couple of these too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2003-01-13 05:17:41 +00:00
parent 5797172366
commit b1d4dd7add
59 changed files with 1099 additions and 996 deletions

View File

@@ -159,12 +159,12 @@ wxPropertyValue::wxPropertyValue(wxList *the_list)
m_last = NULL;
m_value.first = NULL;
wxNode *node = the_list->First();
wxNode *node = the_list->GetFirst();
while (node)
{
wxPropertyValue *expr = (wxPropertyValue *)node->Data();
wxPropertyValue *expr = (wxPropertyValue *)node->GetData();
Append(expr);
node = node->Next();
node = node->GetNext();
}
delete the_list;
@@ -178,12 +178,12 @@ wxPropertyValue::wxPropertyValue(wxStringList *the_list)
m_last = NULL;
m_value.first = NULL;
wxNode *node = the_list->First();
wxStringList::Node *node = the_list->GetFirst();
while (node)
{
wxChar *s = (wxChar *)node->Data();
wxChar *s = node->GetData();
Append(new wxPropertyValue(s));
node = node->Next();
node = node->GetNext();
}
delete the_list;
}
@@ -939,14 +939,14 @@ wxPropertyValidator *wxPropertyView::FindPropertyValidator(wxProperty *property)
if (property->GetValidator())
return property->GetValidator();
wxNode *node = m_validatorRegistryList.First();
wxNode *node = m_validatorRegistryList.GetFirst();
while (node)
{
wxPropertyValidatorRegistry *registry = (wxPropertyValidatorRegistry *)node->Data();
wxPropertyValidatorRegistry *registry = (wxPropertyValidatorRegistry *)node->GetData();
wxPropertyValidator *validator = registry->GetValidator(property->GetRole());
if (validator)
return validator;
node = node->Next();
node = node->GetNext();
}
return NULL;
/*
@@ -989,7 +989,7 @@ wxProperty *wxPropertySheet::GetProperty(const wxString& name) const
if (!node)
return NULL;
else
return (wxProperty *)node->Data();
return (wxProperty *)node->GetData();
}
bool wxPropertySheet::SetProperty(const wxString& name, const wxPropertyValue& value)
@@ -1008,7 +1008,7 @@ void wxPropertySheet::RemoveProperty(const wxString& name)
wxNode *node = m_properties.Find(name);
if(node)
{
wxProperty *prop = (wxProperty *)node->Data();
wxProperty *prop = (wxProperty *)node->GetData();
delete prop;
m_properties.DeleteNode(node);
}
@@ -1022,11 +1022,11 @@ bool wxPropertySheet::HasProperty(const wxString& name) const
// Clear all properties
void wxPropertySheet::Clear(void)
{
wxNode *node = m_properties.First();
wxNode *node = m_properties.GetFirst();
while (node)
{
wxProperty *prop = (wxProperty *)node->Data();
wxNode *next = node->Next();
wxProperty *prop = (wxProperty *)node->GetData();
wxNode *next = node->GetNext();
delete prop;
delete node;
node = next;
@@ -1036,12 +1036,12 @@ void wxPropertySheet::Clear(void)
// Sets/clears the modified flag for each property value
void wxPropertySheet::SetAllModified(bool flag)
{
wxNode *node = m_properties.First();
wxNode *node = m_properties.GetFirst();
while (node)
{
wxProperty *prop = (wxProperty *)node->Data();
wxProperty *prop = (wxProperty *)node->GetData();
prop->GetValue().SetModified(flag);
node = node->Next();
node = node->GetNext();
}
}
@@ -1077,7 +1077,7 @@ void wxPropertyValidatorRegistry::ClearRegistry(void)
wxNode *node;
while ((node = Next()) != NULL)
{
delete (wxPropertyValidator *)node->Data();
delete (wxPropertyValidator *)node->GetData();
}
}