# HG changeset patch # User eldar # Date 1242316412 0 # Node ID 5015aede8edd4aafa8e4134cdbb22ee555a03756 # Parent 4faee409a98d8dfd9e95baaac507ff4f240c1e6f insert() for QPolygons diff -r 4faee409a98d -r 5015aede8edd generator/dgenerator.cpp --- a/generator/dgenerator.cpp Thu May 14 15:04:16 2009 +0000 +++ b/generator/dgenerator.cpp Thu May 14 15:53:32 2009 +0000 @@ -2376,6 +2376,19 @@ */ s << "}" << endl; + /* ---------------- injected free code ----------------*/ + const ComplexTypeEntry *class_type = d_class->typeEntry(); + Q_ASSERT(class_type); + + CodeSnipList code_snips = class_type->codeSnips(); + foreach (const CodeSnip &snip, code_snips) { + if (!d_class->isInterface() && snip.language == TypeSystem::TargetLangFreeCode) { + s << endl; + snip.formattedCode(s, INDENT); + } + } + /* --------------------------------------------------- */ + interfaces = d_class->interfaces(); if (!interfaces.isEmpty()) { for (int i=0; i languageNames; if (languageNames.isEmpty()) { languageNames["java"] = TypeSystem::TargetLangCode; + languageNames["java-free"] = TypeSystem::TargetLangFreeCode; languageNames["native"] = TypeSystem::NativeCode; languageNames["shell"] = TypeSystem::ShellCode; languageNames["shell-declaration"] = TypeSystem::ShellDeclaration; diff -r 4faee409a98d -r 5015aede8edd generator/typesystem.h --- a/generator/typesystem.h Thu May 14 15:04:16 2009 +0000 +++ b/generator/typesystem.h Thu May 14 15:53:32 2009 +0000 @@ -95,6 +95,7 @@ NoLanguage = 0x0000, TargetLangCode = 0x0001, NativeCode = 0x0002, + TargetLangFreeCode = 0x0003, ShellCode = 0x0004, ShellDeclaration = 0x0008, PackageInitializer = 0x0010, diff -r 4faee409a98d -r 5015aede8edd generator/typesystem_core.xml --- a/generator/typesystem_core.xml Thu May 14 15:04:16 2009 +0000 +++ b/generator/typesystem_core.xml Thu May 14 15:53:32 2009 +0000 @@ -2394,7 +2394,8 @@ - + + diff -r 4faee409a98d -r 5015aede8edd generator/typesystem_gui.xml --- a/generator/typesystem_gui.xml Thu May 14 15:04:16 2009 +0000 +++ b/generator/typesystem_gui.xml Thu May 14 15:53:32 2009 +0000 @@ -1050,19 +1050,61 @@ + + + + - - - - - - - - - + + + public final void insert(int i, QPoint t) { + qtd_QPolygon_insert_int_QPoint(nativeId, i, t); + } + + public final void insert(int i, int n, QPoint t) { + qtd_QPolygon_insert_int_int_QPoint(nativeId, i, n, t); + } + + +private extern(C) void qtd_QPolygon_insert_int_QPoint(void* __this_nativeId, + int i0, + QPoint t1); +private extern(C) void qtd_QPolygon_insert_int_int_QPoint(void* __this_nativeId, + int i0, + int n1, + QPoint t2); + + +// QPolygon::insert(int i, const QPoint & t) +extern "C" DLL_PUBLIC void qtd_QPolygon_insert_int_QPoint +(void* __this_nativeId, + int i0, + QPoint t1) +{ + QPolygon *__qt_this = (QPolygon *) __this_nativeId; + __qt_this->insert((int )i0, (const QPoint& )t1); + +} + +// QPolygon::insert(int i, int n, const QPoint & t) +extern "C" DLL_PUBLIC void qtd_QPolygon_insert_int_int_QPoint +(void* __this_nativeId, + int i0, + int n1, + QPoint t2) +{ + QPolygon *__qt_this = (QPolygon *) __this_nativeId; + __qt_this->insert((int )i0, (int )n1, (const QPoint& )t2); + +} + + + + + + + public final void insert(int i, QPointF t) { + qtd_QPolygonF_insert_int_QPointF(nativeId, i, t); + } + + public final void insert(int i, int n, QPointF t) { + qtd_QPolygonF_insert_int_int_QPointF(nativeId, i, n, t); + } + + +private extern(C) void qtd_QPolygonF_insert_int_QPointF(void* __this_nativeId, + int i0, + QPointF t1); +private extern(C) void qtd_QPolygonF_insert_int_int_QPointF(void* __this_nativeId, + int i0, + int n1, + QPointF t2); + + +// QPolygonF::insert(int i, const QPointF & t) +extern "C" DLL_PUBLIC void qtd_QPolygonF_insert_int_QPointF +(void* __this_nativeId, + int i0, + QPointF t1) +{ + QPolygonF *__qt_this = (QPolygonF *) __this_nativeId; + __qt_this->insert((int )i0, (const QPointF& )t1); + +} + +// QPolygonF::insert(int i, int n, const QPointF & t) +extern "C" DLL_PUBLIC void qtd_QPolygonF_insert_int_int_QPointF +(void* __this_nativeId, + int i0, + int n1, + QPointF t2) +{ + QPolygonF *__qt_this = (QPolygonF *) __this_nativeId; + __qt_this->insert((int )i0, (int )n1, (const QPointF& )t2); + +} +