rockbox/utils/themeeditor/parsetreenode.h
Robert Bieber 8ea056db4b Theme Editor: Fixed a bug in the subline parser, added a LINE element to contain logical lines, working on data model
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26337 a1c6a512-1295-4272-9138-f99709370657
2010-05-27 19:57:15 +00:00

37 lines
768 B
C++

#ifndef PARSETREENODE_H
#define PARSETREENODE_H
extern "C"
{
#include "skin_parser.h"
}
#include <QString>
#include <QVariant>
#include <QList>
class ParseTreeNode
{
public:
ParseTreeNode(struct skin_element* data, ParseTreeNode* parent, bool tree);
ParseTreeNode(struct skin_tag_parameter* param, ParseTreeNode* parent);
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;
struct skin_tag_parameter* param;
};
#endif // PARSETREENODE_H