Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
AlternateCSPythonLexer Class Reference

Defines a Python lexer with a alternative colour scheme to the standard one provided by QsciLexerPython. More...

#include <AlternateCSPythonLexer.h>

Inheritance diagram for AlternateCSPythonLexer:

Public Member Functions

 AlternateCSPythonLexer (const QFont &font)
 Construct a lexer with a font to be used for all text styles. More...
 
QColor defaultColor (int style) const override
 Returns the foreground colour of the text for a style. More...
 
QFont defaultFont (int style) const override
 Returns the font of the text. More...
 

Private Attributes

QFont m_font
 

Detailed Description

Defines a Python lexer with a alternative colour scheme to the standard one provided by QsciLexerPython.

Definition at line 15 of file AlternateCSPythonLexer.h.

Constructor & Destructor Documentation

◆ AlternateCSPythonLexer()

AlternateCSPythonLexer::AlternateCSPythonLexer ( const QFont &  font)

Construct a lexer with a font to be used for all text styles.

Parameters
fontA font to used for the text

Definition at line 13 of file AlternateCSPythonLexer.cpp.

Member Function Documentation

◆ defaultColor()

QColor AlternateCSPythonLexer::defaultColor ( int  style) const
override

Returns the foreground colour of the text for a style.

Parameters
styleAn enum defining the type of element encountered
Returns
A QColor for this element type

Definition at line 20 of file AlternateCSPythonLexer.cpp.

◆ defaultFont()

QFont AlternateCSPythonLexer::defaultFont ( int  style) const
override

Returns the font of the text.

Parameters
styleUnused.
Returns
A QFont for this element type

Definition at line 73 of file AlternateCSPythonLexer.cpp.

References m_font.

Member Data Documentation

◆ m_font

QFont AlternateCSPythonLexer::m_font
private

Definition at line 23 of file AlternateCSPythonLexer.h.

Referenced by defaultFont().


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