edbee - Qt Editor Library
|
#include <tmthemeparser.h>
Public Member Functions | |
TmThemeParser () | |
QColor | parseThemeColor (const QString &color) const |
parses theme color More... | |
TextTheme * | readContent (QIODevice *device) |
reads the content of a single file More... | |
Public Member Functions inherited from edbee::BasePListParser | |
BasePListParser () | |
The constructor for the parser. More... | |
virtual | ~BasePListParser () |
the default desctructor More... | |
QString | lastErrorMessage () const |
Returns the last error message of the parsed file. More... | |
Protected Member Functions | |
void | fillRuleSettings (TextTheme *theme, const QHash< QString, QVariant > &settings) |
fetches the settings from the hashmap and puts them in the theme file More... | |
void | parseRules (TextTheme *theme, const QList< QVariant > &settings) |
parses all rules More... | |
TextTheme * | createTheme (QVariant &data) |
Reads and parsers the theme. More... | |
Protected Member Functions inherited from edbee::BasePListParser | |
void | setLastErrorMessage (const QString &str) |
Sets the last error message. To correctly set the last error message while parsing please use raiseError. More... | |
bool | beginParsing (QIODevice *device) |
Start the parsing of the plist. If it isn't a valid plist this method return false. (it only checks and reads the existence of <plist>) More... | |
bool | endParsing () |
Closes the parsers. More... | |
void | raiseError (const QString &str) |
Call this method to raise an error and stop the xml parsing. More... | |
QList< QVariant > | readList () |
reads a list of qvariants More... | |
QHash< QString, QVariant > | readDict () |
reads a dictionary More... | |
QVariant | readNextPlistType (int level=-1) |
reads the next plist type More... | |
bool | readNextElement (const QString &name, int level=-1) |
Reads the next element and optionally expects it to be the given name. More... | |
QString | readElementText () |
Reads the element text contents. More... | |
int | currentStackLevel () |
returns the current stack-level More... | |
edbee::TmThemeParser::TmThemeParser | ( | ) |
|
protected |
Reads and parsers the theme.
|
protected |
fetches the settings from the hashmap and puts them in the theme file
|
protected |
parses all rules
QColor edbee::TmThemeParser::parseThemeColor | ( | const QString & | color | ) | const |
parses theme color
TextTheme * edbee::TmThemeParser::readContent | ( | QIODevice * | device | ) |
reads the content of a single file
device | the device to read from. The device NEEDS to be open!! |