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