.TH "KCharSelect" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KCharSelect \- A Widget which allows the user to select a character of a specified font in a table Character-Selection Widget.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kcharselect.h>\fP
.PP
Inherits \fBQVBox\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBhighlighted\fP (const  \fBQChar\fP &c)"
.br
.ti -1c
.RI "void \fBhighlighted\fP ()"
.br
.ti -1c
.RI "void \fBactivated\fP (const  \fBQChar\fP &c)"
.br
.ti -1c
.RI "void \fBactivated\fP ()"
.br
.ti -1c
.RI "void \fBfontChanged\fP (const  \fBQString\fP &_font)"
.br
.ti -1c
.RI "void \fBfocusItemChanged\fP ()"
.br
.ti -1c
.RI "void \fBfocusItemChanged\fP (const  \fBQChar\fP &c)"
.br
.ti -1c
.RI "void \fBdoubleClicked\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKCharSelect\fP (\fBQWidget\fP *parent, const  char *name, const  \fBQString\fP &font=QString::null, const  \fBQChar\fP &chr= ' ', int tableNum=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "virtual \fBQSize\fP \fBsizeHint\fP () const "
.br
.RI "\fIReimplemented. \fP"
.ti -1c
.RI "virtual void \fBsetFont\fP (const  \fBQString\fP &font)"
.br
.RI "\fISets the font which is displayed to \fCfont\fP. \fP"
.ti -1c
.RI "virtual void \fBsetChar\fP (const  \fBQChar\fP &chr)"
.br
.RI "\fISets the currently selected character to \fCchr\fP. \fP"
.ti -1c
.RI "virtual void \fBsetTableNum\fP (int tableNum)"
.br
.RI "\fISets the currently displayed table to \fCtableNum\fP. \fP"
.ti -1c
.RI "virtual \fBQChar\fP \fBchr\fP () const "
.br
.RI "\fIReturns the currently selected character. \fP"
.ti -1c
.RI "virtual \fBQString\fP \fBfont\fP () const "
.br
.RI "\fIReturns the currently displayed font. \fP"
.ti -1c
.RI "virtual int \fBtableNum\fP () const "
.br
.RI "\fIReturns the currently displayed table. \fP"
.ti -1c
.RI "virtual void \fBenableFontCombo\fP (bool e)"
.br
.RI "\fIIf \fCe\fP is set to TRUE, the combobox which allows the user to select the font which should be displayed is enabled, else disabled. \fP"
.ti -1c
.RI "virtual void \fBenableTableSpinBox\fP (bool e)"
.br
.RI "\fIIf \fCe\fP is set to TRUE, the spinbox which allows the user to specify which characters of the font should be displayed, is enabled, else disabled. \fP"
.ti -1c
.RI "virtual bool \fBisFontComboEnabled\fP () const "
.br
.RI "\fIReturns wether the font combobox on the top is enabled or disabled. \fP"
.ti -1c
.RI "virtual bool \fBisTableSpinBoxEnabled\fP () const "
.br
.RI "\fIReturns wether the table spinbox on the top is enabled or disabled. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBfontSelected\fP (const  \fBQString\fP &_font)"
.br
.ti -1c
.RI "void \fBtableChanged\fP (int _value)"
.br
.ti -1c
.RI "void \fBcharHighlighted\fP (const  \fBQChar\fP &c)"
.br
.ti -1c
.RI "void \fBcharHighlighted\fP ()"
.br
.ti -1c
.RI "void \fBcharActivated\fP (const  \fBQChar\fP &c)"
.br
.ti -1c
.RI "void \fBcharActivated\fP ()"
.br
.ti -1c
.RI "void \fBcharFocusItemChanged\fP ()"
.br
.ti -1c
.RI "void \fBcharFocusItemChanged\fP (const  \fBQChar\fP &c)"
.br
.ti -1c
.RI "void \fBcharTableUp\fP ()"
.br
.ti -1c
.RI "void \fBcharTableDown\fP ()"
.br
.ti -1c
.RI "void \fBslotDoubleClicked\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBfillFontCombo\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Static Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBcleanupFontDatabase\fP ()"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBQComboBox\fP * \fBfontCombo\fP"
.br
.ti -1c
.RI "\fBQSpinBox\fP * \fBtableSpinBox\fP"
.br
.ti -1c
.RI "\fBKCharSelectTable\fP * \fBcharTable\fP"
.br
.ti -1c
.RI "\fBQStringList\fP \fBfontList\fP"
.br
.in -1c
.SS "Static Protected Attributes"

