Salome HOME
updated copyright message
[modules/shaper.git] / src / ModuleBase / ModuleBase_Preferences.h
index 1fcb0d8ea2da349b9051f6a3ef68b6373e63d8c8..a6c04754d2ce2b56a078875045cada927d7e5d22 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// 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
 //
 // 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_Preferences_H
@@ -48,6 +47,9 @@ class MODULEBASE_EXPORT ModuleBase_Preferences
    /// Name of preferences of menu section
   static const QString MENU_SECTION;
 
+  /// Name of preferences of general section
+  static const QString GENERAL_SECTION;
+
   /// Shows a dialog box to edit preferences
   /// \param theModified a list of modified preferences
   static bool editPreferences(ModuleBase_Prefs& theModified);
@@ -77,6 +79,9 @@ class MODULEBASE_EXPORT ModuleBase_Preferences
   /// Retrieve preferences of config prop to default state
   static void resetConfigPropPreferences(SUIT_PreferenceMgr* thePref);
 
+  /// Updates content of preferences for sketch tab
+  static void updateSketchTab(ModuleBase_IPrefMgr* thePref, int thePageId);
+
 private:
   /// Updates SUIT_ResourceMgr values by Config_PropManager properties
   static void updateResourcesByConfig();
@@ -84,6 +89,10 @@ private:
   /// Set default values to the Config_PropManager properties
   static void resetConfig();
 
+  /// Creates a content for General tab, which defines the behavior of loading parts
+  /// and displaying shapes
+  static void createGeneralTab(ModuleBase_IPrefMgr* thePref, int thePageId);
+
   /// Creates content of preferences editing widget
   static void createCustomPage(ModuleBase_IPrefMgr* thePref, int thePageId);
 
@@ -150,6 +159,9 @@ Q_OBJECT
    /// A slot called on Ok button press
   virtual void accept();
 
+protected:
+  virtual void showEvent(QShowEvent* theEvent);
+
 protected slots:
   /// A slot called on Default button press
   void onDefault();