org.kde.koala

Class KTextEdit

public class KTextEdit extends QTextEdit

This is just a little subclass of QTextEdit, implementing some standard KDE features, like Cursor auto-hiding, configurable wheelscrolling (fast-scroll or zoom) and deleting of entire words with Ctrl-Backspace or Ctrl-Delete. Basic rule: whenever you want to use QTextEdit, use KTextEdit!

Author: Carsten Pfeiffer

See Also: org.kde.qt.QTextEdit

UNKNOWN: A KDE'ified QTextEdit.

Constructor Summary
protected KTextEdit(Class dummy)
KTextEdit(String text, String context, QWidget parent, String name)
Constructs a KTextEdit object.
KTextEdit(String text, String context, QWidget parent)
KTextEdit(String text, String context)
KTextEdit(String text)
KTextEdit(QWidget parent, String name)
Constructs a KTextEdit object.
KTextEdit(QWidget parent)
KTextEdit()
Method Summary
voidcheckSpelling()
Create a modal dialog to check the spelling.
booleancheckSpellingEnabled()
Returns true if spell checking is enabled for this text edit.
StringclassName()
protected voidcontentsWheelEvent(QWheelEvent arg1)
Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.
protected QPopupMenucreatePopupMenu(QPoint pos)
Reimplemented from QTextEdit to add spelling related items when appropriate.
protected voiddeleteWordBack()
Deletes a word backwards from the current cursor position, if available.
protected voiddeleteWordForward()
Deletes a word forwards from the current cursor position, if available.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
protected voidfocusInEvent(QFocusEvent arg1)
Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.
voidhighLightWord(int length, int pos)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidkeyPressEvent(QKeyEvent arg1)
Reimplemented to catch "delete word" key events.
QMetaObjectmetaObject()
voidsetCheckSpellingEnabled(boolean check)
Turns spell checking for this text edit on or off.
voidsetPalette(QPalette palette)
Reimplemented for tracking custom palettes.
voidsetReadOnly(boolean readOnly)
Reimplemented to set a proper "deactivated" background color.

Constructor Detail

KTextEdit

protected KTextEdit(Class dummy)

KTextEdit

public KTextEdit(String text, String context, QWidget parent, String name)
Constructs a KTextEdit object. See QTextEdit.QTextEdit for details.

UNKNOWN: Constructs a KTextEdit object.

KTextEdit

public KTextEdit(String text, String context, QWidget parent)

KTextEdit

public KTextEdit(String text, String context)

KTextEdit

public KTextEdit(String text)

KTextEdit

public KTextEdit(QWidget parent, String name)
Constructs a KTextEdit object. See QTextEdit.QTextEdit for details.

UNKNOWN: Constructs a KTextEdit object.

KTextEdit

public KTextEdit(QWidget parent)

KTextEdit

public KTextEdit()

Method Detail

checkSpelling

public void checkSpelling()
Create a modal dialog to check the spelling. This slot will not return until spell checking has been completed.

UNKNOWN: Create a modal dialog to check the spelling.

checkSpellingEnabled

public boolean checkSpellingEnabled()
Returns true if spell checking is enabled for this text edit. @ see setCheckSpellingEnabled()

UNKNOWN: Returns true if spell checking is enabled for this text edit.

className

public String className()

contentsWheelEvent

protected void contentsWheelEvent(QWheelEvent arg1)
Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.

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

createPopupMenu

protected QPopupMenu createPopupMenu(QPoint pos)
Reimplemented from QTextEdit to add spelling related items when appropriate.

UNKNOWN: Reimplemented from QTextEdit to add spelling related items when appropriate.

deleteWordBack

protected void deleteWordBack()
Deletes a word backwards from the current cursor position, if available.

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

deleteWordForward

protected void deleteWordForward()
Deletes a word forwards from the current cursor position, if available.

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

dispose

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

finalize

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

focusInEvent

protected void focusInEvent(QFocusEvent arg1)
Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.

UNKNOWN: Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.

highLightWord

public void highLightWord(int length, int pos)

isDisposed

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

keyPressEvent

protected void keyPressEvent(QKeyEvent arg1)
Reimplemented to catch "delete word" key events.

UNKNOWN: Reimplemented to catch "delete word" key events.

metaObject

public QMetaObject metaObject()

setCheckSpellingEnabled

public void setCheckSpellingEnabled(boolean check)
Turns spell checking for this text edit on or off.

See Also: KTextEdit

UNKNOWN: Turns spell checking for this text edit on or off.

setPalette

public void setPalette(QPalette palette)
Reimplemented for tracking custom palettes.

UNKNOWN: Reimplemented for tracking custom palettes.

setReadOnly

public void setReadOnly(boolean readOnly)
Reimplemented to set a proper "deactivated" background color.

UNKNOWN: Reimplemented to set a proper "deactivated" background color.