Salome HOME
updated copyright message
[modules/shaper.git] / src / PartSet / PartSet_WidgetFileSelector.h
index 8d8c8eeb65cf31fb9230c0832fa4daba8b07ae22..55c925e374849153b4ef8a6cdf6799e2df372581 100644 (file)
@@ -1,11 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-/*
- * PartSet_WidgetFileSelector.h
- *
- *  Created on: May 18, 2015
- *      Author: spo
- */
+// Copyright (C) 2014-2023  CEA, EDF
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// 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
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef PARTSET_WIDGETFILESELECTOR_H_
 #define PARTSET_WIDGETFILESELECTOR_H_
@@ -29,23 +39,18 @@ public:
   /// \param theParent the parent object
   /// \param theWorkshop instance of workshop interface
   /// \param theData the widget configuration. The attribute of the model widget is obtained from
-  /// \param theParentId is Id of a parent of the current attribute
   PartSet_WidgetFileSelector(QWidget* theParent,
                              ModuleBase_IWorkshop* theWorkshop,
-                             const Config_WidgetAPI* theData,
-                             const std::string& theParentId);
+                             const Config_WidgetAPI* theData);
 
   virtual ~PartSet_WidgetFileSelector() {}
 
-  /// Reimplemented from ModuleBase_WidgetFileSelector::restoreValue()
-  virtual bool restoreValue();
-
 protected:
   /// Reimplemented from ModuleBase_WidgetFileSelector::storeValueCustom()
-  virtual bool storeValueCustom() const;
+  virtual bool storeValueCustom();
 
-  /// Returns a short format string of theFilter string
-  static QString filterToShortFormat( const QString & theFilter );
+  /// Reimplemented from ModuleBase_WidgetFileSelector::restoreValue()
+  virtual bool restoreValueCustom();
 
   /// Returns a full format string for the short format
   QString shortFormatToFullFormat( const QString & theShortFormat ) const;