.TH "KEdit" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KEdit \- A simple text editor for the KDE project.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <keditcl.h>\fP
.PP
Inherits \fBQMultiLineEdit\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum { \fBNONE\fP, \fBFORWARD\fP, \fBBACKWARD\fP }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBcorrected\fP (const \fBQString\fP &originalword, const \fBQString\fP &newword, unsigned int pos)"
.br
.ti -1c
.RI "void \fBmisspelling\fP (const \fBQString\fP &word, const \fBQStringList\fP &, unsigned int pos)"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBgotUrlDrop\fP (\fBQDropEvent\fP *e)"
.br
.ti -1c
.RI "void \fBCursorPositionChanged\fP ()"
.br
.ti -1c
.RI "void \fBtoggle_overwrite_signal\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKEdit\fP (\fBQWidget\fP *_parent=NULL, const char *name=NULL)"
.br
.ti -1c
.RI "void \fBinsertText\fP (\fBQTextStream\fP *)"
.br
.ti -1c
.RI "void \fBsaveText\fP (\fBQTextStream\fP *, bool softWrap)"
.br
.ti -1c
.RI "void \fBsaveText\fP (\fBQTextStream\fP *)"
.br
.ti -1c
.RI "void \fBselectFont\fP ()"
.br
.ti -1c
.RI "void \fBsearch\fP ()"
.br
.ti -1c
.RI "bool \fBrepeatSearch\fP ()"
.br
.ti -1c
.RI "void \fBreplace\fP ()"
.br
.ti -1c
.RI "void \fBdoGotoLine\fP ()"
.br
.ti -1c
.RI "void \fBcleanWhiteSpace\fP ()"
.br
.ti -1c
.RI "void \fBinstallRBPopup\fP (\fBQPopupMenu\fP *)"
.br
.ti -1c
.RI "int \fBcurrentLine\fP ()"
.br
.ti -1c
.RI "int \fBcurrentColumn\fP ()"
.br
.ti -1c
.RI "void \fBspellcheck_start\fP ()"
.br
.ti -1c
.RI "void \fBspellcheck_stop\fP ()"
.br
.ti -1c
.RI "void \fBsetOverwriteEnabled\fP (bool b)"
.br
.ti -1c
.RI "\fBQString\fP \fBselectWordUnderCursor\fP ()"
.br
.ti -1c
.RI "\fBQPopupMenu\fP * \fBcreatePopupMenu\fP (const \fBQPoint\fP &pos)"
.br
.ti -1c
.RI "void \fBsetAutoUpdate\fP (bool b)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBcomputePosition\fP ()"
.br
.ti -1c
.RI "int \fBdoSearch\fP (\fBQString\fP s_pattern, bool case_sensitive, bool regex, bool forward, int line, int col)"
.br
.ti -1c
.RI "int \fBdoReplace\fP (\fBQString\fP s_pattern, bool case_sensitive, bool regex, bool forward, int line, int col, bool replace)"
.br
.ti -1c
.RI "void \fBposToRowCol\fP (unsigned int pos, unsigned int &line, unsigned int &col)"
.br
.ti -1c
.RI "virtual void \fBcreate\fP (WId=0, bool initializeWindow=true, bool destroyOldWindow=true)"
.br
.ti -1c
.RI "virtual void \fBensureCursorVisible\fP ()"
.br
.ti -1c
.RI "virtual void \fBsetCursor\fP (const \fBQCursor\fP &)"
.br
.ti -1c
.RI "virtual void \fBviewportPaintEvent\fP (\fBQPaintEvent\fP *)"
.br
.ti -1c
.RI "void \fBkeyPressEvent\fP (\fBQKeyEvent\fP *)"
.br
.ti -1c
.RI "void \fBdragMoveEvent\fP (\fBQDragMoveEvent\fP *e)"
.br
.ti -1c
.RI "void \fBdragEnterEvent\fP (\fBQDragEnterEvent\fP *e)"
.br
.ti -1c
.RI "void \fBdropEvent\fP (\fBQDropEvent\fP *e)"
.br
.ti -1c
.RI "void \fBcontentsDragMoveEvent\fP (\fBQDragMoveEvent\fP *e)"
.br
.ti -1c
.RI "void \fBcontentsDragEnterEvent\fP (\fBQDragEnterEvent\fP *e)"
.br
.ti -1c
.RI "void \fBcontentsDropEvent\fP (\fBQDropEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A simple text editor for the KDE project. 

