Documentation


ObjectGUI.cpp

Go to the documentation of this file.
00001 
00002 //                            ObjectGUI.cpp                                   //
00004 
00005 #include <vector>
00006 #include <iostream>
00007 
00008 #include "ObjectGUI.h"
00009 //#include <qpushbutton.h>
00010 //#include <animal/X3DTK/Qt/mainControllerGUI/MainController.h>
00011 
00012 namespace X3DTK {
00013 namespace Qt{
00014 
00015 ObjectGUI::ObjectGUI( FieldList & fieldList, QWidget * parent)//, MainController * MC)
00016 : QTabWidget(parent)
00017 {
00018     
00019     // Single Fields tab 
00020     QWidget * SFtab = new QWidget(this);
00021     this->insertTab( SFtab, "Single Fields" );
00022     new QGridLayout( SFtab );
00023           
00024     // Create all the fields' widget
00025     for (FieldList::iterator i=fieldList.begin() ; i!=fieldList.end() ; ++i)
00026       (*i)->add(this);//, MC);
00027 }
00028 
00029 /*
00030  *  Destroys the object and frees any allocated resources
00031  */
00032 ObjectGUI::~ObjectGUI()
00033 {
00034     // no need to delete child widgets, Qt does it all for us
00035 }
00036 
00037 void ObjectGUI::ok()
00038 {
00039   emit changed();
00040 }
00041 } // Qt
00042 } // X3DTK

Generated on Thu Dec 23 13:52:26 2004 by doxygen 1.3.6