00001 #ifndef IGUANA_GL_BROWSERS_IG_3D_STRING_CONTROL_H
00002 # define IGUANA_GL_BROWSERS_IG_3D_STRING_CONTROL_H
00003
00004
00005
00006 # include "Iguana/GLBrowsers/interface/Ig3DFieldControl.h"
00007 # include <Inventor/SbLinear.h>
00008 # include <Inventor/fields/SoSFString.h>
00009
00010
00011
00012
00013
00014 class IgQtLineEdit;
00015
00016
00017
00018
00019
00020 class IGUANA_GL_BROWSERS_API Ig3DStringControl : public Ig3DFieldControl
00021 {
00022 Q_OBJECT
00023
00024 public:
00025 Ig3DStringControl (IgControlCategory *pane, QString label);
00026
00027
00028
00029
00030 SoSFString * field (void) const;
00031 void setField (SoSFString *field);
00032 SbString fieldValue (void) const;
00033
00034 SbString value (void) const;
00035 IgQtLineEdit * widget (void) const;
00036
00037 public slots:
00038 void setValue (const SbString& newval);
00039
00040 protected:
00041 virtual void updateValue (void);
00042 virtual void applyValue (void);
00043
00044 private slots:
00045 void textChanged (const QString& newval);
00046
00047 private:
00048 IgQtLineEdit *m_value;
00049 };
00050
00051
00052
00053
00054 #endif // IGUANA_GL_BROWSERS_IG_3D_STRING_CONTROL_H