edbee - Qt Editor Library
edbee
io
tmthemeparser.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <QHash>
9
#include <QString>
10
#include <QVariant>
11
12
#include "
baseplistparser.h
"
13
14
namespace
edbee
{
15
16
class
TextTheme;
17
18
class
TmThemeParser
:
public
BasePListParser
19
{
20
public
:
21
TmThemeParser
();
22
23
QColor
parseThemeColor
(
const
QString& color)
const
;
24
25
TextTheme
*
readContent
(QIODevice* device);
26
27
protected
:
28
29
void
fillRuleSettings
(
TextTheme
* theme,
const
QHash<QString, QVariant> &settings );
30
void
parseRules
(
TextTheme
* theme,
const
QList<QVariant> &settings );
31
TextTheme
*
createTheme
( QVariant& data );
32
33
};
34
35
}
// edbee
baseplistparser.h
edbee::TmThemeParser::parseThemeColor
QColor parseThemeColor(const QString &color) const
parses theme color
Definition:
tmthemeparser.cpp:20
edbee::TmThemeParser::fillRuleSettings
void fillRuleSettings(TextTheme *theme, const QHash< QString, QVariant > &settings)
fetches the settings from the hashmap and puts them in the theme file
Definition:
tmthemeparser.cpp:58
edbee::TmThemeParser::TmThemeParser
TmThemeParser()
Definition:
tmthemeparser.cpp:14
edbee::TmThemeParser::parseRules
void parseRules(TextTheme *theme, const QList< QVariant > &settings)
parses all rules
Definition:
tmthemeparser.cpp:87
edbee
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition:
commentcommand.cpp:22
edbee::TmThemeParser
Definition:
tmthemeparser.h:18
edbee::TextTheme
This class defines a single theme.
Definition:
texttheme.h:68
edbee::TmThemeParser::readContent
TextTheme * readContent(QIODevice *device)
reads the content of a single file
Definition:
tmthemeparser.cpp:39
edbee::BasePListParser
A general plist xml-file parser.
Definition:
baseplistparser.h:19
edbee::TmThemeParser::createTheme
TextTheme * createTheme(QVariant &data)
Reads and parsers the theme.
Definition:
tmthemeparser.cpp:115
Generated on Tue Jun 13 2017 08:45:59 for edbee - Qt Editor Library by
1.8.13