25 #include <QtGui/QTextEdit>
89 Q_PROPERTY(
QString clickMessage READ clickMessage WRITE setClickMessage )
90 Q_PROPERTY(
bool checkSpellingEnabled READ checkSpellingEnabled WRITE setCheckSpellingEnabled )
91 Q_PROPERTY(
QString spellCheckingLanguage READ spellCheckingLanguage WRITE setSpellCheckingLanguage )
114 virtual
void setReadOnly(
bool readOnly );
130 void setCheckSpellingEnabled(
bool check );
143 bool checkSpellingEnabled() const;
153 void highlightWord(
int length,
int pos );
168 void setSpellCheckingConfigFileName(const
QString &fileName);
184 virtual
void createHighlighter();
194 Sonnet::Highlighter* highlighter() const;
209 void setHighlighter(Sonnet::Highlighter *_highLighter);
215 QMenu *mousePopupMenu();
221 void enableFindReplace(
bool enabled);
239 const
QString& spellCheckingLanguage() const;
247 void setClickMessage(const
QString &msg);
261 void checkSpellingChanged(
bool );
267 void spellCheckStatus(const
QString &);
276 void languageChanged(const QString &language);
291 void aboutToShowContextMenu(
QMenu* menu);
303 void setSpellCheckingLanguage(const QString &language);
309 void checkSpelling();
325 void showSpellConfigDialog(const QString &configFileName,
326 const QString &windowIcon = QString());
338 void slotDoReplace();
339 void slotReplaceNext();
347 void slotSpeakText();
353 virtual
bool event(QEvent*);
358 virtual
void paintEvent(QPaintEvent *);
359 virtual
void focusOutEvent(QFocusEvent *);
364 virtual
void keyPressEvent( QKeyEvent* );
370 virtual
void focusInEvent( QFocusEvent* );
376 virtual
void wheelEvent( QWheelEvent* );
394 virtual
void contextMenuEvent( QContextMenuEvent* );
407 void setCheckSpellingEnabledInternal(
bool check);
414 bool checkSpellingEnabledInternal() const;
420 Q_PRIVATE_SLOT( d,
void spellCheckerMisspelling( const QString&,
int ) )
421 Q_PRIVATE_SLOT( d,
void spellCheckerCorrected(const QString&,
int,const QString&) )
422 Q_PRIVATE_SLOT( d,
void spellCheckerCanceled())
423 Q_PRIVATE_SLOT( d,
void spellCheckerAutoCorrect(const QString&,const QString&) )
424 Q_PRIVATE_SLOT( d,
void spellCheckerFinished() )
425 Q_PRIVATE_SLOT( d,
void undoableClear() )
426 Q_PRIVATE_SLOT( d,
void toggleAutoSpellCheck() )
427 Q_PRIVATE_SLOT( d,
void slotAllowTab() )
428 Q_PRIVATE_SLOT( d,
void menuActivated(
QAction* ) )
429 Q_PRIVATE_SLOT( d,
void slotFindHighlight(const QString&,
int,
int))
430 Q_PRIVATE_SLOT( d,
void slotReplaceText(const QString &,
int,
int,
int))
433 #endif // KTEXTEDIT_H