#include <vtkRenderer.h>
#include <vtkActorCollection.h>
+#include <qstring.h>
+
//=============================================================================
namespace VISU
bool isUnderVISU = false;
_PTR(SObject) aFatherSObject = aSObject->GetFather();
- if (aFatherSObject->FindAttribute(anAttr, "AttributeString")) {
- _PTR(AttributeString) aComment (anAttr);
+ if (aFatherSObject->FindAttribute(anAttr, "AttributeName")) {
+ // mkr : 24.11.2006 : use AttributeName and module title for correct "Delete"
+ // popup item displaying in object browser popup
+ _PTR(AttributeName) aComment (anAttr);
aNAME = aComment->Value();
- if (aNAME == aVisuNAME) {
+ QString aVisuTITLE = theModule->getApp()->moduleTitle(QString(aVisuNAME));
+ if (!aVisuTITLE.compare(QString(aNAME))) {
isUnderVISU = true;
}
}
}
if (!isUnderVISU) {
// Father is not directly under VISU component
- return false;
+ return false;
}
}
}