edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tmthemeparser.h
Go to the documentation of this file.
1// edbee - Copyright (c) 2012-2025 by Rick Blommers and contributors
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#include "edbee/exports.h"
7
8#include <QHash>
9#include <QString>
10#include <QVariant>
11
12#include "baseplistparser.h"
13
14namespace edbee {
15
16class TextTheme;
17
19{
20public:
22
23 QColor parseThemeColor(const QString& color) const;
24
25 TextTheme* readContent(QIODevice* device);
26
27protected:
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()
The constructor for the parser.
Definition baseplistparser.cpp:14
This class defines a single theme.
Definition texttheme.h:68
TextTheme * readContent(QIODevice *device)
reads the content of a single file
Definition tmthemeparser.cpp:36
void parseRules(TextTheme *theme, const QList< QVariant > &settings)
parses all rules
Definition tmthemeparser.cpp:84
QColor parseThemeColor(const QString &color) const
parses theme color
Definition tmthemeparser.cpp:17
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:55
TmThemeParser()
Definition tmthemeparser.cpp:11
TextTheme * createTheme(QVariant &data)
Reads and parsers the theme.
Definition tmthemeparser.cpp:112
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20