<feature id="Group"
title="Group"
tooltip="Create a new named collection of geometry entities"
- icon=":icons/group.png">
+ icon=":icons/shape_group.png">
<source path="group_widget.xml"/>
</feature>
</group>
#include <Model_AttributeRefList.h>
#include <Model_AttributeBoolean.h>
#include <Model_AttributeString.h>
-#include <ModelAPI_AttributeSelection.h>
+#include <Model_AttributeSelection.h>
#include <Model_Events.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_Result.h>
anAttr = new Model_AttributeString(anAttrLab);
} else if (theAttrType == ModelAPI_AttributeReference::type()) {
anAttr = new Model_AttributeReference(anAttrLab);
+ } else if (theAttrType == ModelAPI_AttributeSelection::type()) {
+ anAttr = new Model_AttributeSelection(anAttrLab);
} else if (theAttrType == ModelAPI_AttributeRefAttr::type()) {
anAttr = new Model_AttributeRefAttr(anAttrLab);
} else if (theAttrType == ModelAPI_AttributeRefList::type()) {
aViewAct->setEnabled(false);
}
+ // Delete selector because it has to be redefined on next activation
+ if (mySelector) {
+ myProxyViewer->setSelector(0);
+ delete mySelector;
+ mySelector = 0;
+ }
+
//myWorkshop->contextMenuMgr()->disconnectViewer();
return LightApp_Module::deactivateModule(theStudy);
}
<file>icons/length.png</file>
<file>icons/distance.png</file>
<file>icons/radius_constr.png</file>
+ <file>icons/shape_group.png</file>
</qresource>
</RCC>