org.kde.koala

Class KFontCombo

public class KFontCombo extends KComboBox

The items are painted using the respective font itself, so the user can easily choose a font based on its look. This can be turned off globally if the user wishes so.

Author: Malte Starostik

UNKNOWN: A combobox that lists the available fonts.

Constructor Summary
protected KFontCombo(Class dummy)
KFontCombo(QWidget parent, String name)
Constructor
KFontCombo(QWidget parent)
KFontCombo(String[] fonts, QWidget parent, String name)
Constructor that takes an already initialzed font list
KFontCombo(String[] fonts, QWidget parent)
Method Summary
booleanbold()
Returns the current bold status.
StringclassName()
StringcurrentFont()
static booleandisplayFonts()
Returns the user's setting of whether the items should be painted in the respective fonts or not
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanitalic()
Returns the current italic status
QMetaObjectmetaObject()
intpointSize()
Returns the current font size
voidsetBold(boolean bold)
Sets the listed fonts to bold or normal.
voidsetCurrentFont(String family)
Sets the currently selected font.
voidsetCurrentItem(int i)
voidsetFonts(String[] fonts)
Sets the font list.
voidsetItalic(boolean italic)
Sets the listed fonts to italic or regular.
voidsetSize(int size)
Sets the listed fonts' size
voidsetStrikeOut(boolean strikeOut)
Sets the listed fonts to striked out or not
voidsetUnderline(boolean underline)
Sets the listed fonts to underlined or not underlined
protected voidslotModified(int i)
Listens to highlighted(int)
booleanstrikeOut()
Returns the current strike out status
booleanunderline()
Returns the current underline status
protected voidupdateFonts()
Updated the combo's listBox() to reflect changes made to the fonts' attributed

Constructor Detail

KFontCombo

protected KFontCombo(Class dummy)

KFontCombo

public KFontCombo(QWidget parent, String name)
Constructor

Parameters: parent The parent widget name The object name for the widget

UNKNOWN: Constructor

KFontCombo

public KFontCombo(QWidget parent)

KFontCombo

public KFontCombo(String[] fonts, QWidget parent, String name)
Constructor that takes an already initialzed font list

Parameters: fonts A list of fonts to show parent The parent widget name The object name for the widget

UNKNOWN: Constructor that takes an already initialzed font list

KFontCombo

public KFontCombo(String[] fonts, QWidget parent)

Method Detail

bold

public boolean bold()
Returns the current bold status.

Returns: true if fonts are bold

UNKNOWN: Returns the current bold status.

className

public String className()

currentFont

public String currentFont()

Returns: the currently selected font.

UNKNOWN:

displayFonts

public static boolean displayFonts()
Returns the user's setting of whether the items should be painted in the respective fonts or not

Returns: True if the respective fonts are used for painting

UNKNOWN: Returns the user's setting of whether the items should be painted in the respective fonts or not

dispose

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

finalize

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

isDisposed

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

italic

public boolean italic()
Returns the current italic status

Returns: True if fonts are italic

UNKNOWN: Returns the current italic status

metaObject

public QMetaObject metaObject()

pointSize

public int pointSize()
Returns the current font size

Returns: The point size of the fonts

UNKNOWN: Returns the current font size

setBold

public void setBold(boolean bold)
Sets the listed fonts to bold or normal.

Parameters: bold Set to true to display fonts in bold

UNKNOWN: Sets the listed fonts to bold or normal.

setCurrentFont

public void setCurrentFont(String family)
Sets the currently selected font.

Parameters: family Font to select.

UNKNOWN: Sets the currently selected font.

setCurrentItem

public void setCurrentItem(int i)

setFonts

public void setFonts(String[] fonts)
Sets the font list.

Parameters: fonts Font list to show

UNKNOWN: Sets the font list.

setItalic

public void setItalic(boolean italic)
Sets the listed fonts to italic or regular.

Parameters: italic Set to true to display fonts italic

UNKNOWN: Sets the listed fonts to italic or regular.

setSize

public void setSize(int size)
Sets the listed fonts' size

Parameters: size Set to the point size to display the fonts in

UNKNOWN: Sets the listed fonts' size

setStrikeOut

public void setStrikeOut(boolean strikeOut)
Sets the listed fonts to striked out or not

Parameters: strikeOut Set to true to display fonts striked out

UNKNOWN: Sets the listed fonts to striked out or not

setUnderline

public void setUnderline(boolean underline)
Sets the listed fonts to underlined or not underlined

Parameters: underline Set to true to display fonts underlined

UNKNOWN: Sets the listed fonts to underlined or not underlined

slotModified

protected void slotModified(int i)
Listens to highlighted(int)

UNKNOWN:

strikeOut

public boolean strikeOut()
Returns the current strike out status

Returns: True if fonts are striked out

UNKNOWN: Returns the current strike out status

underline

public boolean underline()
Returns the current underline status

Returns: True if fonts are underlined

UNKNOWN: Returns the current underline status

updateFonts

protected void updateFonts()
Updated the combo's listBox() to reflect changes made to the fonts' attributed

UNKNOWN: Updated the combo's listBox() to reflect changes made to the fonts' attributed