Mercurial > projects > qtd
comparison generator/typesystem_gui-java.java @ 252:37eed70de029
More things broken than fixed. Rolling back to 263
author | maxter |
---|---|
date | Sat, 22 Aug 2009 12:50:58 +0000 |
parents | 7664de4a55e5 |
children | 34a37904ff77 |
comparison
equal
deleted
inserted
replaced
251:739d0ee5bd91 | 252:37eed70de029 |
---|---|
168 /* | 168 /* |
169 private native void add_private(long nid, int x, int y); | 169 private native void add_private(long nid, int x, int y); |
170 | 170 |
171 @QtBlockedSlot | 171 @QtBlockedSlot |
172 public final QPolygon add(int x, int y) { | 172 public final QPolygon add(int x, int y) { |
173 add_private(__nativeId(), x, y); | 173 add_private(nativeId(), x, y); |
174 return this; | 174 return this; |
175 } | 175 } |
176 | 176 |
177 @QtBlockedSlot | 177 @QtBlockedSlot |
178 public final QPolygon add(QPoint pt) { | 178 public final QPolygon add(QPoint pt) { |
179 add_private(__nativeId(), pt.x(), pt.y()); | 179 add_private(nativeId(), pt.x(), pt.y()); |
180 return this; | 180 return this; |
181 } | 181 } |
182 | 182 |
183 @QtBlockedSlot | 183 @QtBlockedSlot |
184 public final QPolygon add(QPolygon p) { | 184 public final QPolygon add(QPolygon p) { |
185 int size = p.size(); | 185 int size = p.size(); |
186 long nid = __nativeId(); | 186 long nid = nativeId(); |
187 for (int i = 0; i < size; ++i) { | 187 for (int i = 0; i < size; ++i) { |
188 QPoint pt = p.at(i); | 188 QPoint pt = p.at(i); |
189 add_private(nid, pt.x(), pt.y()); | 189 add_private(nid, pt.x(), pt.y()); |
190 } | 190 } |
191 return this; | 191 return this; |
197 /* | 197 /* |
198 private native void add_private(long nid, double x, double y); | 198 private native void add_private(long nid, double x, double y); |
199 | 199 |
200 @QtBlockedSlot | 200 @QtBlockedSlot |
201 public final QPolygonF add(double x, double y) { | 201 public final QPolygonF add(double x, double y) { |
202 add_private(__nativeId(), x, y); | 202 add_private(nativeId(), x, y); |
203 return this; | 203 return this; |
204 } | 204 } |
205 | 205 |
206 @QtBlockedSlot | 206 @QtBlockedSlot |
207 public final QPolygonF add(QPointF pt) { | 207 public final QPolygonF add(QPointF pt) { |
208 add_private(__nativeId(), pt.x(), pt.y()); | 208 add_private(nativeId(), pt.x(), pt.y()); |
209 return this; | 209 return this; |
210 } | 210 } |
211 | 211 |
212 @QtBlockedSlot | 212 @QtBlockedSlot |
213 public final QPolygonF add(QPolygonF p) { | 213 public final QPolygonF add(QPolygonF p) { |
214 int size = p.size(); | 214 int size = p.size(); |
215 long nid = __nativeId(); | 215 long nid = nativeId(); |
216 for (int i = 0; i < size; ++i) { | 216 for (int i = 0; i < size; ++i) { |
217 QPointF pt = p.at(i); | 217 QPointF pt = p.at(i); |
218 add_private(nid, pt.x(), pt.y()); | 218 add_private(nid, pt.x(), pt.y()); |
219 } | 219 } |
220 return this; | 220 return this; |
857 class QFileDialog___ extends QFileDialog { | 857 class QFileDialog___ extends QFileDialog { |
858 | 858 |
859 public static string getOpenFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { | 859 public static string getOpenFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { |
860 string res; | 860 string res; |
861 string _selectedFilter = ""; | 861 string _selectedFilter = ""; |
862 qtd_QFileDialog_getOpenFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.__nativeId, caption, dir, filter, _selectedFilter, 0); | 862 qtd_QFileDialog_getOpenFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.nativeId, caption, dir, filter, _selectedFilter, 0); |
863 return res; | 863 return res; |
864 } | 864 } |
865 | 865 |
866 public static string getSaveFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { | 866 public static string getSaveFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { |
867 string res; | 867 string res; |
868 string _selectedFilter = ""; | 868 string _selectedFilter = ""; |
869 qtd_QFileDialog_getSaveFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.__nativeId, caption, dir, filter, _selectedFilter, 0); | 869 qtd_QFileDialog_getSaveFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.nativeId, caption, dir, filter, _selectedFilter, 0); |
870 return res; | 870 return res; |
871 } | 871 } |
872 | 872 |
873 public static class Filter { | 873 public static class Filter { |
874 public this(string filter) { | 874 public this(string filter) { |
1011 public final void setBrush(QPixmap pm) { | 1011 public final void setBrush(QPixmap pm) { |
1012 setBrush(new QBrush(pm)); | 1012 setBrush(new QBrush(pm)); |
1013 } | 1013 } |
1014 | 1014 |
1015 public final void drawConvexPolygon(in QPoint[] points) { | 1015 public final void drawConvexPolygon(in QPoint[] points) { |
1016 qtd_QPainter_drawConvexPolygon_nativepointerQPoint_int(__nativeId, points.ptr, points.length); | 1016 qtd_QPainter_drawConvexPolygon_nativepointerQPoint_int(nativeId, points.ptr, points.length); |
1017 } | 1017 } |
1018 | 1018 |
1019 public final void drawConvexPolygon(in QPointF[] points) { | 1019 public final void drawConvexPolygon(in QPointF[] points) { |
1020 qtd_QPainter_drawConvexPolygon_nativepointerQPointF_int(__nativeId, points.ptr, points.length); | 1020 qtd_QPainter_drawConvexPolygon_nativepointerQPointF_int(nativeId, points.ptr, points.length); |
1021 } | 1021 } |
1022 | 1022 |
1023 public final void drawLines(in QLine[] lines) { | 1023 public final void drawLines(in QLine[] lines) { |
1024 qtd_QPainter_drawLines_nativepointerQLine_int(__nativeId, lines.ptr, lines.length); | 1024 qtd_QPainter_drawLines_nativepointerQLine_int(nativeId, lines.ptr, lines.length); |
1025 } | 1025 } |
1026 | 1026 |
1027 public final void drawLines(in QLineF[] lines) { | 1027 public final void drawLines(in QLineF[] lines) { |
1028 qtd_QPainter_drawLines_nativepointerQLineF_int(__nativeId, lines.ptr, lines.length); | 1028 qtd_QPainter_drawLines_nativepointerQLineF_int(nativeId, lines.ptr, lines.length); |
1029 } | 1029 } |
1030 | 1030 |
1031 public final void drawPolygon(in QPoint[] points, Qt_FillRule fillRule = Qt_FillRule.OddEvenFill) { | 1031 public final void drawPolygon(in QPoint[] points, Qt_FillRule fillRule = Qt_FillRule.OddEvenFill) { |
1032 qtd_QPainter_drawPolygon_nativepointerQPoint_int_FillRule(__nativeId, points.ptr, points.length, fillRule); | 1032 qtd_QPainter_drawPolygon_nativepointerQPoint_int_FillRule(nativeId, points.ptr, points.length, fillRule); |
1033 } | 1033 } |
1034 | 1034 |
1035 public final void drawPolygon(in QPointF[] points, Qt_FillRule fillRule = Qt_FillRule.OddEvenFill) { | 1035 public final void drawPolygon(in QPointF[] points, Qt_FillRule fillRule = Qt_FillRule.OddEvenFill) { |
1036 qtd_QPainter_drawPolygon_nativepointerQPointF_int_FillRule(__nativeId, points.ptr, points.length, fillRule); | 1036 qtd_QPainter_drawPolygon_nativepointerQPointF_int_FillRule(nativeId, points.ptr, points.length, fillRule); |
1037 } | 1037 } |
1038 | 1038 |
1039 public final void drawPolyline(in QPoint[] points) { | 1039 public final void drawPolyline(in QPoint[] points) { |
1040 qtd_QPainter_drawPolyline_nativepointerQPoint_int(__nativeId, points.ptr, points.length); | 1040 qtd_QPainter_drawPolyline_nativepointerQPoint_int(nativeId, points.ptr, points.length); |
1041 } | 1041 } |
1042 | 1042 |
1043 public final void drawPolyline(in QPointF[] points) { | 1043 public final void drawPolyline(in QPointF[] points) { |
1044 qtd_QPainter_drawPolyline_nativepointerQPointF_int(__nativeId, points.ptr, points.length); | 1044 qtd_QPainter_drawPolyline_nativepointerQPointF_int(nativeId, points.ptr, points.length); |
1045 } | 1045 } |
1046 | 1046 |
1047 public final void drawPoints(in QPoint[] points) { | 1047 public final void drawPoints(in QPoint[] points) { |
1048 qtd_QPainter_drawPoints_nativepointerQPoint_int(__nativeId, points.ptr, points.length); | 1048 qtd_QPainter_drawPoints_nativepointerQPoint_int(nativeId, points.ptr, points.length); |
1049 } | 1049 } |
1050 | 1050 |
1051 public final void drawPoints(in QPointF[] points) { | 1051 public final void drawPoints(in QPointF[] points) { |
1052 qtd_QPainter_drawPoints_nativepointerQPointF_int(__nativeId, points.ptr, points.length); | 1052 qtd_QPainter_drawPoints_nativepointerQPointF_int(nativeId, points.ptr, points.length); |
1053 } | 1053 } |
1054 | 1054 |
1055 public final void drawRects(in QRect[] rects) { | 1055 public final void drawRects(in QRect[] rects) { |
1056 qtd_QPainter_drawRects_nativepointerQRect_int(__nativeId, rects.ptr, rects.length); | 1056 qtd_QPainter_drawRects_nativepointerQRect_int(nativeId, rects.ptr, rects.length); |
1057 } | 1057 } |
1058 | 1058 |
1059 public final void drawRects(in QRectF[] rects) { | 1059 public final void drawRects(in QRectF[] rects) { |
1060 qtd_QPainter_drawRects_nativepointerQRectF_int(__nativeId, rects.ptr, rects.length); | 1060 qtd_QPainter_drawRects_nativepointerQRectF_int(nativeId, rects.ptr, rects.length); |
1061 } | 1061 } |
1062 /* | 1062 /* |
1063 public static QPaintDeviceInterface redirected(QPaintDeviceInterface device, qt.core.QPoint offset) { | 1063 public static QPaintDeviceInterface redirected(QPaintDeviceInterface device, qt.core.QPoint offset) { |
1064 return redirected(device, offset == null ? null : offset.nativePointer()); | 1064 return redirected(device, offset == null ? null : offset.nativePointer()); |
1065 } | 1065 } |
1687 | 1687 |
1688 }// class | 1688 }// class |
1689 | 1689 |
1690 class QInputDialog___ extends QInputDialog { | 1690 class QInputDialog___ extends QInputDialog { |
1691 public static double getDouble(QWidget _parent, string title, string label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, ref bool ok = false, int flags = 0) { | 1691 public static double getDouble(QWidget _parent, string title, string label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, ref bool ok = false, int flags = 0) { |
1692 return qtd_QInputDialog_getDouble_private_QWidget_string_string_double_double_double_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.__nativeId, title, label, value, minValue, maxValue, decimals, &ok, flags); | 1692 return qtd_QInputDialog_getDouble_private_QWidget_string_string_double_double_double_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, decimals, &ok, flags); |
1693 } | 1693 } |
1694 | 1694 |
1695 static if (QT_VERSION >= QT_VERSION_CHECK(4, 5, 0)) | 1695 static if (QT_VERSION >= QT_VERSION_CHECK(4, 5, 0)) |
1696 { | 1696 { |
1697 public static int getInt(QWidget _parent, string title, string label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, ref bool ok = false, int flags = 0) { | 1697 public static int getInt(QWidget _parent, string title, string label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, ref bool ok = false, int flags = 0) { |
1698 return qtd_QInputDialog_getInt_private_QWidget_string_string_int_int_int_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.__nativeId, title, label, value, minValue, maxValue, step, &ok, flags); | 1698 return qtd_QInputDialog_getInt_private_QWidget_string_string_int_int_int_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, step, &ok, flags); |
1699 } | 1699 } |
1700 } | 1700 } |
1701 | 1701 |
1702 public static string getItem(QWidget _parent, string title, string label, string[] items, int current = 0, bool editable = true, ref bool ok = false, int flags = 0) { | 1702 public static string getItem(QWidget _parent, string title, string label, string[] items, int current = 0, bool editable = true, ref bool ok = false, int flags = 0) { |
1703 string res; | 1703 string res; |
1704 qtd_QInputDialog_getItem_private_QWidget_string_string_List_int_bool_nativepointerbool_WindowFlags(&res, _parent is null ? null : _parent.__nativeId, title, label, items.ptr, items.length, current, editable, &ok, flags); | 1704 qtd_QInputDialog_getItem_private_QWidget_string_string_List_int_bool_nativepointerbool_WindowFlags(&res, _parent is null ? null : _parent.nativeId, title, label, items.ptr, items.length, current, editable, &ok, flags); |
1705 return res; | 1705 return res; |
1706 } | 1706 } |
1707 | 1707 |
1708 public static string getText(QWidget _parent, string title, string label, QLineEdit_EchoMode echo = QLineEdit_EchoMode.Normal, string text = null, ref bool ok = false, int flags = 0) { | 1708 public static string getText(QWidget _parent, string title, string label, QLineEdit_EchoMode echo = QLineEdit_EchoMode.Normal, string text = null, ref bool ok = false, int flags = 0) { |
1709 string res; | 1709 string res; |
1710 qtd_QInputDialog_getText_private_QWidget_string_string_EchoMode_string_nativepointerbool_WindowFlags(&res, _parent is null ? null : _parent.__nativeId, title, label, echo, text, &ok, flags); | 1710 qtd_QInputDialog_getText_private_QWidget_string_string_EchoMode_string_nativepointerbool_WindowFlags(&res, _parent is null ? null : _parent.nativeId, title, label, echo, text, &ok, flags); |
1711 return res; | 1711 return res; |
1712 } | 1712 } |
1713 }// class | 1713 }// class |
1714 | 1714 |
1715 class QFont___ extends QFont { | 1715 class QFont___ extends QFont { |
1716 version(D_Version2) | 1716 version(D_Version2) |
1717 { | 1717 { |
1718 void opAssign(in QFont arg__1) { | 1718 void opAssign(in QFont arg__1) { |
1719 this.__nativeId = qtd_QFont_QFont_QFont(arg__1 is null ? null : (cast(QFont)arg__1).__nativeId); | 1719 this.nativeId = qtd_QFont_QFont_QFont(arg__1 is null ? null : (cast(QFont)arg__1).nativeId); |
1720 } | 1720 } |
1721 } | 1721 } |
1722 }// class" | 1722 }// class" |