X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cbc57f086cee690f397ac5622d3f1d7153b300e..d1a6e2b7a103d761fbc15e0e9c1c20ab53a849d9:/contrib/src/fl/rowdragpl.cpp diff --git a/contrib/src/fl/rowdragpl.cpp b/contrib/src/fl/rowdragpl.cpp index 062e312bc5..21bd0e653a 100644 --- a/contrib/src/fl/rowdragpl.cpp +++ b/contrib/src/fl/rowdragpl.cpp @@ -226,21 +226,11 @@ void cbRowDragPlugin::OnMouseMove( cbMotionEvent& event ) 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 ); } @@ -423,19 +413,19 @@ void cbRowDragPlugin::OnDrawPaneBackground ( cbDrawPaneDecorEvent& event ) 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 ); @@ -805,7 +795,7 @@ void cbRowDragPlugin::ExpandRow( int collapsedIconIdx ) cbRowInfo* pNewRow = new cbRowInfo(); - wxNode* pNode = mHiddenBars.First(); + wxNode* pNode = mHiddenBars.GetFirst(); int rowNo = 0; @@ -813,7 +803,7 @@ void cbRowDragPlugin::ExpandRow( int collapsedIconIdx ) while( pNode ) { - cbHiddenBarInfo* pHBInfo = (cbHiddenBarInfo*)pNode->Data(); + cbHiddenBarInfo* pHBInfo = (cbHiddenBarInfo*)pNode->GetData(); if ( pHBInfo->mAlignment == mpPane->mAlignment && pHBInfo->mIconNo == collapsedIconIdx ) @@ -831,7 +821,7 @@ void cbRowDragPlugin::ExpandRow( int collapsedIconIdx ) // remove bar info from internal list - wxNode* pNext = pNode->Next(); + wxNode* pNext = pNode->GetNext(); delete pHBInfo; mHiddenBars.DeleteNode( pNode ); @@ -848,7 +838,7 @@ void cbRowDragPlugin::ExpandRow( int collapsedIconIdx ) --pHBInfo->mIconNo; - pNode = pNode->Next(); + pNode = pNode->GetNext(); } } @@ -1409,7 +1399,7 @@ void cbRowDragPlugin::DrawRowDragHint( cbRowInfo* pRow , wxDC& dc, bool isHighli } } -void cbRowDragPlugin::DrawRowsDragHintsBorder( wxDC& dc ) +void cbRowDragPlugin::DrawRowsDragHintsBorder( wxDC& WXUNUSED(dc) ) { // FIXME:: what was that? }