/***************************************************************************
                            kde_KLineEdit.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_KLineEdit.h"
}

#include <klineedit.h>

class KLineEditBridge : public KLineEdit
{
public:
	KLineEditBridge(const QString& string, QWidget* parent, const char* name) : KLineEdit(string, parent, name) {}
	KLineEditBridge(QWidget* parent, const char* name) : KLineEdit(parent, name) {}
	~KLineEditBridge() {}
	 QPopupMenu * protected_createPopupMenu() {
		return ( QPopupMenu *) KLineEdit::createPopupMenu();
	}
	void protected_setCompletedText(const QString& arg1, bool arg2) {
		KLineEdit::setCompletedText(arg1, arg2);
		return;
	}
	void protected_create(WId arg1, bool initializeWindow, bool destroyOldWindow) {
		KLineEdit::create(arg1, initializeWindow, destroyOldWindow);
		return;
	}
	void protected_makeCompletion(const QString& arg1) {
		KLineEdit::makeCompletion(arg1);
		return;
	}
	void protected_slotAboutToShow() {
		KLineEdit::slotAboutToShow();
		return;
	}
	void protected_slotCancelled() {
		KLineEdit::slotCancelled();
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			KLineEdit::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")) {
			QLineEdit::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", e, "QDragMoveEvent")) {
			QLineEdit::dragMoveEvent(e);
		}
		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")) {
			QLineEdit::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			KLineEdit::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imComposeEvent", arg1, "QIMEvent")) {
			QLineEdit::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")) {
			QLineEdit::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			KLineEdit::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragLeaveEvent", e, "QDragLeaveEvent")) {
			QLineEdit::dragLeaveEvent(e);
		}
		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")) {
			QLineEdit::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QLineEdit::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			KLineEdit::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QLineEdit::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QLineEdit::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")) {
			QLineEdit::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")) {
			QLineEdit::resizeEvent(arg1);
		}
		return;
	}
};

kde_KLineEdit * kde_new_KLineEdit(qt_QString * string, qt_QWidget * parent, char* name){
	return (kde_KLineEdit *) new KLineEditBridge((QString&)* (QString*)string, (QWidget*)parent, (char*)name);
}
kde_KLineEdit * kde_new_KLineEdit1(qt_QWidget * parent, char* name){
	return (kde_KLineEdit *) new KLineEditBridge((QWidget*)parent, (char*)name);
}
void kde_del_KLineEdit( kde_KLineEdit* p ){
	delete (KLineEditBridge*) p;
}
void kde_KLineEdit_setURL( kde_KLineEdit* instPointer,kde_KURL* url){
	((KLineEditBridge*)instPointer)->setURL((KURL&)* (KURL*)url);
	return;
}
void kde_KLineEdit_cursorAtEnd( kde_KLineEdit* instPointer){
	((KLineEditBridge*)instPointer)->cursorAtEnd();
	return;
}
void kde_KLineEdit_setCompletionMode( kde_KLineEdit* instPointer,int mode){
	((KLineEditBridge*)instPointer)->setCompletionMode((KGlobalSettings::Completion)mode);
	return;
}
void kde_KLineEdit_setContextMenuEnabled( kde_KLineEdit* instPointer,int showMenu){
	((KLineEditBridge*)instPointer)->setContextMenuEnabled((bool)showMenu);
	return;
}
int kde_KLineEdit_isContextMenuEnabled( kde_KLineEdit* instPointer){
	return (int) ((KLineEditBridge*)instPointer)->isContextMenuEnabled();
}
void kde_KLineEdit_setURLDropsEnabled( kde_KLineEdit* instPointer,int enable){
	((KLineEditBridge*)instPointer)->setURLDropsEnabled((bool)enable);
	return;
}
int kde_KLineEdit_isURLDropsEnabled( kde_KLineEdit* instPointer){
	return (int) ((KLineEditBridge*)instPointer)->isURLDropsEnabled();
}
void kde_KLineEdit_setTrapReturnKey( kde_KLineEdit* instPointer,int trap){
	((KLineEditBridge*)instPointer)->setTrapReturnKey((bool)trap);
	return;
}
int kde_KLineEdit_trapReturnKey( kde_KLineEdit* instPointer){
	return (int) ((KLineEditBridge*)instPointer)->trapReturnKey();
}
kde_KCompletionBox* kde_KLineEdit_completionBox( kde_KLineEdit* instPointer,int create){
	return (kde_KCompletionBox*) ((KLineEditBridge*)instPointer)->completionBox((bool)create);
}
void kde_KLineEdit_setCompletionObject( kde_KLineEdit* instPointer,kde_KCompletion* arg1, int hsig){
	((KLineEditBridge*)instPointer)->setCompletionObject((KCompletion*)arg1, (bool)hsig);
	return;
}
void kde_KLineEdit_rotateText( kde_KLineEdit* instPointer,int arg1){
	((KLineEditBridge*)instPointer)->rotateText((KCompletionBase::KeyBindingType)arg1);
	return;
}
void kde_KLineEdit_setCompletedText( kde_KLineEdit* instPointer,qt_QString * arg1){
	((KLineEditBridge*)instPointer)->setCompletedText((QString&)* (QString*)arg1);
	return;
}
void kde_KLineEdit_setCompletedItems( kde_KLineEdit* instPointer,qt_QStringList* items){
	((KLineEditBridge*)instPointer)->setCompletedItems((QStringList&)* (QStringList*)items);
	return;
}
qt_QPopupMenu* kde_KLineEdit_createPopupMenu( kde_KLineEdit* instPointer){
	return (qt_QPopupMenu*) ((KLineEditBridge*)instPointer)->protected_createPopupMenu();
}
void kde_KLineEdit_setCompletedText1( kde_KLineEdit* instPointer,qt_QString * arg1, int arg2){
	((KLineEditBridge*)instPointer)->protected_setCompletedText((QString&)* (QString*)arg1, (bool)arg2);
	return;
}
void kde_KLineEdit_create( kde_KLineEdit* instPointer,unsigned int arg1, int initializeWindow, int destroyOldWindow){
	((KLineEditBridge*)instPointer)->protected_create((WId)arg1, (bool)initializeWindow, (bool)destroyOldWindow);
	return;
}
void kde_KLineEdit_makeCompletion( kde_KLineEdit* instPointer,qt_QString * arg1){
	((KLineEditBridge*)instPointer)->protected_makeCompletion((QString&)* (QString*)arg1);
	return;
}
void kde_KLineEdit_slotAboutToShow( kde_KLineEdit* instPointer){
	((KLineEditBridge*)instPointer)->protected_slotAboutToShow();
	return;
}
void kde_KLineEdit_slotCancelled( kde_KLineEdit* instPointer){
	((KLineEditBridge*)instPointer)->protected_slotCancelled();
	return;
}
kde_KCompletionBase* kde_KLineEdit_KCompletionBase(kde_KLineEdit* instPointer){
	return (kde_KCompletionBase*) (KCompletionBase *) (KLineEdit *) instPointer;
}
qt_QLineEdit* kde_KLineEdit_QLineEdit(kde_KLineEdit* instPointer){
	return (qt_QLineEdit*) (QLineEdit *) (KLineEdit *) instPointer;
}
