diff -r fb97757e06c0 -r 0796c5592f00 parser.cpp --- a/parser.cpp Sat Mar 31 09:28:30 2007 +0000 +++ b/parser.cpp Mon Apr 09 15:42:21 2007 +0000 @@ -214,8 +214,18 @@ QColor Parser::parColor(bool &ok,const int &index) { // return the QColor at index - ok=true; - return QColor (paramList[index]); + ok=false; + QString r; + QColor c; + QRegExp re("\"(.*)\""); + int pos=re.search (paramList[index]); + if (pos>=0) + { + r=re.cap (1); + c.setNamedColor(r); + ok=c.isValid(); + } + return c; } void Parser::setScript(const QString &s) @@ -228,7 +238,11 @@ return script; } -void Parser::startScript() +void Parser::runScript() { } +bool Parser::scriptNextAtom() +{ +} +