2010-05-26 21:13:14 +00:00
|
|
|
#ifndef PARSETREENODE_H
|
|
|
|
#define PARSETREENODE_H
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#include "skin_parser.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
class ParseTreeNode
|
|
|
|
{
|
|
|
|
public:
|
2010-05-27 19:57:15 +00:00
|
|
|
ParseTreeNode(struct skin_element* data, ParseTreeNode* parent, bool tree);
|
|
|
|
ParseTreeNode(struct skin_tag_parameter* param, ParseTreeNode* parent);
|
2010-05-26 21:13:14 +00:00
|
|
|
virtual ~ParseTreeNode();
|
|
|
|
|
|
|
|
void appendChild(ParseTreeNode* child);
|
|
|
|
|
|
|
|
ParseTreeNode* child(int row);
|
|
|
|
int childCount() const;
|
|
|
|
int columnCount() const;
|
|
|
|
QVariant data(int column) const;
|
|
|
|
int row() const;
|
|
|
|
ParseTreeNode* parent();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ParseTreeNode* parentLink;
|
|
|
|
QList<ParseTreeNode*> children;
|
|
|
|
struct skin_element* element;
|
2010-05-27 19:57:15 +00:00
|
|
|
struct skin_tag_parameter* param;
|
2010-05-26 21:13:14 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PARSETREENODE_H
|