//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsizepolicy.h>
#include <qsize.h>
#include <qrect.h>
#include <qlayout.h>
#include <qstring.h>

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

class QBoxLayoutJBridge : public QBoxLayout
{
public:
	QBoxLayoutJBridge(QWidget* arg1,QBoxLayout::Direction arg2,int arg3,int arg4,const char* arg5) : QBoxLayout(arg1,arg2,arg3,arg4,arg5) {};
	QBoxLayoutJBridge(QWidget* arg1,QBoxLayout::Direction arg2,int arg3,int arg4) : QBoxLayout(arg1,arg2,arg3,arg4) {};
	QBoxLayoutJBridge(QWidget* arg1,QBoxLayout::Direction arg2,int arg3) : QBoxLayout(arg1,arg2,arg3) {};
	QBoxLayoutJBridge(QWidget* arg1,QBoxLayout::Direction arg2) : QBoxLayout(arg1,arg2) {};
	QBoxLayoutJBridge(QLayout* arg1,QBoxLayout::Direction arg2,int arg3,const char* arg4) : QBoxLayout(arg1,arg2,arg3,arg4) {};
	QBoxLayoutJBridge(QLayout* arg1,QBoxLayout::Direction arg2,int arg3) : QBoxLayout(arg1,arg2,arg3) {};
	QBoxLayoutJBridge(QLayout* arg1,QBoxLayout::Direction arg2) : QBoxLayout(arg1,arg2) {};
	QBoxLayoutJBridge(QBoxLayout::Direction arg1,int arg2,const char* arg3) : QBoxLayout(arg1,arg2,arg3) {};
	QBoxLayoutJBridge(QBoxLayout::Direction arg1,int arg2) : QBoxLayout(arg1,arg2) {};
	QBoxLayoutJBridge(QBoxLayout::Direction arg1) : QBoxLayout(arg1) {};
	void protected_insertItem(int arg1,QLayoutItem* arg2) {
		QBoxLayout::insertItem(arg1,arg2);
		return;
	}
	~QBoxLayoutJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void setMenuBar(QMenuBar* arg1) {
		if (!QtSupport::eventDelegate(this,"setMenuBar",(void*)arg1,"org.kde.qt.QMenuBar")) {
			QLayout::setMenuBar(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QLayout::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_addItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((QBoxLayout*) QtSupport::getQt(env, obj))->addItem((QLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_addLayout__Lorg_kde_qt_QLayout_2(JNIEnv* env, jobject obj, jobject layout)
{
	((QBoxLayout*) QtSupport::getQt(env, obj))->addLayout((QLayout*) QtSupport::getQt(env, layout));
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_addWidget__Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QBoxLayout*) QtSupport::getQt(env, obj))->addWidget((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QBoxLayout_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QBoxLayout_maximumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QBoxLayout*) QtSupport::getQt(env, obj))->maximumSize()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QBoxLayout_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QBoxLayout*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QBoxLayout_minimumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QBoxLayout*) QtSupport::getQt(env, obj))->minimumSize()), "org.kde.qt.QSize", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_newQBoxLayout__IILjava_lang_String_2(JNIEnv* env, jobject obj, jint arg1, jint spacing, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QBoxLayout::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_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_qt_QLayout_2I(JNIEnv* env, jobject obj, jobject parentLayout, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QLayout*) QtSupport::getQt(env, parentLayout), (QBoxLayout::Direction) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_qt_QLayout_2II(JNIEnv* env, jobject obj, jobject parentLayout, jint arg2, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QLayout*) QtSupport::getQt(env, parentLayout), (QBoxLayout::Direction) arg2, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_qt_QLayout_2IILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parentLayout, jint arg2, jint spacing, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QLayout*) QtSupport::getQt(env, parentLayout), (QBoxLayout::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_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject parent, jint arg2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QWidget*) QtSupport::getQt(env, parent), (QBoxLayout::Direction) arg2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject parent, jint arg2, jint border)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QWidget*) QtSupport::getQt(env, parent), (QBoxLayout::Direction) arg2, (int) border));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_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 QBoxLayoutJBridge((QWidget*) QtSupport::getQt(env, parent), (QBoxLayout::Direction) arg2, (int) border, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBoxLayout_newQBoxLayout__Lorg_kde_qt_QWidget_2IIILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jint arg2, jint border, jint spacing, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBoxLayoutJBridge((QWidget*) QtSupport::getQt(env, parent), (QBoxLayout::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_kde_qt_QBoxLayout_setDirection(JNIEnv* env, jobject obj, jint arg1)
{
	((QBoxLayout*) QtSupport::getQt(env, obj))->setDirection((QBoxLayout::Direction) arg1);
	return;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QBoxLayout_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QBoxLayout*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QBoxLayout_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QBoxLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QBoxLayout_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QBoxLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

