X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetPointInput.h;h=f2eb776e2f2dfb8418cc3a9f455ade498ac91884;hb=2ae03d01e656c09a563bf30d741e5f6ce4cf3a53;hp=e9cd0f3e1bcf513210daed9160c03b61652852d1;hpb=e65bf14e2ff3cf853884bf8998fadcece6e3b34c;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetPointInput.h b/src/ModuleBase/ModuleBase_WidgetPointInput.h index e9cd0f3e1..f2eb776e2 100644 --- a/src/ModuleBase/ModuleBase_WidgetPointInput.h +++ b/src/ModuleBase/ModuleBase_WidgetPointInput.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 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 @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef ModuleBase_WidgetPointInput_H @@ -61,17 +60,27 @@ public: /// Fills the attribute with the value of the selected owner /// \param thePrs a selected owner - virtual bool setSelectionCustom(const std::shared_ptr& thePrs); + virtual bool setSelection(QList>& theValues, + const bool theToValidate); protected: /// Retunrs a list of possible shape types /// \return a list of shapes virtual QIntList shapeTypes() const; + /// Returns true if the event is processed. + virtual bool processEnter(); + protected: ModuleBase_ParamSpinBox* myXSpin; ModuleBase_ParamSpinBox* myYSpin; ModuleBase_ParamSpinBox* myZSpin; + + FeaturePtr myXParam; + FeaturePtr myYParam; + FeaturePtr myZParam; + + double myDefaultValue[3]; };