org.kde.koala

Class KFontRequester

public class KFontRequester extends 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 KFontRequesterSignals for signals emitted by KFontRequester

Author: Nadeem Hasan

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

Constructor Summary
protected KFontRequester(Class dummy)
KFontRequester(QWidget parent, String name, boolean onlyFixed)
Constructs a font requester widget.
KFontRequester(QWidget parent, String name)
KFontRequester(QWidget parent)
KFontRequester()
Method Summary
QPushButtonbutton()
protected voidbuttonClicked()
StringclassName()
protected voiddisplaySampleText()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
QFontfont()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisFixedOnly()
QLabellabel()
QMetaObjectmetaObject()
StringsampleText()
voidsetFont(QFont font, boolean onlyFixed)
Sets the currently selected font in the requester.
voidsetFont(QFont font)
voidsetSampleText(String text)
Sets the sample text.
voidsetTitle(String title)
Set the title for the widget that will be used in the tooltip and what's this text.
protected voidsetToolTip()
Stringtitle()

Constructor Detail

KFontRequester

protected KFontRequester(Class dummy)

KFontRequester

public KFontRequester(QWidget parent, String name, boolean onlyFixed)
Constructs a font requester widget.

Parameters: parent The parent widget. name The widget name. onlyFixed Only display fonts which have fixed-width character sizes.

UNKNOWN: Constructs a font requester widget.

KFontRequester

public KFontRequester(QWidget parent, String name)

KFontRequester

public KFontRequester(QWidget parent)

KFontRequester

public KFontRequester()

Method Detail

button

public QPushButton button()

Returns: Pointer to the pushbutton in the widget.

UNKNOWN:

buttonClicked

protected void buttonClicked()

className

public String className()

displaySampleText

protected void displaySampleText()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

font

public QFont font()

Returns: The currently selected font in the requester.

UNKNOWN:

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isFixedOnly

public boolean isFixedOnly()

Returns: Returns true if only fixed fonts are displayed.

UNKNOWN:

label

public QLabel label()

Returns: Pointer to the label used for preview.

UNKNOWN:

metaObject

public QMetaObject metaObject()

sampleText

public String sampleText()

Returns: The current text in the sample text input area.

UNKNOWN:

setFont

public void setFont(QFont font, boolean onlyFixed)
Sets the currently selected font in the requester.

Parameters: font The font to select. onlyFixed Display only fixed-width fonts in the font dialog if true, or vice-versa.

UNKNOWN: Sets the currently selected font in the requester.

setFont

public void setFont(QFont font)

setSampleText

public void setSampleText(String text)
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.

Parameters: text The new sample text. The current will be removed.

UNKNOWN: Sets the sample text.

setTitle

public void setTitle(String title)
Set the title for the widget that will be used in the tooltip and what's this text.

Parameters: title The title to be set.

UNKNOWN: Set the title for the widget that will be used in the tooltip and what's this text.

setToolTip

protected void setToolTip()

title

public String title()

Returns: The current title of the widget.

UNKNOWN: