diff -r f83abc1f75b4 -r d2a9c31353f7 attribute.cpp --- a/attribute.cpp Mon Jan 07 14:52:49 2008 +0000 +++ b/attribute.cpp Mon Jul 14 11:21:10 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");