\section{KText\-Browser Class Reference}
\label{classKTextBrowser}\index{KTextBrowser@{KTextBrowser}}
An extended {\bf QText\-Browser}. Extended {\bf QText\-Browser}.  


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

Inheritance diagram for KText\-Browser:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=59pt]{classKTextBrowser__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KText\-Browser:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=59pt]{classKTextBrowser__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf mail\-Click} (const  {\bf QString} \&name, const  {\bf QString} \&address)
\begin{CompactList}\small\item\em Emitted when a mail link has been activated and the widget has been configured to emit the signal. \item\end{CompactList}\item 
void {\bf url\-Click} (const  {\bf QString} \&url)
\begin{CompactList}\small\item\em Emitted if {\bf mail\-Click}{\rm (p.\,\pageref{classKTextBrowser_l0})}() is not emitted and the widget has been configured to emit the signal. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KText\-Browser} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0, bool notify\-Click=false)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf $\sim$KText\-Browser} (void)
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void {\bf set\-Notify\-Click} (bool notify\-Click)
\begin{CompactList}\small\item\em Decide whether a click on a link should be handled internally or if a signal should be emitted. \item\end{CompactList}\item 
bool {\bf is\-Notify\-Click} () const 
\begin{CompactList}\small\item\em Returns whether a click on a link should be handled internally or if a signal should be emitted. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-Source} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Reimplemented to NOT set the source but to do the special handling. \item\end{CompactList}\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$e)
\begin{CompactList}\small\item\em Makes sure Key\_\-Escape is ignored. \item\end{CompactList}\item 
virtual void {\bf viewport\-Mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$e)
\begin{CompactList}\small\item\em Make sure we use our own hand cursor. \item\end{CompactList}\item 
virtual void {\bf contents\-Wheel\-Event} ({\bf QWheel\-Event} $\ast$e)
\begin{CompactList}\small\item\em Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll). \item\end{CompactList}\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKTextBrowser_b4}

\end{CompactItemize}


\subsection{Detailed Description}
An extended {\bf QText\-Browser}. Extended {\bf QText\-Browser}. 

By default it will invoke the system mailer or the system browser when a link is activated, or it can emit the signal {\bf url\-Click}{\rm (p.\,\pageref{classKTextBrowser_l1})}() or {\bf mail\-Click}{\rm (p.\,\pageref{classKTextBrowser_l0})}() when a link is activated.

\begin{Desc}
\item[Author:]Espen Sand ({\tt espensa@online.no}) \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf ktextbrowser.h}{\rm (p.\,\pageref{ktextbrowser_8h})},v 1.13 2002/03/04 00:51:51 lunakl Exp \end{Desc}
\end{Desc}




Definition at line 38 of file ktextbrowser.h.

\subsection{Constructor \& Destructor Documentation}
\index{KTextBrowser@{KText\-Browser}!KTextBrowser@{KTextBrowser}}
\index{KTextBrowser@{KTextBrowser}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KText\-Browser::KText\-Browser ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0, bool {\em notify\-Click} = false)}\label{classKTextBrowser_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]Parent of the widget. \item[{\em name}]Widget name. \item[{\em notify\-Click}]{\tt true} causes signals to be emitted. \end{description}
\end{Desc}


Definition at line 82 of file ktextbrowser.cpp.

References KStd\-Accel::name().\index{KTextBrowser@{KText\-Browser}!~KTextBrowser@{$\sim$KTextBrowser}}
\index{~KTextBrowser@{$\sim$KTextBrowser}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KText\-Browser::$\sim${\bf KText\-Browser} (void)}\label{classKTextBrowser_a1}


Destructor. 



Definition at line 92 of file ktextbrowser.cpp.

\subsection{Member Function Documentation}
\index{KTextBrowser@{KText\-Browser}!setNotifyClick@{setNotifyClick}}
\index{setNotifyClick@{setNotifyClick}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::set\-Notify\-Click (bool {\em notify\-Click})}\label{classKTextBrowser_a2}


Decide whether a click on a link should be handled internally or if a signal should be emitted. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em notify\-Click}]{\tt true} causes signals to be emitted. \end{description}
\end{Desc}


Definition at line 97 of file ktextbrowser.cpp.\index{KTextBrowser@{KText\-Browser}!isNotifyClick@{isNotifyClick}}
\index{isNotifyClick@{isNotifyClick}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KText\-Browser::is\-Notify\-Click () const}\label{classKTextBrowser_a3}


Returns whether a click on a link should be handled internally or if a signal should be emitted. 



Definition at line 103 of file ktextbrowser.cpp.\index{KTextBrowser@{KText\-Browser}!setSource@{setSource}}
\index{setSource@{setSource}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::set\-Source (const {\bf QString} \& {\em name})\hspace{0.3cm}{\tt  [protected]}}\label{classKTextBrowser_b0}


Reimplemented to NOT set the source but to do the special handling. 

Do not call. 

Reimplemented from {\bf QText\-Browser}.

Definition at line 109 of file ktextbrowser.cpp.

References QString::contains(), QString::is\-Null(), mail\-Click(), KStd\-Accel::name(), and url\-Click().\index{KTextBrowser@{KText\-Browser}!keyPressEvent@{keyPressEvent}}
\index{keyPressEvent@{keyPressEvent}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::key\-Press\-Event ({\bf QKey\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextBrowser_b1}


Makes sure Key\_\-Escape is ignored. 



Reimplemented from {\bf QText\-Browser}.

Definition at line 141 of file ktextbrowser.cpp.

References QKey\-Event::ignore(), QKey\-Event::key(), and QText\-Browser::key\-Press\-Event().\index{KTextBrowser@{KText\-Browser}!viewportMouseMoveEvent@{viewportMouseMoveEvent}}
\index{viewportMouseMoveEvent@{viewportMouseMoveEvent}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::viewport\-Mouse\-Move\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextBrowser_b2}


Make sure we use our own hand cursor. 



Definition at line 157 of file ktextbrowser.cpp.

References KCursor::hand\-Cursor().\index{KTextBrowser@{KText\-Browser}!contentsWheelEvent@{contentsWheelEvent}}
\index{contentsWheelEvent@{contentsWheelEvent}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::contents\-Wheel\-Event ({\bf QWheel\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextBrowser_b3}


Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll). 



Definition at line 166 of file ktextbrowser.cpp.

References QScroll\-View::contents\-Wheel\-Event(), and KGlobal\-Settings::wheel\-Mouse\-Zooms().\index{KTextBrowser@{KText\-Browser}!mailClick@{mailClick}}
\index{mailClick@{mailClick}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::mail\-Click (const {\bf QString} \& {\em name}, const {\bf QString} \& {\em address})\hspace{0.3cm}{\tt  [signal]}}\label{classKTextBrowser_l0}


Emitted when a mail link has been activated and the widget has been configured to emit the signal. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]The destination name. It is QString::null at the moment. \item[{\em address}]The destination address. \end{description}
\end{Desc}


Referenced by set\-Source().\index{KTextBrowser@{KText\-Browser}!urlClick@{urlClick}}
\index{urlClick@{urlClick}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Browser::url\-Click (const {\bf QString} \& {\em url})\hspace{0.3cm}{\tt  [signal]}}\label{classKTextBrowser_l1}


Emitted if {\bf mail\-Click}{\rm (p.\,\pageref{classKTextBrowser_l0})}() is not emitted and the widget has been configured to emit the signal. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]The destination address. \end{description}
\end{Desc}


Referenced by set\-Source().

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