org.kde.koala

Class KEdit

public class KEdit extends QMultiLineEdit

A simple text editor for the %KDE project. See KEditSignals for signals emitted by KEdit

Author: Bernd Johannes Wuebben , Waldo Bastian

UNKNOWN: A simple text editor for the %KDE project.

Field Summary
static intBACKWARD
static intFORWARD
static intNONE
Search directions.
Constructor Summary
protected KEdit(Class dummy)
KEdit(QWidget _parent, String name)
The usual constructor.
KEdit(QWidget _parent)
KEdit()
Method Summary
StringclassName()
voidcleanWhiteSpace()
Clean up redundant whitespace from selected text.
protected voidcomputePosition()
protected voidcontentsDragEnterEvent(QDragEnterEvent e)
protected voidcontentsDragMoveEvent(QDragMoveEvent e)
protected voidcontentsDropEvent(QDropEvent e)
voidcorrected(String originalword, String newword, int pos)
protected voidcreate(long arg1, boolean initializeWindow, boolean destroyOldWindow)
Reimplemented for internal reasons, the API is not affected.
protected voidcreate(long arg1, boolean initializeWindow)
protected voidcreate(long arg1)
protected voidcreate()
QPopupMenucreatePopupMenu(QPoint pos)
intcurrentColumn()
Retrieve the actual column number the cursor is on.
intcurrentLine()
Retrieve the current line number.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
voiddoGotoLine()
Present a "Goto Line" dialog to the user.
protected intdoReplace(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col, boolean replace)
protected intdoSearch(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col)
protected voiddragEnterEvent(QDragEnterEvent e)
protected voiddragMoveEvent(QDragMoveEvent e)
protected voiddropEvent(QDropEvent e)
voidensureCursorVisible()
Reimplemented for internal reasons, the API is not affected.
protected voidfinalize()
Deletes the wrapped C++ instance
voidinsertText(QTextStream arg1)
Insert text from the text stream into the edit widget.
voidinstallRBPopup(QPopupMenu arg1)
Install a context menu for KEdit.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidkeyPressEvent(QKeyEvent arg1)
QMetaObjectmetaObject()
voidmisspelling(String word, String[] arg2, int pos)
protected voidposToRowCol(int pos, int line, int col)
Sets line and col to the position pos, considering word wrap.
booleanrepeatSearch()
Repeat the last search specified on the search dialog.
voidreplace()
Present a Search and Replace Dialog to the user.
voidsaveText(QTextStream arg1, boolean softWrap)
Save text from the edit widget to a text stream.
voidsaveText(QTextStream arg1)
voidsearch()
Present a search dialog to the user
voidselectFont()
Let the user select a font and set the font of the textwidget to that selected font.
StringselectWordUnderCursor()
voidsetAutoUpdate(boolean b)
voidsetCursor(QCursor arg1)
voidsetOverwriteEnabled(boolean b)
Allow the user to toggle between insert mode and overwrite mode with the "Insert" key.
voidspellcheck_start()
Start spellchecking mode.
voidspellcheck_stop()
Exit spellchecking mode.
protected voidviewportPaintEvent(QPaintEvent arg1)

Field Detail

BACKWARD

public static final int BACKWARD

FORWARD

public static final int FORWARD

NONE

public static final int NONE
Search directions.

UNKNOWN: Search directions.

Constructor Detail

KEdit

protected KEdit(Class dummy)

KEdit

public KEdit(QWidget _parent, String name)
The usual constructor.

UNKNOWN: The usual constructor.

KEdit

public KEdit(QWidget _parent)

KEdit

public KEdit()

Method Detail

className

public String className()

cleanWhiteSpace

public void cleanWhiteSpace()
Clean up redundant whitespace from selected text.

UNKNOWN: Clean up redundant whitespace from selected text.

computePosition

protected void computePosition()

contentsDragEnterEvent

protected void contentsDragEnterEvent(QDragEnterEvent e)

contentsDragMoveEvent

protected void contentsDragMoveEvent(QDragMoveEvent e)

contentsDropEvent

protected void contentsDropEvent(QDropEvent e)

corrected

public void corrected(String originalword, String newword, int pos)

UNKNOWN:

create

