20 #ifndef ModuleBase_WidgetOptionalBox_H_
21 #define ModuleBase_WidgetOptionalBox_H_
23 #include <ModuleBase.h>
24 #include <ModuleBase_PageBase.h>
25 #include <ModuleBase_ModelWidget.h>
43 enum OptionType {CheckBox, GroupBox};
94 void setOptionType(
const OptionType& theType);
98 bool isCheckBoxFilled()
const;
102 void createControl(
const OptionType& theType);
106 bool getCurrentValue()
const;
110 void setCurrentValue(
const bool& theValue);
113 void updateControlsVisibility();
115 bool toEnableWidgets()
const;
118 std::string myToolTip;
119 std::string myGroupTitle;
121 OptionType myOptionType;
122 QVBoxLayout* myMainLayout;
125 QCheckBox* myCheckBox;
126 QHBoxLayout* myCheckBoxLayout;
130 QGridLayout* myGroupBoxLayout;
133 QCheckBox* myCheckGroupBtn;
135 QVBoxLayout* myCheckGroupLayout;
138 bool myEnableOnCheck;
139 bool myAlwaysShowTitle;
Definition: ModuleBase_PageBase.h:35
virtual void placeModelWidget(ModuleBase_ModelWidget *theWidget)=0
Pure Virtual. Allows to derived class to lay out the widget properly;.
virtual void addPageStretch()=0
Pure Virtual. Allows to derived class to insert page stretch properly.
virtual QLayout * pageLayout()=0
Pure Virtual. Returns layout of the page.
QWidget * pageWidget()
Cast the page to regular QWidget.
Definition: ModuleBase_PageBase.cpp:37
virtual void placeWidget(QWidget *theWidget)=0
Pure Virtual. Allows to derived class to lay out the page properly;.