/// Clear children
void ctConfigItem::Clear()
{
- wxNode* node = m_children.GetFirst();
+ wxObjectList::compatibility_iterator node = m_children.GetFirst();
while (node)
{
- wxNode* next = node->GetNext();
+ wxObjectList::compatibility_iterator next = node->GetNext();
ctConfigItem* child = (ctConfigItem*) node->GetData();
// This should delete 'node' too, assuming
if (GetName() == name)
return this;
- for ( wxNode* node = GetChildren().GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* child = (ctConfigItem*) node->GetData();
ctConfigItem* found = child->FindItem(name);
{
if (!GetParent())
return NULL;
- wxNode* node = GetParent()->GetChildren().Member(this);
+ wxObjectList::compatibility_iterator node = GetParent()->GetChildren().Member(this);
if (node && node->GetNext())
{
return (ctConfigItem*) node->GetNext()->GetData();
{
if (!GetParent())
return NULL;
- wxNode* node = GetParent()->GetChildren().Member(this);
+ wxObjectList::compatibility_iterator node = GetParent()->GetChildren().Member(this);
if (node && node->GetPrevious())
{
return (ctConfigItem*) node->GetPrevious()->GetData();
{
ctConfigItem* newItem = Clone();
- for ( wxNode* node = GetChildren().GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* child = (ctConfigItem*) node->GetData();
ctConfigItem* newChild = child->DeepClone();
data->SetConfigItem(NULL);
m_treeItemId = wxTreeItemId();
- for ( wxNode* node = GetChildren().GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = GetChildren().GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* child = (ctConfigItem*) node->GetData();
child->DetachFromTree();
if (parent)
{
SetParent(parent);
- wxNode* node = NULL;
+ wxObjectList::compatibility_iterator node = (wxObjectList::compatibility_iterator)NULL;
if (insertBefore)
node = parent->GetChildren().Member(insertBefore);
wxList contextItems;
StringToItems(GetDocument()->GetTopItem(), context, contextItems);
- for ( wxNode* node = contextItems.GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = contextItems.GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* otherItem = (ctConfigItem*) node->GetData();
if (otherItem->IsEnabled())
wxList tempItems;
StringToItems(GetDocument()->GetTopItem(), requires, tempItems);
- wxNode* node;
+ wxObjectList::compatibility_iterator node;
for ( node = tempItems.GetFirst(); node; node = node->GetNext() )
{
// Only consider the dependency if both items are in
int disabledCount = 0;
int inContextCount = 0;
- for ( wxNode* node = items.GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = items.GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* otherItem = (ctConfigItem*) node->GetData();
int enabledCount = 0;
int inContextCount = 0;
- for ( wxNode* node = items.GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = items.GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* otherItem = (ctConfigItem*) node->GetData();
wxString otherName = otherItem->GetName();
// int disabledCount = 0;
int inContextCount = 0;
- for ( wxNode* node = items.GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = items.GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* otherItem = (ctConfigItem*) node->GetData();
int enabledCount = 0;
int inContextCount = 0;
- for ( wxNode* node = items.GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = items.GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* otherItem = (ctConfigItem*) node->GetData();
// TODO: what about string, integer? Can they have
// dependencies?
- for ( wxNode* node = GetDependents().GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = GetDependents().GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* child = (ctConfigItem*) node->GetData();
wxList list;
StringToItems(GetDocument()->GetTopItem(), mutuallyExclusive, list);
- for ( wxNode* node = list.GetFirst(); node; node = node->GetNext() )
+ for ( wxObjectList::compatibility_iterator node = list.GetFirst(); node; node = node->GetNext() )
{
ctConfigItem* child = (ctConfigItem*) node->GetData();
if (child->IsEnabled() && child != this)