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)",
#define GWEN_ERROR_INVALID
int setCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
#define DBG_WARN(dbg_logger, format, args...)
int getIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
#define QT4_DIALOG_STRING_TITLE
int setIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
Qt4_W_CheckBox(GWEN_WIDGET *w)
#define GWEN_WIDGET_FLAGS_FILLY
#define GWEN_WIDGET_FLAGS_FILLX
#define QT4_DIALOG_WIDGET_REAL
const char * getCharProperty(GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
QT4_DialogBox * getMainWindow()