File: ColorFileXmlParser.h

package info (click to toggle)
clustalx 2.1%2Blgpl-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,336 kB
  • sloc: cpp: 40,050; sh: 163; xml: 102; makefile: 11
file content (35 lines) | stat: -rw-r--r-- 871 bytes parent folder | download | duplicates (5)
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