Salome HOME
Copyright update 2022
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetNameEdit.h
index 5dda6b77eace088f87a4a9d72c14606ce5990394..b2bdc0270796d753abc5602df437704c02954804 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  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
 //
 // 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<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef MODULEBASE_WIDGETNAMEEDIT_H_
@@ -28,14 +27,17 @@ class ModuleBase_WidgetNameEdit : public ModuleBase_WidgetLineEdit
 {
   Q_OBJECT
 public:
-  ModuleBase_WidgetNameEdit( QWidget* theParent,
-                             const Config_WidgetAPI* theData,
-                             const std::string& thePlaceHolder );
+  ModuleBase_WidgetNameEdit(QWidget* theParent,
+                            const Config_WidgetAPI* theData,
+                            const std::string& thePlaceHolder)
+      : ModuleBase_WidgetLineEdit(theParent, theData, thePlaceHolder) {}
 
   /// Returns True if the widget uses feature attribute.
   /// If not then it means that the widget do not need attribute at all.
   virtual bool usesAttribute() const { return false; }
 
+  virtual bool focusTo() { return false; }
+
 protected:
     /// Saves the internal parameters to the given feature
   /// \return True in success