4 public interface onDialogButtonBoxListener{
5 void clicked(QDialogButtonBox , QAbstractButton button) ;
11 public class QDialogButtonBox : QWidget{
13 onDialogButtonBoxListener
lis;
24 nativehandle = QtXnl.createQObject(QType.qtButtonBox,
this, 0);
25 if (nativehandle == 0) {
31 public bool create(@NotNilptr QWidget parent) {
32 nativehandle = QtXnl.createQObject(QType.qtButtonBox,
this, parent.nativehandle);
33 if (nativehandle == 0) {
40 QtXnl.widget_set_vint_value(nativehandle, Constant.QDBB_setOrientation, Orientation);
44 return QtXnl.widget_get_int_value(nativehandle, Constant.QDBB_QPORIENTATION);
47 public void addButton(QAbstractButton button, ButtonRole role){
48 QtXnl.widget_set_intlongint_value(nativehandle, Constant.QDBB_QDBB_addButton, button.nativehandle, role, 0);
52 return (QPushButton)QtXnl.object_get_handle_string(nativehandle, Constant.QDBB_QDBB_addButton, role, text);
55 public QPushButton
addButton(StandardButton button){
56 return (QPushButton)QtXnl.object_get_handle_string(nativehandle, Constant.QDBB_QDBB_addButton1, button, nilptr);
60 QtXnl.widget_set_native_value(nativehandle, Constant.QDBB_RemoveBotton, button.nativehandle);
64 QtXnl.widget_slot(nativehandle, Constant.QDBB_Clear);
67 public void clicked(QAbstractButton button) {
69 lis.clicked(
this, button);
81 lis.helpRequested(
this);