1
// This defines the interface to the QsciLexerMakefile class.
3
// Copyright (c) 2008 Riverbank Computing Limited <info@riverbankcomputing.com>
5
// This file is part of QScintilla.
7
// This file may be used under the terms of the GNU General Public
8
// License versions 2.0 or 3.0 as published by the Free Software
9
// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
10
// included in the packaging of this file. Alternatively you may (at
11
// your option) use any later version of the GNU General Public
12
// License if such license has been publicly approved by Riverbank
13
// Computing Limited (or its successors, if any) and the KDE Free Qt
14
// Foundation. In addition, as a special exception, Riverbank gives you
15
// certain additional rights. These rights are described in the Riverbank
16
// GPL Exception version 1.1, which can be found in the file
17
// GPL_EXCEPTION.txt in this package.
19
// Please review the following information to ensure GNU General
20
// Public Licensing requirements will be met:
21
// http://trolltech.com/products/qt/licenses/licensing/opensource/. If
22
// you are unsure which license is appropriate for your use, please
23
// review the following information:
24
// http://trolltech.com/products/qt/licenses/licensing/licensingoverview
25
// or contact the sales department at sales@riverbankcomputing.com.
27
// This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
28
// INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
29
// A PARTICULAR PURPOSE. Trolltech reserves all rights not expressly
32
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
33
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
36
#ifndef QSCILEXERMAKEFILE_H
37
#define QSCILEXERMAKEFILE_H
45
#include <Qsci/qsciglobal.h>
46
#include <Qsci/qscilexer.h>
49
//! \brief The QsciLexerMakefile class encapsulates the Scintilla
51
class QSCINTILLA_EXPORT QsciLexerMakefile : public QsciLexer
56
//! This enum defines the meanings of the different styles used by the
65
//! A pre-processor directive.
81
//! Construct a QsciLexerMakefile with parent \a parent. \a parent is
82
//! typically the QsciScintilla instance.
83
QsciLexerMakefile(QObject *parent = 0);
85
//! Destroys the QsciLexerMakefile instance.
86
virtual ~QsciLexerMakefile();
88
//! Returns the name of the language.
89
const char *language() const;
91
//! Returns the name of the lexer. Some lexers support a number of
93
const char *lexer() const;
95
//! \internal Returns the string of characters that comprise a word.
96
const char *wordCharacters() const;
98
//! Returns the foreground colour of the text for style number \a style.
100
//! \sa defaultPaper()
101
QColor defaultColor(int style) const;
103
//! Returns the end-of-line fill for style number \a style.
104
bool defaultEolFill(int style) const;
106
//! Returns the font for style number \a style.
107
QFont defaultFont(int style) const;
109
//! Returns the background colour of the text for style number \a style.
111
//! \sa defaultColor()
112
QColor defaultPaper(int style) const;
114
//! Returns the descriptive name for style number \a style. If the
115
//! style is invalid for this language then an empty QString is returned.
116
//! This is intended to be used in user preference dialogs.
117
QString description(int style) const;
120
QsciLexerMakefile(const QsciLexerMakefile &);
121
QsciLexerMakefile &operator=(const QsciLexerMakefile &);