.TH "KFontCombo" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFontCombo \- A combobox that lists the available fonts.  

.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
.ti -1c
.RI "\fBKFontCombo\fP (const \fBQStringList\fP &fonts, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "virtual \fB~KFontCombo\fP ()"
.br
.ti -1c
.RI "void \fBsetFonts\fP (const \fBQStringList\fP &fonts)"
.br
.ti -1c
.RI "void \fBsetCurrentFont\fP (const \fBQString\fP &family)"
.br
.ti -1c
.RI "\fBQString\fP \fBcurrentFont\fP () const "
.br
.ti -1c
.RI "void \fBsetBold\fP (bool bold)"
.br
.ti -1c
.RI "bool \fBbold\fP () const "
.br
.ti -1c
.RI "void \fBsetItalic\fP (bool italic)"
.br
.ti -1c
.RI "bool \fBitalic\fP () const "
.br
.ti -1c
.RI "void \fBsetUnderline\fP (bool underline)"
.br
.ti -1c
.RI "bool \fBunderline\fP () const "
.br
.ti -1c
.RI "void \fBsetStrikeOut\fP (bool strikeOut)"
.br
.ti -1c
.RI "bool \fBstrikeOut\fP () const "
.br
.ti -1c
.RI "void \fBsetSize\fP (int size)"
.br
.ti -1c
.RI "int \fBsize\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetCurrentItem\fP (int i)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBdisplayFonts\fP ()"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBslotModified\fP (int i)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBupdateFonts\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBfamily\fP"
.br
.ti -1c
.RI "bool \fBbold\fP"
.br
.ti -1c
.RI "bool \fBitalic\fP"
.br
.ti -1c
.RI "bool \fBunderline\fP"
.br
.ti -1c
.RI "bool \fBstrikeOut\fP"
.br
.ti -1c
.RI "int \fBfontSize\fP"
.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. 

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

.PP
Definition at line 35 of file kfontcombo.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFontCombo::KFontCombo (\fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP The parent widget 
.br
\fIname\fP The object name for the widget 
.RE
.PP

.PP
Definition at line 163 of file kfontcombo.cpp.
.PP
References KFontChooser::getFontList(), and setFonts().
.SS "KFontCombo::KFontCombo (const \fBQStringList\fP & fonts, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor that takes an already initialzed font list. 
.PP
\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

.PP
Definition at line 172 of file kfontcombo.cpp.
.PP
References setFonts().
.SS "KFontCombo::~\fBKFontCombo\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Definition at line 260 of file kfontcombo.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KFontCombo::setFonts (const \fBQStringList\fP & fonts)"
.PP
Sets the font list. 
.PP
\fBParameters:\fP
.RS 4
\fIfonts\fP Font list to show 
.RE
.PP

.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. 
.PP
\fBParameters:\fP
.RS 4
\fIfamily\fP Font to select. 
.RE
.PP

.PP
Definition at line 189 of file kfontcombo.cpp.
.PP
References QComboBox::count(), QString::find(), QString::left(), QString::lower(), setCurrentItem(), and QComboBox::text().
.SS "\fBQString\fP KFontCombo::currentFont () const"
.PP
\fBReturns:\fP
.RS 4
the currently selected font. 
.RE
.PP

.PP
Definition at line 237 of file kfontcombo.cpp.
.PP
References QComboBox::currentText().
.SS "void KFontCombo::setBold (bool bold)"
.PP
Sets the listed fonts to bold or normal. 
.PP
\fBParameters:\fP
.RS 4
\fIbold\fP Set to true to display fonts in bold 
.RE
.PP

.PP
Definition at line 265 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::bold () const"
.PP
Returns the current bold status. 
.PP
\fBReturns:\fP
.RS 4
true if fonts are bold 
.RE
.PP

.SS "void KFontCombo::setItalic (bool italic)"
.PP
Sets the listed fonts to italic or regular. 
.PP
\fBParameters:\fP
.RS 4
\fIitalic\fP Set to true to display fonts italic 
.RE
.PP

.PP
Definition at line 278 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::italic () const"
.PP
Returns the current italic status. 
.PP
\fBReturns:\fP
.RS 4
True if fonts are italic 
.RE
.PP

.SS "void KFontCombo::setUnderline (bool underline)"
.PP
Sets the listed fonts to underlined or not underlined. 
.PP
\fBParameters:\fP
.RS 4
\fIunderline\fP Set to true to display fonts underlined 
.RE
.PP

.PP
Definition at line 291 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::underline () const"
.PP
Returns the current underline status. 
.PP
\fBReturns:\fP
.RS 4
True if fonts are underlined 
.RE
.PP

.SS "void KFontCombo::setStrikeOut (bool strikeOut)"
.PP
Sets the listed fonts to striked out or not. 
.PP
\fBParameters:\fP
.RS 4
\fIstrikeOut\fP Set to true to display fonts striked out 
.RE
.PP

.PP
Definition at line 304 of file kfontcombo.cpp.
.PP
References updateFonts().
.SS "bool KFontCombo::strikeOut () const"
.PP
Returns the current strike out status. 
.PP
\fBReturns:\fP
.RS 4
True if fonts are striked out 
.RE
.PP

.SS "void KFontCombo::setSize (int size)"
.PP
Sets the listed fonts' size. 
.PP
\fBParameters:\fP
.RS 4
\fIsize\fP Set to the point size to display the fonts in 
.RE
.PP

.PP
Definition at line 317 of file kfontcombo.cpp.
.PP
References QFontMetrics::lineSpacing(), QFont::setPointSize(), and updateFonts().
.SS "int KFontCombo::size () const"
.PP
Returns the current font size. 
.PP
\fBReturns:\fP
.RS 4
The point size of the fonts 
.RE
.PP

.PP
Definition at line 329 of file kfontcombo.cpp.
.PP
References QFontMetrics::size().
.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. 
.PP
\fBReturns:\fP
.RS 4
True if the respective fonts are used for painting 
.RE
.PP

.PP
Definition at line 346 of file kfontcombo.cpp.
.PP
References KGlobal::config(), and KConfigBase::readBoolEntry().
.SS "void KFontCombo::setCurrentItem (int i)\fC [virtual]\fP"
.PP
Simply calls QComboBox' implementation. 
.PP
Only here to not become shadowed. 
.PP
Reimplemented from \fBKComboBox\fP.
.PP
Definition at line 244 of file kfontcombo.cpp.
.PP
References QComboBox::setCurrentItem().
.PP
Referenced by setCurrentFont().
.SS "void KFontCombo::updateFonts ()\fC [protected]\fP"
.PP
Updated the combo's \fBlistBox()\fP to reflect changes made to the fonts' attributed. 
.PP
Definition at line 334 of file kfontcombo.cpp.
.PP
References QComboBox::count(), and 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.
