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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQFont;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPushButton;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQLabel;
import org.trinitydesktop.qt.TQWidget;

/**

 This class provides a widget with a lineedit and a button, which invokes
 a font dialog (TDEFontDialog).
 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 tdefontrequester.png "KDE Font Requester"
  See {@link TDEFontRequesterSignals} for signals emitted by TDEFontRequester
		@author Nadeem Hasan <nhasan@kde.org>

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

*/
public class TDEFontRequester extends TQWidget  {
	protected TDEFontRequester(Class dummy){super((Class) null);}
	public native TQMetaObject 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 TDEFontRequester(TQWidget parent, String name, boolean onlyFixed) {
		super((Class) null);
		newTDEFontRequester(parent,name,onlyFixed);
	}
	private native void newTDEFontRequester(TQWidget parent, String name, boolean onlyFixed);
	public TDEFontRequester(TQWidget parent, String name) {
		super((Class) null);
		newTDEFontRequester(parent,name);
	}
	private native void newTDEFontRequester(TQWidget parent, String name);
	public TDEFontRequester(TQWidget parent) {
		super((Class) null);
		newTDEFontRequester(parent);
	}
	private native void newTDEFontRequester(TQWidget parent);
	public TDEFontRequester() {
		super((Class) null);
		newTDEFontRequester();
	}
	private native void newTDEFontRequester();
	/**
				@return The currently selected font in the requester.

		@short
	*/
	public native TQFont 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 TQLabel label();
	/**
				@return Pointer to the pushbutton in the widget.

		@short
	*/
	public native TQPushButton 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(TQFont font, boolean onlyFixed);
	public native void setFont(TQFont 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();
}
