1.1 --- a/attribute.cpp Mon Jan 07 14:52:49 2008 +0000
1.2 +++ b/attribute.cpp Mon May 05 13:46:42 2008 +0000
1.3 @@ -212,6 +212,13 @@
1.4 ///////////////////////////////////////////////////////////////
1.5 AttributeTable::AttributeTable()
1.6 {
1.7 + typeList
1.8 + << "Undefined"
1.9 + << "IntList"
1.10 + << "FreeInt"
1.11 + << "StringList"
1.12 + << "FreeString"
1.13 + << "UniqueString";
1.14 }
1.15
1.16 AttributeTable::~AttributeTable()
1.17 @@ -256,11 +263,11 @@
1.18 qWarning (QString ("AttributeTable::removeKey (%1) key not in table\n").arg(k).ascii());
1.19 }
1.20
1.21 -AttributeDef* AttributeTable::getDef(const QString &k)
1.22 +AttributeDef* AttributeTable::getDef(const QString &key)
1.23 {
1.24 for (int i=0; i<attdefs.count();++i)
1.25 - if (attdefs.at(i)->getKey()==k ) return attdefs.at(i);
1.26 - qWarning (QString ("AttributeTable::getDef (%1) key not in table\n").arg(k).ascii());
1.27 + if (attdefs.at(i)->getKey()==key ) return attdefs.at(i);
1.28 + qWarning (QString ("AttributeTable::getDef (%1) key not in table\n").arg(key).ascii());
1.29 return NULL;
1.30 }
1.31
1.32 @@ -277,6 +284,11 @@
1.33 return kl;
1.34 }
1.35
1.36 +QStringList AttributeTable::getTypes ()
1.37 +{
1.38 + return typeList;
1.39 +}
1.40 +
1.41 QString AttributeTable::getDataXML()
1.42 {
1.43 return valueElement ("attributeList","key","value");