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

import org.kde.qt.Qt;
import org.kde.qt.QFont;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPushButton;
import org.kde.qt.QWidget;
import org.kde.qt.QLabel;
import org.kde.qt.QWidget;

/**

 This class provides a widget with a lineedit and a button, which invokes
 a font dialog (KFontDialog).
 The lineedit provides a preview of the selected font. The preview text can
 be customized. You can also have the font dialog show only the fixed fonts.
 \image html kfontrequester.png "KDE Font Requester"
  See {@link KFontRequesterSignals} for signals emitted by KFontRequester
		@author Nadeem Hasan <nhasan@kde.org>

		@short    This class provides a widget with a lineedit and a button, which invokes  a font dialog (KFontDialog).

*/
public class KFontRequester extends QWidget  {
	protected KFontRequester(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a font requester widget.
			@param parent The parent widget.
			@param name The widget name.
			@param onlyFixed Only display fonts which have fixed-width character
		        sizes.
		     		@short    Constructs a font requester widget.
	*/
	public KFontRequester(QWidget parent, String name, boolean onlyFixed) {
		super((Class) null);
		newKFontRequester(parent,name,onlyFixed);
	}
	private native void newKFontRequester(QWidget parent, String name, boolean onlyFixed);
	public KFontRequester(QWidget parent, String name) {
		super((Class) null);
		newKFontRequester(parent,name);
	}
	private native void newKFontRequester(QWidget parent, String name);
	public KFontRequester(QWidget parent) {
		super((Class) null);
		newKFontRequester(parent);
	}
	private native void newKFontRequester(QWidget parent);
	public KFontRequester() {
		super((Class) null);
		newKFontRequester();
	}
	private native void newKFontRequester();
	/**	
				@return The currently selected font in the requester.
     
		@short
	*/
	public native QFont font();
	/**	
				@return Returns true if only fixed fonts are displayed.
     
		@short
	*/
	public native boolean isFixedOnly();
	/**	
				@return The current text in the sample text input area.
     
		@short
	*/
	public native String sampleText();
	/**	
				@return The current title of the widget.
     
		@short
	*/
	public native String title();
	/**	
				@return Pointer to the label used for preview.
     
		@short
	*/
	public native QLabel label();
	/**	
				@return Pointer to the pushbutton in the widget.
     
		@short
	*/
	public native QPushButton button();
	/**	
		 Sets the currently selected font in the requester.
			@param font The font to select.
			@param onlyFixed Display only fixed-width fonts in the font dialog
		 if <code>true</code>, or vice-versa.
		     		@short    Sets the currently selected font in the requester.
	*/
	public native void setFont(QFont font, boolean onlyFixed);
	public native void setFont(QFont font);
	/**	
		 Sets the sample text.
			 Normally you should not change this
		 text, but it can be better to do this if the default text is
		 too large for the edit area when using the default font of your
		 application. Default text is current font name and size. Setting
		 the text to null will restore the default.
			@param text The new sample text. The current will be removed.
		     		@short    Sets the sample text.
	*/
	public native void setSampleText(String text);
	/**	
		 Set the title for the widget that will be used in the tooltip and
		 what's this text.
			@param title The title to be set.
		     		@short    Set the title for the widget that will be used in the tooltip and  what's this text.
	*/
	public native void setTitle(String title);
	protected native void displaySampleText();
	protected native void setToolTip();
	protected native void buttonClicked();
	/** 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();
}
