- aMessage.setUseInput(hasChild(theNode));
- aEvLoop->send(aMessage);
- }
- //The m_last* variables always defined before fillFeature() call. XML is a tree.
- if (isNode(theNode, NODE_GROUP, NULL)) {
- myLastGroup = getProperty(theNode, _ID);
- }
- if (isNode(theNode, NODE_WORKBENCH, NULL)) {
- myLastWorkbench = getProperty(theNode, _ID);
+ aMessage->setUseInput(hasChild(theNode));
+ Events_Loop::loop()->send(aMessage);
+ //The m_last* variables always defined before fillFeature() call. XML is a tree.
+ } else if (isNode(theNode, NODE_WORKBENCH, NODE_GROUP, NULL)) {
+ storeAttribute(theNode, _ID);
+ storeAttribute(theNode, WORKBENCH_DOC);
+ } else if (myIsProcessWidgets && isWidgetNode(theNode)) {
+ std::shared_ptr<Config_AttributeMessage> aMessage(new Config_AttributeMessage(aMenuItemEvent, this));
+ aMessage->setFeatureId(restoreAttribute(NODE_FEATURE, _ID));
+ std::string anAttributeID = getProperty(theNode, _ID);
+ if (!anAttributeID.empty()) {
+ aMessage->setAttributeId(anAttributeID);
+ aMessage->setObligatory(getBooleanAttribute(theNode, ATTR_OBLIGATORY, true));
+ aMessage->setConcealment(getBooleanAttribute(theNode, ATTR_CONCEALMENT, false));
+ Events_Loop::loop()->send(aMessage);
+ }