5 @SuppressWarnings public class QTabWidget : QAbstractItemView{
11 public QTabWidget(long handle){
16 nativehandle = QtXnl.createQObject(QType.qtTabWidget,
this, 0);
17 if (nativehandle == 0){
23 public bool create(@NotNilptr QWidget parent)
override {
24 nativehandle = QtXnl.createQObject(QType.qtTabWidget,
this, parent.nativehandle);
25 if (nativehandle == 0){
49 return QtXnl.long_longstring(nativehandle, Constant.TABWIDGETADDTAB, widget.nativehandle, text);
53 return QtXnl.native_long2_string(nativehandle, Constant.TABWIDGETADDTAB, widget.nativehandle, icon.nativehandle, 0, label);
57 return QtXnl.native_long2_string(nativehandle, Constant.TABWIDGETINSERTTAB, index, widget.nativehandle, 0, label);
61 return QtXnl.native_long2_string(nativehandle, Constant.TABWIDGETINSERTTAB2, index, widget.nativehandle, icon.nativehandle, label);
65 QtXnl.widget_set_vint_value(nativehandle, Constant.TABWIDGETREMOVETAB, index);
69 return QtXnl.widget_get_int_bool(nativehandle, Constant.TABWIDGETISTABENABLED, index);
72 QtXnl.widget_set_int_bool_value(nativehandle, Constant.TABWIDGETSETTABENABLED, index, b);
76 return (
String)QtXnl.core_getStringlongint(nativehandle, Constant.TABWIDGETTABTEXT, 0, index);
79 QtXnl.widget_set_intstring_value(nativehandle, Constant.TABWIDGETSETTABTEXT, index, text);
83 QtXnl.object_set_long_int_long(nativehandle, Constant.TABWIDGETSETTABICON, 0, index, icon.nativehandle);
88 QtXnl.widget_set_intstring_value(nativehandle, Constant.TABWIDGETSETTABTOOLTIP, index, tip);
91 return (
String)QtXnl.core_getStringlongint(nativehandle, Constant.TABWIDGETTABTOOLTIP, 0, index);
95 QtXnl.widget_set_intstring_value(nativehandle,Constant. TABWIDGETSETTABWHATSTHIS, index, text);
98 return (
String)QtXnl.core_getStringlongint(nativehandle, Constant.TABWIDGETTABWHATSTHIS, 0, index);
103 return QtXnl.widget_get_int_value(nativehandle, Constant.TABWIDGETCURRENTINDEX);
107 return (QWidget)QtXnl.widget_get_object(nativehandle,Constant. TABWIDGETCURRENTWIDGET);
111 return (QWidget)QtXnl.object_get_handle(nativehandle, Constant.TABWIDGETWIDGET, index);
115 return QtXnl.int_long_int_long_int_int(nativehandle, Constant.TABWIDGETINDEXOF, widget.nativehandle, 0, 0);
119 return QtXnl.widget_get_int_value(nativehandle, Constant.TABWIDGETCOUNT);
122 enum TabPosition { North, South, West, East };
126 return (TabPosition)QtXnl.widget_get_int_value(nativehandle, Constant.TABWIDGETTABPOSITION);
130 QtXnl.widget_set_vint_value(nativehandle, Constant.TABWIDGETSETTABPOSITION, tp);
134 return QtXnl.widget_get_bool_value(nativehandle,Constant.TABWIDGETTABSCLOSABLE);
138 QtXnl.widget_set_bool_value(nativehandle, Constant.TABWIDGETSETTABSCLOSABLE, closeable);
142 return QtXnl.widget_get_bool_value(nativehandle, Constant.TABWIDGETISMOVABLE);
146 QtXnl.widget_set_bool_value(nativehandle, Constant.TABWIDGETSETMOVABLE, movable);
153 return (TabShape)QtXnl.widget_get_int_value(nativehandle, Constant.TABWIDGETTABSHAPE);
157 QtXnl.widget_set_vint_value(nativehandle, Constant.TABWIDGETSETTABSHAPE, s);
161 long lsize = QtXnl.long_get(nativehandle, Constant.TABWIDGETSIZEHINT);
162 return new QSize(lsize >> 32 & 0xffffffff, lsize & 0xffffffff);
166 long lsize = QtXnl.long_get(nativehandle, Constant.TABWIDGETMINIMUMSIZEHINT);
167 return new QSize(lsize >> 32 & 0xffffffff, lsize & 0xffffffff);
171 return QtXnl.widget_set_v2int_value(nativehandle, Constant.TABWIDGETHEIGHTFORWIDTH, width, 0);
175 return QtXnl.widget_get_bool_value(nativehandle, Constant.TABWIDGETHASHEIGHTFORWIDTH);
179 QtXnl.object_get_long_int(nativehandle, Constant.TABWIDGETSETCORNERWIDGET, w.nativehandle, corner);
183 return (QWidget)QtXnl.object_get_handle(nativehandle, Constant.TABWIDGETCORNERWIDGET, corner);
187 return (TextElideMode)QtXnl.widget_get_int_value(nativehandle, Constant.TABWIDGETELIDEMODE);
191 QtXnl.widget_set_vint_value(nativehandle, Constant.TABWIDGETSETELIDEMODE, tem);
195 long lsize = QtXnl.long_get(nativehandle, Constant.TABWIDGETICONSIZE);
196 return new QSize(lsize >> 32 & 0xffffffff, lsize & 0xffffffff);
200 QtXnl.widget_set_v2int_value(nativehandle, Constant.TABWIDGETSETICONSIZE, size.cx, size.cy);
204 return QtXnl.widget_get_bool_value(nativehandle, Constant.TABWIDGETUSESSCROLLBUTTONS);
208 QtXnl.widget_set_bool_value(nativehandle, Constant.TABWIDGETSETUSESSCROLLBUTTONS, useButtons);
212 return QtXnl.widget_get_bool_value(nativehandle, Constant.TABWIDGETDOCUMENTMODE);
216 QtXnl.widget_set_bool_value(nativehandle, Constant.TABWIDGETSETDOCUMENTMODE,
set);
220 return QtXnl.widget_get_bool_value(nativehandle, Constant.TABWIDGETAUTOHIDE);
224 QtXnl.widget_set_bool_value(nativehandle, Constant.TABWIDGETSETTABBARAUTOHIDE, enabled);
228 QtXnl.widget_slot(nativehandle, Constant.TABWIDGETCLEAR);
232 return (QTabBar)QtXnl.widget_get_object(nativehandle, Constant.TABWIDGETTABBAR);
237 QtXnl.widget_set_vint_value(nativehandle, Constant.TABWIDGETSETCURRENTINDEX, index);
241 QtXnl.widget_set_native_value(nativehandle, Constant.TABWIDGETSETCURRENTWIDGET, widget.nativehandle);