00001 
00002 
00004 
00005 #include <vector>
00006 #include <iostream>
00007 
00008 #include "ObjectGUI.h"
00009 
00010 
00011 
00012 namespace X3DTK {
00013 namespace Qt{
00014 
00015 ObjectGUI::ObjectGUI( FieldList & fieldList, QWidget * parent)
00016 : QTabWidget(parent)
00017 {
00018     
00019     
00020     QWidget * SFtab = new QWidget(this);
00021     this->insertTab( SFtab, "Single Fields" );
00022     new QGridLayout( SFtab );
00023           
00024     
00025     for (FieldList::iterator i=fieldList.begin() ; i!=fieldList.end() ; ++i)
00026       (*i)->add(this);
00027 }
00028 
00029 
00030 
00031 
00032 ObjectGUI::~ObjectGUI()
00033 {
00034     
00035 }
00036 
00037 void ObjectGUI::ok()
00038 {
00039   emit changed();
00040 }
00041 } 
00042 }