diff options
author | Lindsay Mathieson <lindsay.mathieson@gmail.com> | 2012-09-17 19:52:53 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-09-17 19:56:40 +0200 |
commit | b2b2692bf2a24ef4a588c0f94cffde0dbe3c94ac (patch) | |
tree | 43deb1c344798373dd2f62de45c36afbef8245ea /src/webview.h | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-b2b2692bf2a24ef4a588c0f94cffde0dbe3c94ac.tar.xz |
Integrated spell checking
- inline spell highlighter. This requires WebKit 2.3 to work.
- Addition of a suggested replacement word list to the context menu,
for the word right clicked on
- A standard modeless spell check dialog that works on the current
editable text (or selection).
Heavily cribbed from Dawit's work on kdewebkitpart.
BUG: 305720
CCMAIL: lindsay.mathieson@gmail.com
REVIEW: 106417
REVIEWED-BY: adjam
Diffstat (limited to 'src/webview.h')
-rw-r--r-- | src/webview.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/webview.h b/src/webview.h index 0141925c..8cf16817 100644 --- a/src/webview.h +++ b/src/webview.h @@ -39,6 +39,7 @@ #include <QTime> #include <QPoint> #include <QPixmap> +#include <QWebHitTestResult> // Forward Declarations class WebPage; @@ -72,6 +73,7 @@ public: const QByteArray & body = QByteArray()); protected: + bool popupSpellMenu(QContextMenuEvent *event); void contextMenuEvent(QContextMenuEvent *event); void mouseMoveEvent(QMouseEvent *event); @@ -97,6 +99,10 @@ private Q_SLOTS: void openLinkInNewWindow(); void openLinkInNewTab(); void bookmarkLink(); + void spellCheck(); + void spellCheckerCorrected(const QString& original, int pos, const QString& replacement); + void spellCheckerMisspelling(const QString& text, int pos); + void slotSpellCheckDone(const QString&); void sendByMail(); void viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); @@ -133,6 +139,12 @@ private: private: WebPage *m_page; QPoint m_clickPos; + QWebHitTestResult m_ContextMenuResult; + + // Spell Checking + int m_spellTextSelectionStart; + int m_spellTextSelectionEnd; + // Auto Scroll QTimer *const m_autoScrollTimer; |