+
+ QList<QString> aSetOfAttrValuesList = mySetOfAttrValues.toList();
+ QList<QString> aSTSetList = aSTSet.toList();
+ QVector<QColor> aSTColors;
+ aSTColors.reserve(aSTSetList.size());
+ foreach (QString str, aSTSetList)
+ {
+ QColor col = aDoc->GetAssociatedColor(str, NULL);
+ aSTColors.append (col);
+ }
+
+ //add an empty Strickler type
+ aSTSetList.prepend("");
+ aSTColors.prepend(QColor(Qt::gray));
+
+ QVector<int> aCurCBIndices(aSetOfAttrValuesList.size());
+ if (DefStricklerTableObj->GetAttrName().trimmed() == aPanel->getSelectedFieldName().trimmed())
+ for (int i = 0; i < aSetOfAttrValuesList.size(); i++)
+ {
+ QString aST = DefStricklerTableObj->GetType(aSetOfAttrValuesList[i]);
+ int anIndOfSt = aSTSetList.indexOf(aST);
+ aCurCBIndices[i] = anIndOfSt;
+ }
+ else
+ //TODO add warning ???
+ for (int i = 0; i < aSetOfAttrValuesList.size(); i++)
+ aCurCBIndices[i] = 0;
+
+ aPanel->FillCorrespondenceTable(aSetOfAttrValuesList, aSTSetList, aCurCBIndices, aSTColors);