Work on reference selection for Datum features

This commit is contained in:
jrheinlaender
2013-04-13 15:55:13 +04:30
committed by Stefan Tröger
parent 571d5d2b7d
commit a1359fc9e9
8 changed files with 250 additions and 162 deletions

View File

@@ -24,6 +24,9 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QMessageBox>
# include <QAction>
# include <QMenu>
#endif
#include "ViewProviderDatum.h"
@@ -49,11 +52,11 @@ void ViewProviderDatum::attach(App::DocumentObject *obj)
ViewProvider::attach(obj);
PartDesign::Datum* pcDatum = static_cast<PartDesign::Datum*>(getObject());
if (pcDatum->getClassTypeId() == PartDesign::Plane::getClassTypeId())
if (pcDatum->getTypeId() == PartDesign::Plane::getClassTypeId())
datumType = QObject::tr("Plane");
else if (pcDatum->getClassTypeId() == PartDesign::Line::getClassTypeId())
else if (pcDatum->getTypeId() == PartDesign::Line::getClassTypeId())
datumType = QObject::tr("Line");
else if (pcDatum->getClassTypeId() == PartDesign::Point::getClassTypeId())
else if (pcDatum->getTypeId() == PartDesign::Point::getClassTypeId())
datumType = QObject::tr("Point");
}