X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConstructionPlugin%2FConstructionPlugin_Plugin.cpp;h=69e900fdc50dbc1a1ad715ed14da817521634c8b;hb=5b3d87414326afbabaf210f1c844ec2eb2f723c8;hp=7e8ff1db5d49ba611905bf13954ccf76479a6507;hpb=e05cf89c2b21303c51d9102315a82ac095eed3df;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp index 7e8ff1db5..69e900fdc 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -53,6 +53,8 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin() new ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes()); aFactory->registerValidator("ConstructionPlugin_ValidatorPointThreeNonParallelPlanes", new ConstructionPlugin_ValidatorPointThreeNonParallelPlanes()); + aFactory->registerValidator("ConstructionPlugin_ValidatorNotFeature", + new ConstructionPlugin_ValidatorNotFeature()); Config_PropManager::registerProp(SKETCH_TAB_NAME, "planes_size", "Size", Config_Prop::DblSpin, PLANE_SIZE, "0", "1000"); @@ -66,6 +68,8 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin() "Rotate to plane when selected", Config_Prop::Boolean, "false"); Config_PropManager::registerProp(SKETCH_TAB_NAME, "operation_cursor", "Cursor for Sketch operation", Config_Prop::Cursor, "0"); + Config_PropManager::registerProp(SKETCH_TAB_NAME, "create_by_dragging", + "Create sketch entities by dragging", Config_Prop::Boolean, "false"); // register this plugin ModelAPI_Session::get()->registerPlugin(this);