.TH "KFontCombo" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFontCombo \- A combobox that lists the available fonts. A combobox to choose a font.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kfontcombo.h>\fP
.PP
Inherits \fBKComboBox\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKFontCombo\fP (\fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBKFontCombo\fP (const  \fBQStringList\fP &fonts, \fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIConstructor that takes an already initialzed font list. \fP"
.ti -1c
.RI "virtual \fB~KFontCombo\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBsetFonts\fP (const  \fBQStringList\fP &fonts)"
.br
.RI "\fISets the font list. \fP"
.ti -1c
.RI "void \fBsetCurrentFont\fP (const  \fBQString\fP &family)"
.br
.RI "\fISets the currently selected font. \fP"
.ti -1c
.RI "\fBQString\fP \fBcurrentFont\fP () const "
.br
.ti -1c
.RI "void \fBsetBold\fP (bool bold)"
.br
.RI "\fISets the listed fonts to bold or normal. \fP"
.ti -1c
.RI "bool \fBbold\fP () const "
.br
.RI "\fIReturns the current bold status. \fP"
.ti -1c
.RI "void \fBsetItalic\fP (bool bold)"
.br
.RI "\fISets the listed fonts to italic or regular. \fP"
.ti -1c
.RI "bool \fBitalic\fP () const "
.br
.RI "\fIReturns the current italic status. \fP"
.ti -1c
.RI "void \fBsetUnderline\fP (bool bold)"
.br
.RI "\fISets the listed fonts to underlined or not underlined. \fP"
.ti -1c
.RI "bool \fBunderline\fP () const "
.br
.RI "\fIReturns the current underline status. \fP"
.ti -1c
.RI "void \fBsetStrikeOut\fP (bool bold)"
.br
.RI "\fISets the listed fonts to striked out or not. \fP"
.ti -1c
.RI "bool \fBstrikeOut\fP () const "
.br
.RI "\fIReturns the current strike out status. \fP"
.ti -1c
.RI "void \fBsetSize\fP (int size)"
.br
.RI "\fISets the listed fonts' size. \fP"
.ti -1c
.RI "int \fBsize\fP () const "
.br
.RI "\fIReturns the current font size. \fP"
.ti -1c
.RI "virtual void \fBsetCurrentItem\fP (int i)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "bool \fBdisplayFonts\fP ()"
.br
.RI "\fIReturns the user's setting of whether the items should be painted in the respective fonts or not. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBupdateFonts\fP ()"
.br
.RI "\fIUpdated the combo's \fBlistBox\fP() to reflect changes made to the fonts' attributed. \fP"
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKFontListItem\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A combobox that lists the available fonts. A combobox to choose a font. 

The items are painted using the respective font itself, so the user can easily choose a font based on its look. This can be turned off globally if the user wishes so.
.PP
\fBAuthor:\fP
.RS 4
Malte Starostik <malte@kde.org> 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkfontcombo.h\fP,v 1.8.4.1 2003/07/14 02:48:17 bmeyer Exp 
.RE
.PP
.RE
.PP

.PP
Definition at line 37 of file kfontcombo.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFontCombo::KFontCombo (\fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructor. \fBParameters:\fP
.RS 4
\fIparent\fP The parent widget 
.br
\fIname\fP The object name for the widget 
.RE
.PP
Definition at line 163 of file kfontcombo.cpp.
.PP
References KFontChooser::getFontList(), KStdAccel::name(), and setFonts().
.SS "KFontCombo::KFontCombo (const \fBQStringList\fP & fonts, \fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructor that takes an already initialzed font list. \fBParameters:\fP
.RS 4
\fIfonts\fP A list of fonts to show 
.br
\fIparent\fP The parent widget 
.br
\fIname\fP The object name for the widget 
.RE
.PP
Definition at line 172 of file kfontcombo.cpp.
.PP
References KStdAccel::name(), and setFonts().
.SS "KFontCombo::~\fBKFontCombo\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 252 of file kfontcombo.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KFontCombo::setFonts (const \fBQStringList\fP & fonts)"
.PP
Sets the font list. \fBParameters:\fP
.RS 4
\fIfonts\fP Font list to show 
.RE
.PP
Definition at line 179 of file kfontcombo.cpp.
.PP
References QComboBox::clear().
.PP
Referenced by KFontCombo().
.SS "void KFontCombo::setCurrentFont (const \fBQString\fP & family)"
.PP
Sets the currently selected font. \fBParameters:\fP
.RS 4
\fIfamily\fP Font to select. 
.RE
.PP
Definition at line 189 of file kfontcombo.cpp.
.PP
References QComboBox::count(), QString::find(), QString::left(), QString::lower(), KComboBox::setCurrentItem(), and QComboBox::text().
.SS "\fBQString\fP KFontCombo::currentFont () const"
.PP
\fBReturns:\fP
.RS 4
the currently selected font. 
.RE
.PP
Definition at line 230 of file kfontcombo.cpp.
.PP
References QComboBox::currentText().
.SS "void KFontCombo::setBold (bool bold)"
.PP
Sets the listed fonts to bold or normal. \fBParameters:\fP
.RS 4
\fIbold\fP Set to true to display fonts in bold 
.RE
.PP
Definition at line 257 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::bold () const"
.PP
Returns the current bold status. \fBReturns:\fP
.RS 4
true if fonts are bold 
.RE
.PP
Definition at line 265 of file kfontcombo.cpp.
.SS "void KFontCombo::setItalic (bool bold)"
.PP
Sets the listed fonts to italic or regular. \fBParameters:\fP
.RS 4
\fIitalic\fP Set to true to display fonts italic 
.RE
.PP
Definition at line 270 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::italic () const"
.PP
Returns the current italic status. \fBReturns:\fP
.RS 4
True if fonts are italic 
.RE
.PP
Definition at line 278 of file kfontcombo.cpp.
.SS "void KFontCombo::setUnderline (bool bold)"
.PP
Sets the listed fonts to underlined or not underlined. \fBParameters:\fP
.RS 4
\fIunderline\fP Set to true to display fonts underlined 
.RE
.PP
Definition at line 283 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::underline () const"
.PP
Returns the current underline status. \fBReturns:\fP
.RS 4
True if fonts are underlined 
.RE
.PP
Definition at line 291 of file kfontcombo.cpp.
.SS "void KFontCombo::setStrikeOut (bool bold)"
.PP
Sets the listed fonts to striked out or not. \fBParameters:\fP
.RS 4
\fIstrikeOut\fP Set to true to display fonts striked out 
.RE
.PP
Definition at line 296 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::strikeOut () const"
.PP
Returns the current strike out status. \fBReturns:\fP
.RS 4
True if fonts are striked out 
.RE
.PP
Definition at line 304 of file kfontcombo.cpp.
.SS "void KFontCombo::setSize (int size)"
.PP
Sets the listed fonts' size. \fBParameters:\fP
.RS 4
\fIsize\fP Set to the point size to display the fonts in 
.RE
.PP
Definition at line 309 of file kfontcombo.cpp.
.PP
References QFontMetrics::lineSpacing(), QFont::setPointSize(), and updateFonts().
.SS "int KFontCombo::size () const"
.PP
Returns the current font size. \fBReturns:\fP
.RS 4
The point size of the fonts 
.RE
.PP
Definition at line 321 of file kfontcombo.cpp.
.SS "bool KFontCombo::displayFonts ()\fC [static]\fP"
.PP
Returns the user's setting of whether the items should be painted in the respective fonts or not. \fBReturns:\fP
.RS 4
True if the respective fonts are used for painting 
.RE
.PP
Definition at line 338 of file kfontcombo.cpp.
.PP
References KGlobal::config(), and KConfigBase::readBoolEntry().
.SS "void KFontCombo::updateFonts ()\fC [protected]\fP"
.PP
Updated the combo's \fBlistBox\fP() to reflect changes made to the fonts' attributed. Definition at line 326 of file kfontcombo.cpp.
.PP
References QComboBox::listBox().
.PP
Referenced by setBold(), setItalic(), setSize(), setStrikeOut(), and setUnderline().

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