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


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

Inheritance diagram for KFont\-Combo:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=113pt]{classKFontCombo__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFont\-Combo:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=175pt]{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)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf KFont\-Combo} (const  {\bf QString\-List} \&fonts, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor that takes an already initialzed font list. \item\end{CompactList}\item 
virtual {\bf $\sim$KFont\-Combo} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void {\bf set\-Fonts} (const  {\bf QString\-List} \&fonts)
\begin{CompactList}\small\item\em Sets the font list. \item\end{CompactList}\item 
void {\bf set\-Current\-Font} (const  {\bf QString} \&family)
\begin{CompactList}\small\item\em Sets the currently selected font. \item\end{CompactList}\item 
{\bf QString} {\bf current\-Font} () const 
\item 
void {\bf set\-Bold} (bool bold)
\begin{CompactList}\small\item\em Sets the listed fonts to bold or normal. \item\end{CompactList}\item 
bool {\bf bold} () const 
\begin{CompactList}\small\item\em Returns the current bold status. \item\end{CompactList}\item 
void {\bf set\-Italic} (bool bold)
\begin{CompactList}\small\item\em Sets the listed fonts to italic or regular. \item\end{CompactList}\item 
bool {\bf italic} () const 
\begin{CompactList}\small\item\em Returns the current italic status. \item\end{CompactList}\item 
void {\bf set\-Underline} (bool bold)
\begin{CompactList}\small\item\em Sets the listed fonts to underlined or not underlined. \item\end{CompactList}\item 
bool {\bf underline} () const 
\begin{CompactList}\small\item\em Returns the current underline status. \item\end{CompactList}\item 
void {\bf set\-Strike\-Out} (bool bold)
\begin{CompactList}\small\item\em Sets the listed fonts to striked out or not. \item\end{CompactList}\item 
bool {\bf strike\-Out} () const 
\begin{CompactList}\small\item\em Returns the current strike out status. \item\end{CompactList}\item 
void {\bf set\-Size} (int size)
\begin{CompactList}\small\item\em Sets the listed fonts' size. \item\end{CompactList}\item 
int {\bf size} () const 
\begin{CompactList}\small\item\em Returns the current font size. \item\end{CompactList}\item 
virtual void {\bf set\-Current\-Item} (int i)\label{classKFontCombo_a16}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
bool {\bf display\-Fonts} ()
\begin{CompactList}\small\item\em Returns the user's setting of whether the items should be painted in the respective fonts or not. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf update\-Fonts} ()
\begin{CompactList}\small\item\em Updated the combo's {\bf list\-Box}() to reflect changes made to the fonts' attributed. \item\end{CompactList}\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKFontCombo_b1}

\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. 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.

\begin{Desc}
\item[Author:]Malte Starostik $<${\tt malte@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf kfontcombo.h}{\rm (p.\,\pageref{kfontcombo_8h})},v 1.8.4.1 2003/07/14 02:48:17 bmeyer Exp \end{Desc}
\end{Desc}




Definition at line 37 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} = 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(), KStd\-Accel::name(), 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} = 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 KStd\-Accel::name(), and 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 252 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(), KCombo\-Box::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 230 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 257 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}


Definition at line 265 of file kfontcombo.cpp.\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 bold})}\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 270 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}


Definition at line 278 of file kfontcombo.cpp.\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 bold})}\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 283 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}


Definition at line 291 of file kfontcombo.cpp.\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 bold})}\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 296 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}


Definition at line 304 of file kfontcombo.cpp.\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 309 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 321 of file kfontcombo.cpp.\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 338 of file kfontcombo.cpp.

References KGlobal::config(), and KConfig\-Base::read\-Bool\-Entry().\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 326 of file kfontcombo.cpp.

References 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}
