#include "widthbox.h"
-#include "rs_debug.h"
+#include "debug.h"
/**
* Default Constructor. You must call init manually if you choose
*/
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)
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);
*/
void WidthBox::slotWidthChanged(int index)
{
- RS_DEBUG->print("WidthBox::slotWidthChanged %d\n", index);
+ DEBUG->print("WidthBox::slotWidthChanged %d\n", index);
bool done = false;
//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);
}