//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQColor;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQSize;
import java.util.Calendar;
import org.trinitydesktop.qt.TQPainter;
import org.trinitydesktop.qt.TQFocusEvent;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQMouseEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQResizeEvent;
import org.trinitydesktop.qt.TQWheelEvent;
import org.trinitydesktop.qt.TQGridView;

/**

 Date selection table.
 This is a support class for the KDatePicker class.  It just
 draws the calender table without titles, but could theoretically
 be used as a standalone.
 When a date is selected by the user, it emits a signal:
 dateSelected(Calendar)
 See {@link KDateTableSignals} for signals emitted by KDateTable
		@author Tim Gilman, Mirko Boehm

		@version $Id$

		@short    Date selection table.

*/
public class KDateTable extends TQGridView  {
	protected KDateTable(Class dummy){super((Class) null);}
	public static final int NoBgMode = 0;
	public static final int RectangleMode = 1;
	public static final int CircleMode = 2;

	public native TQMetaObject metaObject();
	public native String className();
	/**
		 The constructor.
		     		@short    The constructor.
	*/
	public KDateTable(TQWidget parent, Calendar date, String name, int f) {
		super((Class) null);
		newKDateTable(parent,date,name,f);
	}
	private native void newKDateTable(TQWidget parent, Calendar date, String name, int f);
	public KDateTable(TQWidget parent, Calendar date, String name) {
		super((Class) null);
		newKDateTable(parent,date,name);
	}
	private native void newKDateTable(TQWidget parent, Calendar date, String name);
	public KDateTable(TQWidget parent, Calendar date) {
		super((Class) null);
		newKDateTable(parent,date);
	}
	private native void newKDateTable(TQWidget parent, Calendar date);
	public KDateTable(TQWidget parent) {
		super((Class) null);
		newKDateTable(parent);
	}
	private native void newKDateTable(TQWidget parent);
	public KDateTable() {
		super((Class) null);
		newKDateTable();
	}
	private native void newKDateTable();
	/**
		 The constructor.
				@short    The constructor.
	*/
	public KDateTable(TQWidget parent, String name, int f) {
		super((Class) null);
		newKDateTable(parent,name,f);
	}
	private native void newKDateTable(TQWidget parent, String name, int f);
	public KDateTable(TQWidget parent, String name) {
		super((Class) null);
		newKDateTable(parent,name);
	}
	private native void newKDateTable(TQWidget parent, String name);
	/**
		 Returns a recommended size for the widget.
		 To save some time, the size of the largest used cell content is
		 calculated in each paintCell() call, since all calculations have
		 to be done there anyway. The size is stored in maxCell. The
		 sizeHint() simply returns a multiple of maxCell.
		     		@short    Returns a recommended size for the widget.
	*/
	public native TQSize sizeHint();
	/**
		 Set the font size of the date table.
		     		@short    Set the font size of the date table.
	*/
	public native void setFontSize(int size);
	/**
		 Select and display this date.
		     		@short    Select and display this date.
	*/
	public native boolean setDate(Calendar arg1);
	public native Calendar getDate();
	/**
		 Enables a popup menu when right clicking on a date.
			 When it's enabled, this object emits a aboutToShowContextMenu signal
		 where you can fill in the menu items.
				@short    Enables a popup menu when right clicking on a date.
	*/
	public native void setPopupMenuEnabled(boolean enable);
	/**
		 Returns if the popup menu is enabled or not
		     		@short    Returns if the popup menu is enabled or not
	*/
	public native boolean popupMenuEnabled();
	/**
		 Makes a given date be painted with a given foregroundColor, and background
		 (a rectangle, or a circle/ellipse) in a given color.
				@short    Makes a given date be painted with a given foregroundColor, and background  (a rectangle, or a circle/ellipse) in a given color.
	*/
	public native void setCustomDatePainting(Calendar date, TQColor fgColor, int bgMode, TQColor bgColor);
	public native void setCustomDatePainting(Calendar date, TQColor fgColor, int bgMode);
	public native void setCustomDatePainting(Calendar date, TQColor fgColor);
	/**
		 Unsets the custom painting of a date so that the date is painted as usual.
				@short    Unsets the custom painting of a date so that the date is painted as usual.
	*/
	public native void unsetCustomDatePainting(Calendar date);
	/**
		 calculate the position of the cell in the matrix for the given date. The result is the 0-based index.
		     		@short    calculate the position of the cell in the matrix for the given date.
	*/
	protected native int posFromDate(Calendar date);
	/**
		 calculate the date that is displayed at a given cell in the matrix. pos is the
		 0-based index in the matrix. Inverse function to posForDate().
		     		@short    calculate the date that is displayed at a given cell in the matrix.
	*/
	protected native Calendar dateFromPos(int pos);
	/**
		 Paint a cell.
		     		@short    Paint a cell.
	*/
	public native void paintCell(TQPainter arg1, int arg2, int arg3);
	/**
		 Handle the resize events.
		     		@short    Handle the resize events.
	*/
	protected native void viewportResizeEvent(TQResizeEvent arg1);
	/**
		 React on mouse clicks that select a date.
		     		@short    React on mouse clicks that select a date.
	*/
	protected native void contentsMousePressEvent(TQMouseEvent arg1);
	protected native void wheelEvent(TQWheelEvent e);
	protected native void keyPressEvent(TQKeyEvent e);
	protected native void focusInEvent(TQFocusEvent e);
	protected native void focusOutEvent(TQFocusEvent e);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
