BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
HighlightingRule Class Reference

Description

Container to describe a highlighting rule. Based on a regular expression, a relevant match # and the format.

Definition at line 45 of file PythonSyntaxHighlighter.h.

Public Member Functions

 HighlightingRule (const QString &patternStr, int n, const QTextCharFormat &matchingFormat)
 

Public Attributes

QTextCharFormat format
 
int nth
 
QString originalRuleStr
 
QRegExp pattern
 

Constructor & Destructor Documentation

◆ HighlightingRule()

HighlightingRule::HighlightingRule ( const QString &  patternStr,
int  n,
const QTextCharFormat &  matchingFormat 
)
inline

Definition at line 47 of file PythonSyntaxHighlighter.h.

48  {
49  originalRuleStr = patternStr;
50  pattern = QRegExp(patternStr);
51  nth = n;
52  format = matchingFormat;
53  }

References format, nth, originalRuleStr, and pattern.

Member Data Documentation

◆ format

QTextCharFormat HighlightingRule::format

Definition at line 57 of file PythonSyntaxHighlighter.h.

Referenced by HighlightingRule().

◆ nth

int HighlightingRule::nth

Definition at line 56 of file PythonSyntaxHighlighter.h.

Referenced by HighlightingRule().

◆ originalRuleStr

QString HighlightingRule::originalRuleStr

Definition at line 54 of file PythonSyntaxHighlighter.h.

Referenced by HighlightingRule().

◆ pattern

QRegExp HighlightingRule::pattern

Definition at line 55 of file PythonSyntaxHighlighter.h.

Referenced by HighlightingRule().


The documentation for this class was generated from the following file: