Salome HOME
Copyright update 2021
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetOptionalBox.h
old mode 100755 (executable)
new mode 100644 (file)
index 6a04e80..5af2e1e
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021  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_WidgetOptionalBox_H_
@@ -113,6 +112,8 @@ private:
   /// Makes model widget controls either disabled(for check box mode) or hidden(for group box mode)
   void updateControlsVisibility();
 
+  bool toEnableWidgets() const;
+
 private:
   std::string myToolTip; ///< tool tip defined in XML
   std::string myGroupTitle; ///< a title for group box
@@ -120,13 +121,22 @@ private:
   OptionType myOptionType; ///< current option state
   QVBoxLayout* myMainLayout; ///< the main layout
   // controls to fill check box frame
-  QFrame* myCheckBoxFrame; ///< frame with check box, to be hidden when group box is used
+  QWidget* myCheckBoxFrame; ///< frame with check box, to be hidden when group box is used
   QCheckBox* myCheckBox; ///< control used if only one model widget is placed inside
   QHBoxLayout* myCheckBoxLayout; ///< layout of check box frame
   ModuleBase_ModelWidget* myCheckBoxWidget; /// model widget, placed in the check box frame
   // controls to fill group box frame
   QGroupBox* myGroupBox; ///< control used if more than model widget is placed inside
   QGridLayout* myGroupBoxLayout; ///< page's layout
+
+  QWidget* myCheckGroup;
+  QCheckBox* myCheckGroupBtn;
+  QWidget* myCheckContent;
+  QVBoxLayout* myCheckGroupLayout;
+
+  bool myHaveFrame;
+  bool myEnableOnCheck;
+  bool myAlwaysShowTitle;
 };
 
 #endif /* ModuleBase_WidgetOptionalBox_H_ */