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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridView_cellHeight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridView*) QtSupport::getQt(env, obj))->cellHeight();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridView_cellRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQGridView*) QtSupport::getQt(env, obj))->cellRect()), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridView_cellWidth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridView*) QtSupport::getQt(env, obj))->cellWidth();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridView_columnAt(JNIEnv* env, jobject obj, jint x)
{
	jint xret = (jint) ((TQGridView*) QtSupport::getQt(env, obj))->columnAt((int) x);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_ensureCellVisible(JNIEnv* env, jobject obj, jint row, jint column)
{
	((TQGridView*) QtSupport::getQt(env, obj))->ensureCellVisible((int) row, (int) column);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_repaintCell__II(JNIEnv* env, jobject obj, jint row, jint column)
{
	((TQGridView*) QtSupport::getQt(env, obj))->repaintCell((int) row, (int) column);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_repaintCell__IIZ(JNIEnv* env, jobject obj, jint row, jint column, jboolean erase)
{
	((TQGridView*) QtSupport::getQt(env, obj))->repaintCell((int) row, (int) column, (bool) erase);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridView_rowAt(JNIEnv* env, jobject obj, jint y)
{
	jint xret = (jint) ((TQGridView*) QtSupport::getQt(env, obj))->rowAt((int) y);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_setCellHeight(JNIEnv* env, jobject obj, jint arg1)
{
	((TQGridView*) QtSupport::getQt(env, obj))->setCellHeight((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_setCellWidth(JNIEnv* env, jobject obj, jint arg1)
{
	((TQGridView*) QtSupport::getQt(env, obj))->setCellWidth((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_setNumCols(JNIEnv* env, jobject obj, jint arg1)
{
	((TQGridView*) QtSupport::getQt(env, obj))->setNumCols((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_setNumRows(JNIEnv* env, jobject obj, jint arg1)
{
	((TQGridView*) QtSupport::getQt(env, obj))->setNumRows((int) arg1);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridView_updateCell(JNIEnv* env, jobject obj, jint row, jint column)
{
	((TQGridView*) QtSupport::getQt(env, obj))->updateCell((int) row, (int) column);
	return;
}

