.TH "KTextEdit" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KTextEdit \- This is just a little subclass of \fBQTextEdit\fP, implementing some standard \fBKDE\fP 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 \fBQTextEdit\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ktextedit.h>\fP
.PP
Inherits \fBQTextEdit\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKTextEdit\fP (const  \fBQString\fP &\fBtext\fP, const  \fBQString\fP &\fBcontext\fP=QString::null, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructs a KTextEdit object. \fP"
.ti -1c
.RI "\fBKTextEdit\fP (\fBQWidget\fP *parent=0L, const  char *name=0)"
.br
.RI "\fIConstructs a KTextEdit object. \fP"
.ti -1c
.RI "\fB~KTextEdit\fP ()"
.br
.RI "\fIDestroys the KTextEdit object. \fP"
.ti -1c
.RI "virtual void \fBsetReadOnly\fP (bool readOnly)"
.br
.RI "\fIReimplemented to set a proper 'deactivated' background color. \fP"
.ti -1c
.RI "virtual void \fBsetPalette\fP (const  \fBQPalette\fP &palette)"
.br
.RI "\fIReimplemented for tracking custom palettes. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *)"
.br
.RI "\fIReimplemented to catch 'delete word' key events. \fP"
.ti -1c
.RI "virtual void \fBcontentsWheelEvent\fP (\fBQWheelEvent\fP *)"
.br
.RI "\fIReimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom. \fP"
.ti -1c
.RI "virtual void \fBdeleteWordBack\fP ()"
.br
.RI "\fIDeletes a word backwards from the current cursor position, if available. \fP"
.ti -1c
.RI "virtual void \fBdeleteWordForward\fP ()"
.br
.RI "\fIDeletes a word forwards from the current cursor position, if available. \fP"
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This is just a little subclass of \fBQTextEdit\fP, implementing some standard \fBKDE\fP 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 \fBQTextEdit\fP. 

Basic rule: whenever you want to use \fBQTextEdit\fP, use KTextEdit!
.PP
\fBSee also:\fP
.RS 4
\fBQTextEdit\fP 
.RE
.PP
\fBAuthor:\fP
.RS 4
Carsten Pfeiffer <pfeiffer@kde.org> 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 38 of file ktextedit.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KTextEdit::KTextEdit (const \fBQString\fP & text, const \fBQString\fP & context = QString::null, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructs a KTextEdit object. See \fBQTextEdit::QTextEdit\fP for details. Definition at line 39 of file ktextedit.cpp.
.PP
References KStdAccel::name(), and KCursor::setAutoHideCursor().
.SS "KTextEdit::KTextEdit (\fBQWidget\fP * parent = 0L, const char * name = 0)"
.PP
Constructs a KTextEdit object. See \fBQTextEdit::QTextEdit\fP for details. Definition at line 47 of file ktextedit.cpp.
.PP
References KStdAccel::name(), and KCursor::setAutoHideCursor().
.SS "KTextEdit::~\fBKTextEdit\fP ()"
.PP
Destroys the KTextEdit object. Definition at line 54 of file ktextedit.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KTextEdit::setReadOnly (bool readOnly)\fC [virtual]\fP"
.PP
Reimplemented to set a proper 'deactivated' background color. Reimplemented from \fBQTextEdit\fP.
.PP
Definition at line 153 of file ktextedit.cpp.
.PP
References QPalette::color(), QTextEdit::color(), QTextEdit::isReadOnly(), QPalette::setColor(), setPalette(), and QTextEdit::setReadOnly().
.SS "void KTextEdit::setPalette (const \fBQPalette\fP & palette)\fC [virtual]\fP"
.PP
Reimplemented for tracking custom palettes. Definition at line 145 of file ktextedit.cpp.
.PP
Referenced by setReadOnly().
.SS "void KTextEdit::keyPressEvent (\fBQKeyEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented to catch 'delete word' key events. Reimplemented from \fBQTextEdit\fP.
.PP
Definition at line 59 of file ktextedit.cpp.
.PP
References QKeyEvent::accept(), QApplication::clipboard(), QTextEdit::copy(), KStdAccel::copy(), QTextEdit::cut(), KStdAccel::cut(), deleteWordBack(), KStdAccel::deleteWordBack(), deleteWordForward(), KStdAccel::deleteWordForward(), QKeyEvent::ignore(), QTextEdit::insert(), QString::isEmpty(), QKeyEvent::key(), KStdAccel::key(), QTextEdit::keyPressEvent(), QTextEdit::paste(), KStdAccel::paste(), QTextEdit::redo(), KStdAccel::redo(), QKeyEvent::state(), QTextEdit::text(), QTextEdit::undo(), and KStdAccel::undo().
.SS "void KTextEdit::contentsWheelEvent (\fBQWheelEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom. Definition at line 137 of file ktextedit.cpp.
.PP
References QScrollView::contentsWheelEvent(), and KGlobalSettings::wheelMouseZooms().
.SS "void KTextEdit::deleteWordBack ()\fC [protected, virtual]\fP"
.PP
Deletes a word backwards from the current cursor position, if available. Definition at line 123 of file ktextedit.cpp.
.PP
References QTextEdit::moveCursor(), QTextEdit::removeSelectedText(), and QTextEdit::removeSelection().
.PP
Referenced by keyPressEvent().
.SS "void KTextEdit::deleteWordForward ()\fC [protected, virtual]\fP"
.PP
Deletes a word forwards from the current cursor position, if available. Definition at line 130 of file ktextedit.cpp.
.PP
References QTextEdit::moveCursor(), QTextEdit::removeSelectedText(), and QTextEdit::removeSelection().
.PP
Referenced by keyPressEvent().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
