![]() |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
#include <jsedit.h>


Classes | |
| struct | HighlightingRule |
Public Member Functions | |
| JSHighlighter (QTextDocument *parent=0) | |
| void | setColor (JSEdit::ColorComponent component, const QColor &color) |
| void | mark (const QString &str, Qt::CaseSensitivity caseSensitivity) |
| QStringList | keywords () const |
| void | setKeywords (const QStringList &keywords) |
| void | SetRule (QString kind, QString pattern, QTextCharFormat format) |
| JSHighlighter (QTextDocument *parent=0) | |
Public Attributes | |
| QVector< HighlightingRule > | highlightingRules |
Protected Member Functions | |
| void | highlightBlock (const QString &text) |
Private Attributes | |
| QSet< QString > | m_keywords |
| QSet< QString > | m_knownIds |
| QHash< JSEdit::ColorComponent, QColor > | m_colors |
| QString | m_markString |
| Qt::CaseSensitivity | m_markCaseSensitivity |
| JSHighlighter::JSHighlighter | ( | QTextDocument * | parent = 0 | ) |
Definition at line 33 of file jsedit.cpp.
References JSEdit::BuiltIn, JSEdit::Comment, JSEdit::Identifier, JSEdit::Keyword, m_colors, m_keywords, m_knownIds, JSEdit::Marker, JSEdit::Normal, JSEdit::Number, JSEdit::Operator, and JSEdit::String.
|
inline |
Definition at line 34 of file JSHighlighter.h.
References SetRule().

|
protected |
Definition at line 230 of file jsedit.cpp.
References JSBlockData::bracketPositions, JSEdit::BuiltIn, JSEdit::Comment, JSEdit::Keyword, m_colors, m_keywords, m_knownIds, m_markCaseSensitivity, m_markString, JSEdit::Marker, JSEdit::Normal, JSEdit::Number, JSEdit::Operator, and JSEdit::String.
| QStringList JSHighlighter::keywords | ( | ) | const |
Definition at line 407 of file jsedit.cpp.
References m_keywords.
Referenced by setKeywords().

| void JSHighlighter::mark | ( | const QString & | str, |
| Qt::CaseSensitivity | caseSensitivity | ||
| ) |
Definition at line 400 of file jsedit.cpp.
References m_markCaseSensitivity, and m_markString.
| void JSHighlighter::setColor | ( | JSEdit::ColorComponent | component, |
| const QColor & | color | ||
| ) |
Definition at line 224 of file jsedit.cpp.
References m_colors.
| void JSHighlighter::setKeywords | ( | const QStringList & | keywords | ) |
Definition at line 412 of file jsedit.cpp.
References keywords(), and m_keywords.

|
inline |
Definition at line 26 of file JSHighlighter.h.
References JSHighlighter::HighlightingRule::format, highlightingRules, and JSHighlighter::HighlightingRule::pattern.
Referenced by JSHighlighter().

| QVector<HighlightingRule> JSHighlighter::highlightingRules |
Definition at line 24 of file JSHighlighter.h.
Referenced by SetRule().
|
private |
Definition at line 137 of file jsedit.h.
Referenced by highlightBlock(), JSHighlighter(), and setColor().
|
private |
Definition at line 135 of file jsedit.h.
Referenced by highlightBlock(), JSHighlighter(), keywords(), and setKeywords().
|
private |
Definition at line 136 of file jsedit.h.
Referenced by highlightBlock(), and JSHighlighter().
|
private |
Definition at line 139 of file jsedit.h.
Referenced by highlightBlock(), and mark().
|
private |
Definition at line 138 of file jsedit.h.
Referenced by highlightBlock(), and mark().