111 if (!catalog)
return;
113 QTreeWidgetItem *itemCata = 0;
114 QTreeWidgetItem *category = 0;
116 itemCata =
new QTreeWidgetItem((
QTreeWidget*)0, QStringList(QString(name.c_str())));
122 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Types")));
123 map<string, TypeCode*>::const_iterator it = catalog->
_typeMap.begin();
124 for (; it != catalog->
_typeMap.end(); ++it)
127 <<
" " << (*it).second->getKindRepr()
128 <<
" " << (*it).second->name()
129 <<
" " << (*it).second->shortName()
130 <<
" " << (*it).second->id() );
131 string typeName = it->first;
132 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString(typeName.c_str())));
135 else if ( ! ((*it).second)->isEquivalent(
_typeToCataMap[typeName]->_typeMap[typeName]) )
137 DEBTRACE(
" ========================================================================================================");
138 DEBTRACE(
" type " << typeName <<
" not compatible with one of same name already present in another catalog, FORCE NEW!");
139 DEBTRACE(
" ========================================================================================================");
141 item->setForeground(0,Qt::blue);
148 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Components")));
149 map<string, ComponentDefinition*>::const_iterator it = catalog->
_componentMap.begin();
152 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString((it->first).c_str())));
153 map<string, ServiceNode *>::const_iterator its = (it->second)->_serviceMap.begin();
154 for (; its != (it->second)->_serviceMap.end(); ++its)
155 QTreeWidgetItem *sitem =
new QTreeWidgetItem(item, QStringList(QString((its->first).c_str())));
161 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Elementary Nodes")));
162 map<string, Node*>::const_iterator it = catalog->
_nodeMap.begin();
163 for (; it != catalog->
_nodeMap.end(); ++it)
164 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString((it->first).c_str())));
169 category =
new QTreeWidgetItem(itemCata, QStringList(QString(
"Composed Nodes")));
170 map<string, ComposedNode*>::const_iterator it = catalog->
_composednodeMap.begin();
172 QTreeWidgetItem *item =
new QTreeWidgetItem(category, QStringList(QString((it->first).c_str())));
std::map< std::string, ComposedNode * > _composednodeMap
std::map< std::string, ComponentDefinition * > _componentMap
std::map< std::string, Node * > _nodeMap
std::map< std::string, TypeCode * > _typeMap