00001 
00002 
00004 
00005 #ifndef X3DSF_VEC3F_GUI_H
00006 #define X3DSF_VEC3F_GUI_H
00007 
00008 #include <qwidget.h>
00009 #include <X3DTK/kernel.h>
00010 
00011 class QHBoxLayout;
00012 class QLabel;
00013 class WFloatLineEdit;
00014 
00015 namespace X3DTK {
00016 namespace Qt{
00017 
00019 class X3DSFVec3fGUI : public QWidget
00020 {
00021   Q_OBJECT
00022 
00023 public:
00024   X3DSFVec3fGUI( QString nameOfField, X3DTK::SFVec3f * Vec3ToEdit, QWidget * parent, const char* name = 0, WFlags fl = 0 );
00025   ~X3DSFVec3fGUI();
00026 
00027   void setValue();
00028 
00029 signals:
00030   void changed();
00031 
00032 public slots:
00033   void changeValueX(float);
00034   void changeValueY(float);
00035   void changeValueZ(float);
00036   
00037 private:
00038   X3DTK::SFVec3f * Vec3ToEdit; 
00039 
00040 protected:
00041   QHBoxLayout* SFVector3Layout;
00042 
00043 public: 
00044   WFloatLineEdit* editX;
00045   WFloatLineEdit* editY;
00046   WFloatLineEdit* editZ;
00047 };
00048 
00049 } 
00050 } 
00051 #endif