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