X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetEditor.h;h=47ab5d9b52b953c0f00af50a94a590f8ed697e93;hb=374a366d81778aa27ed32cc080c0f95bdb03f1c5;hp=c8177d56a5bd09032f130746a97d52d136ca6e17;hpb=893048d62e837075ea3253c89ce9ecdfbb7a0cf3;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.h b/src/ModuleBase/ModuleBase_WidgetEditor.h index c8177d56a..47ab5d9b5 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.h +++ b/src/ModuleBase/ModuleBase_WidgetEditor.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 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_WidgetEditor_H @@ -68,9 +67,13 @@ Q_OBJECT /// \param theY the Y coordinate void setCursorPosition(const int theX, const int theY); +protected: /// Returns true if the event is processed. virtual bool processEnter(); + /// Reject the current editor dialog if it is shown and returns true. + virtual bool processEscape(); + private: /// Show editor /// \param theSpinMinValue a minimal value of popup menu spin box