/***************************************************************************
                            qt_QDateEdit.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QDateEdit.h"
}

#include <qdatetimeedit.h>

class QDateEditBridge : public QDateEdit
{
public:
	QDateEditBridge(QWidget* parent, const char* name) : QDateEdit(parent, name) {}
	QDateEditBridge(const QDate& date, QWidget* parent, const char* name) : QDateEdit(date, parent, name) {}
	~QDateEditBridge() {}
	bool  protected_event(QEvent* e) {
		return (bool ) QDateEdit::event(e);
	}
	void protected_stepUp() {
		QDateEdit::stepUp();
		return;
	}
	void protected_stepDown() {
		QDateEdit::stepDown();
		return;
	}
	QString  protected_sectionFormattedText(int sec) {
		return (QString ) QDateEdit::sectionFormattedText(sec);
	}
	void protected_addNumber(int sec, int num) {
		QDateEdit::addNumber(sec, num);
		return;
	}
	void protected_removeLastNumber(int sec) {
		QDateEdit::removeLastNumber(sec);
		return;
	}
	bool  protected_setFocusSection(int s) {
		return (bool ) QDateEdit::setFocusSection(s);
	}
	void protected_setYear(int year) {
		QDateEdit::setYear(year);
		return;
	}
	void protected_setMonth(int month) {
		QDateEdit::setMonth(month);
		return;
	}
	void protected_setDay(int day) {
		QDateEdit::setDay(day);
		return;
	}
	void protected_fix() {
		QDateEdit::fix();
		return;
	}
	 bool  protected_outOfRange(int y, int m, int d) {
		return ( bool ) QDateEdit::outOfRange(y, m, d);
	}
	void protected_updateButtons() {
		QDateEdit::updateButtons();
		return;
	}
	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")) {
			QWidget::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QDateEdit::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QDateEdit::resizeEvent(arg1);
		}
		return;
	}
};

qt_QDateEdit * qt_new_QDateEdit(qt_QWidget * parent, char* name){
	return (qt_QDateEdit *) new QDateEditBridge((QWidget*)parent, (char*)name);
}
qt_QDateEdit * qt_new_QDateEdit1(qt_QDate * date, qt_QWidget * parent, char* name){
	return (qt_QDateEdit *) new QDateEditBridge((QDate&)* (QDate*)date, (QWidget*)parent, (char*)name);
}
void qt_del_QDateEdit( qt_QDateEdit* p ){
	delete (QDateEditBridge*) p;
}
qt_QSize * qt_QDateEdit_sizeHint( qt_QDateEdit* instPointer){
	QSize _s= ((QDateEditBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QDateEdit_minimumSizeHint( qt_QDateEdit* instPointer){
	QSize _s= ((QDateEditBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QDateEdit_setDate( qt_QDateEdit* instPointer,qt_QDate * date){
	((QDateEditBridge*)instPointer)->setDate((QDate&)* (QDate*)date);
	return;
}
qt_QDate * qt_QDateEdit_date( qt_QDateEdit* instPointer){
	QDate _d= ((QDateEditBridge*)instPointer)->date();
	return (qt_QDate *)new QDate(_d.year(),_d.month(),_d.day());
}
void qt_QDateEdit_setOrder( qt_QDateEdit* instPointer,int order){
	((QDateEditBridge*)instPointer)->setOrder((QDateEdit::Order)order);
	return;
}
int qt_QDateEdit_order( qt_QDateEdit* instPointer){
	return (int) ((QDateEditBridge*)instPointer)->order();
}
void qt_QDateEdit_setAutoAdvance( qt_QDateEdit* instPointer,int advance){
	((QDateEditBridge*)instPointer)->setAutoAdvance((bool)advance);
	return;
}
int qt_QDateEdit_autoAdvance( qt_QDateEdit* instPointer){
	return (int) ((QDateEditBridge*)instPointer)->autoAdvance();
}
void qt_QDateEdit_setMinValue( qt_QDateEdit* instPointer,qt_QDate * d){
	((QDateEditBridge*)instPointer)->setMinValue((QDate&)* (QDate*)d);
	return;
}
qt_QDate * qt_QDateEdit_minValue( qt_QDateEdit* instPointer){
	QDate _d= ((QDateEditBridge*)instPointer)->minValue();
	return (qt_QDate *)new QDate(_d.year(),_d.month(),_d.day());
}
void qt_QDateEdit_setMaxValue( qt_QDateEdit* instPointer,qt_QDate * d){
	((QDateEditBridge*)instPointer)->setMaxValue((QDate&)* (QDate*)d);
	return;
}
qt_QDate * qt_QDateEdit_maxValue( qt_QDateEdit* instPointer){
	QDate _d= ((QDateEditBridge*)instPointer)->maxValue();
	return (qt_QDate *)new QDate(_d.year(),_d.month(),_d.day());
}
void qt_QDateEdit_setRange( qt_QDateEdit* instPointer,qt_QDate * min, qt_QDate * max){
	((QDateEditBridge*)instPointer)->setRange((QDate&)* (QDate*)min, (QDate&)* (QDate*)max);
	return;
}
qt_QString * qt_QDateEdit_separator( qt_QDateEdit* instPointer){
	return (qt_QString *)new QString(((QDateEditBridge*)instPointer)->separator());
}
void qt_QDateEdit_setSeparator( qt_QDateEdit* instPointer,qt_QString * s){
	((QDateEditBridge*)instPointer)->setSeparator((QString&)* (QString*)s);
	return;
}
int qt_QDateEdit_event( qt_QDateEdit* instPointer,qt_QEvent * e){
	return (int) ((QDateEditBridge*)instPointer)->protected_event((QEvent*)e);
}
void qt_QDateEdit_stepUp( qt_QDateEdit* instPointer){
	((QDateEditBridge*)instPointer)->protected_stepUp();
	return;
}
void qt_QDateEdit_stepDown( qt_QDateEdit* instPointer){
	((QDateEditBridge*)instPointer)->protected_stepDown();
	return;
}
qt_QString * qt_QDateEdit_sectionFormattedText( qt_QDateEdit* instPointer,int sec){
	return (qt_QString *)new QString(((QDateEditBridge*)instPointer)->protected_sectionFormattedText((int)sec));
}
void qt_QDateEdit_addNumber( qt_QDateEdit* instPointer,int sec, int num){
	((QDateEditBridge*)instPointer)->protected_addNumber((int)sec, (int)num);
	return;
}
void qt_QDateEdit_removeLastNumber( qt_QDateEdit* instPointer,int sec){
	((QDateEditBridge*)instPointer)->protected_removeLastNumber((int)sec);
	return;
}
int qt_QDateEdit_setFocusSection( qt_QDateEdit* instPointer,int s){
	return (int) ((QDateEditBridge*)instPointer)->protected_setFocusSection((int)s);
}
void qt_QDateEdit_setYear( qt_QDateEdit* instPointer,int year){
	((QDateEditBridge*)instPointer)->protected_setYear((int)year);
	return;
}
void qt_QDateEdit_setMonth( qt_QDateEdit* instPointer,int month){
	((QDateEditBridge*)instPointer)->protected_setMonth((int)month);
	return;
}
void qt_QDateEdit_setDay( qt_QDateEdit* instPointer,int day){
	((QDateEditBridge*)instPointer)->protected_setDay((int)day);
	return;
}
void qt_QDateEdit_fix( qt_QDateEdit* instPointer){
	((QDateEditBridge*)instPointer)->protected_fix();
	return;
}
int qt_QDateEdit_outOfRange( qt_QDateEdit* instPointer,int y, int m, int d){
	return (int) ((QDateEditBridge*)instPointer)->protected_outOfRange((int)y, (int)m, (int)d);
}
void qt_QDateEdit_updateButtons( qt_QDateEdit* instPointer){
	((QDateEditBridge*)instPointer)->protected_updateButtons();
	return;
}
