\section{KFont\-Combo Class Reference}
\label{classKFontCombo}\index{KFontCombo@{KFontCombo}}
A combobox that lists the available fonts.  


{\tt \#include $<$kfontcombo.h$>$}

Inheritance diagram for KFont\-Combo:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=111pt]{classKFontCombo__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFont\-Combo:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=111pt]{classKFontCombo__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KFont\-Combo} ({\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
{\bf KFont\-Combo} (const {\bf QString\-List} \&fonts, {\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KFont\-Combo} ()
\item 
void {\bf set\-Fonts} (const {\bf QString\-List} \&fonts)
\item 
void {\bf set\-Current\-Font} (const {\bf QString} \&family)
\item 
{\bf QString} {\bf current\-Font} () const 
\item 
void {\bf set\-Bold} (bool bold)
\item 
bool {\bf bold} () const 
\item 
void {\bf set\-Italic} (bool italic)
\item 
bool {\bf italic} () const 
\item 
void {\bf set\-Underline} (bool underline)
\item 
bool {\bf underline} () const 
\item 
void {\bf set\-Strike\-Out} (bool strike\-Out)
\item 
bool {\bf strike\-Out} () const 
\item 
void {\bf set\-Size} (int size)
\item 
int {\bf size} () const 
\item 
virtual void {\bf set\-Current\-Item} (int i)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static bool {\bf display\-Fonts} ()
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Modified} (int i)\label{classKFontCombo_j0}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf update\-Fonts} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKFontCombo_b1}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
{\bf QString} {\bf family}\label{classKFontCombo_00}

\item 
bool {\bf bold}\label{classKFontCombo_01}

\item 
bool {\bf italic}\label{classKFontCombo_02}

\item 
bool {\bf underline}\label{classKFontCombo_03}

\item 
bool {\bf strike\-Out}\label{classKFontCombo_04}

\item 
int {\bf font\-Size}\label{classKFontCombo_05}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KFont\-List\-Item}\label{classKFontCombo_n0}

\end{CompactItemize}


\subsection{Detailed Description}
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.

\begin{Desc}
\item[Author:]Malte Starostik $<${\tt malte@kde.org}$>$ \end{Desc}




Definition at line 35 of file kfontcombo.h.

\subsection{Constructor \& Destructor Documentation}
\index{KFontCombo@{KFont\-Combo}!KFontCombo@{KFontCombo}}
\index{KFontCombo@{KFontCombo}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFont\-Combo::KFont\-Combo ({\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKFontCombo_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]The parent widget \item[{\em name}]The object name for the widget \end{description}
\end{Desc}


Definition at line 163 of file kfontcombo.cpp.

References KFont\-Chooser::get\-Font\-List(), and set\-Fonts().\index{KFontCombo@{KFont\-Combo}!KFontCombo@{KFontCombo}}
\index{KFontCombo@{KFontCombo}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFont\-Combo::KFont\-Combo (const {\bf QString\-List} \& {\em fonts}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKFontCombo_a1}


Constructor that takes an already initialzed font list. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em fonts}]A list of fonts to show \item[{\em parent}]The parent widget \item[{\em name}]The object name for the widget \end{description}
\end{Desc}


Definition at line 172 of file kfontcombo.cpp.

References set\-Fonts().\index{KFontCombo@{KFont\-Combo}!~KFontCombo@{$\sim$KFontCombo}}
\index{~KFontCombo@{$\sim$KFontCombo}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFont\-Combo::$\sim${\bf KFont\-Combo} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKFontCombo_a2}


Destructor. 



Definition at line 260 of file kfontcombo.cpp.

\subsection{Member Function Documentation}
\index{KFontCombo@{KFont\-Combo}!setFonts@{setFonts}}
\index{setFonts@{setFonts}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Fonts (const {\bf QString\-List} \& {\em fonts})}\label{classKFontCombo_a3}


Sets the font list. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em fonts}]Font list to show \end{description}
\end{Desc}


Definition at line 179 of file kfontcombo.cpp.

References QCombo\-Box::clear().

Referenced by KFont\-Combo().\index{KFontCombo@{KFont\-Combo}!setCurrentFont@{setCurrentFont}}
\index{setCurrentFont@{setCurrentFont}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Current\-Font (const {\bf QString} \& {\em family})}\label{classKFontCombo_a4}


Sets the currently selected font. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em family}]Font to select. \end{description}
\end{Desc}


Definition at line 189 of file kfontcombo.cpp.

References QCombo\-Box::count(), QString::find(), QString::left(), QString::lower(), set\-Current\-Item(), and QCombo\-Box::text().\index{KFontCombo@{KFont\-Combo}!currentFont@{currentFont}}
\index{currentFont@{currentFont}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFont\-Combo::current\-Font () const}\label{classKFontCombo_a5}


\begin{Desc}
\item[Returns:]the currently selected font. \end{Desc}


Definition at line 237 of file kfontcombo.cpp.

References QCombo\-Box::current\-Text().\index{KFontCombo@{KFont\-Combo}!setBold@{setBold}}
\index{setBold@{setBold}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Bold (bool {\em bold})}\label{classKFontCombo_a6}


Sets the listed fonts to bold or normal. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bold}]Set to true to display fonts in bold \end{description}
\end{Desc}


