BOOL ListCtrl::calcPos(int nBar) { if (nBar == SB_HORZ) { return calcCol(); } else { return calcRow(); } }
void ProjectorData::insertCols( const QgsCoordinateTransform &ct ) { for ( int r = 0; r < mCPRows; r++ ) { for ( int c = 0; c < mCPCols - 1; c++ ) { mCPMatrix[r].insert( 1 + c * 2, QgsPointXY() ); mCPLegalMatrix[r].insert( 1 + c * 2, false ); } } mCPCols += mCPCols - 1; for ( int c = 1; c < mCPCols - 1; c += 2 ) { calcCol( c, ct ); } }
void QgsRasterProjector::insertCols() { for ( int r = 0; r < mCPRows; r++ ) { QList<QgsPoint> myRow; for ( int c = 0; c < mCPCols - 1; c++ ) { mCPMatrix[r].insert( 1 + c*2, QgsPoint() ); } } mCPCols += mCPCols - 1; for ( int c = 1; c < mCPCols - 1; c += 2 ) { calcCol( c ); } }
void QgsRasterProjector::insertCols( const QgsCoordinateTransform* ct ) { for ( int r = 0; r < mCPRows; r++ ) { QList<QgsPoint> myRow; QList<bool> myLegalRow; for ( int c = 0; c < mCPCols - 1; c++ ) { mCPMatrix[r].insert( 1 + c*2, QgsPoint() ); mCPLegalMatrix[r].insert( 1 + c*2, false ); } } mCPCols += mCPCols - 1; for ( int c = 1; c < mCPCols - 1; c += 2 ) { calcCol( c, ct ); } }
LRESULT ListCtrl::onSize( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled ) { Rect rc = getClientRect(); rc.bottom = rc.top + m_nHeadHeight; rc.left += 1; rc.right -= 1; rc.top += 1; if (!rc.isValid()) { rc.empty(); } m_pHeadCtrl->setRect(rc); calcRow(); calcCol(); calcCellRect(); m_pHeadCtrl->calcCellRect(); return 1; }