X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_SelectionValidator.h;h=60d9574001f12752d0e654da7b64755fc7c46c6d;hb=c8e35a67c60489a46aaf7c8ff75001511ac2635b;hp=045e730e20fe28e182bfd2facaa0974effc995a3;hpb=7b95df2653284e65f416373ff010af49ee8c68ef;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_SelectionValidator.h b/src/ModuleBase/ModuleBase_SelectionValidator.h index 045e730e2..60d957400 100644 --- a/src/ModuleBase/ModuleBase_SelectionValidator.h +++ b/src/ModuleBase/ModuleBase_SelectionValidator.h @@ -16,6 +16,7 @@ #include /** +* \ingroup Validators * A validator of selection */ class ModuleBase_SelectionValidator : public ModelAPI_Validator @@ -23,16 +24,14 @@ class ModuleBase_SelectionValidator : public ModelAPI_Validator public: /// Returns True if selection is valid /// \param theSelection selection instance - virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0; + /// \param theArguments list of arguments + virtual MODULEBASE_EXPORT bool isValid(const ModuleBase_ISelection* theSelection, + const std::list& theArguments) const; + protected: /// Returns True if selection is valid /// \param theSelection selection instance - /// \param theArguments list of arguments - virtual bool isValid(const ModuleBase_ISelection* theSelection, - const std::list& theArguments) const - { - return isValid(theSelection); - } + virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0; }; #endif