1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#ifndef COLORFILEXMLPARSER_H
#define COLORFILEXMLPARSER_H
#include <QDomDocument>
#include <QHash>
#include <QIcon>
#include <QTreeWidget>
#include "ColorParameters.h"
class ColorFileXmlParser : public QWidget
{
Q_OBJECT
public:
ColorFileXmlParser(bool showMess = true);
bool read(QIODevice *device);
ColorParameters* getColorParametersObj(){return &colorParams;}
private slots:
private:
int parseRGBIndex(const QDomElement &element,
QTreeWidgetItem *parentItem = 0);
void parseConsensus(const QDomElement &element,
QTreeWidgetItem *parentItem = 0);
int parseColorRule(const QDomElement &element,
QTreeWidgetItem *parentItem = 0);
QDomDocument domDocument;
ColorParameters colorParams;
bool showMessages;
};
#endif
|