]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/patternbox.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / widgets / patternbox.cpp
index fb92c4c4923360d04816f22e8ea52f1c05e534b1..a66fd169d3b222e56b4ab50803c6ed1978f7f878 100644 (file)
@@ -42,7 +42,7 @@ void PatternBox::init()
 {
        QStringList patterns;
 
-       for(RS_Pattern * f=RS_PATTERNLIST->firstPattern(); f!=NULL; f=RS_PATTERNLIST->nextPattern())
+       for(Pattern * f=PATTERNLIST->firstPattern(); f!=NULL; f=PATTERNLIST->nextPattern())
                patterns.append(f->getFileName());
 
        patterns.sort();
@@ -55,7 +55,7 @@ void PatternBox::init()
        slotPatternChanged(currentIndex());
 }
 
-RS_Pattern * PatternBox::getPattern()
+Pattern * PatternBox::getPattern()
 {
        return currentPattern;
 }
@@ -65,7 +65,7 @@ RS_Pattern * PatternBox::getPattern()
  */
 void PatternBox::setPattern(const QString & pName)
 {
-       RS_DEBUG->print("PatternBox::setPattern %s\n", pName.toLatin1().data());
+       DEBUG->print("PatternBox::setPattern %s\n", pName.toLatin1().data());
 //     setCurrentText(pName);
        setItemText(currentIndex(), pName);
        slotPatternChanged(currentIndex());
@@ -77,11 +77,11 @@ void PatternBox::setPattern(const QString & pName)
  */
 void PatternBox::slotPatternChanged(int index)
 {
-       RS_DEBUG->print("PatternBox::slotPatternChanged %d\n", index);
-       currentPattern = RS_PATTERNLIST->requestPattern(currentText());
+       DEBUG->print("PatternBox::slotPatternChanged %d\n", index);
+       currentPattern = PATTERNLIST->requestPattern(currentText());
 
        if (currentPattern!=NULL)
-               RS_DEBUG->print("Current pattern is (%d): %s\n", index, currentPattern->getFileName().toLatin1().data());
+               DEBUG->print("Current pattern is (%d): %s\n", index, currentPattern->getFileName().toLatin1().data());
 
        emit patternChanged(currentPattern);
 }