Salome HOME
renamed bool arguments
[modules/shaper.git] / src / Config / Config_PropManager.h
index e0b2cd7e9891aa5688d812d681e6c34c3efcc9c8..e64cb215df673d0e70aa553d0b1cad5ec3051cb0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  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
@@ -36,7 +36,7 @@ class Config_PropManager
 {
  public:
 
-  /** 
+  /**
    * Registers property parameters
    * \param theSection - name of section (domain of using) of the property.
    * \param theName - name (title) of the value.
@@ -44,7 +44,7 @@ class Config_PropManager
    * \param theType - type of the value.
    * \param theDefValue - default and initial value of the property
    * \param theMin - minimal value
-   * \param theMax - minimal value
+   * \param theMax - maximal value
    * Returns True if the property succesfully registered
    */
   CONFIG_EXPORT static Config_Prop* registerProp(const std::string& theSection,
@@ -89,7 +89,17 @@ class Config_PropManager
   //! \return double result or zero
   CONFIG_EXPORT static double stringToDouble(const std::string& theDouble);
 
+  //! Returns Auto-color status as a Boolean
+  CONFIG_EXPORT static bool getAutoColorStatus();
+
+  //! Set Auto-color boolean value
+  //! \param theValue a value to use
+  CONFIG_EXPORT static void setAutoColorStatus(const bool theValue);
+
  private:
+
+  CONFIG_EXPORT static bool autoColorStatus; // Auto-color status
+
   CONFIG_EXPORT static Config_Properties& props(); ///< List of all stored properties
 };