X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.cpp;h=e73bcdc9607fb6dd209a088e87bfb5d696062a35;hb=11cff81f10ccca1b31288fce04d696e715b922b0;hp=9111c04ec1e8c36289703979a9848d0797664707;hpb=e8987f4028a1f9c0eeb33a45bd11b2e409b9c2c5;p=architektonas diff --git a/src/circle.cpp b/src/circle.cpp index 9111c04..e73bcdc 100644 --- a/src/circle.cpp +++ b/src/circle.cpp @@ -59,7 +59,7 @@ Circle::~Circle() { QString text = QObject::tr("Radius: %1\nScale: %2%"); text = text.arg(radius, 0, 'd', 4).arg(radius / oldRadius * 100.0, 0, 'd', 0); - +#if 0 QPen pen = QPen(QColor(0x00, 0xFF, 0x00), 1.0, Qt::SolidLine); painter->SetPen(pen); painter->SetBrush(QBrush(QColor(0x40, 0xFF, 0x40, 0x9F))); @@ -71,6 +71,9 @@ Circle::~Circle() pen = QPen(QColor(0x00, 0x5F, 0xDF)); painter->SetPen(pen); painter->DrawText(textRect, Qt::AlignVCenter, text); +#else + painter->DrawInformativeText(text); +#endif } } @@ -215,7 +218,7 @@ bool Circle::HitStateChanged(void) /*virtual*/ void Circle::Enumerate(FILE * file) { - fprintf(file, "CIRCLE (%lf,%lf) %lf\n", position.x, position.y, radius); + fprintf(file, "CIRCLE %i (%lf,%lf) %lf\n", layer, position.x, position.y, radius); }