#include <kcharselect.h>
Public Methods | |
| KCharSelect (QWidget *parent, const char *name, const QString &font=QString::null, const QChar &chr= ' ', int tableNum=0) | |
| virtual QSize | sizeHint () const |
| virtual void | setFont (const QString &font) |
| virtual void | setChar (const QChar &chr) |
| virtual void | setTableNum (int tableNum) |
| virtual QChar | chr () const |
| virtual QString | font () const |
| virtual int | tableNum () const |
| virtual void | enableFontCombo (bool e) |
| virtual void | enableTableSpinBox (bool e) |
| virtual bool | isFontComboEnabled () const |
| virtual bool | isTableSpinBoxEnabled () const |
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().
Definition at line 134 of file kcharselect.h.
|
||||||||||||||||||||||||
|
Constructor. |
|
|
Returns the currently selected character. Definition at line 173 of file kcharselect.h. References KCharSelectTable::chr(). |
|
|
If Definition at line 190 of file kcharselect.h. |
|
|
If Definition at line 198 of file kcharselect.h. |
|
|
Returns the currently displayed font. Definition at line 178 of file kcharselect.h. |
|
|
Returns wether the font combobox on the top is enabled or disabled.
Definition at line 206 of file kcharselect.h. |
|
|
Returns wether the table spinbox on the top is enabled or disabled.
Definition at line 214 of file kcharselect.h. |
|
|
Sets the currently selected character to |
|
|
Sets the font which is displayed to |
|
|
Sets the currently displayed table to |
|
|
Reimplemented. |
|
|
Returns the currently displayed table Definition at line 183 of file kcharselect.h. |
1.2.18