KCharSelect Class Reference
A Widget which allows the user to select a character of a specified font in a tableCharacter-Selection Widget. More...
#include <kcharselect.h>
Inheritance diagram for KCharSelect:

Signals | |
void | highlighted (const QChar &c) |
void | highlighted () |
void | activated (const QChar &c) |
void | activated () |
void | fontChanged (const QString &_font) |
void | focusItemChanged () |
void | focusItemChanged (const QChar &c) |
void | doubleClicked () |
Public Member Functions | |
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 |
Protected Slots | |
void | fontSelected (const QString &_font) |
void | tableChanged (int _value) |
void | charHighlighted (const QChar &c) |
void | charHighlighted () |
void | charActivated (const QChar &c) |
void | charActivated () |
void | charFocusItemChanged () |
void | charFocusItemChanged (const QChar &c) |
void | charTableUp () |
void | charTableDown () |
void | slotDoubleClicked () |
void | slotUnicodeEntered () |
void | slotUpdateUnicode (const QChar &c) |
Protected Member Functions | |
virtual void | fillFontCombo () |
virtual void | virtual_hook (int id, void *data) |
Static Protected Member Functions | |
static void | cleanupFontDatabase () |
Protected Attributes | |
QComboBox * | fontCombo |
QSpinBox * | tableSpinBox |
KCharSelectTable * | charTable |
QStringList | fontList |
Static Protected Attributes | |
static QFontDatabase * | fontDataBase = 0 |
Properties | |
QString | fontFamily |
int | tableNum |
bool | fontComboEnabled |
bool | tableSpinBoxEnabled |
Detailed Description
A Widget which allows the user to select a character of a specified font in a tableCharacter-Selection Widget.You can specify the font whose 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 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().
- Version:
- Id
- kcharselect.h,v 1.26 2004/06/01 15:58:51 waba Exp
- Author:
- Reginald Stadlbauer <reggie@kde.org>
Definition at line 135 of file kcharselect.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 363 of file kcharselect.cpp. References setFont(), setTableNum(), and KDialog::spacingHint(). |
Member Function Documentation
|
Reimplemented.
Definition at line 438 of file kcharselect.cpp. |
|
Sets the font which is displayed to
Definition at line 444 of file kcharselect.cpp. References endl(), kdWarning(), and KCharSelectTable::setFont(). Referenced by KCharSelect(). |
|
Sets the currently selected character to
Definition at line 459 of file kcharselect.cpp. References KCharSelectTable::setChar(). |
|
Sets the currently displayed table to
Definition at line 466 of file kcharselect.cpp. References KCharSelectTable::setTableNum(). Referenced by KCharSelect(). |
|
Returns the currently selected character.
Definition at line 174 of file kcharselect.h. References KCharSelectTable::chr(). |
|
Returns the currently displayed font.
Definition at line 179 of file kcharselect.h. |
|
Returns the currently displayed table.
Definition at line 184 of file kcharselect.h. |
|
If
Definition at line 191 of file kcharselect.h. |
|
If Definition at line 199 of file kcharselect.h. |
|
Returns wether the font combobox on the top is enabled or disabled.
Definition at line 207 of file kcharselect.h. |
|
Returns wether the table spinbox on the top is enabled or disabled.
Definition at line 215 of file kcharselect.h. |
The documentation for this class was generated from the following files: