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;
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;
}
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;
/*
if (!node)
return NULL;
else
- return (wxProperty *)node->Data();
+ return (wxProperty *)node->GetData();
}
bool wxPropertySheet::SetProperty(const wxString& name, const wxPropertyValue& value)
wxNode *node = m_properties.Find(name);
if(node)
{
- wxProperty *prop = (wxProperty *)node->Data();
+ wxProperty *prop = (wxProperty *)node->GetData();
delete prop;
m_properties.DeleteNode(node);
}
// 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;
// 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();
}
}
wxNode *node;
while ((node = Next()) != NULL)
{
- delete (wxPropertyValidator *)node->Data();
+ delete (wxPropertyValidator *)node->GetData();
}
}