KDEUI
Go to the documentation of this file.
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();
219 QMenu *mousePopupMenu();
225 void enableFindReplace(
bool enabled);
243 const QString& spellCheckingLanguage()
const;
251 void setClickMessage(
const QString &msg);
257 QString clickMessage()
const;
263 void showTabAction(
bool show);
268 void showAutoCorrectButton(
bool show);
275 void forceSpellChecking();
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*);
409 virtual void paintEvent(QPaintEvent *);
410 virtual void focusOutEvent(QFocusEvent *);
415 virtual void keyPressEvent( QKeyEvent* );
421 virtual void focusInEvent( QFocusEvent* );
427 virtual void wheelEvent( QWheelEvent* );
445 virtual void contextMenuEvent( QContextMenuEvent* );
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
virtual bool shouldBlockBeSpellChecked(const QString &block) const =0
Returns true if the given paragraph or block should be spellcheck.
void languageChanged(const QString &language)
Emitted when the user changes the language in the spellcheck dialog shown by checkSpelling() or when ...
void aboutToShowContextMenu(QMenu *menu)
Emitted before the context menu is displayed.
This interface is a workaround to keep binary compatibility in KDE4, because adding the virtual keywo...
const KShortcut & deleteWordBack()
Delete a word back from mouse/cursor position.
virtual bool isSpellCheckingEnabled() const =0
KAction * replace(const QObject *recvr, const char *slot, QObject *parent)
Find and replace matches.
virtual ~KTextEditSpellInterface()
virtual void setSpellCheckingEnabled(bool enable)=0
Sets whether to enable spellchecking for the KTextEdit.
void spellCheckingFinished()
signal spellCheckingFinished is sent when we finish spell check or we click on "Terminate" button in ...
void checkSpellingChanged(bool)
emit signal when we activate or not autospellchecking
void spellCheckStatus(const QString &)
Signal sends when spell checking is finished/stopped/completed.
const KShortcut & deleteWordForward()
Delete a word forward from mouse/cursor position.
void spellCheckerAutoCorrect(const QString ¤tWord, const QString &autoCorrectWord)
void spellCheckingCanceled()
signal spellCheckingCanceled is sent when we cancel spell checking.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.