COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
PythonSyntaxeHighlighter Class Reference

simple syntaxe highlighter More...

#include <PythonSyntaxeHighlighter.hpp>

Inherits QSyntaxHighlighter.

Classes

struct  HighlightingRule
 

Public Member Functions

 PythonSyntaxeHighlighter (QTextDocument *parent)
 allocate the syntaxe rules on first init More...
 
 ~PythonSyntaxeHighlighter ()
 free the syntaxe rules on last delete More...
 

Protected Member Functions

void highlightBlock (const QString &text)
 

Static Private Attributes

static int instance_count =0
 
static QVector< HighlightingRule > * highlighting_rules =NULL
 
static QTextCharFormat * comment_format =NULL
 
static QTextCharFormat * keyword_format =NULL
 
static QTextCharFormat * number_format =NULL
 
static QTextCharFormat * operator_format =NULL
 
static QTextCharFormat * string_format =NULL
 
static QTextCharFormat * single_quote_string_format =NULL
 
static QTextCharFormat * error_format =NULL
 
static PythonPreCompilerpython_pre_compiler =NULL
 

Detailed Description

simple syntaxe highlighter

Definition at line 28 of file PythonSyntaxeHighlighter.hpp.

Constructor & Destructor Documentation

PythonSyntaxeHighlighter ( QTextDocument *  parent)

allocate the syntaxe rules on first init

Definition at line 35 of file PythonSyntaxeHighlighter.cpp.

free the syntaxe rules on last delete

Definition at line 91 of file PythonSyntaxeHighlighter.cpp.

Member Function Documentation

void highlightBlock ( const QString &  text)
protected

Definition at line 103 of file PythonSyntaxeHighlighter.cpp.

Member Data Documentation

QTextCharFormat * comment_format =NULL
staticprivate

Definition at line 47 of file PythonSyntaxeHighlighter.hpp.

QTextCharFormat * error_format =NULL
staticprivate

Definition at line 53 of file PythonSyntaxeHighlighter.hpp.

QVector< PythonSyntaxeHighlighter::HighlightingRule > * highlighting_rules =NULL
staticprivate

Definition at line 46 of file PythonSyntaxeHighlighter.hpp.

int instance_count =0
staticprivate

Definition at line 45 of file PythonSyntaxeHighlighter.hpp.

QTextCharFormat * keyword_format =NULL
staticprivate

Definition at line 48 of file PythonSyntaxeHighlighter.hpp.

QTextCharFormat * number_format =NULL
staticprivate

Definition at line 49 of file PythonSyntaxeHighlighter.hpp.

QTextCharFormat * operator_format =NULL
staticprivate

Definition at line 50 of file PythonSyntaxeHighlighter.hpp.

PythonPreCompiler * python_pre_compiler =NULL
staticprivate

Definition at line 54 of file PythonSyntaxeHighlighter.hpp.

QTextCharFormat * single_quote_string_format =NULL
staticprivate

Definition at line 52 of file PythonSyntaxeHighlighter.hpp.

QTextCharFormat * string_format =NULL
staticprivate

Definition at line 51 of file PythonSyntaxeHighlighter.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin