/***************************************************************************
                            KCharSelectTable.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kcharselect.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KCharSelectTable.h>

class KCharSelectTableJBridge : public KCharSelectTable
{
public:
	KCharSelectTableJBridge(QWidget* parent, const char* name, const QString& _font, const QChar& _chr, int _tableNum) : KCharSelectTable(parent, name, _font, _chr, _tableNum) {}
	void protected_paintCell(class QPainter* p, int row, int col) {
		KCharSelectTable::paintCell(p, row, col);
		return;
	}
	void protected_mousePressEvent(QMouseEvent* e) {
		KCharSelectTable::mousePressEvent(e);
		return;
	}
	void protected_mouseDoubleClickEvent(QMouseEvent* e) {
		KCharSelectTable::mouseDoubleClickEvent(e);
		return;
	}
	void protected_mouseReleaseEvent(QMouseEvent* e) {
		KCharSelectTable::mouseReleaseEvent(e);
		return;
	}
	void protected_mouseMoveEvent(QMouseEvent* e) {
		KCharSelectTable::mouseMoveEvent(e);
		return;
	}
	void protected_keyPressEvent(QKeyEvent* e) {
		KCharSelectTable::keyPressEvent(e);
		return;
	}
	void protected_gotoLeft() {
		KCharSelectTable::gotoLeft();
		return;
	}
	void protected_gotoRight() {
		KCharSelectTable::gotoRight();
		return;
	}
	void protected_gotoUp() {
		KCharSelectTable::gotoUp();
		return;
	}
	void protected_gotoDown() {
		KCharSelectTable::gotoDown();
		return;
	}
	void keyPressEvent(QKeyEvent* e) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", e, "org.kde.qt.QKeyEvent")) {
			KCharSelectTable::keyPressEvent(e);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::contentsWheelEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "showEvent", arg1, "org.kde.qt.QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsContextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::contentsContextMenuEvent(arg1);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportContextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", e, "org.kde.qt.QMouseEvent")) {
			KCharSelectTable::mousePressEvent(e);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", e, "org.kde.qt.QMouseEvent")) {
			KCharSelectTable::mouseReleaseEvent(e);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", e, "org.kde.qt.QMouseEvent")) {
			KCharSelectTable::mouseDoubleClickEvent(e);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QScrollView::contentsDropEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QScrollView::contentsDragLeaveEvent(arg1);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", e, "org.kde.qt.QMouseEvent")) {
			KCharSelectTable::mouseMoveEvent(e);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QScrollView::contentsDragMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::viewportWheelEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsDragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QScrollView::contentsDragEnterEvent(arg1);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMouseMoveEvent(arg1);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::contentsMousePressEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void viewportPaintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportPaintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QScrollView::viewportPaintEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportResizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QScrollView::viewportResizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_newKCharSelectTable(JNIEnv *env, jobject obj, jobject parent, jstring name, jstring _font, jchar _chr, jint _tableNum)
{
static QChar * _qchar__chr = 0;
static QString * _qstring__font = 0;
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCharSelectTableJBridge((QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (QString&) * (QString *) QtSupport::toQString(env, _font, &_qstring__font), (QChar&) * (QChar *) QtSupport::toQChar(env, _chr, &_qchar__chr), (int) _tableNum));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCharSelectTable_sizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((KCharSelectTable*) QtSupport::getQt(env, obj))->sizeHint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_resizeEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KCharSelectTable*) QtSupport::getQt(env, obj))->resizeEvent((QResizeEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_setFont(JNIEnv *env, jobject obj, jstring _font)
{
static QString * _qstring__font = 0;
	((KCharSelectTable*) QtSupport::getQt(env, obj))->setFont((QString&) * (QString *) QtSupport::toQString(env, _font, &_qstring__font));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_setChar(JNIEnv *env, jobject obj, jchar _chr)
{
static QChar * _qchar__chr = 0;
	((KCharSelectTable*) QtSupport::getQt(env, obj))->setChar((QChar&) * (QChar *) QtSupport::toQChar(env, _chr, &_qchar__chr));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_setTableNum(JNIEnv *env, jobject obj, jint _tableNum)
{
	((KCharSelectTable*) QtSupport::getQt(env, obj))->setTableNum((int) _tableNum);
	return;
}

JNIEXPORT jchar JNICALL
Java_org_kde_koala_KCharSelectTable_chr(JNIEnv *env, jobject obj)
{
	QChar  _qchar;
	_qchar = ((KCharSelectTable*) QtSupport::getQt(env, obj))->chr();
	return (jchar) QtSupport::fromQChar(env, (QChar *) &_qchar);
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KCharSelectTable_paintCell(JNIEnv *env, jobject obj, j p, jint row, jint col)
//{
//	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_paintCell((class QPainter*) p, (int) row, (int) col);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_mousePressEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_mousePressEvent((QMouseEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_mouseDoubleClickEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_mouseDoubleClickEvent((QMouseEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_mouseReleaseEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_mouseReleaseEvent((QMouseEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_mouseMoveEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_mouseMoveEvent((QMouseEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_keyPressEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_keyPressEvent((QKeyEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_gotoLeft(JNIEnv *env, jobject obj)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_gotoLeft();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_gotoRight(JNIEnv *env, jobject obj)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_gotoRight();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_gotoUp(JNIEnv *env, jobject obj)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_gotoUp();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCharSelectTable_gotoDown(JNIEnv *env, jobject obj)
{
	((KCharSelectTableJBridge*) QtSupport::getQt(env, obj))->protected_gotoDown();
	return;
}

