/***************************************************************************
                            kde_KRuler.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

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

extern "C" {
#include "kde_KRuler.h"
}

#include <kruler.h>

class KRulerBridge : public KRuler
{
public:
	KRulerBridge(QWidget* parent, const char* name) : KRuler(parent, name) {}
	KRulerBridge(Orientation orient, QWidget* parent, const char* name, WFlags f) : KRuler(orient, parent, name, f) {}
	KRulerBridge(Orientation orient, int widgetWidth, QWidget* parent, const char* name, WFlags f) : KRuler(orient, widgetWidth, parent, name, f) {}
	~KRulerBridge() {}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", arg1, "QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", arg1, "QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", arg1, "QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "tabletEvent", arg1, "QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", arg1, "QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imComposeEvent", arg1, "QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", arg1, "QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "enterEvent", arg1, "QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusInEvent", arg1, "QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "moveEvent", arg1, "QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "wheelEvent", arg1, "QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", arg1, "QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imStartEvent", arg1, "QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "closeEvent", arg1, "QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QFrame::resizeEvent(arg1);
		}
		return;
	}
};

kde_KRuler * kde_new_KRuler(qt_QWidget * parent, char* name){
	return (kde_KRuler *) new KRulerBridge((QWidget*)parent, (char*)name);
}
kde_KRuler * kde_new_KRuler1(int orient, qt_QWidget * parent, char* name, int f){
	return (kde_KRuler *) new KRulerBridge((Qt::Orientation)orient, (QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
kde_KRuler * kde_new_KRuler2(int orient, int widgetWidth, qt_QWidget * parent, char* name, int f){
	return (kde_KRuler *) new KRulerBridge((Qt::Orientation)orient, (int)widgetWidth, (QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
void kde_del_KRuler( kde_KRuler* p ){
	delete (KRulerBridge*) p;
}
void kde_KRuler_setMinValue( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setMinValue((int)arg1);
	return;
}
int kde_KRuler_minValue( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->minValue();
}
void kde_KRuler_setMaxValue( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setMaxValue((int)arg1);
	return;
}
int kde_KRuler_maxValue( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->maxValue();
}
void kde_KRuler_setRange( kde_KRuler* instPointer,int min, int max){
	((KRulerBridge*)instPointer)->setRange((int)min, (int)max);
	return;
}
void kde_KRuler_setValue( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setValue((int)arg1);
	return;
}
int kde_KRuler_value( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->value();
}
void kde_KRuler_setTinyMarkDistance( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setTinyMarkDistance((int)arg1);
	return;
}
int kde_KRuler_tinyMarkDistance( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->tinyMarkDistance();
}
void kde_KRuler_setLittleMarkDistance( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setLittleMarkDistance((int)arg1);
	return;
}
int kde_KRuler_littleMarkDistance( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->littleMarkDistance();
}
void kde_KRuler_setMediumMarkDistance( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setMediumMarkDistance((int)arg1);
	return;
}
int kde_KRuler_mediumMarkDistance( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->mediumMarkDistance();
}
void kde_KRuler_setBigMarkDistance( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setBigMarkDistance((int)arg1);
	return;
}
int kde_KRuler_bigMarkDistance( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->bigMarkDistance();
}
void kde_KRuler_setShowTinyMarks( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowTinyMarks((bool)arg1);
	return;
}
int kde_KRuler_showTinyMarks( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showTinyMarks();
}
void kde_KRuler_setShowLittleMarks( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowLittleMarks((bool)arg1);
	return;
}
int kde_KRuler_showLittleMarks( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showLittleMarks();
}
void kde_KRuler_setShowMediumMarks( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowMediumMarks((bool)arg1);
	return;
}
int kde_KRuler_showMediumMarks( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showMediumMarks();
}
void kde_KRuler_setShowBigMarks( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowBigMarks((bool)arg1);
	return;
}
int kde_KRuler_showBigMarks( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showBigMarks();
}
void kde_KRuler_setShowEndMarks( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowEndMarks((bool)arg1);
	return;
}
int kde_KRuler_showEndMarks( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showEndMarks();
}
void kde_KRuler_setShowPointer( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowPointer((bool)arg1);
	return;
}
int kde_KRuler_showPointer( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showPointer();
}
void kde_KRuler_setValuePerLittleMark( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setValuePerLittleMark((int)arg1);
	return;
}
void kde_KRuler_setValuePerMediumMark( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setValuePerMediumMark((int)arg1);
	return;
}
void kde_KRuler_setValuePerBigMark( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setValuePerBigMark((int)arg1);
	return;
}
void kde_KRuler_setShowEndLabel( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setShowEndLabel((bool)arg1);
	return;
}
int kde_KRuler_showEndLabel( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->showEndLabel();
}
void kde_KRuler_setEndLabel( kde_KRuler* instPointer,qt_QString * arg1){
	((KRulerBridge*)instPointer)->setEndLabel((QString&)* (QString*)arg1);
	return;
}
qt_QString * kde_KRuler_endLabel( kde_KRuler* instPointer){
	return (qt_QString *)new QString(((KRulerBridge*)instPointer)->endLabel());
}
void kde_KRuler_setRulerMetricStyle( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setRulerMetricStyle((KRuler::MetricStyle)arg1);
	return;
}
void kde_KRuler_setPixelPerMark( kde_KRuler* instPointer,double rate){
	((KRulerBridge*)instPointer)->setPixelPerMark((double)rate);
	return;
}
double kde_KRuler_pixelPerMark( kde_KRuler* instPointer){
	return (double) ((KRulerBridge*)instPointer)->pixelPerMark();
}
void kde_KRuler_setLength( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->setLength((int)arg1);
	return;
}
int kde_KRuler_length( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->length();
}
void kde_KRuler_setLengthFixed( kde_KRuler* instPointer,int fix){
	((KRulerBridge*)instPointer)->setLengthFixed((bool)fix);
	return;
}
int kde_KRuler_lengthFixed( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->lengthFixed();
}
void kde_KRuler_slideUp( kde_KRuler* instPointer,int count){
	((KRulerBridge*)instPointer)->slideUp((int)count);
	return;
}
void kde_KRuler_slideDown( kde_KRuler* instPointer,int count){
	((KRulerBridge*)instPointer)->slideDown((int)count);
	return;
}
void kde_KRuler_setOffset( kde_KRuler* instPointer,int offset){
	((KRulerBridge*)instPointer)->setOffset((int)offset);
	return;
}
int kde_KRuler_offset( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->offset();
}
int kde_KRuler_endOffset( kde_KRuler* instPointer){
	return (int) ((KRulerBridge*)instPointer)->endOffset();
}
void kde_KRuler_slotNewValue( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->slotNewValue((int)arg1);
	return;
}
void kde_KRuler_slotNewOffset( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->slotNewOffset((int)arg1);
	return;
}
void kde_KRuler_slotEndOffset( kde_KRuler* instPointer,int arg1){
	((KRulerBridge*)instPointer)->slotEndOffset((int)arg1);
	return;
}
