2
JuffEd - An advanced text editor
3
Copyright 2007-2010 Mikhail Murzin
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
version 2 as published by the Free Software Foundation.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
#ifndef __JUFF_LEXER_STORAGE_H__
21
#define __JUFF_LEXER_STORAGE_H__
30
#include <QtGui/QColor>
35
* Returns lexer by name
37
QsciLexer* lexer(const QString& lexerName);
40
* Returns lexer by file name
42
QsciLexer* lexerByFileName(const QString& fileName);
45
* Returns lexer name by file name
47
QString lexerName(const QString& fileName);
50
* Returns a list of available lexers
52
QStringList lexersList() const;
55
* Updates currently existing lexers with new font and
56
* sets the default font for new lexers
58
void updateLexers(const QFont&);
61
* Returns current line highlighting color for specified lexer
63
QColor curLineColor(const QString&) const;
66
* Returns selection background color for specified lexer
68
QColor selectionBgColor(const QString&) const;
71
* Returns LexerStorage singleton
73
static LexerStorage* instance();
84
static LexerStorage* instance_;
88
#endif // __JUFF_LEXER_STORAGE_H__