org.kde.koala
public class KEdit extends QMultiLineEdit
UNKNOWN: A simple text editor for the %KDE project.
Field Summary | |
---|---|
static int | BACKWARD |
static int | FORWARD |
static int | NONE
Search directions. |
Constructor Summary | |
---|---|
protected | KEdit(Class dummy) |
KEdit(QWidget _parent, String name)
The usual constructor. | |
KEdit(QWidget _parent) | |
KEdit() |
Method Summary | |
---|---|
String | className() |
void | cleanWhiteSpace()
Clean up redundant whitespace from selected text. |
protected void | computePosition() |
protected void | contentsDragEnterEvent(QDragEnterEvent e) |
protected void | contentsDragMoveEvent(QDragMoveEvent e) |
protected void | contentsDropEvent(QDropEvent e) |
void | corrected(String originalword, String newword, int pos) |
protected void | create(long arg1, boolean initializeWindow, boolean destroyOldWindow)
Reimplemented for internal reasons, the API is not affected. |
protected void | create(long arg1, boolean initializeWindow) |
protected void | create(long arg1) |
protected void | create() |
QPopupMenu | createPopupMenu(QPoint pos) |
int | currentColumn()
Retrieve the actual column number the cursor is on.
|
int | currentLine()
Retrieve the current line number.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
void | doGotoLine()
Present a "Goto Line" dialog to the user. |
protected int | doReplace(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col, boolean replace) |
protected int | doSearch(String s_pattern, boolean case_sensitive, boolean regex, boolean forward, int line, int col) |
protected void | dragEnterEvent(QDragEnterEvent e) |
protected void | dragMoveEvent(QDragMoveEvent e) |
protected void | dropEvent(QDropEvent e) |
void | ensureCursorVisible()
Reimplemented for internal reasons, the API is not affected. |
protected void | finalize() Deletes the wrapped C++ instance |
void | insertText(QTextStream arg1)
Insert text from the text stream into the edit widget. |
void | installRBPopup(QPopupMenu arg1)
Install a context menu for KEdit.
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
protected void | keyPressEvent(QKeyEvent arg1) |
QMetaObject | metaObject() |
void | misspelling(String word, String[] arg2, int pos) |
protected void | posToRowCol(int pos, int line, int col)
Sets line and col to the position pos, considering word wrap. |
boolean | repeatSearch()
Repeat the last search specified on the search dialog.
|
void | replace()
Present a Search and Replace Dialog to the user. |
void | saveText(QTextStream arg1, boolean softWrap)
Save text from the edit widget to a text stream.
|
void | saveText(QTextStream arg1) |
void | search()
Present a search dialog to the user |
void | selectFont()
Let the user select a font and set the font of the textwidget to that
selected font. |
String | selectWordUnderCursor() |
void | setAutoUpdate(boolean b) |
void | setCursor(QCursor arg1) |
void | setOverwriteEnabled(boolean b)
Allow the user to toggle between insert mode and overwrite mode with
the "Insert" key. |
void | spellcheck_start()
Start spellchecking mode. |
void | spellcheck_stop()
Exit spellchecking mode. |
protected void | viewportPaintEvent(QPaintEvent arg1) |
UNKNOWN: Search directions.
UNKNOWN: The usual constructor.
UNKNOWN: Clean up redundant whitespace from selected text.
UNKNOWN:
UNKNOWN: Reimplemented for internal reasons, the API is not affected.
UNKNOWN: Retrieve the actual column number the cursor is on.
UNKNOWN: Retrieve the current line number.
UNKNOWN: Present a "Goto Line" dialog to the user.
UNKNOWN: Reimplemented for internal reasons, the API is not affected.
UNKNOWN: Insert text from the text stream into the edit widget.
UNKNOWN: Install a context menu for KEdit.
UNKNOWN:
UNKNOWN: Sets line and col to the position pos, considering word wrap.
Returns: true
if a search was done. false
if no search was done.
UNKNOWN: Repeat the last search specified on the search dialog.
UNKNOWN: Present a Search and Replace Dialog to the user.
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.
UNKNOWN: Present a search dialog to the user
UNKNOWN: Let the user select a font and set the font of the textwidget to that selected font.
UNKNOWN: Allow the user to toggle between insert mode and overwrite mode with the "Insert" key.
UNKNOWN: Start spellchecking mode.
UNKNOWN: Exit spellchecking mode.