/***************************************************************************
                            KStdAccel.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 <kstdaccel.h>
#include <qstring.h>
#include <qcstring.h>

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_shortcut(JNIEnv *env, jclass objc, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::shortcut((KStdAccel::StdAccel) identifier), "org.kde.koala.KShortcut");
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStdAccel_name(JNIEnv *env, jclass objc, jint identifier)
{
	QString  _qstring;
	_qstring = KStdAccel::name((KStdAccel::StdAccel) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStdAccel_label(JNIEnv *env, jclass objc, jint identifier)
{
	QString  _qstring;
	_qstring = KStdAccel::label((KStdAccel::StdAccel) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStdAccel_whatsThis__I(JNIEnv *env, jclass objc, jint identifier)
{
	QString  _qstring;
	_qstring = KStdAccel::whatsThis((KStdAccel::StdAccel) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_shortcutDefault(JNIEnv *env, jclass objc, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KShortcut (KStdAccel::shortcutDefault((KStdAccel::StdAccel) identifier)), "org.kde.koala.KShortcut", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_shortcutDefault3(JNIEnv *env, jclass objc, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KShortcut (KStdAccel::shortcutDefault3((KStdAccel::StdAccel) identifier)), "org.kde.koala.KShortcut", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_shortcutDefault4(JNIEnv *env, jclass objc, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KShortcut (KStdAccel::shortcutDefault4((KStdAccel::StdAccel) identifier)), "org.kde.koala.KShortcut", TRUE);
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KStdAccel_createAccelActions(JNIEnv *env, jclass objc, jobject arg1)
//{
//	KStdAccel::createAccelActions((KAccelActions&) *(KAccelActions *) QtSupport::getQt(env, arg1));
//	return;
//}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_open(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::open(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_openNew(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::openNew(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_close(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::close(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_save(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::save(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_print(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::print(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_quit(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::quit(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_undo(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::undo(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_redo(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::redo(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_cut(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::cut(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_copy(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::copy(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_paste(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::paste(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_selectAll(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::selectAll(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_deleteWordBack(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::deleteWordBack(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_deleteWordForward(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::deleteWordForward(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_find(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::find(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_findNext(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::findNext(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_findPrev(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::findPrev(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_replace(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::replace(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_zoomIn(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::zoomIn(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_zoomOut(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::zoomOut(), "org.kde.koala.KShortcut");
}

//JNIEXPORT jobject JNICALL
//Java_org_kde_koala_KStdAccel_insert(JNIEnv *env, jclass objc)
//{
//	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::insert(), "org.kde.koala.KShortcut");
//}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_home(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::home(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_end(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::end(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_prior(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::prior(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_next(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::next(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_gotoLine(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::gotoLine(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_addBookmark(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::addBookmark(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_help(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::help(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_completion(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::completion(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_prevCompletion(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::prevCompletion(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_nextCompletion(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::nextCompletion(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_substringCompletion(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::substringCompletion(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_rotateUp(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::rotateUp(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_rotateDown(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::rotateDown(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_popupMenuContext(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::popupMenuContext(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_whatsThis__(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::whatsThis(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_reload(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::reload(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_up(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::up(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_back(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::back(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_forward(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::forward(), "org.kde.koala.KShortcut");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KStdAccel_showMenubar(JNIEnv *env, jclass objc)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KShortcut *) &KStdAccel::showMenubar(), "org.kde.koala.KShortcut");
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStdAccel_action(JNIEnv *env, jclass objc, jint identifier)
{
	QString  _qstring;
	_qstring = KStdAccel::action((KStdAccel::StdAccel) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KStdAccel_description(JNIEnv *env, jclass objc, jint identifier)
{
	QString  _qstring;
	_qstring = KStdAccel::description((KStdAccel::StdAccel) identifier);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KStdAccel_key(JNIEnv *env, jclass objc, jint arg1)
{
	return (jint) KStdAccel::key((KStdAccel::StdAccel) arg1);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KStdAccel_defaultKey(JNIEnv *env, jclass objc, jint accel)
{
	return (jint) KStdAccel::defaultKey((KStdAccel::StdAccel) accel);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KStdAccel_isEqual(JNIEnv *env, jclass objc, jobject pEvent, jint keyQt)
{
	return (jboolean) KStdAccel::isEqual((QKeyEvent*) QtSupport::getQt(env, pEvent), (int) keyQt);
}