\fBDeprecated\fP
.RS 4
Use KTextEditor::Editor or \fBKTextEdit\fP instead. 
.RE
.PP
\fBAuthor:\fP
.RS 4
Bernd Johannes Wuebben <wuebben@math.cornell.edu>, Waldo Bastian <bastian@kde.org> 
.RE
.PP

.PP
Definition at line 171 of file keditcl.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "anonymous enum"
.PP
Search directions. 
.PP
Definition at line 187 of file keditcl.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KEdit::KEdit (\fBQWidget\fP * _parent = \fCNULL\fP, const char * name = \fCNULL\fP)"
.PP
The usual constructor. 
.PP
Definition at line 49 of file keditcl1.cpp.
.PP
References KCursor::setAutoHideCursor().
.SH "Member Function Documentation"
.PP 
.SS "void KEdit::insertText (\fBQTextStream\fP *)"
.PP
Insert text from the text stream into the edit widget. 
.PP
Definition at line 87 of file keditcl1.cpp.
.PP
References QMultiLineEdit::insertAt(), QString::isNull(), QMultiLineEdit::setCursorPosition(), and QIODevice::size().
.SS "void KEdit::saveText (\fBQTextStream\fP *, bool softWrap)"
.PP
Save text from the edit widget to a text stream. 
.PP
If \fCsoftWrap\fP is false soft line wrappings are replaced with line-feeds If \fCsoftWrap\fP is true soft line wrappings are ignored. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 242 of file keditcl1.cpp.
.PP
References QString::mid(), QMultiLineEdit::numLines(), and QMultiLineEdit::textLine().
.SS "void KEdit::selectFont ()"
.PP
Let the user select a font and set the font of the textwidget to that selected font. 
.PP
Definition at line 557 of file keditcl1.cpp.
.PP
References KFontDialog::getFont().
.SS "void KEdit::search ()"
.PP
Present a search dialog to the user. 
.PP
Definition at line 51 of file keditcl2.cpp.
.PP
References QString::isEmpty().
.PP
Referenced by repeatSearch().
.SS "bool KEdit::repeatSearch ()"
.PP
Repeat the last search specified on the search dialog. 
.PP
If the user hasn't searched for anything until now, this method will simply return without doing anything.
.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP if a search was done. \fCfalse\fP if no search was done. 
.RE
.PP

