diff options
Diffstat (limited to 'kchart/kdchart/KDChartBarPainter.cpp')
-rw-r--r-- | kchart/kdchart/KDChartBarPainter.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kchart/kdchart/KDChartBarPainter.cpp b/kchart/kdchart/KDChartBarPainter.cpp index 8bfe1a76..dbf6394a 100644 --- a/kchart/kdchart/KDChartBarPainter.cpp +++ b/kchart/kdchart/KDChartBarPainter.cpp @@ -165,7 +165,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, if( !data ) return; - // qDebug("datasetStart: %i datasetEnd: %i", datasetStart, datasetEnd); + // tqDebug("datasetStart: %i datasetEnd: %i", datasetStart, datasetEnd); const TQPen defaultOutlinePen( params()->outlineDataColor(), params()->outlineDataLineWidth(), params()->outlineDataLineStyle() ); @@ -243,7 +243,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, spaceBetweenDatasets = 0; // always 0 when stacked/percent/multi-rows break; default: - qFatal( "Unsupported bar chart type" ); + tqFatal( "Unsupported bar chart type" ); }; double barWidth = 0.0; @@ -270,8 +270,8 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, ; /* Debug space available - qDebug ( " logWidth %f" , logWidth ); - qDebug ( "compare value %f", barWidth*totalNumberOfBars + spaceBetweenValueBlocks + datasetGap * ( totalNumberOfBars - numValues ) ); + tqDebug ( " logWidth %f" , logWidth ); + tqDebug ( "compare value %f", barWidth*totalNumberOfBars + spaceBetweenValueBlocks + datasetGap * ( totalNumberOfBars - numValues ) ); */ } else if( 0 > params()->barWidth() ) barWidth = params()->barWidth() * -areaWidthP1000; @@ -297,8 +297,8 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, if ( logWidth < totalSpaceOccupied) { sideBarWidth -= (totalSpaceOccupied /*+ spaceBetweenDatasets + spaceBetweenValueBlocks*/ - logWidth)/totalNumberOfBars; - //qDebug ( "logWidth %f", logWidth ); - //qDebug ( "totalSpaceOccupied %f", totalSpaceOccupied ); + //tqDebug ( "logWidth %f", logWidth ); + //tqDebug ( "totalSpaceOccupied %f", totalSpaceOccupied ); } const double sideBarHeight = sideBarWidth; @@ -309,10 +309,10 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, if ( params()->barChartSubType() != KDChartParams::BarPercent ) // not used for percent pixelsPerUnit = logHeight / ( columnValueDistance ? columnValueDistance : 10 ); - //qDebug("\nordinatePara->trueAxisLow() = %f", ordinatePara->trueAxisLow()); - //qDebug( "ordinatePara->trueAxisHigh() = %f", ordinatePara->trueAxisHigh()); - //qDebug( "sideBarHeight = %f", sideBarHeight); - //qDebug( "pixelsPerUnit = %f", pixelsPerUnit); + //tqDebug("\nordinatePara->trueAxisLow() = %f", ordinatePara->trueAxisLow()); + //tqDebug( "ordinatePara->trueAxisHigh() = %f", ordinatePara->trueAxisHigh()); + //tqDebug( "sideBarHeight = %f", sideBarHeight); + //tqDebug( "pixelsPerUnit = %f", pixelsPerUnit); double zeroXAxisI; if ( params()->barChartSubType() == KDChartParams::BarPercent ) { @@ -400,7 +400,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, = ordinateIsLogarithmic ? log10( vVal.toDouble() ) : vVal.toDouble(); - //qDebug("value %u dataset %u logHeight %f", value,dataset,logHeight); + //tqDebug("value %u dataset %u logHeight %f", value,dataset,logHeight); if( bFirstValidValueUnknown ){ firstValidValue = dataset; @@ -418,7 +418,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, } } - //qDebug("shiftMyPainter( (numChartDataEntryDatasets-1)*nShiftX, (numChartDataEntryDatasets-1)*-nShiftY );"); + //tqDebug("shiftMyPainter( (numChartDataEntryDatasets-1)*nShiftX, (numChartDataEntryDatasets-1)*-nShiftY );"); shiftMyPainter( (numChartDataEntryDatasets-1)*nShiftX, (numChartDataEntryDatasets-1)*-nShiftY ); // iterate over all datasets of this chart: @@ -431,7 +431,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, bMultiRows ? --dataset : ++dataset ) { - //qDebug("value %u dataset %u logHeight %f", value,dataset,logHeight); + //tqDebug("value %u dataset %u logHeight %f", value,dataset,logHeight); const bool bDataEntrySourceMode = (params()->chartSourceMode( dataset ) == KDChartParams::DataEntry); @@ -447,7 +447,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, = ordinateIsLogarithmic ? log10( coord1.toDouble() ) : coord1.toDouble(); - //qDebug("b"); + //tqDebug("b"); // there is a numeric value double barHeight; @@ -474,7 +474,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, // draw only the bars belonging to the axis // which we are processing currently if( dataset >= datasetStart && dataset <= datasetEnd ) { - //qDebug("b2"); + //tqDebug("b2"); // calculate Abscissa axis value, if there are X coordinates // --------------------------------------------------------- @@ -919,8 +919,8 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, /* if ( cellValue != 0 ) { pt1Y = static_cast <int> (cellValue * pixelsPerUnit * -2); - qDebug( "value %s",TQString::number(static_cast <int> (cellValue)).latin1()); - qDebug( "pt1Y %s", TQString::number(static_cast <int> (cellValue * pixelsPerUnit * -2)).latin1()); + tqDebug( "value %s",TQString::number(static_cast <int> (cellValue)).latin1()); + tqDebug( "pt1Y %s", TQString::number(static_cast <int> (cellValue * pixelsPerUnit * -2)).latin1()); } else pt1Y = static_cast < int > ( yZero - barHeight); @@ -1041,10 +1041,10 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, double minValueYPos = minColumnValue * pixelsPerUnit; double minDataValueYPos = maxValueYPos - minValueYPos; double yZero = yposPositives - zeroXAxisI; - //qDebug( "yposPositives %f - zeroXAxisI %f = %f" , yposPositives, zeroXAxisI, yZero ); - //qDebug( "yZero %s", TQString::number( yZero ).latin1()); - //qDebug( "minDataValueYPos = %s", TQString::number( minDataValueYPos).latin1()); - //qDebug( "positive value %s", TQString::number( cellValue).latin1()); + //tqDebug( "yposPositives %f - zeroXAxisI %f = %f" , yposPositives, zeroXAxisI, yZero ); + //tqDebug( "yZero %s", TQString::number( yZero ).latin1()); + //tqDebug( "minDataValueYPos = %s", TQString::number( minDataValueYPos).latin1()); + //tqDebug( "positive value %s", TQString::number( cellValue).latin1()); //Pending Michel: draw the default split excess arrows //when the front top of the 3d chart reach the max Y value @@ -1366,7 +1366,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, } if( 1.5 > frontBarWidth ){ - //qDebug("1.5 > frontBarWidth "); + //tqDebug("1.5 > frontBarWidth "); TQPen oldPen( painter->pen() ); painter->setPen( TQPen(painter->brush().color(), 0) ); painter->drawLine(pt1, TQPoint(pt1.x(),pt2.y())); @@ -1504,11 +1504,11 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, // the value labels closer to the corner of the front bar. if ( pointArrayList && !tooHigh && !tooLow && params()->barChartSubType() != KDChartParams::BarPercent ) { TQPointArray points2cpy( points.copy() ); - //qDebug("g2"); + //tqDebug("g2"); points2cpy.translate( _dataRect.x(), _dataRect.y()); - //qDebug("g3"); + //tqDebug("g3"); pointArrayList->append( points2cpy ); - //qDebug("g4"); + //tqDebug("g4"); } // drawing the top, but only for the topmost piece for stacked and percent @@ -1616,7 +1616,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, TQT_TQRECT_OBJECT(pointArrayList->first().boundingRect()) ); delete pointArrayList; } - /*qDebug("KDChartDataRegion stored! x: %i y: %i w: %i h: %i", + /*tqDebug("KDChartDataRegion stored! x: %i y: %i w: %i h: %i", region->rect().x(),region->rect().y(), region->rect().width(),region->rect().height());*/ regions->append( region ); @@ -1673,7 +1673,7 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, xpos += datasetGap; } if( bAdvanceToNextValue || bMultiRows ){ - //qDebug("shiftMyPainter( -nShiftX, nShiftY );"); + //tqDebug("shiftMyPainter( -nShiftX, nShiftY );"); shiftMyPainter( -nShiftX, nShiftY ); } bIsVeryFirstBar = false; @@ -1685,17 +1685,17 @@ void KDChartBarPainter::specificPaintData( TQPainter* painter, if ( bNormalMode ){ // skip gap between value blocks, don't worry about last one here xpos += valueBlockGap; - //qDebug("**************************** xpos: %f + valueBlockGap: %f = %f", xpos, valueBlockGap, xpos+valueBlockGap); + //tqDebug("**************************** xpos: %f + valueBlockGap: %f = %f", xpos, valueBlockGap, xpos+valueBlockGap); }else{ // skip gap between value blocks xpos += valueBlockGap + barWidth; - //qDebug ( "2/ barWidth %f", barWidth ); - //qDebug ( " valueBlockGap %f", valueBlockGap ); + //tqDebug ( "2/ barWidth %f", barWidth ); + //tqDebug ( " valueBlockGap %f", valueBlockGap ); // start at bottom with next value group yposPositives = yposPositivesStart; yposNegatives = yposNegativesStart; } - //qDebug("shiftMyPainterBack"); + //tqDebug("shiftMyPainterBack"); shiftMyPainterBack(); } |