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

/**

 Combobox for colors.
 
 See {@link KColorComboSignals} for signals emitted by KColorCombo.

 See {@link KColorComboEventHandling} for event handlers to override in subclasses of KColorCombo.

 @short 
 Combobox for colors.
*/
public class KColorCombo extends QComboBox  {
	protected KColorCombo(Class dummy){super((Class) null);}

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

/** 
 Constructs a color combo box.
     
*/
	public KColorCombo( QWidget parent, String name) {
		super((Class) null);
		newKColorCombo( parent, name);
	}
	private native void newKColorCombo( QWidget parent);
	public KColorCombo( QWidget parent) {
		super((Class) null);
		newKColorCombo( parent);
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Selects the color <code>col.</code>
     
*/
	public native void setColor( QColor col);

/**  
 Returns the currently selected color. 

*/
	public native QColor color();

/** 
 Clear the colour list and don't show it, till the next setColor() call

*/
	public native void showEmptyList();
}
