home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / xml / outliner / outlinetree.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  882b  |  32 lines

  1. /****************************************************************************
  2. ** $Id:  qt/outlinetree.h   3.0.0   edited Jun 9 11:18 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef OUTLINETREE_H
  12. #define OUTLINETREE_H
  13.  
  14. #include <qlistview.h>
  15. #include <qdom.h>
  16.  
  17. class OutlineTree : public QListView
  18. {
  19.     Q_OBJECT
  20.  
  21. public:
  22.     OutlineTree( const QString fileName, QWidget *parent = 0, const char *name = 0 );
  23.     ~OutlineTree();
  24.  
  25. private:
  26.     QDomDocument domTree;
  27.     void getHeaderInformation( const QDomElement &header );
  28.     void buildTree( QListViewItem *parentItem, const QDomElement &parentElement );
  29. };
  30.  
  31. #endif // OUTLINETREE_H
  32.