|
|
A Widget which allows the user to select a character of a specified font in a table
You can specify the font whoes characters should be displayed via setFont(). 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 chracater the table displayes them. This spinbox also can be enabled or disabled using enableTableSpinBox().
KCharSelect supports keyboard and mouse navigation. Click+Move selects always the character below the mouse cursor. Using the arrow keys the focus mark is moved around and with pressing RETURN or SPACE the cell which contains the focus mark gets selected.
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().
|
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.
QSize |
[const virtual]
Reimplemented.
void |
[virtual]
Sets the font which is displayed to font
void |
[virtual]
Sets the currently selected character to chr.
void |
[virtual]
Sets the currently displayed table to tableNum.
QChar |
[const virtual]
Returns the currently selected character.
QString |
[const virtual]
Returns the currently displayed font.
int |
[const virtual]
Returns the currently displayed table
void |
[virtual]
If e
is set to TRUE, the combobox which allows the user to
select the font which should be displayed is enabled, else
disabled.
void |
[virtual]
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.
bool |
[const virtual]
Returns wether the font combobox on the top is enabled or disabled.
bool |
[const virtual]
Returns wether the table spinbox on the top is enabled or disabled.
void |
[protected virtual]
void |
[protected static]
QComboBox * |
[protected]
QSpinBox * |
[protected]
KCharSelectTable * |
[protected]
QStringList |
[protected]
static QFontDatabase * |
[protected]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[signal]
void |
[signal]
void |
[signal]
void |
[signal]
void |
[signal]
void |
[signal]
void |
[signal]