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

/**

 Widget for color value selection.

 See {@link KValueSelectorSignals} for signals emitted by KValueSelector.

 See {@link KValueSelectorEventHandling} for event handlers to override in subclasses of KValueSelector.

 @author Martin Jones (mjones@kde.org)

 @version $Id: KValueSelector.java,v 1.5 2002/01/31 04:49:03 rdale Exp $
 
 @short 
 Widget for color value selection.
*/
public class KValueSelector extends KSelector  {
	protected KValueSelector(Class dummy){super((Class) null);}

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

/** 
 Constructs a widget for color selection.
   
*/
	public KValueSelector( QWidget parent, String name) {
		super((Class) null);
		newKValueSelector( parent, name);
	}
	private native void newKValueSelector();
	public KValueSelector() {
		super((Class) null);
		newKValueSelector();
	}
	private native void newKValueSelector( int o, QWidget parent, String name);

/** 
 Constructs a widget for color selection with a given orientation
   
*/
	public KValueSelector( int o, QWidget parent, String name) {
		super((Class) null);
		newKValueSelector( o, parent, name);
	}
	private native void newKValueSelector( int o);
	public KValueSelector( int o) {
		super((Class) null);
		newKValueSelector( o);
	}
	public native int hue();
	public native void setHue( int h);
	public native int saturation();
	public native void setSaturation( int s);
	public native void updateContents();

/** 
 Draws the contents of the widget on a pixmap,
 which is used for buffering.
   
*/
	protected native void drawPalette( QPixmap pixmap);

/** 
 Reimplemented from KSelector. The drawing is
 buffered in a pixmap here. As real drawing
 routine, drawPalette() is used.
   
*/
	protected native void drawContents( QPainter painter);
}
