/***************************************************************************
                            KDateWidget.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, 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.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 This widget can be used to display or allow user selection of a date.

 See {@link KDateWidgetSignals} for signals emitted by KDateWidget.

 See {@link KDateWidgetEventHandling} for event handlers to override in subclasses of KDateWidget.

 @version $Id: KDateWidget.java,v 1.2 2002/01/31 04:48:56 rdale Exp $

 @short A pushbutton to display or allow user selection of a date.

*/
public class KDateWidget extends QWidget  {
	protected KDateWidget(Class dummy){super((Class) null);}

	private native void newKDateWidget( QWidget parent, String name);

/** 
 Constructs a date selection widget.
   
*/
	public KDateWidget( QWidget parent, String name) {
		super((Class) null);
		newKDateWidget( parent, name);
	}
	private native void newKDateWidget();
	public KDateWidget() {
		super((Class) null);
		newKDateWidget();
	}
	private native void newKDateWidget( Calendar date, QWidget parent, String name);

/** 
 Constructs a date selection widget with the initial date set to <code>date.</code>
   
*/
	public KDateWidget( Calendar date, QWidget parent, String name) {
		super((Class) null);
		newKDateWidget( date, parent, name);
	}
	private native void newKDateWidget( Calendar date);
	public KDateWidget( Calendar date) {
		super((Class) null);
		newKDateWidget( date);
	}

/** 
 Destructs the date selection widget.
   
*/
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Returns the currently selected date.
   
*/
	public native Calendar date();

/** 
 Changes the selected date to <code>date.</code>
   
*/
	public native void setDate( Calendar date);
	protected native void init();
	protected native void slotDateChanged();
}
