1#ifndef NNGN_TOOLS_AUDIO_SOURCE_EDIT_H
2#define NNGN_TOOLS_AUDIO_SOURCE_EDIT_H
4#include <QRegularExpression>
5#include <QSyntaxHighlighter>
6#include <QPlainTextEdit>
8#include "utils/utils.h"
12class LuaSyntaxHighlighter final :
public QSyntaxHighlighter {
18 std::vector<QRegularExpression>
regexps = {};
19 QTextCharFormat
fmt = {};
26class SourceEditor final :
public QPlainTextEdit {
31 using QPlainTextEdit::QPlainTextEdit;
Definition: source_editor.h:12
std::vector< category > categories
Definition: source_editor.h:23
void highlightBlock(const QString &text) final
LuaSyntaxHighlighter(QTextDocument *parent=nullptr)
Definition: source_editor.h:26
void dropEvent(QDropEvent *e) final
void keyPressEvent(QKeyEvent *e) final
LuaSyntaxHighlighter * highlighter
Definition: source_editor.h:37
void updated(QString s) const
std::chrono::seconds s
Definition: timing.cpp:6
#define NNGN_NO_COPY(x)
Definition: utils.h:35
Definition: source_editor.h:17
int group
Definition: source_editor.h:20
QTextCharFormat fmt
Definition: source_editor.h:19
std::vector< QRegularExpression > regexps
Definition: source_editor.h:18