org.kde.koala

Class KCharSelect

public class KCharSelect extends QVBox

This widget allows the user to select a character of a specified font in a table \image html kcharselect.png "Character Selection Widget" You can specify the font whose characters should be displayed via setFont() or in the constructor. Using enableFontCombo() you can allow the user to choose the font from a combob-box. As only 256 characters are displayed at once in the table, using the spinbox on the top the user can choose starting from which character the table displays them. This spinbox also can be enabled or disabled using enableTableSpinBox(). KCharSelect supports keyboard and mouse navigation. Click+Move always selects the character below the mouse cursor. Using the arrow keys moves the focus mark around and pressing RETURN or SPACE selects the cell which contains the focus mark. To get the current selected character, use the chr() method. You can set the character which should be displayed with setChar() and the table number which should be displayed with setTableNum(). See KCharSelectSignals for signals emitted by KCharSelect

Author: Reginald Stadlbauer

UNKNOWN: Character selection widget.

Constructor Summary
protected KCharSelect(Class dummy)
KCharSelect(QWidget parent, String name, String font, char chr, int tableNum)
Constructor.
KCharSelect(QWidget parent, String name, String font, char chr)
KCharSelect(QWidget parent, String name, String font)
KCharSelect(QWidget parent, String name)
Method Summary
protected voidcharActivated(char c)
protected voidcharActivated()
protected voidcharFocusItemChanged()
protected voidcharFocusItemChanged(char c)
protected voidcharHighlighted(char c)
protected voidcharHighlighted()
protected voidcharTableDown()
protected voidcharTableUp()
charchr()
Returns the currently selected character.
StringclassName()
protected static voidcleanupFontDatabase()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
voidenableFontCombo(boolean e)
If e is set to true, the combobox which allows the user to select the font which should be displayed is enabled, else disabled.
voidenableTableSpinBox(boolean e)
If e is set to true, the spinbox which allows the user to specify which characters of the font should be displayed, is enabled, else disabled.
protected voidfillFontCombo()
protected voidfinalize()
Deletes the wrapped C++ instance
StringfontName()
Returns the currently displayed font.
protected voidfontSelected(String _font)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisFontComboEnabled()
Returns wether the font combobox on the top is enabled or disabled.
booleanisTableSpinBoxEnabled()
Returns wether the table spinbox on the top is enabled or disabled.
QMetaObjectmetaObject()
voidsetChar(char chr)
Sets the currently selected character to chr.
voidsetFont(String font)
Sets the font which is displayed to font
voidsetTableNum(int tableNum)
Sets the currently displayed table to tableNum.
QSizesizeHint()
Reimplemented.
protected voidslotDoubleClicked()
protected voidslotUnicodeEntered()
protected voidslotUpdateUnicode(char c)
protected voidtableChanged(int _value)
inttableNum()
Returns the currently displayed table

Constructor Detail

KCharSelect

protected KCharSelect(Class dummy)

KCharSelect

public KCharSelect(QWidget parent, String name, String font, char chr, int tableNum)
Constructor. font specifies which font should be displayed, chr which character should be selected and tableNum specifies the number of the table which should be displayed.

UNKNOWN: Constructor.

KCharSelect

public KCharSelect(QWidget parent, String name, String font, char chr)

KCharSelect

public KCharSelect(QWidget parent, String name, String font)

KCharSelect

public KCharSelect(QWidget parent, String name)

Method Detail

charActivated

protected void charActivated(char c)

charActivated

protected void charActivated()

charFocusItemChanged

protected void charFocusItemChanged()

charFocusItemChanged

protected void charFocusItemChanged(char c)

charHighlighted

protected void charHighlighted(char c)

charHighlighted

protected void charHighlighted()

charTableDown

protected void charTableDown()

charTableUp

protected void charTableUp()

chr

public char chr()
Returns the currently selected character.

UNKNOWN: Returns the currently selected character.

className

public String className()

cleanupFontDatabase

protected static void cleanupFontDatabase()

dispose

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

enableFontCombo

public void enableFontCombo(boolean e)
If e is set to true, the combobox which allows the user to select the font which should be displayed is enabled, else disabled.

UNKNOWN: If e is set to true, the combobox which allows the user to select the font which should be displayed is enabled, else disabled.

enableTableSpinBox

public void enableTableSpinBox(boolean e)
If e is set to true, the spinbox which allows the user to specify which characters of the font should be displayed, is enabled, else disabled.

UNKNOWN:

fillFontCombo

protected void fillFontCombo()

finalize

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

fontName

public String fontName()
Returns the currently displayed font.

UNKNOWN: Returns the currently displayed font.

fontSelected

protected void fontSelected(String _font)

isDisposed

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

isFontComboEnabled

public boolean isFontComboEnabled()
Returns wether the font combobox on the top is enabled or disabled.

See Also: KCharSelect

UNKNOWN: Returns wether the font combobox on the top is enabled or disabled.

isTableSpinBoxEnabled

public boolean isTableSpinBoxEnabled()
Returns wether the table spinbox on the top is enabled or disabled.

See Also: KCharSelect

UNKNOWN: Returns wether the table spinbox on the top is enabled or disabled.

metaObject

public QMetaObject metaObject()

setChar

public void setChar(char chr)
Sets the currently selected character to chr.

UNKNOWN: Sets the currently selected character to chr.

setFont

public void setFont(String font)
Sets the font which is displayed to font

UNKNOWN: Sets the font which is displayed to font

setTableNum

public void setTableNum(int tableNum)
Sets the currently displayed table to tableNum.

UNKNOWN: Sets the currently displayed table to tableNum.

sizeHint

public QSize sizeHint()
Reimplemented.

UNKNOWN: Reimplemented.

slotDoubleClicked

protected void slotDoubleClicked()

slotUnicodeEntered

protected void slotUnicodeEntered()

slotUpdateUnicode

protected void slotUpdateUnicode(char c)

tableChanged

protected void tableChanged(int _value)

tableNum

public int tableNum()
Returns the currently displayed table

UNKNOWN: Returns the currently displayed table