diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-06-04 19:29:58 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-06-04 19:29:58 -0400 |
commit | 6210e98ab05f1abb74877f3a75820e7af042b820 (patch) | |
tree | 357a313c0a0e7ff7b8a7b22a8bceb99d2d6e34ca /src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h | |
parent | Removed extra file and whitespace (diff) | |
download | lumina-6210e98ab05f1abb74877f3a75820e7af042b820.tar.gz lumina-6210e98ab05f1abb74877f3a75820e7af042b820.tar.bz2 lumina-6210e98ab05f1abb74877f3a75820e7af042b820.zip |
Began adding Syntax Support for formats to enable/disable spellcheck by default
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h index 353f4d40..8ca8037d 100644 --- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h +++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h @@ -13,6 +13,8 @@ #include <QPaintEvent> #include <QFileSystemWatcher> +#include <hunspell/hunspell.hxx> + #include "syntaxSupport.h" #include "Word.h" @@ -32,6 +34,7 @@ public: void LoadFile(QString filepath); bool SaveFile(bool newname = false); QString currentFile(); + Word *wordAtPosition(int, int); bool hasChange(); bool readOnlyFile(); @@ -41,6 +44,7 @@ public: void paintLNW(QPaintEvent *ev); //forwarded from the LNW paint event void updateLNW(); void setWordList(QList<Word*> _wordList) { wordList = _wordList; } + void setDictionary(Hunspell *_hunspell) { hunspell = _hunspell; } QFontMetrics *metrics; @@ -53,6 +57,7 @@ private: QList<Word*> wordList; //Syntax Highlighting class Custom_Syntax *SYNTAX; + Hunspell *hunspell; //Bracket/Perentheses matching functions int matchleft, matchright; //positions within the document |