.PP
Definition at line 225 of file keditcl2.cpp.
.PP
References QString::isEmpty(), and search().
.SS "void KEdit::replace ()"
.PP
Present a Search and Replace Dialog to the user. 
.PP
Definition at line 247 of file keditcl2.cpp.
.PP
References QString::isEmpty().
.SS "void KEdit::doGotoLine ()"
.PP
Present a 'Goto Line' dialog to the user. 
.PP
Definition at line 565 of file keditcl1.cpp.
.PP
References QMultiLineEdit::setCursorPosition().
.SS "void KEdit::cleanWhiteSpace ()"
.PP
Clean up redundant whitespace from selected text. 
.PP
Definition at line 148 of file keditcl1.cpp.
.PP
References QString::fromLatin1(), QMultiLineEdit::hasMarkedText(), QString::isEmpty(), QChar::isSpace(), QString::length(), QMultiLineEdit::markedText(), QMultiLineEdit::numLines(), QMultiLineEdit::QMultiLineEdit(), QString::right(), QString::simplifyWhiteSpace(), QStringList::split(), and QMultiLineEdit::textLine().
.SS "void KEdit::installRBPopup (\fBQPopupMenu\fP *)"
.PP
Install a context menu for KEdit. 
.PP
The Popup Menu will be activated on a right mouse button press event. 
.PP
Definition at line 553 of file keditcl1.cpp.
.PP
References KContextMenuManager::insert().
.SS "int KEdit::currentLine ()"
.PP
Retrieve the current line number. 
.PP
The current line is the line the cursor is on. 
.PP
Definition at line 290 of file keditcl1.cpp.
.SS "int KEdit::currentColumn ()"
.PP
Retrieve the actual column number the cursor is on. 
.PP
This call differs from QMultiLineEdit::getCursorPosition() in that it returns the actual cursor position and not the character position. Use \fBcurrentLine()\fP and \fBcurrentColumn()\fP if you want to display the current line or column in the status bar for example. 
.PP
Definition at line 297 of file keditcl1.cpp.
.SS "void KEdit::spellcheck_start ()"
.PP
Start spellchecking mode. 
.PP
Definition at line 1010 of file keditcl2.cpp.
.SS "void KEdit::spellcheck_stop ()"
.PP
Exit spellchecking mode. 
.PP
Definition at line 1068 of file keditcl2.cpp.
.SS "void KEdit::setOverwriteEnabled (bool b)"
.PP
Allow the user to toggle between insert mode and overwrite mode with the 'Insert' key. 
.PP
See also \fBtoggle_overwrite_signal()\fP;
.PP
The default is false: the user can not toggle. 
.PP
Definition at line 660 of file keditcl1.cpp.
.SS "\fBQPopupMenu\fP * KEdit::createPopupMenu (const \fBQPoint\fP & pos)"
.PP
\fBSince:\fP
.RS 4
3.3 
.RE
.PP

.PP
Definition at line 1108 of file keditcl2.cpp.
.PP
References QPopupMenu::changeItem(), QPopupMenu::idAt(), and QPopupMenu::text().
.SS "void KEdit::gotUrlDrop (\fBQDropEvent\fP * e)\fC [signal]\fP"
.PP
This signal is emitted if the user dropped a URL over the text editor \fBQMultiLineEdit\fP widget. 
.PP
Note that the user can drop also Text on it, but this is already handled internally by \fBQMultiLineEdit\fP. 
.SS "void KEdit::CursorPositionChanged ()\fC [signal]\fP"
.PP
This signal is emitted whenever the cursor position changes. 
.PP
Use this in conjunction with \fBcurrentLine()\fP, \fBcurrentColumn()\fP if you need to know the cursor position. 
.SS "void KEdit::toggle_overwrite_signal ()\fC [signal]\fP"
.PP
This signal is emitted if the user toggles from insert to overwrite mode or vice versa. 
.PP
The user can do so by pressing the 'Insert' button on a PC keyboard.
.PP
This feature must be activated by calling setOverwriteEnabled(true) first. 
.SS "void KEdit::posToRowCol (unsigned int pos, unsigned int & line, unsigned int & col)\fC [protected]\fP"
.PP
Sets line and col to the position pos, considering word wrap. 
.PP
Definition at line 1058 of file keditcl2.cpp.
.PP
References QMultiLineEdit::lineLength(), and QMultiLineEdit::numLines().
.SS "void KEdit::create (WId = \fC0\fP, bool initializeWindow = \fCtrue\fP, bool destroyOldWindow = \fCtrue\fP)\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons, the API is not affected. 
.PP
Definition at line 666 of file keditcl1.cpp.
.PP
References KCursor::setAutoHideCursor().
.SS "void KEdit::ensureCursorVisible ()\fC [protected, virtual]\fP"
.PP
Reimplemented for internal reasons, the API is not affected. 
.PP
Definition at line 672 of file keditcl1.cpp.

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