Definition at line 265 of file kfontcombo.cpp.

References update\-Fonts().\index{KFontCombo@{KFont\-Combo}!bold@{bold}}
\index{bold@{bold}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFont\-Combo::bold () const}\label{classKFontCombo_a7}


Returns the current bold status. 

\begin{Desc}
\item[Returns:]true if fonts are bold \end{Desc}
\index{KFontCombo@{KFont\-Combo}!setItalic@{setItalic}}
\index{setItalic@{setItalic}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Italic (bool {\em italic})}\label{classKFontCombo_a8}


Sets the listed fonts to italic or regular. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em italic}]Set to true to display fonts italic \end{description}
\end{Desc}


Definition at line 278 of file kfontcombo.cpp.

References update\-Fonts().\index{KFontCombo@{KFont\-Combo}!italic@{italic}}
\index{italic@{italic}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFont\-Combo::italic () const}\label{classKFontCombo_a9}


Returns the current italic status. 

\begin{Desc}
\item[Returns:]True if fonts are italic \end{Desc}
\index{KFontCombo@{KFont\-Combo}!setUnderline@{setUnderline}}
\index{setUnderline@{setUnderline}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Underline (bool {\em underline})}\label{classKFontCombo_a10}


Sets the listed fonts to underlined or not underlined. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em underline}]Set to true to display fonts underlined \end{description}
\end{Desc}


Definition at line 291 of file kfontcombo.cpp.

References update\-Fonts().\index{KFontCombo@{KFont\-Combo}!underline@{underline}}
\index{underline@{underline}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFont\-Combo::underline () const}\label{classKFontCombo_a11}


Returns the current underline status. 

\begin{Desc}
\item[Returns:]True if fonts are underlined \end{Desc}
\index{KFontCombo@{KFont\-Combo}!setStrikeOut@{setStrikeOut}}
\index{setStrikeOut@{setStrikeOut}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Strike\-Out (bool {\em strike\-Out})}\label{classKFontCombo_a12}


Sets the listed fonts to striked out or not. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em strike\-Out}]Set to true to display fonts striked out \end{description}
\end{Desc}


Definition at line 304 of file kfontcombo.cpp.

References update\-Fonts().\index{KFontCombo@{KFont\-Combo}!strikeOut@{strikeOut}}
\index{strikeOut@{strikeOut}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFont\-Combo::strike\-Out () const}\label{classKFontCombo_a13}


Returns the current strike out status. 

\begin{Desc}
\item[Returns:]True if fonts are striked out \end{Desc}
\index{KFontCombo@{KFont\-Combo}!setSize@{setSize}}
\index{setSize@{setSize}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Size (int {\em size})}\label{classKFontCombo_a14}


Sets the listed fonts' size. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em size}]Set to the point size to display the fonts in \end{description}
\end{Desc}


Definition at line 317 of file kfontcombo.cpp.

References QFont\-Metrics::line\-Spacing(), QFont::set\-Point\-Size(), and update\-Fonts().\index{KFontCombo@{KFont\-Combo}!size@{size}}
\index{size@{size}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KFont\-Combo::size () const}\label{classKFontCombo_a15}


Returns the current font size. 

\begin{Desc}
\item[Returns:]The point size of the fonts \end{Desc}


Definition at line 329 of file kfontcombo.cpp.

References QFont\-Metrics::size().\index{KFontCombo@{KFont\-Combo}!displayFonts@{displayFonts}}
\index{displayFonts@{displayFonts}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFont\-Combo::display\-Fonts ()\hspace{0.3cm}{\tt  [static]}}\label{classKFontCombo_e0}


Returns the user's setting of whether the items should be painted in the respective fonts or not. 

\begin{Desc}
\item[Returns:]True if the respective fonts are used for painting \end{Desc}


Definition at line 346 of file kfontcombo.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Bool\-Entry().\index{KFontCombo@{KFont\-Combo}!setCurrentItem@{setCurrentItem}}
\index{setCurrentItem@{setCurrentItem}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::set\-Current\-Item (int {\em i})\hspace{0.3cm}{\tt  [virtual]}}\label{classKFontCombo_a16}


Simply calls QCombo\-Box' implementation. 

Only here to not become shadowed. 

Reimplemented from {\bf KCombo\-Box} {\rm (p.\,\pageref{classKComboBox_i4})}.

Definition at line 244 of file kfontcombo.cpp.

References QCombo\-Box::set\-Current\-Item().

Referenced by set\-Current\-Font().\index{KFontCombo@{KFont\-Combo}!updateFonts@{updateFonts}}
\index{updateFonts@{updateFonts}!KFontCombo@{KFont\-Combo}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFont\-Combo::update\-Fonts ()\hspace{0.3cm}{\tt  [protected]}}\label{classKFontCombo_b0}


Updated the combo's {\bf list\-Box()} to reflect changes made to the fonts' attributed. 



Definition at line 334 of file kfontcombo.cpp.

References QCombo\-Box::count(), and QCombo\-Box::list\-Box().

Referenced by set\-Bold(), set\-Italic(), set\-Size(), set\-Strike\-Out(), and set\-Underline().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kfontcombo.h\item 
kfontcombo.cpp\end{CompactItemize}
