\section{KText\-Edit Class Reference}
\label{classKTextEdit}\index{KTextEdit@{KTextEdit}}
A KDE'ified {\bf QText\-Edit}.  


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

Inheritance diagram for KText\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=48pt]{classKTextEdit__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KText\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=48pt]{classKTextEdit__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf check\-Spelling} ()
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KText\-Edit} (const {\bf QString} \&{\bf text}, const {\bf QString} \&{\bf context}=QString::null, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KText\-Edit} ({\bf QWidget} $\ast$parent=0L, const char $\ast$name=0)
\item 
{\bf $\sim$KText\-Edit} ()
\item 
virtual void {\bf set\-Read\-Only} (bool read\-Only)
\item 
virtual void {\bf set\-Palette} (const {\bf QPalette} \&palette)
\item 
void {\bf set\-Check\-Spelling\-Enabled} (bool check)
\item 
bool {\bf check\-Spelling\-Enabled} () const 
\item 
void {\bf high\-Light\-Word} (unsigned int {\bf length}, unsigned int pos)\label{classKTextEdit_a7}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$)
\item 
virtual void {\bf focus\-In\-Event} ({\bf QFocus\-Event} $\ast$)
\item 
virtual void {\bf contents\-Wheel\-Event} ({\bf QWheel\-Event} $\ast$)
\item 
virtual void {\bf delete\-Word\-Back} ()
\item 
virtual void {\bf delete\-Word\-Forward} ()
\item 
virtual {\bf QPopup\-Menu} $\ast$ {\bf create\-Popup\-Menu} (const {\bf QPoint} \&pos)
\item 
virtual {\bf QPopup\-Menu} $\ast$ {\bf create\-Popup\-Menu} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKTextEdit_b7}

\end{CompactItemize}


\subsection{Detailed Description}
A KDE'ified {\bf QText\-Edit}. 

This is just a little subclass of {\bf QText\-Edit}, implementing some standard {\bf KDE} features, like Cursor auto-hiding, configurable wheelscrolling (fast-scroll or zoom) and deleting of entire words with Ctrl-Backspace or Ctrl-Delete.

Basic rule: whenever you want to use {\bf QText\-Edit}, use KText\-Edit!

