X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetIntValue.h;h=7fb7d13f487663b4c6f369ca6c3bd024e4ff33d6;hb=be64ac512378281d54e4a73e8edb68ae43d0c5a7;hp=4a13ed44254e28b69a56c588e715d916694203f6;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetIntValue.h b/src/ModuleBase/ModuleBase_WidgetIntValue.h index 4a13ed442..7fb7d13f4 100644 --- a/src/ModuleBase/ModuleBase_WidgetIntValue.h +++ b/src/ModuleBase/ModuleBase_WidgetIntValue.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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_WidgetIntValue_H @@ -24,7 +23,7 @@ #include "ModuleBase.h" #include "ModuleBase_ModelWidget.h" -class ModuleBase_ParamIntSpinBox; +class ModuleBase_ParamSpinBox; class Config_WidgetAPI; class QWidget; class QLabel; @@ -49,6 +48,9 @@ Q_OBJECT virtual ~ModuleBase_WidgetIntValue(); + /// The methiod called when widget is activated + virtual void activateCustom(); + /// Select the internal content if it can be selected. It is empty in the default realization virtual void selectContent(); @@ -56,10 +58,10 @@ Q_OBJECT /// \return a control list virtual QList getControls() const; +protected: /// Returns true if the event is processed. virtual bool processEnter(); -protected: /// Saves the internal parameters to the given feature /// \return True in success virtual bool storeValueCustom(); @@ -77,7 +79,12 @@ protected: QLabel* myLabel; /// Input value control - ModuleBase_ParamIntSpinBox* mySpinBox; + ModuleBase_ParamSpinBox* mySpinBox; + + FeaturePtr myParameter; + + int myDefVal; + bool myHasDefault; }; #endif