23 #include <tqtextedit.h>
25 #include <tdelibs_export.h>
53 const TQString& context = TQString::null,
54 TQWidget * parent = 0,
const char *name = 0 );
60 KTextEdit( TQWidget *parent = 0L,
const char *name = 0 );
69 virtual void setReadOnly (
bool readOnly);
74 virtual void setPalette(
const TQPalette& palette );
85 void setCheckSpellingEnabled(
bool check );
95 bool checkSpellingEnabled()
const;
97 void highLightWord(
unsigned int length,
unsigned int pos );
107 void checkSpelling();
113 virtual void keyPressEvent( TQKeyEvent * );
119 virtual void focusInEvent( TQFocusEvent * );
125 virtual void contentsWheelEvent( TQWheelEvent * );
131 virtual void deleteWordBack();
137 virtual void deleteWordForward();
143 virtual TQPopupMenu *createPopupMenu(
const TQPoint &pos );
153 virtual TQPopupMenu *createPopupMenu();
156 virtual void virtual_hook(
int id,
void* data );
159 void slotSpellCheckReady(
KSpell *s );
160 void slotSpellCheckDone(
const TQString &s );
161 void spellCheckerMisspelling(
const TQString &text,
const TQStringList &,
unsigned int pos);
162 void spellCheckerCorrected(
const TQString &,
const TQString &,
unsigned int );
163 void spellCheckerFinished();
164 void toggleAutoSpellCheck();
168 void posToRowCol(
unsigned int pos,
unsigned int &line,
unsigned int &col );
170 class KTextEditPrivate;