00001
00002
00004
00005 #ifndef SF_STRING_GUI_H
00006 #define SF_STRING_GUI_H
00007
00008 #include <qwidget.h>
00009
00010 class QHBoxLayout;
00011 class QLabel;
00012 class QLineEdit;
00013
00014 namespace X3DTK {
00015 namespace Qt{
00016
00018 class SFStringGUI : public QWidget
00019 {
00020 Q_OBJECT
00021
00022 public:
00023 SFStringGUI( QString nameOfField, QString * QStringToEdit, QWidget * parent, const char* name = 0, WFlags fl = 0 );
00024 ~SFStringGUI();
00025
00026 void setValue();
00027
00028 signals:
00029 void changed();
00030
00031 public slots:
00032 void changeValue(const QString &);
00033
00034 private:
00035 QString * QStringToEdit;
00036
00037 protected:
00038 QHBoxLayout* SFStringLayout;
00039
00040 public:
00041 QLineEdit* lineEdit;
00042
00043 };
00044
00045 }
00046 }
00047 #endif