From: sbh Date: Wed, 15 Apr 2015 15:36:41 +0000 (+0300) Subject: Issue #462 disable features on multi-selection under debian X-Git-Tag: V_1.1.0~23^2~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28641e91b96498ce08845c00086513d243b44fdf;p=modules%2Fshaper.git Issue #462 disable features on multi-selection under debian --- diff --git a/src/ModuleBase/CMakeLists.txt b/src/ModuleBase/CMakeLists.txt index e99676971..d52f98a52 100644 --- a/src/ModuleBase/CMakeLists.txt +++ b/src/ModuleBase/CMakeLists.txt @@ -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 index 000000000..fa9b27e5e --- /dev/null +++ b/src/ModuleBase/ModuleBase_SelectionValidator.cpp @@ -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::~ModuleBase_SelectionValidator() +{ +} + +bool ModuleBase_SelectionValidator::isValid(const ModuleBase_ISelection* theSelection, + const std::list& theArguments) const +{ + return isValid(theSelection); +} diff --git a/src/ModuleBase/ModuleBase_SelectionValidator.h b/src/ModuleBase/ModuleBase_SelectionValidator.h index a519ed849..f3d34617f 100644 --- a/src/ModuleBase/ModuleBase_SelectionValidator.h +++ b/src/ModuleBase/ModuleBase_SelectionValidator.h @@ -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& theArguments) const - { - return isValid(theSelection); - } + const std::list& theArguments) const; + }; #endif