Mantid
|
Defines a Python lexer with a alternative colour scheme to the standard one provided by QsciLexerPython. More...
#include <AlternateCSPythonLexer.h>
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 |
Defines a Python lexer with a alternative colour scheme to the standard one provided by QsciLexerPython.
Definition at line 15 of file AlternateCSPythonLexer.h.
AlternateCSPythonLexer::AlternateCSPythonLexer | ( | const QFont & | font | ) |
Construct a lexer with a font to be used for all text styles.
font | A font to used for the text |
Definition at line 13 of file AlternateCSPythonLexer.cpp.
|
override |
Returns the foreground colour of the text for a style.
style | An enum defining the type of element encountered |
Definition at line 20 of file AlternateCSPythonLexer.cpp.
|
override |
Returns the font of the text.
style | Unused. |
Definition at line 73 of file AlternateCSPythonLexer.cpp.
References m_font.
|
private |
Definition at line 23 of file AlternateCSPythonLexer.h.
Referenced by defaultFont().