//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsizepolicy.h>
#include <tqrect.h>
#include <tqlayout.h>
#include <tqstring.h>
#include <tqsize.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQGridLayout.h>

class TQGridLayoutJBridge : public TQGridLayout
{
public:
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3,int arg4,int arg5,const char* arg6) : TQGridLayout(arg1,arg2,arg3,arg4,arg5,arg6) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3,int arg4,int arg5) : TQGridLayout(arg1,arg2,arg3,arg4,arg5) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3,int arg4) : TQGridLayout(arg1,arg2,arg3,arg4) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3) : TQGridLayout(arg1,arg2,arg3) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2) : TQGridLayout(arg1,arg2) {};
	TQGridLayoutJBridge(TQWidget* arg1) : TQGridLayout(arg1) {};
	TQGridLayoutJBridge(int arg1,int arg2,int arg3,const char* arg4) : TQGridLayout(arg1,arg2,arg3,arg4) {};
	TQGridLayoutJBridge(int arg1,int arg2,int arg3) : TQGridLayout(arg1,arg2,arg3) {};
	TQGridLayoutJBridge(int arg1,int arg2) : TQGridLayout(arg1,arg2) {};
	TQGridLayoutJBridge(int arg1) : TQGridLayout(arg1) {};
	TQGridLayoutJBridge() : TQGridLayout() {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2,int arg3,int arg4,const char* arg5) : TQGridLayout(arg1,arg2,arg3,arg4,arg5) {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2,int arg3,int arg4) : TQGridLayout(arg1,arg2,arg3,arg4) {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2,int arg3) : TQGridLayout(arg1,arg2,arg3) {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2) : TQGridLayout(arg1,arg2) {};
	TQGridLayoutJBridge(TQLayout* arg1) : TQGridLayout(arg1) {};
	bool protected_findWidget(TQWidget* arg1,int* arg2,int* arg3) {
		return (bool) TQGridLayout::findWidget(arg1,arg2,arg3);
	}
	void protected_add(TQLayoutItem* arg1,int arg2,int arg3) {
		TQGridLayout::add(arg1,arg2,arg3);
		return;
	}
	~TQGridLayoutJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void setMenuBar(TQMenuBar* arg1) {
		if (!QtSupport::eventDelegate(this,"setMenuBar",(void*)arg1,"org.trinitydesktop.qt.TQMenuBar")) {
			TQLayout::setMenuBar(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQLayout::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addColSpacing(JNIEnv* env, jobject obj, jint col, jint minsize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addColSpacing((int) col, (int) minsize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addItem__Lorg_trinitydesktop_qt_QLayoutItemInterface_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addItem((TQLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addItem__Lorg_trinitydesktop_qt_QLayoutItemInterface_2II(JNIEnv* env, jobject obj, jobject item, jint row, jint col)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addItem((TQLayoutItem*) QtSupport::getQt(env, item), (int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addLayout(JNIEnv* env, jobject obj, jobject layout, jint row, jint col)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addLayout((TQLayout*) QtSupport::getQt(env, layout), (int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellLayout__Lorg_trinitydesktop_qt_QLayout_2IIII(JNIEnv* env, jobject obj, jobject layout, jint fromRow, jint toRow, jint fromCol, jint toCol)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellLayout((TQLayout*) QtSupport::getQt(env, layout), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellLayout__Lorg_trinitydesktop_qt_QLayout_2IIIII(JNIEnv* env, jobject obj, jobject layout, jint fromRow, jint toRow, jint fromCol, jint toCol, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellLayout((TQLayout*) QtSupport::getQt(env, layout), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellWidget__Lorg_trinitydesktop_qt_QWidget_2IIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellWidget__Lorg_trinitydesktop_qt_QWidget_2IIIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCell__Lorg_trinitydesktop_qt_QLayoutItemInterface_2IIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCell((TQLayoutItem*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCell__Lorg_trinitydesktop_qt_QLayoutItemInterface_2IIIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCell((TQLayoutItem*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addRowSpacing(JNIEnv* env, jobject obj, jint row, jint minsize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addRowSpacing((int) row, (int) minsize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject arg1, jint row, jint col)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2III(JNIEnv* env, jobject obj, jobject arg1, jint row, jint col, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) row, (int) col, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_add(JNIEnv* env, jobject obj, jobject arg1, jint row, jint col)
{
	((TQGridLayoutJBridge*) QtSupport::getQt(env, obj))->protected_add((TQLayoutItem*) QtSupport::getQt(env, arg1), (int) row, (int) col);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_cellGeometry(JNIEnv* env, jobject obj, jint row, jint col)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQGridLayout*) QtSupport::getQt(env, obj))->cellGeometry((int) row, (int) col)), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGridLayout_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQGridLayout*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_colSpacing(JNIEnv* env, jobject obj, jint col)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->colSpacing((int) col);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_colStretch(JNIEnv* env, jobject obj, jint col)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->colStretch((int) col);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QGridLayout_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_expand(JNIEnv* env, jobject obj, jint rows, jint cols)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->expand((int) rows, (int) cols);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_expanding(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->expanding();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQLayoutItem*)(TQGridLayout*)QtSupport::getQt(env, obj))->layout() == 0 && ((TQLayoutItem*)(TQGridLayout*)QtSupport::getQt(env, obj))->widget() == 0 && ((TQLayoutItem*)(TQGridLayout*)QtSupport::getQt(env, obj))->spacerItem() == 0) {
		delete (TQGridLayout*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGridLayout_findWidget(JNIEnv* env, jobject obj, jobject w, jintArray r, jintArray c)
{
	int* _int_r = QtSupport::toIntPtr(env, r);
	int* _int_c = QtSupport::toIntPtr(env, c);
	jboolean xret = (jboolean) ((TQGridLayoutJBridge*) QtSupport::getQt(env, obj))->protected_findWidget((TQWidget*) QtSupport::getQt(env, w),  (int*) _int_r,  (int*) _int_c);
	env->SetIntArrayRegion(r, 0, 1, (jint *) _int_r);
	env->SetIntArrayRegion(c, 0, 1, (jint *) _int_c);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGridLayout_hasHeightForWidth(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQGridLayout*) QtSupport::getQt(env, obj))->hasHeightForWidth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_heightForWidth(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->heightForWidth((int) arg1);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_invalidate(JNIEnv* env, jobject obj)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->invalidate();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGridLayout_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_maximumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQGridLayout*) QtSupport::getQt(env, obj))->maximumSize()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQGridLayout*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_minimumHeightForWidth(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->minimumHeightForWidth((int) arg1);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_minimumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQGridLayout*) QtSupport::getQt(env, obj))->minimumSize()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__I(JNIEnv* env, jobject obj, jint nRows)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__II(JNIEnv* env, jobject obj, jint nRows, jint nCols)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows, (int) nCols));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__III(JNIEnv* env, jobject obj, jint nRows, jint nCols, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows, (int) nCols, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__IIILjava_lang_String_2(JNIEnv* env, jobject obj, jint nRows, jint nCols, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows, (int) nCols, (int) spacing, (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2(JNIEnv* env, jobject obj, jobject parentLayout)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2I(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2II(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows, jint nCols)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows, (int) nCols));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2III(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows, jint nCols, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows, (int) nCols, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2IIILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows, jint nCols, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows, (int) nCols, (int) spacing, (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject parent, jint nRows)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2III(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols, jint border)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols, (int) border));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2IIII(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols, jint border, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols, (int) border, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2IIIILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols, jint border, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols, (int) border, (int) spacing, (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_numCols(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->numCols();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_numRows(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->numRows();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_origin(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->origin();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_rowSpacing(JNIEnv* env, jobject obj, jint row)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->rowSpacing((int) row);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_rowStretch(JNIEnv* env, jobject obj, jint row)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->rowStretch((int) row);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setColSpacing(JNIEnv* env, jobject obj, jint col, jint minSize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setColSpacing((int) col, (int) minSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setColStretch(JNIEnv* env, jobject obj, jint col, jint stretch)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setColStretch((int) col, (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setGeometry(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setGeometry((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setOrigin(JNIEnv* env, jobject obj, jint arg1)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setOrigin((TQGridLayout::Corner) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setRowSpacing(JNIEnv* env, jobject obj, jint row, jint minSize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setRowSpacing((int) row, (int) minSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setRowStretch(JNIEnv* env, jobject obj, jint row, jint stretch)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setRowStretch((int) row, (int) stretch);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQGridLayout*) QtSupport::getQt(env, obj))->sizeHint()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGridLayout_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQGridLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGridLayout_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQGridLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

