aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
index b0a6cbc7..353f4d40 100644
--- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
+++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
@@ -14,6 +14,7 @@
#include <QFileSystemWatcher>
#include "syntaxSupport.h"
+#include "Word.h"
//QPlainTextEdit subclass for providing the actual text editor functionality
class PlainTextEditor : public QPlainTextEdit{
@@ -39,8 +40,9 @@ public:
int LNWWidth(); //replacing the LNW size hint detection
void paintLNW(QPaintEvent *ev); //forwarded from the LNW paint event
void updateLNW();
+ void setWordList(QList<Word*> _wordList) { wordList = _wordList; }
- QFontMetrics *metrics;
+ QFontMetrics *metrics;
private:
QWidget *LNW; //Line Number Widget
@@ -48,6 +50,7 @@ private:
QSettings *settings;
QString lastSaveContents;
QFileSystemWatcher *watcher;
+ QList<Word*> wordList;
//Syntax Highlighting class
Custom_Syntax *SYNTAX;
@@ -74,10 +77,13 @@ private slots:
protected:
void resizeEvent(QResizeEvent *ev);
+ void contextMenuEvent(QContextMenuEvent *ev);
+ void keyPressEvent(QKeyEvent *ev);
signals:
void UnsavedChanges(QString); //filename
void FileLoaded(QString);
+ void CheckSpelling(int, int);
void statusTipChanged();
};
bgstack15