11 #include <gwen-gui-cpp/cppwidget.hpp>
30 QSizePolicy::Policy hpolicy=QSizePolicy::Minimum;
31 QSizePolicy::Policy vpolicy=QSizePolicy::Minimum;
37 wParent=GWEN_Widget_Tree_GetParent(
_widget);
40 text=QString::fromUtf8(s);
42 qw=
new QCheckBox(text);
46 hpolicy=QSizePolicy::Expanding;
48 vpolicy=QSizePolicy::Expanding;
49 qw->setSizePolicy(hpolicy, vpolicy);
56 qw->connect(qw, SIGNAL(toggled(
bool)),
58 SLOT(slotActivated()));
78 qw->setChecked((value==0)?
false:
true);
98 return (qw->isChecked())?1:0;
118 text=QString::fromUtf8(value);
129 "Function is not appropriate for this type of widget (%s)",
138 const char *defaultValue) {
161 "Function is not appropriate for this type of widget (%s)",