Commit fbc7ab6b authored by Thomas Zander's avatar Thomas Zander

Use real debug area.

svn path=/trunk/koffice/; revision=633682
parent 38b720a2
......@@ -272,7 +272,7 @@ void KoCanvasController::Viewport::dragEnterEvent(QDragEnterEvent *event) {
// So, lets remove this again when Zagge adds his new class that does this kind of thing. (KoLoadSave)
KoShapeFactory *factory = KoShapeRegistry::instance()->get(id);
if(! factory) {
kWarning(30001) << "Application requested a shape that is not registered '" <<
kWarning(30006) << "Application requested a shape that is not registered '" <<
id << "', Ignoring" << endl;
event->ignore();
return;
......
......@@ -53,7 +53,7 @@ QUndoCommand* KoCreateShapeStrategy::createCommand() {
KoCreateShapesTool *parent = static_cast<KoCreateShapesTool*>(m_parent);
KoShapeFactory *factory = KoShapeRegistry::instance()->get(parent->shapeId());
if(! factory) {
kWarning(30001) << "Application requested a shape that is not registered '" <<
kWarning(30006) << "Application requested a shape that is not registered '" <<
parent->shapeId() << "'" << endl;
return 0;
}
......
......@@ -344,7 +344,7 @@ void KoShape::setAbsolutePosition(QPointF newPosition) {
matrix.scale( d->scaleX, d->scaleY );
QPointF vector2 = matrix.map( QPointF(size().width() / 2.0, size().height() / 2.0) );
//kDebug() << "vector1: " << vector1 << ", vector2: " << vector2 << endl;
//kDebug(30006) << "vector1: " << vector1 << ", vector2: " << vector2 << endl;
setPosition(newPosition + vector1 - vector2);
}
......
......@@ -86,7 +86,7 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
painter.setMatrix( matrix().inverted() * painter.matrix() );
QMatrix myMatrix = transformationMatrix(&converter);
foreach (KoShape *shape, sortedObjects) {
kDebug() << "painting shape: " << shape->shapeId() << ", " << shape->boundingRect() << endl;
kDebug(30006) << "painting shape: " << shape->shapeId() << ", " << shape->boundingRect() << endl;
if(! shape->isVisible())
continue;
// TODO this is not perfect yet..
......@@ -107,8 +107,8 @@ void KoShapeContainer::paint(QPainter &painter, const KoViewConverter &converter
painter.setClipRegion(QRegion(clip));
}
//kDebug() << "rect: " << position() << endl;
//kDebug() << "polygon: " << clip.boundingRect() << endl;
//kDebug(30006) << "rect: " << position() << endl;
//kDebug(30006) << "polygon: " << clip.boundingRect() << endl;
//painter.drawPolygon(clip);
painter.setMatrix( shape->transformationMatrix(&converter) * painter.matrix() );
shape->paint(painter, converter);
......
......@@ -84,7 +84,7 @@ KoShapeShearStrategy::KoShapeShearStrategy( KoTool *tool, KoCanvasBase *canvas,
else if(m_right)
m_solidPoint -= QPointF(m_initialSize.width() / 2, 0);
kDebug() << " PREsol.x=" << m_solidPoint.x() << " sol.y=" << m_solidPoint.y() <<endl;
kDebug(30006) << " PREsol.x=" << m_solidPoint.x() << " sol.y=" << m_solidPoint.y() <<endl;
QMatrix matrix = canvas->shapeManager()->selection()->transformationMatrix(0);
m_solidPoint = matrix.map(m_solidPoint);
}
......@@ -114,7 +114,7 @@ void KoShapeShearStrategy::handleMouseMove(const QPointF &point, Qt::KeyboardMod
applyMatrix.rotate(-m_initialSelectionAngle);
applyMatrix.translate(-m_solidPoint.x(), -m_solidPoint.y());
kDebug() << "Begin retransform" <<endl;
kDebug(30006) << "Begin retransform" <<endl;
int counter=0;
foreach(KoShape *shape, m_selectedShapes) {
shape->repaint();
......@@ -122,7 +122,7 @@ kDebug() << "Begin retransform" <<endl;
QMatrix orm = m_startRotationMatrices[counter];
shape->shear((m.m21() - orm.m21()) / orm.m11(), (m.m12() - orm.m12()) / orm.m22());
QPointF p = applyMatrix.map(m_startPositions[counter]);
kDebug() << " px=" << p.x() << " py=" << p.y() <<endl;
kDebug(30006) << " px=" << p.x() << " py=" << p.y() <<endl;
shape->setPosition(p);
shape->repaint();
counter++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment