+ std::set<std::string>::const_iterator anIt, aLast;
+ /// fill map of panels
+ const std::set<std::string>& aPanelTypes = theCreator->panelTypes();
+ for (anIt = aPanelTypes.begin(), aLast = aPanelTypes.end(); anIt != aLast; anIt++) {
+ std::string aKey = *anIt;
+ if (!myPanelToCreator.contains(aKey))
+ myPanelToCreator[aKey] = theCreator;
+ else {
+ Events_Error::send("The" + aKey + " panel XML definition has been already \
+used by another widget creator");
+ }
+ }
+
+ /// fill map of widgets