Salome HOME
Copyright update 2022
[modules/shaper.git] / src / ModuleBase / ModuleBase_Preferences.h
index 8dde198c87d147ad7f0ae03eece0310e548e47d7..ea89bf764cda186069c1c369cd5d523d5741a1fb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  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
@@ -47,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);
@@ -76,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();
@@ -83,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);