X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fwidgets%2Fpatternbox.cpp;h=fe4e2498764874d8f1a2c7e22bda67695fbd0cfb;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=a66fd169d3b222e56b4ab50803c6ed1978f7f878;hpb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;p=architektonas diff --git a/src/widgets/patternbox.cpp b/src/widgets/patternbox.cpp index a66fd16..fe4e249 100644 --- a/src/widgets/patternbox.cpp +++ b/src/widgets/patternbox.cpp @@ -36,7 +36,7 @@ PatternBox::~PatternBox() } /** - * Initialisation (called manually and only once). + * Initialization (called manually and only once). */ void PatternBox::init() { @@ -45,8 +45,15 @@ void PatternBox::init() for(Pattern * f=PATTERNLIST->firstPattern(); f!=NULL; f=PATTERNLIST->nextPattern()) patterns.append(f->getFileName()); +#if 0 +std::cout << "patterns size = " << patterns.size() << std::endl; + +for(int i=0; iprint("PatternBox::setPattern %s\n", pName.toLatin1().data()); -// setCurrentText(pName); + DEBUG->print("PatternBox::setPattern %s\n", pName.toAscii().data()); setItemText(currentIndex(), pName); slotPatternChanged(currentIndex()); } @@ -80,8 +86,8 @@ void PatternBox::slotPatternChanged(int index) DEBUG->print("PatternBox::slotPatternChanged %d\n", index); currentPattern = PATTERNLIST->requestPattern(currentText()); - if (currentPattern!=NULL) - DEBUG->print("Current pattern is (%d): %s\n", index, currentPattern->getFileName().toLatin1().data()); + if (currentPattern) + DEBUG->print("Current pattern is (%d): %s\n", index, currentPattern->getFileName().toAscii().data()); emit patternChanged(currentPattern); }