edbee - Qt Editor Library
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 
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
QColor parseThemeColor(const QString &color) const
parses theme color
Definition: tmthemeparser.cpp:20
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
TmThemeParser()
Definition: tmthemeparser.cpp:14
void parseRules(TextTheme *theme, const QList< QVariant > &settings)
parses all rules
Definition: tmthemeparser.cpp:87
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
Definition: tmthemeparser.h:18
This class defines a single theme.
Definition: texttheme.h:68
TextTheme * readContent(QIODevice *device)
reads the content of a single file
Definition: tmthemeparser.cpp:39
A general plist xml-file parser.
Definition: baseplistparser.h:19
TextTheme * createTheme(QVariant &data)
Reads and parsers the theme.
Definition: tmthemeparser.cpp:115