if ( mpPane->IsHorizontal() )
{
- // DBG::
- wxPoint p = event.mPos;
- wxPoint d = mDragOrigin;
-// int dif = event.mPos.x - mDragOrigin.x;
-
// row is dragged up or down;
ShowDraggedRow( pos.y - mDragOrigin.y );
}
else
{
- // DBG::
- wxPoint p = event.mPos;
- wxPoint d = mDragOrigin;
-// int dif = event.mPos.x - mDragOrigin.x;
-
// row is dragged left or right
ShowDraggedRow( pos.x - mDragOrigin.x );
}
int cbRowDragPlugin::GetHRowsCountForPane( cbDockPane* pPane )
{
- wxNode* pNode = mHiddenBars.First();
+ wxNode* pNode = mHiddenBars.GetFirst();
int maxIconNo = -1;
while( pNode )
{
- cbHiddenBarInfo* pHBInfo = (cbHiddenBarInfo*)pNode->Data();
+ cbHiddenBarInfo* pHBInfo = (cbHiddenBarInfo*)pNode->GetData();
if ( pHBInfo->mAlignment == pPane->mAlignment )
maxIconNo = wxMax( maxIconNo, pHBInfo->mIconNo );
- pNode = pNode->Next();
+ pNode = pNode->GetNext();
}
return ( maxIconNo + 1 );
cbRowInfo* pNewRow = new cbRowInfo();
- wxNode* pNode = mHiddenBars.First();
+ wxNode* pNode = mHiddenBars.GetFirst();
int rowNo = 0;
while( pNode )
{
- cbHiddenBarInfo* pHBInfo = (cbHiddenBarInfo*)pNode->Data();
+ cbHiddenBarInfo* pHBInfo = (cbHiddenBarInfo*)pNode->GetData();
if ( pHBInfo->mAlignment == mpPane->mAlignment &&
pHBInfo->mIconNo == collapsedIconIdx )
// remove bar info from internal list
- wxNode* pNext = pNode->Next();
+ wxNode* pNext = pNode->GetNext();
delete pHBInfo;
mHiddenBars.DeleteNode( pNode );
--pHBInfo->mIconNo;
- pNode = pNode->Next();
+ pNode = pNode->GetNext();
}
}
}
}
-void cbRowDragPlugin::DrawRowsDragHintsBorder( wxDC& dc )
+void cbRowDragPlugin::DrawRowsDragHintsBorder( wxDC& WXUNUSED(dc) )
{
// FIXME:: what was that?
}