3 @SuppressWarnings public class QMdiArea : QAbstractScrollArea{
4 public static const int ScrollBarAsNeeded = 0;
5 public static const int ScrollBarAlwaysOff = 1;
6 public static const int ScrollBarAlwaysOn = 2;
8 public static const int SubWindowView = 0;
9 public static const int TabbedView = 1;
19 QMdiSubWindow wnd =
new QMdiSubWindow();
20 if (wnd.create(
this)){
30 QtXnl.widget_set_vint_value(nativehandle, Constant.MDIMODE, vm);
34 QtXnl.widget_set_vint_value(nativehandle, Constant.MDISETSCROLLH, v);
38 QtXnl.widget_set_vint_value(nativehandle, Constant.MDISETSCROLLV, v);
42 QtXnl.widget_set_native_value(nativehandle, Constant.REMSUBWIN, subWindow.nativehandle);
46 Object [] objs = (
Object [])QtXnl.widget_get_object(nativehandle, Constant.MDI_SUBWINDOWLIST);
48 QMdiSubWindow [] out =
new QMdiSubWindow [objs.length];
49 for (
int i : objs.length){
50 out[i] = (QMdiSubWindow)objs[i];
58 QtXnl.widget_set_native_value(nativehandle, Constant.ADDSUBWIN, subWindow.nativehandle);
62 return (QWidget)QtXnl.widget_get_object(nativehandle, Constant.CURRENTSUBWIN);
66 return (QTabBar)QtXnl.widget_get_object(nativehandle, Constant.MDIFIND_TABBAR);
70 QtXnl.widget_slot(nativehandle, Constant.CASCADESUBWIN);
74 QtXnl.widget_slot(nativehandle, Constant.TILESUBWIN);
78 QtXnl.widget_set_native_value(nativehandle, Constant.SETACTSUBWIN, window.nativehandle);
QMdiSubWindow createSubWnd(bool bshow)
void setVerticalScrollBarPolicy(int v)
void removeSubWindow(@NotNilptr QWidget subWindow)
QWidget currentSubWindow()
void addSubWindow(@NotNilptr QWidget subWindow)
void setActiveSubWindow(@NotNilptr QMdiSubWindow window)
void setHorizontalScrollBarPolicy(int v)
QMdiSubWindow [] subWindowList()