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

/**
 See {@link KFileFilterComboSignals} for signals emitted by KFileFilterCombo.

 See {@link KFileFilterComboEventHandling} for event handlers to override in subclasses of KFileFilterCombo.

*/
public class KFileFilterCombo extends KComboBox  {
	protected KFileFilterCombo(Class dummy){super((Class) null);}

	private native void newKFileFilterCombo( QWidget parent, String name);
	public KFileFilterCombo( QWidget parent, String name) {
		super((Class) null);
		newKFileFilterCombo( parent, name);
	}
	private native void newKFileFilterCombo();
	public KFileFilterCombo() {
		super((Class) null);
		newKFileFilterCombo();
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();
	public native void setFilter( String filter);

/** 

*/
	public native String currentFilter();

/** 
 Sets a list of mimetypes.
 If <code>defaultType</code> is set, it will be set as the current item.
 Otherwise, a first item showing all the mimetypes will be created.
     
*/
	public native void setMimeFilter( String[] types, String defaultType);

/** 

*/
	public native boolean showsAllTypes();

/** 
 This method allows you to set a default-filter, that is used when an
 empty filter is set. Make sure you call this before calling
 {@link #setFilter}.

 By default, this is set to i18n("|All Files")

*/
	public native void setDefaultFilter( String filter);

/** 

*/
	public native String defaultFilter();
	public native boolean eventFilter( QObject o, QEvent e);
}
