From a53a679f7540527449ae03a47068179e2ce15865 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 11 Jul 2014 10:02:29 +0400 Subject: [PATCH] Registering of validators --- src/PartSet/PartSet_Module.cpp | 10 ---------- src/SketchPlugin/plugin-Sketch.xml | 5 +++++ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 3814ed1c6..02d41a0fc 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -108,21 +108,11 @@ void PartSet_Module::createFeatures() //!! Test registering of validators PluginManagerPtr aMgr = ModelAPI_PluginManager::get(); ModelAPI_ValidatorsFactory* aFactory = aMgr->validators(); - aFactory->registerValidator("PartSet_DistanceValidator", new PartSet_DistanceValidator); - aFactory->assignValidator("PartSet_DistanceValidator", "SketchConstraintDistance"); - aFactory->registerValidator("PartSet_LengthValidator", new PartSet_LengthValidator); - aFactory->assignValidator("PartSet_LengthValidator", "SketchConstraintLength"); - aFactory->registerValidator("PartSet_PerpendicularValidator", new PartSet_PerpendicularValidator); - aFactory->assignValidator("PartSet_PerpendicularValidator", "SketchConstraintPerpendicular"); - aFactory->registerValidator("PartSet_ParallelValidator", new PartSet_ParallelValidator); - aFactory->assignValidator("PartSet_ParallelValidator", "SketchConstraintParallel"); - aFactory->registerValidator("PartSet_RadiusValidator", new PartSet_RadiusValidator); - aFactory->assignValidator("PartSet_RadiusValidator", "SketchConstraintRadius"); } void PartSet_Module::featureCreated(QAction* theFeature) diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index 3b5801e77..999d742d2 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -31,28 +31,33 @@ + + + -- 2.39.2