.in +1c
.ti -1c
.RI "\fBQFontDatabase\fP * \fBfontDataBase\fP = 0"
.br
.in -1c
.SH "Detailed Description"
.PP 
A Widget which allows the user to select a character of a specified font in a table Character-Selection Widget. 

You can specify the font whoes characters should be displayed via \fBsetFont\fP(). Using \fBenableFontCombo\fP() 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 \fBenableTableSpinBox\fP().
.PP
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.
.PP
To get the current selected character, use the \fBchr\fP() method. You can set the character which should be displayed with \fBsetChar\fP() and the table number which should be displayed with \fBsetTableNum\fP().
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkcharselect.h\fP,v 1.21 2002/03/04 00:51:46 lunakl Exp 
.RE
.PP
.RE
.PP
\fBAuthor:\fP
.RS 4
Reginald Stadlbauer <reggie@kde.org> 
.RE
.PP

.PP
Definition at line 134 of file kcharselect.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KCharSelect::KCharSelect (\fBQWidget\fP * parent, const char * name, const \fBQString\fP & font = QString::null, const \fBQChar\fP & chr = ' ', int tableNum = 0)"
.PP
Constructor. \fCfont\fP specifies which font should be displayed, \fCchr\fP which character should be selected and \fCtableNum\fP specifies the number of the table which should be displayed. Definition at line 333 of file kcharselect.cpp.
.PP
References QString::isEmpty(), KStdAccel::name(), QLabel::setAlignment(), setFont(), QHBox::setSpacing(), setTableNum(), and KDialog::spacingHint().
.SH "Member Function Documentation"
.PP 
.SS "\fBQSize\fP KCharSelect::sizeHint () const\fC [virtual]\fP"
.PP
Reimplemented. Definition at line 390 of file kcharselect.cpp.
.SS "void KCharSelect::setFont (const \fBQString\fP & font)\fC [virtual]\fP"
.PP
Sets the font which is displayed to \fCfont\fP. Definition at line 396 of file kcharselect.cpp.
.PP
References QComboBox::setCurrentItem(), and KCharSelectTable::setFont().
.PP
Referenced by KCharSelect().
.SS "void KCharSelect::setChar (const \fBQChar\fP & chr)\fC [virtual]\fP"
.PP
Sets the currently selected character to \fCchr\fP. Definition at line 411 of file kcharselect.cpp.
.PP
References KCharSelectTable::setChar().
.SS "void KCharSelect::setTableNum (int tableNum)\fC [virtual]\fP"
.PP
Sets the currently displayed table to \fCtableNum\fP. Definition at line 417 of file kcharselect.cpp.
.PP
References KCharSelectTable::setTableNum(), and QSpinBox::setValue().
.PP
Referenced by KCharSelect().
.SS "virtual \fBQChar\fP KCharSelect::chr () const\fC [inline, virtual]\fP"
.PP
Returns the currently selected character. Definition at line 173 of file kcharselect.h.
.PP
References KCharSelectTable::chr().
.SS "virtual \fBQString\fP KCharSelect::font () const\fC [inline, virtual]\fP"
.PP
Returns the currently displayed font. Definition at line 178 of file kcharselect.h.
.PP
References QComboBox::currentText().
.SS "virtual int KCharSelect::tableNum () const\fC [inline, virtual]\fP"
.PP
Returns the currently displayed table. Definition at line 183 of file kcharselect.h.
.PP
References QSpinBox::value().
.SS "virtual void KCharSelect::enableFontCombo (bool e)\fC [inline, virtual]\fP"
.PP
If \fCe\fP 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 190 of file kcharselect.h.
.SS "virtual void KCharSelect::enableTableSpinBox (bool e)\fC [inline, virtual]\fP"
.PP
If \fCe\fP 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 198 of file kcharselect.h.
.SS "virtual bool KCharSelect::isFontComboEnabled () const\fC [inline, virtual]\fP"
.PP
Returns wether the font combobox on the top is enabled or disabled. \fBSee also:\fP
.RS 4
\fBenableFontCombo()\fP 
.RE
.PP
Definition at line 206 of file kcharselect.h.
.SS "virtual bool KCharSelect::isTableSpinBoxEnabled () const\fC [inline, virtual]\fP"
.PP
Returns wether the table spinbox on the top is enabled or disabled. \fBSee also:\fP
.RS 4
\fBenableTableSpinBox()\fP 
.RE
.PP
Definition at line 214 of file kcharselect.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
