diff options
Diffstat (limited to 'desktop-utilities/lumina-textedit/PlainTextEditor.h')
-rw-r--r-- | desktop-utilities/lumina-textedit/PlainTextEditor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/PlainTextEditor.h b/desktop-utilities/lumina-textedit/PlainTextEditor.h index 46841e59..81574b32 100644 --- a/desktop-utilities/lumina-textedit/PlainTextEditor.h +++ b/desktop-utilities/lumina-textedit/PlainTextEditor.h @@ -30,11 +30,18 @@ private: QWidget *LNW; //Line Number Widget bool showLNW; + //Bracket/Perentheses matching functions + int matchleft, matchright; //positions within the document + void clearMatchData(); + void highlightMatch(QChar ch, bool forward, int fromPos); + private slots: //Functions for managing the line number widget void LNW_updateWidth(); // Tied to the QPlainTextEdit::blockCountChanged() signal void LNW_highlightLine(); // Tied to the QPlainTextEdit::cursorPositionChanged() signal void LNW_update(const QRect&, int); // Tied to the QPlainTextEdit::updateRequest() signal + //Function for running the matching routine + void checkMatchChar(); protected: void resizeEvent(QResizeEvent *ev); |