-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
-// File: ModuleBase_WidgetOptionalBox.h
-// Created: 13 Dec 2015
-// Author: Natalia ERMOLAEVA
+// 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
+// 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 ModuleBase_WidgetOptionalBox_H_
#define ModuleBase_WidgetOptionalBox_H_
/// 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
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_ */