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

import org.kde.qt.Qt;
import org.kde.qt.QColor;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPoint;
import org.kde.qt.QDragEnterEvent;
import org.kde.qt.QPainter;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QDropEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QResizeEvent;
import org.kde.qt.QGridView;

/**

 A table of editable color cells.
 See {@link KColorCellsSignals} for signals emitted by KColorCells
		@author Martin Jones <mjones@kde.org>

		@short    A table of editable color cells.

*/
public class KColorCells extends QGridView  {
	protected KColorCells(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	public KColorCells(QWidget parent, int rows, int cols) {
		super((Class) null);
		newKColorCells(parent,rows,cols);
	}
	private native void newKColorCells(QWidget parent, int rows, int cols);
	public native void setColor(int colNum, QColor col);
	public native QColor color(int indx);
	public native int numCells();
	public native void setShading(boolean _shade);
	public native void setAcceptDrags(boolean _acceptDrags);
	public native int getSelected();
	public native void paintCell(QPainter painter, int row, int col);
	protected native void resizeEvent(QResizeEvent arg1);
	protected native void mouseReleaseEvent(QMouseEvent arg1);
	protected native void mousePressEvent(QMouseEvent arg1);
	protected native void mouseMoveEvent(QMouseEvent arg1);
	protected native void dragEnterEvent(QDragEnterEvent arg1);
	protected native void dropEvent(QDropEvent arg1);
	protected native void mouseDoubleClickEvent(QMouseEvent arg1);
	protected native int posToCell(QPoint pos, boolean ignoreBorders);
	protected native int posToCell(QPoint pos);
	/** 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();
}
