110 if (!catalog)
return;
112 QTreeWidgetItem *itemCata = 0;
113 QTreeWidgetItem *category = 0;
115 itemCata =
new QTreeWidgetItem((
QTreeWidget*)0, QStringList(QString(name.c_str())));
121 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Types")));
122 map<string, TypeCode*>::const_iterator it = catalog->
_typeMap.begin();
123 for (; it != catalog->
_typeMap.end(); ++it)
126 <<
" " << (*it).second->getKindRepr()
127 <<
" " << (*it).second->name()
128 <<
" " << (*it).second->shortName()
129 <<
" " << (*it).second->id() );
130 string typeName = it->first;
131 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString(typeName.c_str())));
134 else if ( ! ((*it).second)->isEquivalent(
_typeToCataMap[typeName]->_typeMap[typeName]) )
136 DEBTRACE(
" ========================================================================================================");
137 DEBTRACE(
" type " << typeName <<
" not compatible with one of same name already present in another catalog, FORCE NEW!");
138 DEBTRACE(
" ========================================================================================================");
140 item->setForeground(0,Qt::blue);
147 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Components")));
148 map<string, ComponentDefinition*>::const_iterator it = catalog->
_componentMap.begin();
151 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString((it->first).c_str())));
152 map<string, ServiceNode *>::const_iterator its = (it->second)->_serviceMap.begin();
153 for (; its != (it->second)->_serviceMap.end(); ++its)
154 QTreeWidgetItem *sitem =
new QTreeWidgetItem(item, QStringList(QString((its->first).c_str())));
160 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Elementary Nodes")));
161 map<string, Node*>::const_iterator it = catalog->
_nodeMap.begin();
162 for (; it != catalog->
_nodeMap.end(); ++it)
163 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString((it->first).c_str())));
168 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Composed Nodes")));
169 map<string, ComposedNode*>::const_iterator it = catalog->
_composednodeMap.begin();
171 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString((it->first).c_str())));