1.1 --- a/parser.cpp Sat Mar 31 09:28:30 2007 +0000
1.2 +++ b/parser.cpp Mon Apr 09 15:42:21 2007 +0000
1.3 @@ -214,8 +214,18 @@
1.4 QColor Parser::parColor(bool &ok,const int &index)
1.5 {
1.6 // return the QColor at index
1.7 - ok=true;
1.8 - return QColor (paramList[index]);
1.9 + ok=false;
1.10 + QString r;
1.11 + QColor c;
1.12 + QRegExp re("\"(.*)\"");
1.13 + int pos=re.search (paramList[index]);
1.14 + if (pos>=0)
1.15 + {
1.16 + r=re.cap (1);
1.17 + c.setNamedColor(r);
1.18 + ok=c.isValid();
1.19 + }
1.20 + return c;
1.21 }
1.22
1.23 void Parser::setScript(const QString &s)
1.24 @@ -228,7 +238,11 @@
1.25 return script;
1.26 }
1.27
1.28 -void Parser::startScript()
1.29 +void Parser::runScript()
1.30 {
1.31 }
1.32
1.33 +bool Parser::scriptNextAtom()
1.34 +{
1.35 +}
1.36 +