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

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

class TQBoxLayoutJBridge : public TQBoxLayout
{
public:
	TQBoxLayoutJBridge(TQWidget* arg1,TQBoxLayout::Direction arg2,int arg3,int arg4,const char* arg5) : TQBoxLayout(arg1,arg2,arg3,arg4,arg5) {};
	TQBoxLayoutJBridge(TQWidget* arg1,TQBoxLayout::Direction arg2,int arg3,int arg4) : TQBoxLayout(arg1,arg2,arg3,arg4) {};
	TQBoxLayoutJBridge(TQWidget* arg1,TQBoxLayout::Direction arg2,int arg3) : TQBoxLayout(arg1,arg2,arg3) {};
	TQBoxLayoutJBridge(TQWidget* arg1,TQBoxLayout::Direction arg2) : TQBoxLayout(arg1,arg2) {};
	TQBoxLayoutJBridge(TQLayout* arg1,TQBoxLayout::Direction arg2,int arg3,const char* arg4) : TQBoxLayout(arg1,arg2,arg3,arg4) {};
	TQBoxLayoutJBridge(TQLayout* arg1,TQBoxLayout::Direction arg2,int arg3) : TQBoxLayout(arg1,arg2,arg3) {};
	TQBoxLayoutJBridge(TQLayout* arg1,TQBoxLayout::Direction arg2) : TQBoxLayout(arg1,arg2) {};
	TQBoxLayoutJBridge(TQBoxLayout::Direction arg1,int arg2,const char* arg3) : TQBoxLayout(arg1,arg2,arg3) {};
	TQBoxLayoutJBridge(TQBoxLayout::Direction arg1,int arg2) : TQBoxLayout(arg1,arg2) {};
	TQBoxLayoutJBridge(TQBoxLayout::Direction arg1) : TQBoxLayout(arg1) {};
	void protected_insertItem(int arg1,TQLayoutItem* arg2) {
		TQBoxLayout::insertItem(arg1,arg2);
		return;
	}
	~TQBoxLayoutJBridge() {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_QBoxLayout_addItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addItem((TQLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addLayout__Lorg_trinitydesktop_qt_QLayout_2(JNIEnv* env, jobject obj, jobject layout)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addLayout((TQLayout*) QtSupport::getQt(env, layout));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addLayout__Lorg_trinitydesktop_qt_QLayout_2I(JNIEnv* env, jobject obj, jobject layout, jint stretch)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addLayout((TQLayout*) QtSupport::getQt(env, layout), (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addSpacing(JNIEnv* env, jobject obj, jint size)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addSpacing((int) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addStretch__(JNIEnv* env, jobject obj)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addStretch();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addStretch__I(JNIEnv* env, jobject obj, jint stretch)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addStretch((int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addStrut(JNIEnv* env, jobject obj, jint arg1)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addStrut((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject arg1, jint stretch)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject arg1, jint stretch, jint alignment)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) stretch, (int) alignment);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_direction(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQBoxLayout*) QtSupport::getQt(env, obj))->direction();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QBoxLayout_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_findWidget(JNIEnv* env, jobject obj, jobject w)
{
	jint xret = (jint) ((TQBoxLayout*) QtSupport::getQt(env, obj))->findWidget((TQWidget*) QtSupport::getQt(env, w));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertItem(JNIEnv* env, jobject obj, jint index, jobject arg2)
{
	((TQBoxLayoutJBridge*) QtSupport::getQt(env, obj))->protected_insertItem((int) index, (TQLayoutItem*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertLayout__ILorg_trinitydesktop_qt_QLayout_2(JNIEnv* env, jobject obj, jint index, jobject layout)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertLayout((int) index, (TQLayout*) QtSupport::getQt(env, layout));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertLayout__ILorg_trinitydesktop_qt_QLayout_2I(JNIEnv* env, jobject obj, jint index, jobject layout, jint stretch)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertLayout((int) index, (TQLayout*) QtSupport::getQt(env, layout), (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertSpacing(JNIEnv* env, jobject obj, jint index, jint size)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertSpacing((int) index, (int) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertStretch__I(JNIEnv* env, jobject obj, jint index)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertStretch((int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertStretch__II(JNIEnv* env, jobject obj, jint index, jint stretch)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertStretch((int) index, (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertWidget__ILorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jint index, jobject widget)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertWidget((int) index, (TQWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertWidget__ILorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jint index, jobject widget, jint stretch)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertWidget((int) index, (TQWidget*) QtSupport::getQt(env, widget), (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_insertWidget__ILorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jint index, jobject widget, jint stretch, jint alignment)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->insertWidget((int) index, (TQWidget*) QtSupport::getQt(env, widget), (int) stretch, (int) alignment);
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__I(JNIEnv* env, jobject obj, jint arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQBoxLayout::Direction) arg1));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__II(JNIEnv* env, jobject obj, jint arg1, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQBoxLayout::Direction) arg1, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__IILjava_lang_String_2(JNIEnv* env, jobject obj, jint arg1, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQBoxLayout::Direction) arg1, (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_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QLayout_2I(JNIEnv* env, jobject obj, jobject parentLayout, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (TQBoxLayout::Direction) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QLayout_2II(JNIEnv* env, jobject obj, jobject parentLayout, jint arg2, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (TQBoxLayout::Direction) arg2, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QLayout_2IILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parentLayout, jint arg2, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (TQBoxLayout::Direction) arg2, (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_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject parent, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (TQBoxLayout::Direction) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject parent, jint arg2, jint border)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (TQBoxLayout::Direction) arg2, (int) border));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QWidget_2III(JNIEnv* env, jobject obj, jobject parent, jint arg2, jint border, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (TQBoxLayout::Direction) arg2, (int) border, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_newTQBoxLayout__Lorg_trinitydesktop_qt_QWidget_2IIILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jint arg2, jint border, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBoxLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (TQBoxLayout::Direction) arg2, (int) border, (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_QBoxLayout_setDirection(JNIEnv* env, jobject obj, jint arg1)
{
	((TQBoxLayout*) QtSupport::getQt(env, obj))->setDirection((TQBoxLayout::Direction) arg1);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_setStretchFactor__Lorg_trinitydesktop_qt_QLayout_2I(JNIEnv* env, jobject obj, jobject l, jint stretch)
{
	jboolean xret = (jboolean) ((TQBoxLayout*) QtSupport::getQt(env, obj))->setStretchFactor((TQLayout*) QtSupport::getQt(env, l), (int) stretch);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_setStretchFactor__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject arg1, jint stretch)
{
	jboolean xret = (jboolean) ((TQBoxLayout*) QtSupport::getQt(env, obj))->setStretchFactor((TQWidget*) QtSupport::getQt(env, arg1), (int) stretch);
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QBoxLayout_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 = TQBoxLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

