diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QRangeControl.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QRangeControl.cpp | 236 |
1 files changed, 236 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QRangeControl.cpp b/qtjava/javalib/qtjava/QRangeControl.cpp new file mode 100644 index 00000000..709c2cf7 --- /dev/null +++ b/qtjava/javalib/qtjava/QRangeControl.cpp @@ -0,0 +1,236 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <qrangecontrol.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/QRangeControl.h> + +class QRangeControlJBridge : public QRangeControl +{ +public: + QRangeControlJBridge() : QRangeControl() {}; + QRangeControlJBridge(int arg1,int arg2,int arg3,int arg4,int arg5) : QRangeControl(arg1,arg2,arg3,arg4,arg5) {}; + int protected_positionFromValue(int arg1,int arg2) { + return (int) QRangeControl::positionFromValue(arg1,arg2); + } + int protected_valueFromPosition(int arg1,int arg2) { + return (int) QRangeControl::valueFromPosition(arg1,arg2); + } + void protected_directSetValue(int arg1) { + QRangeControl::directSetValue(arg1); + return; + } + int protected_prevValue() { + return (int) QRangeControl::prevValue(); + } + void protected_valueChange() { + QRangeControl::valueChange(); + return; + } + void protected_rangeChange() { + QRangeControl::rangeChange(); + return; + } + void protected_stepChange() { + QRangeControl::stepChange(); + return; + } + ~QRangeControlJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_addLine(JNIEnv* env, jobject obj) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->addLine(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_addPage(JNIEnv* env, jobject obj) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->addPage(); + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_bound(JNIEnv* env, jobject obj, jint arg1) +{ + jint xret = (jint) ((QRangeControl*) QtSupport::getQt(env, obj))->bound((int) arg1); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_directSetValue(JNIEnv* env, jobject obj, jint val) +{ + ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_directSetValue((int) val); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_qt_QRangeControl_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (QRangeControl*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QRangeControl_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_lineStep(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QRangeControl*) QtSupport::getQt(env, obj))->lineStep(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_maxValue(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QRangeControl*) QtSupport::getQt(env, obj))->maxValue(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_minValue(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QRangeControl*) QtSupport::getQt(env, obj))->minValue(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_newQRangeControl__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QRangeControlJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_newQRangeControl__IIIII(JNIEnv* env, jobject obj, jint minValue, jint maxValue, jint lineStep, jint pageStep, jint value) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new QRangeControlJBridge((int) minValue, (int) maxValue, (int) lineStep, (int) pageStep, (int) value)); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_pageStep(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QRangeControl*) QtSupport::getQt(env, obj))->pageStep(); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_positionFromValue(JNIEnv* env, jobject obj, jint val, jint space) +{ + jint xret = (jint) ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_positionFromValue((int) val, (int) space); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_prevValue(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_prevValue(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_rangeChange(JNIEnv* env, jobject obj) +{ + ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_rangeChange(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_setMaxValue(JNIEnv* env, jobject obj, jint minVal) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->setMaxValue((int) minVal); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_setMinValue(JNIEnv* env, jobject obj, jint minVal) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->setMinValue((int) minVal); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_setRange(JNIEnv* env, jobject obj, jint minValue, jint maxValue) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->setRange((int) minValue, (int) maxValue); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_setSteps(JNIEnv* env, jobject obj, jint line, jint page) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->setSteps((int) line, (int) page); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_setValue(JNIEnv* env, jobject obj, jint arg1) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->setValue((int) arg1); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_stepChange(JNIEnv* env, jobject obj) +{ + ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_stepChange(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_subtractLine(JNIEnv* env, jobject obj) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->subtractLine(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_subtractPage(JNIEnv* env, jobject obj) +{ + ((QRangeControl*) QtSupport::getQt(env, obj))->subtractPage(); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QRangeControl_valueChange(JNIEnv* env, jobject obj) +{ + ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_valueChange(); + return; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_valueFromPosition(JNIEnv* env, jobject obj, jint pos, jint space) +{ + jint xret = (jint) ((QRangeControlJBridge*) QtSupport::getQt(env, obj))->protected_valueFromPosition((int) pos, (int) space); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QRangeControl_value(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((QRangeControl*) QtSupport::getQt(env, obj))->value(); + return xret; +} + |