- Main Page
- Classes
- Directories

- Class List
- Class Hierarchy
- Class Members

# QsciLexerDiff Class Reference

The QsciLexerDiff class encapsulates the Scintilla Diff lexer. More...

`#include <qscilexerdiff.h>`

Inherits QsciLexer.

List of all members.

## Public Types

- enum {
  Default = 0, Comment = 1, Command = 2,
  Header = 3, Position = 4, LineRemoved = 5,
  LineAdded = 6
  }

## Public Member Functions

- QsciLexerDiff (QObject *parent=0)
- virtual ~QsciLexerDiff ()
- const char * language () const
- const char * lexer () const
- const char * wordCharacters () const
- QColor defaultColor (int style) const
- QString description (int style) const

## Detailed Description

The QsciLexerDiff class encapsulates the Scintilla Diff lexer.

## Member Enumeration Documentation

anonymous enum

This enum defines the meanings of the different styles used by the Diff lexer.

Enumerator:

  Default | The default.
  Comment | A comment.
  Command | A command.
  Header | A header.
  Position | A position.
  LineRemoved | A removed line.
  LineAdded | An added line.

## Constructor & Destructor Documentation

QsciLexerDiff::QsciLexerDiff | ( | QObject * | parent = `0` | ) |

Construct a QsciLexerDiff with parent parent. parent is typically the QsciScintilla instance.

virtual QsciLexerDiff::~QsciLexerDiff | ( |  | ) | `[virtual]`

Destroys the QsciLexerDiff instance.

## Member Function Documentation

const char* QsciLexerDiff::language | ( |  | ) | const`[virtual]`

Returns the name of the language.

Implements QsciLexer.

const char* QsciLexerDiff::lexer | ( |  | ) | const`[virtual]`

Returns the name of the lexer. Some lexers support a number of languages.

Implements QsciLexer.

QColor QsciLexerDiff::defaultColor | ( | int | style | ) | const`[virtual]`

Returns the foreground colour of the text for style number style.

Reimplemented from QsciLexer.

QString QsciLexerDiff::description | ( | int | style | ) | const`[virtual]`

Returns the descriptive name for style number style. If the style is invalid for this language then an empty QString is returned. This is intended to be used in user preference dialogs.

Implements QsciLexer.