X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Farc.cpp;h=b0e3b720148bd502f6cc1eb425972d6e111a8cfc;hb=11cff81f10ccca1b31288fce04d696e715b922b0;hp=030e293a70a20697f9575d893585894a71643e72;hpb=e8987f4028a1f9c0eeb33a45bd11b2e409b9c2c5;p=architektonas diff --git a/src/arc.cpp b/src/arc.cpp index 030e293..b0e3b72 100644 --- a/src/arc.cpp +++ b/src/arc.cpp @@ -110,6 +110,7 @@ Arc::~Arc() text = text.arg(radius, 0, 'd', 4).arg(radius / oldRadius * 100.0, 0, 'd', 0); } +#if 0 pen = QPen(QColor(0x00, 0xFF, 0x00), 1.0, Qt::SolidLine); painter->SetPen(pen); painter->SetBrush(QBrush(QColor(0x40, 0xFF, 0x40, 0x9F))); @@ -121,6 +122,9 @@ Arc::~Arc() pen = QPen(QColor(0x00, 0x5F, 0xDF)); painter->SetPen(pen); painter->DrawText(textRect, Qt::AlignVCenter, text); +#else + painter->DrawInformativeText(text); +#endif } } @@ -427,7 +431,7 @@ bool Arc::HitStateChanged(void) /*virtual*/ void Arc::Enumerate(FILE * file) { - fprintf(file, "ARC (%lf,%lf) %lf, %lf, %lf\n", position.x, position.y, radius, startAngle, angleSpan); + fprintf(file, "ARC %i (%lf,%lf) %lf, %lf, %lf\n", layer, position.x, position.y, radius, startAngle, angleSpan); }