]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #462 disable features on multi-selection under debian
authorsbh <sergey.belash@opencascade.com>
Wed, 15 Apr 2015 15:36:41 +0000 (18:36 +0300)
committersbh <sergey.belash@opencascade.com>
Wed, 15 Apr 2015 15:36:41 +0000 (18:36 +0300)
src/ModuleBase/CMakeLists.txt
src/ModuleBase/ModuleBase_SelectionValidator.cpp [new file with mode: 0644]
src/ModuleBase/ModuleBase_SelectionValidator.h

index e9967697182a064f392fe0fc8120411797e99312..d52f98a5207aa269d00169242262901985516c5a 100644 (file)
@@ -82,6 +82,7 @@ SET(PROJECT_SOURCES
        ModuleBase_WidgetValidated.cpp
        ModuleBase_WidgetExprEditor.cpp
        ModuleBase_ParamSpinBox.cpp
+       ModuleBase_SelectionValidator.cpp
 )
 
 SET(PROJECT_LIBRARIES
diff --git a/src/ModuleBase/ModuleBase_SelectionValidator.cpp b/src/ModuleBase/ModuleBase_SelectionValidator.cpp
new file mode 100644 (file)
index 0000000..fa9b27e
--- /dev/null
@@ -0,0 +1,17 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModuleBase_SelectionValidator.cpp
+// Created:     8 Jul 2014
+// Author:      Vitaly SMETANNIKOV
+
+#include <ModuleBase_SelectionValidator.h>
+
+ModuleBase_SelectionValidator::~ModuleBase_SelectionValidator()
+{
+}
+
+bool ModuleBase_SelectionValidator::isValid(const ModuleBase_ISelection* theSelection,
+                                            const std::list<std::string>& theArguments) const
+{
+  return isValid(theSelection);
+}
index a519ed849aded91e4f618c9bb991f4673c76a579..f3d34617fa90ef1f87dd9f63ed7ff3771869fcea 100644 (file)
@@ -22,6 +22,7 @@
 class ModuleBase_SelectionValidator : public ModelAPI_Validator
 {
  public:
+  virtual ~ModuleBase_SelectionValidator();
    /// Returns True if selection is valid
    /// \param theSelection selection instance
   virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
@@ -30,10 +31,8 @@ class ModuleBase_SelectionValidator : public ModelAPI_Validator
    /// \param theSelection selection instance
    /// \param theArguments list of arguments
   virtual bool isValid(const ModuleBase_ISelection* theSelection,
-                       const std::list<std::string>& theArguments) const
-  {
-    return isValid(theSelection);
-  }
+                       const std::list<std::string>& theArguments) const;
+
 };
 
 #endif