diff -r fe3c52c49037 -r 367d875453ed attribute.cpp --- a/attribute.cpp Wed Feb 27 16:08:45 2008 +0000 +++ b/attribute.cpp Wed Feb 27 16:09:06 2008 +0000 @@ -212,6 +212,13 @@ /////////////////////////////////////////////////////////////// AttributeTable::AttributeTable() { + typeList + << "Undefined" + << "IntList" + << "FreeInt" + << "StringList" + << "FreeString" + << "UniqueString"; } AttributeTable::~AttributeTable() @@ -256,11 +263,11 @@ qWarning (QString ("AttributeTable::removeKey (%1) key not in table\n").arg(k).ascii()); } -AttributeDef* AttributeTable::getDef(const QString &k) +AttributeDef* AttributeTable::getDef(const QString &key) { for (int i=0; igetKey()==k ) return attdefs.at(i); - qWarning (QString ("AttributeTable::getDef (%1) key not in table\n").arg(k).ascii()); + if (attdefs.at(i)->getKey()==key ) return attdefs.at(i); + qWarning (QString ("AttributeTable::getDef (%1) key not in table\n").arg(key).ascii()); return NULL; } @@ -277,6 +284,11 @@ return kl; } +QStringList AttributeTable::getTypes () +{ + return typeList; +} + QString AttributeTable::getDataXML() { return valueElement ("attributeList","key","value");