5 #include "GuiBooleanParameter.h" 
   10   GuiBooleanParameter::GuiBooleanParameter(QGridLayout *grid, UserInterface &ui,
 
   11       int group, 
int param) :
 
   12     GuiParameter(grid, ui, group, param) {
 
   14     p_checkBox = 
new QCheckBox((QString)ui.ParamBrief(group, param));
 
   16     grid->addWidget(p_checkBox, param, 2);
 
   18     RememberWidget(p_checkBox);
 
   19     connect(p_checkBox, SIGNAL(toggled(
bool)), 
this, SIGNAL(ValueChanged()));
 
   21     if(p_ui->HelpersSize(group, param) != 0) {
 
   22       grid->addWidget(AddHelpers(p_checkBox), param, 3);
 
   25     p_type = BooleanWidget;
 
   29   GuiBooleanParameter::~GuiBooleanParameter() {}
 
   32   void GuiBooleanParameter::Set(QString newValue) {
 
   38   QString GuiBooleanParameter::Value() {
 
   39     return p_checkBox->isChecked() ? 
"YES" : 
"NO";
 
   43     std::vector<QString> list;
 
   46     if(Value() == 
"YES") {
 
   73     if(value == 
"0") value = 
"NO";
 
   74     if(value == 
"FALSE") value = 
"NO";
 
   75     if(value == 
"N") value = 
"NO";
 
   76     if(value == 
"OFF") value = 
"NO";
 
   77     if(value == 
"1") value = 
"YES";
 
   78     if(value == 
"TRUE") value = 
"YES";
 
   79     if(value == 
"Y") value = 
"YES";
 
   80     if(value == 
"ON") value = 
"YES";
 
   82     if(Value() == value) 
return false;
 
int ParamIncludeSize(const int &group, const int ¶m) const 
Returns the number of parameters included in this parameter's inclusions. 
 
QString ParamDefault(const int &group, const int ¶m) const 
Returns the default for a parameter in a specified group. 
 
int ParamExcludeSize(const int &group, const int ¶m) const 
Returns the number of parameters excluded in this parameter's exclusions. 
 
QString ParamInclude(const int &group, const int ¶m, const int &include) const 
Returns the name of the specified included parameter. 
 
bool StringToBool(QString value) const 
Returns a boolean value based on the QString contents. 
 
QString ParamExclude(const int &group, const int ¶m, const int &exclude) const 
Returns the name of the specified excluded parameter. 
 
virtual std::vector< QString > Exclusions()
Return list of current exclusions. 
 
bool IsModified()
Return if the parameter value is different from the default value. 
 
bool IsEnabled() const 
Is the parameter enabled.