QtiPlot  0.9.8.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
PythonSyntaxHighlighter Class Reference

#include <PythonSyntaxHighlighter.h>

Inheritance diagram for PythonSyntaxHighlighter:
SyntaxHighlighter

Public Member Functions

 PythonSyntaxHighlighter (ScriptEdit *parent)
 
- Public Member Functions inherited from SyntaxHighlighter
 SyntaxHighlighter (ScriptEdit *parent)
 

Static Public Member Functions

static QStringList keywordsList ()
 

Protected Member Functions

void highlightBlock (const QString &text)
 
- Protected Member Functions inherited from SyntaxHighlighter
void highlightBlock (const QString &text)
 Parentheses matching code taken from Qt Quarterly Issue 31 · Q3 2009. More...
 

Private Attributes

QTextCharFormat classFormat
 
QTextCharFormat keywordFormat
 
QVector< HighlightingRulepythonHighlightingRules
 

Static Private Attributes

static const QStringList d_keywords
 

Additional Inherited Members

- Protected Attributes inherited from SyntaxHighlighter
QTextCharFormat commentFormat
 
QTextCharFormat functionFormat
 
QVector< HighlightingRulehighlightingRules
 
QTextCharFormat numericFormat
 
QTextCharFormat quotationFormat
 

Constructor & Destructor Documentation

PythonSyntaxHighlighter::PythonSyntaxHighlighter ( ScriptEdit parent)

Member Function Documentation

void PythonSyntaxHighlighter::highlightBlock ( const QString &  text)
protected
static QStringList PythonSyntaxHighlighter::keywordsList ( )
inlinestatic

Member Data Documentation

QTextCharFormat PythonSyntaxHighlighter::classFormat
private

Referenced by PythonSyntaxHighlighter().

const QStringList PythonSyntaxHighlighter::d_keywords
staticprivate
Initial value:
= QStringList() << "and" << "assert" << "break"
<< "class" << "continue" << "def" << "del"
<< "elif" << "else" << "except" << "exec"
<< "finally" << "for" << "from" << "global"
<< "if" << "import" << "in" << "is"
<< "lambda" << "not" << "or" << "pass"
<< "print" << "raise" << "return" << "try" << "while" << "True" << "False"

Referenced by PythonSyntaxHighlighter().

QTextCharFormat PythonSyntaxHighlighter::keywordFormat
private

Referenced by PythonSyntaxHighlighter().

QVector<HighlightingRule> PythonSyntaxHighlighter::pythonHighlightingRules
private

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