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
#define DBG_WARN(dbg_logger, format, args...)
const char * getCharProperty(GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *defaultValue)
int setIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
int getIntProperty(GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
#define GWEN_WIDGET_FLAGS_FILLY
QT5_DialogBox * getMainWindow()
Qt5_W_CheckBox(GWEN_WIDGET *w)
#define GWEN_WIDGET_FLAGS_FILLX
#define QT5_DIALOG_STRING_TITLE
int setCharProperty(GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *value, GWEN_UNUSED int doSignal)
#define QT5_DIALOG_WIDGET_REAL