X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fwidgets%2Fwidthbox.cpp;h=e18461a2d27d895cef8a4e1c2956a862755db210;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=3af0de38fc761d2faf9de5fe7cb3778a17661a13;hpb=48105dec9198cf5a81dd9286010d0d45e28f70c3;p=architektonas diff --git a/src/widgets/widthbox.cpp b/src/widgets/widthbox.cpp index 3af0de3..e18461a 100644 --- a/src/widgets/widthbox.cpp +++ b/src/widgets/widthbox.cpp @@ -15,7 +15,7 @@ #include "widthbox.h" -#include "rs_debug.h" +#include "debug.h" /** * Default Constructor. You must call init manually if you choose @@ -107,7 +107,7 @@ RS2::LineWidth WidthBox::getWidth() */ void WidthBox::setWidth(RS2::LineWidth w) { - RS_DEBUG->print("WidthBox::setWidth %d\n", (int)w); + DEBUG->print("WidthBox::setWidth %d\n", (int)w); int offset = (int)showByLayer * 2 + (int)showUnchanged; switch (w) @@ -116,13 +116,13 @@ void WidthBox::setWidth(RS2::LineWidth w) if (showByLayer) setCurrentIndex(0 + (int)showUnchanged); else - RS_DEBUG->print(RS_Debug::D_WARNING, "WidthBox::setWidth: Unsupported width."); + DEBUG->print(Debug::D_WARNING, "WidthBox::setWidth: Unsupported width."); break; case RS2::WidthByBlock: if (showByLayer) setCurrentIndex(1 + (int)showUnchanged); else - RS_DEBUG->print(RS_Debug::D_WARNING, "WidthBox::setWidth: Unsupported width."); + DEBUG->print(Debug::D_WARNING, "WidthBox::setWidth: Unsupported width."); break; case RS2::WidthDefault: setCurrentIndex(0 + offset); @@ -292,7 +292,7 @@ bool WidthBox::isUnchanged() */ void WidthBox::slotWidthChanged(int index) { - RS_DEBUG->print("WidthBox::slotWidthChanged %d\n", index); + DEBUG->print("WidthBox::slotWidthChanged %d\n", index); bool done = false; @@ -407,7 +407,7 @@ void WidthBox::slotWidthChanged(int index) //currentWidth = (RS2::LineWidth)(currentText().left(4).toDouble()*100); //} - RS_DEBUG->print("Current width is (%d): %d\n", index, ((int)currentWidth)); + DEBUG->print("Current width is (%d): %d\n", index, ((int)currentWidth)); emit widthChanged(currentWidth); }