KCharSelect Class Reference
#include <kcharselect.h>
Inheritance diagram for KCharSelect:

Detailed Description
Character selection widget.This widget allows the user to select a character of a specified font in a table

Character Selection Widget
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().
Definition at line 140 of file kcharselect.h.
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) | |
~KCharSelect () | |
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 |
Properties | |
QString | fontFamily [] |
int | tableNum [] |
bool | fontComboEnabled [] |
bool | tableSpinBoxEnabled [] |
Constructor & Destructor Documentation
KCharSelect::KCharSelect | ( | QWidget * | parent, | |
const char * | name, | |||
const QString & | font = QString::null , |
|||
const QChar & | chr = ' ' , |
|||
int | tableNum = 0 | |||
) |
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.
Definition at line 376 of file kcharselect.cpp.
Member Function Documentation
QSize KCharSelect::sizeHint | ( | ) | const [virtual] |
void KCharSelect::setFont | ( | const QString & | font | ) | [virtual] |
void KCharSelect::setChar | ( | const QChar & | chr | ) | [virtual] |
void KCharSelect::setTableNum | ( | int | tableNum | ) | [virtual] |
virtual QChar KCharSelect::chr | ( | ) | const [inline, virtual] |
virtual QString KCharSelect::font | ( | ) | const [inline, virtual] |
virtual int KCharSelect::tableNum | ( | ) | const [inline, virtual] |
virtual void KCharSelect::enableFontCombo | ( | bool | e | ) | [inline, 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.
Definition at line 197 of file kcharselect.h.
virtual void KCharSelect::enableTableSpinBox | ( | bool | e | ) | [inline, 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.
Definition at line 205 of file kcharselect.h.
virtual bool KCharSelect::isFontComboEnabled | ( | ) | const [inline, virtual] |
Returns wether the font combobox on the top is enabled or disabled.
- See also:
- enableFontCombo()
Definition at line 213 of file kcharselect.h.
virtual bool KCharSelect::isTableSpinBoxEnabled | ( | ) | const [inline, virtual] |
Returns wether the table spinbox on the top is enabled or disabled.
- See also:
- enableTableSpinBox()
Definition at line 221 of file kcharselect.h.
The documentation for this class was generated from the following files: