.TH "KFontRequester" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFontRequester \- This class provides a widget with a lineedit and a button, which invokes a font dialog (\fBKFontDialog\fP).  

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

.in +1c
.ti -1c
.RI "void \fBfontSelected\fP (const \fBQFont\fP &font)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKFontRequester\fP (\fBQWidget\fP *parent=0L, const char *name=0L, bool onlyFixed=false)"
.br
.ti -1c
.RI "\fBQFont\fP \fBfont\fP () const "
.br
.ti -1c
.RI "bool \fBisFixedOnly\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBsampleText\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBtitle\fP () const "
.br
.ti -1c
.RI "\fBQLabel\fP * \fBlabel\fP () const "
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBbutton\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetFont\fP (const \fBQFont\fP &font, bool onlyFixed=false)"
.br
.ti -1c
.RI "virtual void \fBsetSampleText\fP (const \fBQString\fP &text)"
.br
.ti -1c
.RI "virtual void \fBsetTitle\fP (const \fBQString\fP &title)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBbuttonClicked\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

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

.in +1c
.ti -1c
.RI "bool \fBm_onlyFixed\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_sampleText\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_title\fP"
.br
.ti -1c
.RI "\fBQLabel\fP * \fBm_sampleLabel\fP"
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBm_button\fP"
.br
.ti -1c
.RI "\fBQFont\fP \fBm_selFont\fP"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBtitle\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBsampleText\fP"
.br
.ti -1c
.RI "\fBQFont\fP \fBfont\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class provides a widget with a lineedit and a button, which invokes a font dialog (\fBKFontDialog\fP). 

The lineedit provides a preview of the selected font. The preview text can be customized. You can also have the font dialog show only the fixed fonts.
.PP
KDE Font Requester 
.PP
\fBAuthor:\fP
.RS 4
Nadeem Hasan <nhasan@kde.org> 
.RE
.PP

.PP
Definition at line 44 of file kfontrequester.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFontRequester::KFontRequester (\fBQWidget\fP * parent = \fC0L\fP, const char * name = \fC0L\fP, bool onlyFixed = \fCfalse\fP)"
.PP
Constructs a font requester widget. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP The parent widget. 
.br
\fIname\fP The widget name. 
.br
\fIonlyFixed\fP Only display fonts which have fixed-width character sizes. 
.RE
.PP

.PP
Definition at line 31 of file kfontrequester.cpp.
.PP
References QWidget::setFocusProxy().
.SH "Member Function Documentation"
.PP 
.SS "\fBQFont\fP KFontRequester::font () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
The currently selected font in the requester. 
.RE
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 68 of file kfontrequester.h.
.SS "bool KFontRequester::isFixedOnly () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Returns true if only fixed fonts are displayed. 
.RE
.PP

.PP
Definition at line 73 of file kfontrequester.h.
.SS "\fBQString\fP KFontRequester::sampleText () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
The current text in the sample text input area. 
.RE
.PP

.PP
Definition at line 78 of file kfontrequester.h.
.SS "\fBQString\fP KFontRequester::title () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
The current title of the widget. 
.RE
.PP

.PP
Definition at line 83 of file kfontrequester.h.
.SS "\fBQLabel\fP* KFontRequester::label () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Pointer to the label used for preview. 
.RE
.PP

.PP
Definition at line 88 of file kfontrequester.h.
.SS "\fBQPushButton\fP* KFontRequester::button () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Pointer to the pushbutton in the widget. 
.RE
.PP

.PP
Definition at line 93 of file kfontrequester.h.
.SS "void KFontRequester::setFont (const \fBQFont\fP & font, bool onlyFixed = \fCfalse\fP)\fC [virtual]\fP"
.PP
Sets the currently selected font in the requester. 
.PP
\fBParameters:\fP
.RS 4
\fIfont\fP The font to select. 
.br
\fIonlyFixed\fP Display only fixed-width fonts in the font dialog if \fCtrue\fP, or vice-versa. 
.RE
.PP

.PP
Definition at line 52 of file kfontrequester.cpp.
.SS "void KFontRequester::setSampleText (const \fBQString\fP & text)\fC [virtual]\fP"
.PP
Sets the sample text. 
.PP
Normally you should not change this text, but it can be better to do this if the default text is too large for the edit area when using the default font of your application. Default text is current font name and size. Setting the text to QString::null will restore the default.
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The new sample text. The current will be removed. 
.RE
.PP

.PP
Definition at line 61 of file kfontrequester.cpp.
.SS "void KFontRequester::setTitle (const \fBQString\fP & title)\fC [virtual]\fP"
.PP
Set the title for the widget that will be used in the tooltip and what's this text. 
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP The title to be set. 
.RE
.PP

.PP
Definition at line 67 of file kfontrequester.cpp.

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