Turned DrawUtil into class with static methods.

This commit is contained in:
Ian Rees
2016-05-06 23:54:04 +12:00
committed by wmayer
parent c6bcfd84ce
commit 898587454f
6 changed files with 49 additions and 49 deletions

View File

@@ -277,8 +277,8 @@ void ViewProviderPage::onSelectionChanged(const Gui::SelectionChanges& msg)
std::string str = msg.pSubName;
// If it's a subfeature, dont select feature
if (!str.empty()) {
if (DrawUtil::getGeomTypeFromName(str) == "Edge" ||
DrawUtil::getGeomTypeFromName(str) == "Vertex") {
if (TechDraw::DrawUtil::getGeomTypeFromName(str) == "Edge" ||
TechDraw::DrawUtil::getGeomTypeFromName(str) == "Vertex") {
//TODO: handle Faces
// TODO implement me
} else {
@@ -296,8 +296,8 @@ void ViewProviderPage::onSelectionChanged(const Gui::SelectionChanges& msg)
std::string str = msg.pSubName;
// If it's a subfeature, dont select feature
if (!str.empty()) {
if (DrawUtil::getGeomTypeFromName(str) == "Edge" ||
DrawUtil::getGeomTypeFromName(str) == "Vertex") {
if (TechDraw::DrawUtil::getGeomTypeFromName(str) == "Edge" ||
TechDraw::DrawUtil::getGeomTypeFromName(str) == "Vertex") {
// TODO implement me
} else {
view->selectFeature(obj, selectState);