25 #include <QtGui/QTextEdit>
27 #define HAVE_SHOWTABACTION 1
28 #define HAVE_AUTOCORRECTFEATURE 1
29 #define HAVE_FORCESPELLCHECKING 1
30 #define HAVE_MOUSEPOPUPMENUIMPLEMENTATION 1
93 Q_PROPERTY(
QString clickMessage READ clickMessage WRITE setClickMessage )
94 Q_PROPERTY(
bool checkSpellingEnabled READ checkSpellingEnabled WRITE setCheckSpellingEnabled )
95 Q_PROPERTY(
QString spellCheckingLanguage READ spellCheckingLanguage WRITE setSpellCheckingLanguage )
118 virtual
void setReadOnly(
bool readOnly );
134 void setCheckSpellingEnabled(
bool check );
147 bool checkSpellingEnabled() const;
157 void highlightWord(
int length,
int pos );
172 void setSpellCheckingConfigFileName(const
QString &fileName);
188 virtual
void createHighlighter();
198 Sonnet::Highlighter* highlighter() const;
213 void setHighlighter(Sonnet::Highlighter *_highLighter);
219 QMenu *mousePopupMenu();
225 void enableFindReplace(
bool enabled);
243 const
QString& spellCheckingLanguage() const;
251 void setClickMessage(const
QString &msg);
263 void showTabAction(
bool show);
268 void showAutoCorrectButton(
bool show);
275 void forceSpellChecking();
283 void checkSpellingChanged(
bool );
289 void spellCheckStatus(const
QString &);
298 void languageChanged(const QString &language);
313 void aboutToShowContextMenu(
QMenu* menu);
318 void spellCheckerAutoCorrect(const QString& currentWord, const QString& autoCorrectWord);
324 void spellCheckingFinished();
330 void spellCheckingCanceled();
342 void setSpellCheckingLanguage(const QString &language);
348 void checkSpelling();
364 void showSpellConfigDialog(const QString &configFileName,
365 const QString &windowIcon = QString());
379 void mousePopupMenuImplementation(const
QPoint& pos);
385 void slotDoReplace();
386 void slotReplaceNext();
392 void slotFindPrevious();
398 void slotSpeakText();
404 virtual
bool event(
QEvent*);
415 virtual
void keyPressEvent(
QKeyEvent* );
421 virtual
void focusInEvent( QFocusEvent* );
458 void setCheckSpellingEnabledInternal(
bool check);
465 bool checkSpellingEnabledInternal() const;
471 Q_PRIVATE_SLOT( d,
void spellCheckerMisspelling( const QString&,
int ) )
472 Q_PRIVATE_SLOT( d,
void spellCheckerCorrected(const QString&,
int,const QString&) )
473 Q_PRIVATE_SLOT( d,
void spellCheckerCanceled())
474 Q_PRIVATE_SLOT( d,
void spellCheckerAutoCorrect(const QString&,const QString&) )
475 Q_PRIVATE_SLOT( d,
void spellCheckerFinished() )
476 Q_PRIVATE_SLOT( d,
void undoableClear() )
477 Q_PRIVATE_SLOT( d,
void toggleAutoSpellCheck() )
478 Q_PRIVATE_SLOT( d,
void slotAllowTab() )
479 Q_PRIVATE_SLOT( d,
void menuActivated(
QAction* ) )
480 Q_PRIVATE_SLOT( d,
void slotFindHighlight(const QString&,
int,
int))
481 Q_PRIVATE_SLOT( d,
void slotReplaceText(const QString &,
int,
int,
int))
484 #endif // KTEXTEDIT_H
const KShortcut & deleteWordForward()
Delete a word forward from mouse/cursor position.
This interface is a workaround to keep binary compatibility in KDE4, because adding the virtual keywo...
virtual bool shouldBlockBeSpellChecked(const QString &block) const =0
Returns true if the given paragraph or block should be spellcheck.
virtual void setSpellCheckingEnabled(bool enable)=0
Sets whether to enable spellchecking for the KTextEdit.
virtual bool isSpellCheckingEnabled() const =0
virtual ~KTextEditSpellInterface()
KAction * replace(const QObject *recvr, const char *slot, QObject *parent)
Find and replace matches.
const KShortcut & deleteWordBack()
Delete a word back from mouse/cursor position.