#include "filewidget.h" #include "gatstotree.h" #include #include #include using namespace Bu; FileWidget::FileWidget( QWidget *pParent ) : QWidget( pParent ) { setupUi( this ); } FileWidget::FileWidget( QWidget *pParent, QString sFile ) : QWidget( pParent ) { setupUi( this ); File fIn( sFile.toAscii().constData(), File::Read ); Gats::GatsStream gsIn( fIn ); Gats::Object *pObj; while( (pObj = gsIn.readObject()) ) { QTreeWidgetItem *pNew = new QTreeWidgetItem( twGats->invisibleRootItem() ); pNew->setText( 0, "" ); gatsToTree( pNew, pObj ); delete pObj; } } FileWidget::~FileWidget() { }