Mercurial > projects > qtd
comparison generator/typesystem_gui.xml @ 372:a032df77b6ab
Simple debug helper. Unittests. Meta-object for polymorphic non-QObjects
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Thu, 08 Jul 2010 17:19:05 +0300 |
parents | 9784459f0750 |
children | 1f189d0ceab4 |
comparison
equal
deleted
inserted
replaced
370:7fd4b69378bf | 372:a032df77b6ab |
---|---|
5 qt.Utilities.loadQtLibrary("QtGui"); | 5 qt.Utilities.loadQtLibrary("QtGui"); |
6 </inject-code> | 6 </inject-code> |
7 | 7 |
8 <template name="gui.class_from_variant_java"> | 8 <template name="gui.class_from_variant_java"> |
9 public this(QVariant arg__1) { | 9 public this(QVariant arg__1) { |
10 void* __qt_return_value = qtd_%CLASS_NAME_%CLASS_NAME_QVariant(cast(void*) this, arg__1 is null ? null : arg__1.__nativeId); | 10 void* __qt_return_value = qtd_%CLASS_NAME_%CLASS_NAME_QVariant(cast(void*) this, arg__1 is null ? null : arg__1.qtdNativeId); |
11 super(__qt_return_value); | 11 super(__qt_return_value); |
12 } | 12 } |
13 </template> | 13 </template> |
14 | 14 |
15 <template name="gui.class_from_variant_java_free"> | 15 <template name="gui.class_from_variant_java_free"> |
1136 <modify-function signature="operator<<(QPoint)" remove="all"/> | 1136 <modify-function signature="operator<<(QPoint)" remove="all"/> |
1137 <modify-function signature="operator<<(QVector<QPoint>)" remove="all"/> | 1137 <modify-function signature="operator<<(QVector<QPoint>)" remove="all"/> |
1138 | 1138 |
1139 <inject-code class="java"> | 1139 <inject-code class="java"> |
1140 public final void insert(int i, QPoint t) { | 1140 public final void insert(int i, QPoint t) { |
1141 qtd_QPolygon_insert_int_QPoint(__nativeId, i, t); | 1141 qtd_QPolygon_insert_int_QPoint(qtdNativeId, i, t); |
1142 } | 1142 } |
1143 | 1143 |
1144 public final void insert(int i, int n, QPoint t) { | 1144 public final void insert(int i, int n, QPoint t) { |
1145 qtd_QPolygon_insert_int_int_QPoint(__nativeId, i, n, t); | 1145 qtd_QPolygon_insert_int_int_QPoint(qtdNativeId, i, n, t); |
1146 } | 1146 } |
1147 </inject-code> | 1147 </inject-code> |
1148 <inject-code class="java-free"> | 1148 <inject-code class="java-free"> |
1149 private extern(C) void qtd_QPolygon_insert_int_QPoint(void* __this_nativeId, | 1149 private extern(C) void qtd_QPolygon_insert_int_QPoint(void* __this_nativeId, |
1150 int i0, | 1150 int i0, |
1221 } | 1221 } |
1222 </inject-code> | 1222 </inject-code> |
1223 --> | 1223 --> |
1224 <inject-code class="java"> | 1224 <inject-code class="java"> |
1225 public final void insert(int i, QPointF t) { | 1225 public final void insert(int i, QPointF t) { |
1226 qtd_QPolygonF_insert_int_QPointF(__nativeId, i, t); | 1226 qtd_QPolygonF_insert_int_QPointF(qtdNativeId, i, t); |
1227 } | 1227 } |
1228 | 1228 |
1229 public final void insert(int i, int n, QPointF t) { | 1229 public final void insert(int i, int n, QPointF t) { |
1230 qtd_QPolygonF_insert_int_int_QPointF(__nativeId, i, n, t); | 1230 qtd_QPolygonF_insert_int_int_QPointF(qtdNativeId, i, n, t); |
1231 } | 1231 } |
1232 </inject-code> | 1232 </inject-code> |
1233 <inject-code class="java-free"> | 1233 <inject-code class="java-free"> |
1234 private extern(C) void qtd_QPolygonF_insert_int_QPointF(void* __this_nativeId, | 1234 private extern(C) void qtd_QPolygonF_insert_int_QPointF(void* __this_nativeId, |
1235 int i0, | 1235 int i0, |
5776 <argument-map index="1" meta-name="%1"/> | 5776 <argument-map index="1" meta-name="%1"/> |
5777 if (this instanceof QMessageBox) { | 5777 if (this instanceof QMessageBox) { |
5778 qt.GeneratorUtilities.threadCheck(this); | 5778 qt.GeneratorUtilities.threadCheck(this); |
5779 if (nativeId() == 0) | 5779 if (nativeId() == 0) |
5780 throw new QNoNativeResourcesException("Function call on incomplete object of type: " +getClass().getName()); | 5780 throw new QNoNativeResourcesException("Function call on incomplete object of type: " +getClass().getName()); |
5781 __qt_QMessageBox_setWindowModality(__nativeId(), %1.value()); | 5781 __qt_QMessageBox_setWindowModality(qtdNativeId(), %1.value()); |
5782 return ; | 5782 return ; |
5783 } | 5783 } |
5784 </inject-code> | 5784 </inject-code> |
5785 </modify-function> | 5785 </modify-function> |
5786 --> | 5786 --> |