QtNovelUI/WordsIDE/keywordshighlighter.h

42 lines
898 B
C
Raw Normal View History

2022-11-17 08:26:05 +00:00
#ifndef WORDSHIGHTLIGHTER_H
#define WORDSHIGHTLIGHTER_H
#include <QObject>
#include <QSyntaxHighlighter>
2023-02-26 16:22:44 +00:00
namespace Core {
class AppCore;
}
2022-11-17 08:26:05 +00:00
namespace Enhancement {
2023-03-01 14:19:13 +00:00
class HighlightFeature
2023-02-26 16:22:44 +00:00
{
public:
2023-03-01 14:19:13 +00:00
virtual ~HighlightFeature() = default;
2023-02-26 16:22:44 +00:00
2023-03-17 13:58:38 +00:00
virtual void contexBinding(Core::AppCore *app) = 0;
virtual void renderRepeat() const = 0;
2023-02-26 16:22:44 +00:00
};
2022-11-17 08:26:05 +00:00
/**
* @brief
*/
// class KeywordsHighlighter : public QSyntaxHighlighter
// {
// public:
// KeywordsHighlighter(QObject *parent = nullptr);
2023-02-26 16:22:44 +00:00
// void reset(Parse::Result::DocCore *base);
2022-11-17 08:26:05 +00:00
// private:
// Parse::Result::DocCore *parse_core;
2022-11-17 08:26:05 +00:00
// // QSyntaxHighlighter interface
// protected:
// virtual void highlightBlock(const QString &text) override;
// };
2022-11-17 08:26:05 +00:00
}
#endif // WORDSHIGHTLIGHTER_H