static inline cbRectInfo& node_to_rect_info( wxNode* pNode )
{
- return *( (cbRectInfo*) (pNode->Data()) );
+ return *( (cbRectInfo*) (pNode->GetData()) );
}
/***** Implementation for class cbSimpleUpdatesMgr *****/
// number of bars, that were changed in the current row
int nBars = 0;
- wxRect r1 = pRow->mUMgrData.mPrevBounds;
- wxRect r2 = pRow->mBoundsInParent;
+ //wxRect r1 = pRow->mUMgrData.mPrevBounds;
+ //wxRect r2 = pRow->mBoundsInParent;
if ( WasChanged( pRow->mUMgrData, pRow->mBoundsInParent ) )
void cbGCUpdatesMgr::DoRepositionItems( wxList& items )
{
- wxNode* pNode1 = items.First();
+ wxNode* pNode1 = items.GetFirst();
while( pNode1 )
{
cbRectInfo& info = node_to_rect_info( pNode1 );
- wxNode* pNode2 = items.First();
+ wxNode* pNode2 = items.GetFirst();
// and node itself
mGC.AddDependency( &info, &otherInfo );
}
- pNode2 = pNode2->Next();
+ pNode2 = pNode2->GetNext();
}
- pNode1 = pNode1->Next();
+ pNode1 = pNode1->GetNext();
}
mGC.ArrangeCollection(); // order nodes according "least-dependency" rule,
// they stand in linear (not cyclic) dependency with other
// regular nodes).
- wxNode* pNode = mGC.GetRegularObjects().First();
+ wxNode* pNode = mGC.GetRegularObjects().GetFirst();
while ( pNode )
{
else
info.mpPane->SizeBar( info.mpBar );
- pNode = pNode->Next();
+ pNode = pNode->GetNext();
}
// cycled item nodes, need to be both resized and repainted
- pNode = mGC.GetCycledObjects().First();
+ pNode = mGC.GetCycledObjects().GetFirst();
while ( pNode )
{
pWnd->Refresh();
}
- pNode = pNode->Next();
+ pNode = pNode->GetNext();
}
// release data prepared for GC alg.
- pNode = items.First();
+ pNode = items.GetFirst();
while( pNode )
{
- cbRectInfo* pInfo = (cbRectInfo*)(pNode->Data());
+ cbRectInfo* pInfo = (cbRectInfo*)(pNode->GetData());
delete pInfo;
- pNode = pNode->Next();
+ pNode = pNode->GetNext();
}
mGC.Reset(); // reinit GC