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


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

Inheritance diagram for KText\-Browser:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=58pt]{classKTextBrowser__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KText\-Browser:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=58pt]{classKTextBrowser__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf mail\-Click} (const {\bf QString} \&name, const {\bf QString} \&address)
\item 
void {\bf url\-Click} (const {\bf QString} \&url)
\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)
\item 
{\bf $\sim$KText\-Browser} (void)
\item 
void {\bf set\-Notify\-Click} (bool notify\-Click)
\item 
bool {\bf is\-Notify\-Click} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-Source} (const {\bf QString} \&name)
\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$e)
\item 
virtual void {\bf viewport\-Mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$e)
\item 
virtual void {\bf contents\-Wheel\-Event} ({\bf QWheel\-Event} $\ast$e)
\item 
virtual {\bf QPopup\-Menu} $\ast$ {\bf create\-Popup\-Menu} (const {\bf QPoint} \&pos)
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKTextBrowser_b5}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
bool {\bf notify\-Click}\label{classKTextBrowser_00}

\end{CompactItemize}


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

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




Definition at line 42 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} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0}, bool {\em notify\-Click} = {\tt 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 29 of file ktextbrowser.cpp.\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 39 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 44 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 50 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 56 of file ktextbrowser.cpp.

References QString::find(), QString::is\-Null(), mail\-Click(), 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 88 of file ktextbrowser.cpp.

References 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 104 of file ktextbrowser.cpp.\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 113 of file ktextbrowser.cpp.

References QScroll\-View::contents\-Wheel\-Event().\index{KTextBrowser@{KText\-Browser}!createPopupMenu@{createPopupMenu}}
\index{createPopupMenu@{createPopupMenu}!KTextBrowser@{KText\-Browser}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KText\-Browser::create\-Popup\-Menu (const {\bf QPoint} \& {\em pos})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextBrowser_b4}


Re-implemented for internal reasons. 

API not affected.

See {\bf QLine\-Edit::create\-Popup\-Menu()}. 

Definition at line 121 of file ktextbrowser.cpp.

References QPopup\-Menu::change\-Item(), QPopup\-Menu::id\-At(), and QPopup\-Menu::text().\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}
