Documentation


X4DGUI.cpp

Go to the documentation of this file.
00001 //
00002 // C++ Implementation: X4DGUI
00003 //
00004 // Description:
00005 //
00006 //
00007 // Author: François Faure <>, (C) 2004
00008 //
00009 // Copyright: See COPYING file that comes with this distribution
00010 //
00011 //
00012 #include "X4DGUI.h"
00013 
00014 namespace X3DTK
00015 {
00016 
00017   namespace Qt
00018   {
00019 
00020     X4DGUI::X4DGUI(FieldList & fieldList,
00021                    QWidget* parent)
00022         : ObjectGUI(fieldList, parent)//, MC)
00023     {
00024       setTabLabel(this->page(0), QString("X4D")) ;
00025 //       QWidget::connect( this, SIGNAL( changed() ), MC, SLOT(computeBbox()));
00026 //       QWidget::connect( this, SIGNAL( changed() ), MC, SLOT(display()));
00027     }
00028 
00029 
00030     X4DGUI::~X4DGUI()
00031     {}
00032 
00033 
00035     QWidget * createX4DNodeQWidget(X3DTK::X3D::X4DNode * node, QWidget * parent)
00036     {
00037       if (node)
00038       {
00039         // The list of all the fields to control in the GUI
00040         FieldList fieldList;
00041 
00042         //DrawEngine field
00043         fieldList.push_back(new SFBool("draw", &node->m_draw));
00044 
00045         // The GUI corresponding to a X3DTK::X3D::Transform
00046         X4DGUI * GUI = new X4DGUI(fieldList, parent);
00047 
00048         return GUI;
00049 
00050       }
00051       std::cerr<<"Warning createX4DQWidget(): impossible to create a X3DTK::Qt::X4DGUI because the associated X4D node is NULL."<<std::endl;
00052       std::cerr<<"        or the MainController is NULL."<<std::endl;
00053 
00054       return NULL;
00055     }
00056 
00057   };
00058 
00059 };

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