\begin{Desc}
\item[See also:]{\bf QText\-Edit} \end{Desc}
\begin{Desc}
\item[Author:]Carsten Pfeiffer $<${\tt pfeiffer@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 43 of file ktextedit.h.

\subsection{Constructor \& Destructor Documentation}
\index{KTextEdit@{KText\-Edit}!KTextEdit@{KTextEdit}}
\index{KTextEdit@{KTextEdit}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KText\-Edit::KText\-Edit (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em context} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKTextEdit_a0}


Constructs a KText\-Edit object. 

See {\bf QText\-Edit::QText\-Edit} for details. 

Definition at line 54 of file ktextedit.cpp.

References KCursor::set\-Auto\-Hide\-Cursor().\index{KTextEdit@{KText\-Edit}!KTextEdit@{KTextEdit}}
\index{KTextEdit@{KTextEdit}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KText\-Edit::KText\-Edit ({\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0})}\label{classKTextEdit_a1}


Constructs a KText\-Edit object. 

See {\bf QText\-Edit::QText\-Edit} for details. 

Definition at line 62 of file ktextedit.cpp.

References KCursor::set\-Auto\-Hide\-Cursor().\index{KTextEdit@{KText\-Edit}!~KTextEdit@{$\sim$KTextEdit}}
\index{~KTextEdit@{$\sim$KTextEdit}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KText\-Edit::$\sim${\bf KText\-Edit} ()}\label{classKTextEdit_a2}


Destroys the KText\-Edit object. 



Definition at line 69 of file ktextedit.cpp.

\subsection{Member Function Documentation}
\index{KTextEdit@{KText\-Edit}!setReadOnly@{setReadOnly}}
\index{setReadOnly@{setReadOnly}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::set\-Read\-Only (bool {\em read\-Only})\hspace{0.3cm}{\tt  [virtual]}}\label{classKTextEdit_a3}


Reimplemented to set a proper \char`\"{}deactivated\char`\"{} background color. 



Reimplemented from {\bf QText\-Edit}.

Definition at line 309 of file ktextedit.cpp.

References QPalette::color(), QText\-Edit::is\-Read\-Only(), QPalette::set\-Color(), set\-Palette(), and QText\-Edit::set\-Read\-Only().\index{KTextEdit@{KText\-Edit}!setPalette@{setPalette}}
\index{setPalette@{setPalette}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::set\-Palette (const {\bf QPalette} \& {\em palette})\hspace{0.3cm}{\tt  [virtual]}}\label{classKTextEdit_a4}


Reimplemented for tracking custom palettes. 



Definition at line 261 of file ktextedit.cpp.

Referenced by set\-Read\-Only().\index{KTextEdit@{KText\-Edit}!setCheckSpellingEnabled@{setCheckSpellingEnabled}}
\index{setCheckSpellingEnabled@{setCheckSpellingEnabled}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::set\-Check\-Spelling\-Enabled (bool {\em check})}\label{classKTextEdit_a5}


Turns spell checking for this text edit on or off. 

\begin{Desc}
\item[See also:]{\bf check\-Spelling\-Enabled()}{\rm (p.\,\pageref{classKTextEdit_a6})} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 274 of file ktextedit.cpp.\index{KTextEdit@{KText\-Edit}!checkSpellingEnabled@{checkSpellingEnabled}}
\index{checkSpellingEnabled@{checkSpellingEnabled}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KText\-Edit::check\-Spelling\-Enabled () const}\label{classKTextEdit_a6}


Returns true if spell checking is enabled for this text edit. 

@ see {\bf set\-Check\-Spelling\-Enabled()}{\rm (p.\,\pageref{classKTextEdit_a5})} \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 304 of file ktextedit.cpp.\index{KTextEdit@{KText\-Edit}!checkSpelling@{checkSpelling}}
\index{checkSpelling@{checkSpelling}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::check\-Spelling ()\hspace{0.3cm}{\tt  [slot]}}\label{classKTextEdit_i0}


Create a modal dialog to check the spelling. 

This slot will not return until spell checking has been completed.

\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 344 of file ktextedit.cpp.

Referenced by create\-Popup\-Menu().\index{KTextEdit@{KText\-Edit}!keyPressEvent@{keyPressEvent}}
\index{keyPressEvent@{keyPressEvent}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::key\-Press\-Event ({\bf QKey\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b0}


Reimplemented to catch \char`\"{}delete word\char`\"{} key events. 



Reimplemented from {\bf QText\-Edit}.

Definition at line 74 of file ktextedit.cpp.

References QApplication::clipboard(), QText\-Edit::copy(), QText\-Edit::cut(), delete\-Word\-Back(), delete\-Word\-Forward(), QText\-Edit::get\-Cursor\-Position(), QText\-Edit::insert(), QString::is\-Empty(), QText\-Edit::key\-Press\-Event(), QText\-Edit::move\-Cursor(), QText\-Edit::paste(), QText\-Edit::redo(), QText\-Edit::text(), and QText\-Edit::undo().\index{KTextEdit@{KText\-Edit}!focusInEvent@{focusInEvent}}
\index{focusInEvent@{focusInEvent}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::focus\-In\-Event ({\bf QFocus\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b1}


Reimplemented to instantiate a {\bf KDict\-Spelling\-Highlighter}{\rm (p.\,\pageref{classKDictSpellingHighlighter})}, if spellchecking is enabled. 



Definition at line 296 of file ktextedit.cpp.\index{KTextEdit@{KText\-Edit}!contentsWheelEvent@{contentsWheelEvent}}
\index{contentsWheelEvent@{contentsWheelEvent}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::contents\-Wheel\-Event ({\bf QWheel\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b2}


Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom. 



Definition at line 253 of file ktextedit.cpp.

References QScroll\-View::contents\-Wheel\-Event().\index{KTextEdit@{KText\-Edit}!deleteWordBack@{deleteWordBack}}
\index{deleteWordBack@{deleteWordBack}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::delete\-Word\-Back ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b3}


Deletes a word backwards from the current cursor position, if available. 



Definition at line 194 of file ktextedit.cpp.

References QText\-Edit::move\-Cursor(), QText\-Edit::remove\-Selected\-Text(), and QText\-Edit::remove\-Selection().

Referenced by key\-Press\-Event().\index{KTextEdit@{KText\-Edit}!deleteWordForward@{deleteWordForward}}
\index{deleteWordForward@{deleteWordForward}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KText\-Edit::delete\-Word\-Forward ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b4}


Deletes a word forwards from the current cursor position, if available. 



Definition at line 201 of file ktextedit.cpp.

References QText\-Edit::move\-Cursor(), QText\-Edit::remove\-Selected\-Text(), and QText\-Edit::remove\-Selection().

Referenced by key\-Press\-Event().\index{KTextEdit@{KText\-Edit}!createPopupMenu@{createPopupMenu}}
\index{createPopupMenu@{createPopupMenu}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KText\-Edit::create\-Popup\-Menu (const {\bf QPoint} \& {\em pos})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b5}


Reimplemented from {\bf QText\-Edit} to add spelling related items when appropriate. 



Reimplemented from {\bf QText\-Edit}.

Definition at line 213 of file ktextedit.cpp.

References QPopup\-Menu::change\-Item(), check\-Spelling(), QText\-Edit::create\-Popup\-Menu(), QPopup\-Menu::id\-At(), QPopup\-Menu::insert\-Item(), QPopup\-Menu::insert\-Separator(), QText\-Edit::is\-Read\-Only(), QPopup\-Menu::set\-Item\-Checked(), QPopup\-Menu::set\-Item\-Enabled(), QText\-Edit::tab\-Changes\-Focus(), QText\-Edit::text(), and QPopup\-Menu::text().\index{KTextEdit@{KText\-Edit}!createPopupMenu@{createPopupMenu}}
\index{createPopupMenu@{createPopupMenu}!KTextEdit@{KText\-Edit}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KText\-Edit::create\-Popup\-Menu ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKTextEdit_b6}


This is just a reimplementation of a deprecated method from {\bf QText\-Edit} and is just here to keep source compatibility. 

This should not be used in new code. Specifically reimplementing this method will probably not do what you expect. See the method above.

\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 248 of file ktextedit.cpp.

References QText\-Edit::create\-Popup\-Menu().

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