diff options
Diffstat (limited to 'libkdchart/KDChartLinesPainter.cpp')
-rw-r--r-- | libkdchart/KDChartLinesPainter.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/libkdchart/KDChartLinesPainter.cpp b/libkdchart/KDChartLinesPainter.cpp index 9f0995e..c25abd8 100644 --- a/libkdchart/KDChartLinesPainter.cpp +++ b/libkdchart/KDChartLinesPainter.cpp @@ -223,7 +223,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, && (0.0 != ordinatePara->trueAxisDelta())) ? ordinatePara->trueAxisDeltaPixels() / ordinatePara->trueAxisDelta() : logHeight / columnValueDistance;; - //qDebug("ordinatePixelsPerUnit: %f",ordinatePixelsPerUnit); + //tqDebug("ordinatePixelsPerUnit: %f",ordinatePixelsPerUnit); const bool showThreeDLines = !mIsArea && params()->threeDLines(); @@ -245,7 +245,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, && ( params()->areaChartSubType() == KDChartParams::AreaPercent ) ) ) mode = Percent; else - qDebug( "Internal error in KDChartLinesPainter::paintDataInternal(): Unknown subtype" ); + tqDebug( "Internal error in KDChartLinesPainter::paintDataInternal(): Unknown subtype" ); TQMap < int, double > currentValueSums; @@ -334,7 +334,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, if( data->cellContent( dataset, value, vValY, vValX, cellPropID ) && TQVariant::Double == vValY.type() && ( !ai.bCellsHaveSeveralCoordinates || TQVariant::Invalid != vValX.type() ) ){ - //qDebug("a. cellPropID: %i",cellPropID); + //tqDebug("a. cellPropID: %i",cellPropID); // calculate Ordinate axis value // ----------------------------- @@ -352,11 +352,11 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, drawValue = log10( cellValue ) * ordinatePixelsPerUnit; else drawValue = -10250.0; - //qDebug("\nlogarithmic calc - cellValue: %f drawValue: %f", + //tqDebug("\nlogarithmic calc - cellValue: %f drawValue: %f", // cellValue, drawValue ); }else{ drawValue = cellValue * ordinatePixelsPerUnit * (bOrdinateDecreasing ? -1.0 : 1.0); - //qDebug("\nlinear calc - cellValue: %f\n - drawValue: %f", + //tqDebug("\nlinear calc - cellValue: %f\n - drawValue: %f", // cellValue, drawValue ); } } @@ -388,12 +388,12 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, allPoints[ static_cast < int > ( datasetEnd-dataset ) * arrayNumValues + value ].setSkipThis( true ); skipMe = true; - //qDebug("skipped"); + //tqDebug("skipped"); }else{ // use typecast to make it compile on windows using qt232 allPoints[ static_cast < int > ( datasetEnd-dataset ) * arrayNumValues + value ].set( myPointX, myPointY, cellValue ); - //qDebug("ok"); + //tqDebug("ok"); } if( !skipMe ){ // -------------------------------------------------------- @@ -401,15 +401,15 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, // by traversing the property set chain (if necessary) // -------------------------------------------------------- if( cellPropID != curPropSetId ){ - //qDebug("b. ( curPropSetId: %i )",curPropSetId); - //qDebug("b. cellPropID: %i",cellPropID); - //qDebug(curPropSet.name().latin1()); + //tqDebug("b. ( curPropSetId: %i )",curPropSetId); + //tqDebug("b. cellPropID: %i",cellPropID); + //tqDebug(curPropSet.name().latin1()); if( cellPropID != KDChartPropertySet::UndefinedID && params()->calculateProperties( cellPropID, curPropSet ) ){ curPropSetId = cellPropID; - //qDebug("c. curPropSetId: %i",curPropSetId); - //qDebug(curPropSet.name().latin1()); + //tqDebug("c. curPropSetId: %i",curPropSetId); + //tqDebug(curPropSet.name().latin1()); }else{ curPropSetId = KDChartPropertySet::UndefinedID; } @@ -520,7 +520,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, const MyPoint& mp = allPoints[iVec]; - //qDebug("\np.x() %i p.y() %i", p.x(), p.y() ); + //tqDebug("\np.x() %i p.y() %i", p.x(), p.y() ); // For 3D lines, we need two points (that lie // behind each other on the Z axis). For 2D lines and // areas, we need only one point. @@ -678,13 +678,13 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, // remove the last two points added point -= 2; */ - //qDebug("\n111"); + //tqDebug("\n111"); } // if ( mode == Normal || dataset == (int)datasetEnd ) else { // don't mess around with the original array; we'll need // that for the next time through. - //qDebug("222"); + //tqDebug("222"); // no 3d handling for areas yet TQPointArray thisSection = points[0]->copy(); @@ -695,8 +695,8 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, for ( unsigned int i = 0; i < previousPoints.size(); ++i ) { thisSection.setPoint( point + i, previousPoints.point( previousPoints.size() - i - 1 ) ); - //qDebug("\nx: %i",previousPoints.point( previousPoints.size() - i - 1 ).x()); - //qDebug("y: %i",previousPoints.point( previousPoints.size() - i - 1 ).y()); + //tqDebug("\nx: %i",previousPoints.point( previousPoints.size() - i - 1 ).x()); + //tqDebug("y: %i",previousPoints.point( previousPoints.size() - i - 1 ).y()); } painter->drawPolygon( thisSection ); } @@ -733,7 +733,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, for ( int value = 0; value < point-1; ++value ) { // if( data->cell( dataset, value ).hasValue() && // data->cell( dataset, value+1 ).hasValue() ) { - // qDebug( "Draw a segment in dataset %d from %d to %d", dataset, value, value+1 ); + // tqDebug( "Draw a segment in dataset %d from %d to %d", dataset, value, value+1 ); //store the rotated points ( see project() ) TQPointArray rotatedSegment( 4 ); @@ -772,7 +772,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, // } else - // qDebug( "Can't draw a segment in dataset %d from %d to %d", dataset, value, value+1 ); + // tqDebug( "Can't draw a segment in dataset %d from %d to %d", dataset, value, value+1 ); } } else { TQPoint p1, p2; @@ -903,7 +903,7 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, int iVec = static_cast < int > ( datasetEnd-dataset ) * arrayNumValues + value; if( allPoints[ iVec ].bValid ){ const MyPoint& mp = allPoints[iVec]; - //qDebug("\np.x() %i p.y() %i", p.x(), p.y() ); + //tqDebug("\np.x() %i p.y() %i", p.x(), p.y() ); // -------------------------------------------------------- // determine any 'extra' properties assigned to this cell @@ -936,9 +936,9 @@ void KDChartLinesPainter::specificPaintData( TQPainter* painter, } } } - //qDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_NORMAL_DATA )->name().latin1()); - //qDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_TRANSPARENT_DATA )->name().latin1()); - //qDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_HORI_LINE )->name().latin1()); - //qDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_VERT_LINE )->name().latin1()); - //qDebug("--"); + //tqDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_NORMAL_DATA )->name().latin1()); + //tqDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_TRANSPARENT_DATA )->name().latin1()); + //tqDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_HORI_LINE )->name().latin1()); + //tqDebug(const_cast < KDChartParams* > ( params() )->properties( KDCHART_PROPSET_VERT_LINE )->name().latin1()); + //tqDebug("--"); } |