/***************************************************************************
                            KColorCells.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;

/**

 A table of editable color cells.

 See {@link KColorCellsSignals} for signals emitted by KColorCells.

 See {@link KColorCellsEventHandling} for event handlers to override in subclasses of KColorCells.

 @author Martin Jones <mjones@kde.org>

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

 @short 
 A table of editable color cells.
*/
public class KColorCells extends QGridView  {
	protected KColorCells(Class dummy){super((Class) null);}

	private native void newKColorCells( QWidget parent, int rows, int cols);
	public KColorCells( QWidget parent, int rows, int cols) {
		super((Class) null);
		newKColorCells( parent, rows, cols);
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();
	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();
	protected native int posToCell( QPoint pos, boolean ignoreBorders);
	protected native int posToCell( QPoint pos);
}
