KDE3Support
#include <k3textedit.h>
Public Slots | |
void | checkSpelling () |
Public Member Functions | |
K3TextEdit (const QString &text, const QString &context=QString(), QWidget *parent=0, const char *name=0) | |
K3TextEdit (QWidget *parent=0L, const char *name=0) | |
~K3TextEdit () | |
bool | checkSpellingEnabled () const |
void | highLightWord (unsigned int length, unsigned int pos) |
void | setCheckSpellingEnabled (bool check) |
virtual void | setPalette (const QPalette &palette) |
virtual void | setReadOnly (bool readOnly) |
Protected Member Functions | |
virtual void | contentsWheelEvent (QWheelEvent *) |
virtual Q3PopupMenu * | createPopupMenu (const QPoint &pos) |
virtual Q3PopupMenu * | createPopupMenu () |
virtual void | deleteWordBack () |
virtual void | deleteWordForward () |
virtual void | focusInEvent (QFocusEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
A KDE'ified Q3TextEdit.
This is just a little subclass of Q3TextEdit, 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 Q3TextEdit, use K3TextEdit!
- See also
- Q3TextEdit
Definition at line 42 of file k3textedit.h.
Constructor & Destructor Documentation
K3TextEdit::K3TextEdit | ( | const QString & | text, |
const QString & | context = QString() , |
||
QWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Constructs a K3TextEdit object.
See Q3TextEdit::Q3TextEdit for details.
Definition at line 55 of file k3textedit.cpp.
K3TextEdit::K3TextEdit | ( | QWidget * | parent = 0L , |
const char * | name = 0 |
||
) |
Constructs a K3TextEdit object.
See Q3TextEdit::Q3TextEdit for details.
Definition at line 63 of file k3textedit.cpp.
K3TextEdit::~K3TextEdit | ( | ) |
Destroys the K3TextEdit object.
Definition at line 70 of file k3textedit.cpp.
Member Function Documentation
|
slot |
Create a modal dialog to check the spelling.
This slot will not return until spell checking has been completed.
Definition at line 345 of file k3textedit.cpp.
bool K3TextEdit::checkSpellingEnabled | ( | ) | const |
Returns true if spell checking is enabled for this text edit.
- See also
- setCheckSpellingEnabled()
Definition at line 305 of file k3textedit.cpp.
|
protectedvirtual |
Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.
Definition at line 254 of file k3textedit.cpp.
|
protectedvirtual |
Reimplemented from Q3TextEdit to add spelling related items when appropriate.
Definition at line 214 of file k3textedit.cpp.
|
protectedvirtual |
This is just a reimplementation of a deprecated method from Q3TextEdit and is just here to keep source compatibility.
This should not be used in new code. Specifically reimplementing this method will probably not do what you expect. See the method above.
Definition at line 249 of file k3textedit.cpp.
|
protectedvirtual |
Deletes a word backwards from the current cursor position, if available.
Definition at line 195 of file k3textedit.cpp.
|
protectedvirtual |
Deletes a word forwards from the current cursor position, if available.
Definition at line 202 of file k3textedit.cpp.
|
protectedvirtual |
Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.
Definition at line 297 of file k3textedit.cpp.
void K3TextEdit::highLightWord | ( | unsigned int | length, |
unsigned int | pos | ||
) |
Definition at line 406 of file k3textedit.cpp.
|
protectedvirtual |
Reimplemented to catch "delete word" key events.
Definition at line 75 of file k3textedit.cpp.
void K3TextEdit::setCheckSpellingEnabled | ( | bool | check | ) |
Turns spell checking for this text edit on or off.
- See also
- checkSpellingEnabled()
Definition at line 275 of file k3textedit.cpp.
|
virtual |
Reimplemented for tracking custom palettes.
Definition at line 262 of file k3textedit.cpp.
|
virtual |
Reimplemented to set a proper "deactivated" background color.
Definition at line 310 of file k3textedit.cpp.
|
protectedvirtual |
Definition at line 342 of file k3textedit.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.