/***************************************************************************
                            QDateEdit.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, 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.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**
 See {@link QDateEditSignals} for signals emitted by QDateEdit.

 See {@link QDateEditEventHandling} for event handlers to override in subclasses of QDateEdit.

*/
public class QDateEdit extends QDateTimeEditBase  {
	protected QDateEdit(Class dummy){super((Class) null);}

	private native void newQDateEdit( QWidget parent, String name);
	public QDateEdit( QWidget parent, String name) {
		super((Class) null);
		newQDateEdit( parent, name);
	}
	private native void newQDateEdit();
	public QDateEdit() {
		super((Class) null);
		newQDateEdit();
	}
	private native void newQDateEdit( Calendar date, QWidget parent, String name);
	public QDateEdit( Calendar date, QWidget parent, String name) {
		super((Class) null);
		newQDateEdit( date, parent, name);
	}
	private native void newQDateEdit( Calendar date);
	public QDateEdit( Calendar date) {
		super((Class) null);
		newQDateEdit( date);
	}
	protected native void finalize() throws InternalError;
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native void setDate( Calendar date);
	public native Calendar date();
	public native void setOrder( int order);
	public native int order();
	public native void setAutoAdvance( boolean advance);
	public native boolean autoAdvance();
	public native void setMinValue( Calendar d);
	public native Calendar minValue();
	public native void setMaxValue( Calendar d);
	public native Calendar maxValue();
	public native void setRange( Calendar min, Calendar max);
	public native String separator();
	public native void setSeparator( String s);
	public native boolean event( QEvent e);
	public native void stepUp();
	public native void stepDown();
	public native String sectionFormattedText( int sec);
	public native void addNumber( int sec, int num);
	public native void removeLastNumber( int sec);
	public native boolean setFocusSection( int s);
	protected native void setYear( int year);
	protected native void setMonth( int month);
	protected native void setDay( int day);
	protected native void fix();
	protected native boolean outOfRange( int y, int m, int d);
	protected native void updateButtons();
	public static final int DMY = 0;
	public static final int MDY = 1;
	public static final int YMD = 2;
	public static final int YDM = 3;
}