protected void create(long arg1, boolean initializeWindow, boolean destroyOldWindow)
Reimplemented for internal reasons, the API is not affected.

UNKNOWN: Reimplemented for internal reasons, the API is not affected.

create

protected void create(long arg1, boolean initializeWindow)

create

protected void create(long arg1)

create

protected void create()

createPopupMenu

public QPopupMenu createPopupMenu(QPoint pos)

currentColumn

public int currentColumn()
Retrieve the actual column number the cursor is on. This call differs from QMultiLineEdit.getCursorPosition() in that it returns the actual cursor position and not the character position. Use currentLine() and currentColumn() if you want to display the current line or column in the status bar for example.

UNKNOWN: Retrieve the actual column number the cursor is on.

currentLine

public int currentLine()
Retrieve the current line number. The current line is the line the cursor is on.

UNKNOWN: Retrieve the current line number.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

doGotoLine

public void doGotoLine()
Present a "Goto Line" dialog to the user.

UNKNOWN: Present a "Goto Line" dialog to the user.

doReplace

protected int doReplace(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col, boolean replace)

doSearch

protected int doSearch(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col)

dragEnterEvent

protected void dragEnterEvent(QDragEnterEvent e)

dragMoveEvent

protected void dragMoveEvent(QDragMoveEvent e)

dropEvent

protected void dropEvent(QDropEvent e)

ensureCursorVisible

public void ensureCursorVisible()
Reimplemented for internal reasons, the API is not affected.

UNKNOWN: Reimplemented for internal reasons, the API is not affected.

finalize

protected void finalize()
Deletes the wrapped C++ instance

insertText

public void insertText(QTextStream arg1)
Insert text from the text stream into the edit widget.

UNKNOWN: Insert text from the text stream into the edit widget.

installRBPopup

public void installRBPopup(QPopupMenu arg1)
Install a context menu for KEdit. The Popup Menu will be activated on a right mouse button press event.

UNKNOWN: Install a context menu for KEdit.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

keyPressEvent

protected void keyPressEvent(QKeyEvent arg1)

metaObject

public QMetaObject metaObject()

misspelling

public void misspelling(String word, String[] arg2, int pos)

UNKNOWN:

posToRowCol

protected void posToRowCol(int pos, int line, int col)
Sets line and col to the position pos, considering word wrap.

UNKNOWN: Sets line and col to the position pos, considering word wrap.

repeatSearch

public boolean repeatSearch()
Repeat the last search specified on the search dialog. If the user hasn't searched for anything until now, this method will simply return without doing anything.

Returns: true if a search was done. false if no search was done.

UNKNOWN: Repeat the last search specified on the search dialog.

replace

public void replace()
Present a Search and Replace Dialog to the user.

UNKNOWN: Present a Search and Replace Dialog to the user.

saveText

public void saveText(QTextStream arg1, boolean softWrap)
Save text from the edit widget to a text stream. If softWrap is false soft line wrappings are replaced with line-feeds If softWrap is true soft line wrappings are ignored.

UNKNOWN: Save text from the edit widget to a text stream.

saveText

public void saveText(QTextStream arg1)

search

public void search()
Present a search dialog to the user

UNKNOWN: Present a search dialog to the user

selectFont

public void selectFont()
Let the user select a font and set the font of the textwidget to that selected font.

UNKNOWN: Let the user select a font and set the font of the textwidget to that selected font.

selectWordUnderCursor

public String selectWordUnderCursor()

setAutoUpdate

public void setAutoUpdate(boolean b)

setCursor

public void setCursor(QCursor arg1)

setOverwriteEnabled

public void setOverwriteEnabled(boolean b)
Allow the user to toggle between insert mode and overwrite mode with the "Insert" key. See also toggle_overwrite_signal(); The default is false: the user can not toggle.

UNKNOWN: Allow the user to toggle between insert mode and overwrite mode with the "Insert" key.

spellcheck_start

public void spellcheck_start()
Start spellchecking mode.

UNKNOWN: Start spellchecking mode.

spellcheck_stop

public void spellcheck_stop()
Exit spellchecking mode.

UNKNOWN: Exit spellchecking mode.

viewportPaintEvent

protected void viewportPaintEvent(QPaintEvent arg1)