\section{KText\-Edit Class Reference}
\label{classKTextEdit}\index{KTextEdit@{KTextEdit}}
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. A KDE'ified {\bf QText\-Edit}.  


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

Inheritance diagram for KText\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=49pt]{classKTextEdit__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KText\-Edit:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=49pt]{classKTextEdit__coll__graph}
\end{center}
\end{figure}
\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)
\begin{CompactList}\small\item\em Constructs a KText\-Edit object. \item\end{CompactList}\item 
{\bf KText\-Edit} ({\bf QWidget} $\ast$parent=0L, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs a KText\-Edit object. \item\end{CompactList}\item 
{\bf $\sim$KText\-Edit} ()
\begin{CompactList}\small\item\em Destroys the KText\-Edit object. \item\end{CompactList}\item 
virtual void {\bf set\-Read\-Only} (bool read\-Only)
\begin{CompactList}\small\item\em Reimplemented to set a proper \char`\"{}deactivated\char`\"{} background color. \item\end{CompactList}\item 
virtual void {\bf set\-Palette} (const  {\bf QPalette} \&palette)
\begin{CompactList}\small\item\em Reimplemented for tracking custom palettes. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$)
\begin{CompactList}\small\item\em Reimplemented to catch \char`\"{}delete word\char`\"{} key events. \item\end{CompactList}\item 
virtual void {\bf contents\-Wheel\-Event} ({\bf QWheel\-Event} $\ast$)
\begin{CompactList}\small\item\em Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom. \item\end{CompactList}\item 
virtual void {\bf delete\-Word\-Back} ()
\begin{CompactList}\small\item\em Deletes a word backwards from the current cursor position, if available. \item\end{CompactList}\item 
virtual void {\bf delete\-Word\-Forward} ()
\begin{CompactList}\small\item\em Deletes a word forwards from the current cursor position, if available. \item\end{CompactList}\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKTextEdit_b4}

\end{CompactItemize}


\subsection{Detailed Description}
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. A KDE'ified {\bf QText\-Edit}. 

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 38 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} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKTextEdit_a0}


Constructs a KText\-Edit object. 

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

Definition at line 39 of file ktextedit.cpp.

References KStd\-Accel::name(), and 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} = 0L, const char $\ast$ {\em name} = 0)}\label{classKTextEdit_a1}


Constructs a KText\-Edit object. 

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

Definition at line 47 of file ktextedit.cpp.

References KStd\-Accel::name(), and 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 54 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 153 of file ktextedit.cpp.

References QPalette::color(), QText\-Edit::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 145 of file ktextedit.cpp.

Referenced by set\-Read\-Only().\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 59 of file ktextedit.cpp.

References QKey\-Event::accept(), QApplication::clipboard(), QText\-Edit::copy(), KStd\-Accel::copy(), QText\-Edit::cut(), KStd\-Accel::cut(), delete\-Word\-Back(), KStd\-Accel::delete\-Word\-Back(), delete\-Word\-Forward(), KStd\-Accel::delete\-Word\-Forward(), QKey\-Event::ignore(), QText\-Edit::insert(), QString::is\-Empty(), QKey\-Event::key(), KStd\-Accel::key(), QText\-Edit::key\-Press\-Event(), QText\-Edit::paste(), KStd\-Accel::paste(), QText\-Edit::redo(), KStd\-Accel::redo(), QKey\-Event::state(), QText\-Edit::text(), QText\-Edit::undo(), and KStd\-Accel::undo().\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_b1}


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



Definition at line 137 of file ktextedit.cpp.

References QScroll\-View::contents\-Wheel\-Event(), and KGlobal\-Settings::wheel\-Mouse\-Zooms().\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_b2}


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



Definition at line 123 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_b3}


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



Definition at line 130 of file ktextedit.cpp.

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

Referenced by key\-Press\-Event().

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