//Auto-generated by kalyptus. DO NOT EDIT.
#include <kpixmap.h>
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqstring.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KPixmap.h>

class KPixmapJBridge : public KPixmap
{
public:
	KPixmapJBridge() : KPixmap() {};
	KPixmapJBridge(const TQPixmap& arg1) : KPixmap(arg1) {};
	~KPixmapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KPixmap_checkColorTable(JNIEnv* env, jobject obj, jobject image)
{
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->checkColorTable((const TQImage&)*(const TQImage*) QtSupport::getQt(env, image));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KPixmap_convertFromImage__Lorg_trinitydesktop_qt_QImage_2(JNIEnv* env, jobject obj, jobject img)
{
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->convertFromImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, img));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KPixmap_convertFromImage__Lorg_trinitydesktop_qt_QImage_2I(JNIEnv* env, jobject obj, jobject img, jint conversion_flags)
{
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->convertFromImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, img), (int) conversion_flags);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KPixmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KPixmap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KPixmap_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KPixmap*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KPixmap_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KPixmap_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KPixmap_load__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint conversion_flags)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((KPixmap*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) conversion_flags);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KPixmap_newKPixmap__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject pix)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPixmapJBridge((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, pix)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

