Salome HOME
Issue #475 #451 correct detection of variables in the ParamSpinBox
[modules/shaper.git] / src / ModuleBase / ModuleBase_SelectionValidator.h
index 180d59936a37308129a606c3f15429a1d883ec5e..60d9574001f12752d0e654da7b64755fc7c46c6d 100644 (file)
 #include <list>
 #include <string>
 
+/**
+* \ingroup Validators
+* A validator of selection
+*/
 class ModuleBase_SelectionValidator : public ModelAPI_Validator
 {
  public:
+   /// Returns True if selection is valid
+   /// \param theSelection selection instance
+   /// \param theArguments list of arguments
+  virtual MODULEBASE_EXPORT bool isValid(const ModuleBase_ISelection* theSelection,
+                       const std::list<std::string>& theArguments) const;
+
+ protected:
+   /// Returns True if selection is valid
+   /// \param theSelection selection instance
   virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
-  virtual bool isValid(const ModuleBase_ISelection* theSelection,
-                       const std::list<std::string>& theArguments) const
-  {
-    return isValid(theSelection);
-  }
 };
 
 #endif