You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
560 B
30 lines
560 B
/*
|
|
*/
|
|
|
|
#ifndef STRUCTUREPARSER_H
|
|
#define STRUCTUREPARSER_H
|
|
|
|
#include <qxml.h>
|
|
#include <qptrstack.h>
|
|
|
|
class QListView;
|
|
class QListViewItem;
|
|
class QString;
|
|
|
|
class StructureParser: public QXmlDefaultHandler
|
|
{
|
|
public:
|
|
StructureParser( QListView * );
|
|
bool startElement( const QString&, const QString&, const QString& ,
|
|
const QXmlAttributes& );
|
|
bool endElement( const QString&, const QString&, const QString& );
|
|
|
|
void setListView( QListView * );
|
|
|
|
private:
|
|
QPtrStack<QListViewItem> stack;
|
|
QListView * table;
|
|
};
|
|
|
|
#endif
|