]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/widthbox.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / widgets / widthbox.cpp
index 3af0de38fc761d2faf9de5fe7cb3778a17661a13..e18461a2d27d895cef8a4e1c2956a862755db210 100644 (file)
@@ -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);
 }