00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00021 #ifndef __vtkKWEntry_h
00022 #define __vtkKWEntry_h
00023
00024 #include "vtkKWCoreWidget.h"
00025
00026 class vtkKWApplication;
00027
00028 class KWWIDGETS_EXPORT vtkKWEntry : public vtkKWCoreWidget
00029 {
00030 public:
00031 static vtkKWEntry* New();
00032 vtkTypeRevisionMacro(vtkKWEntry,vtkKWCoreWidget);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036 virtual void Create(vtkKWApplication *app);
00037
00039
00050 virtual void SetValue(const char *);
00051 virtual const char* GetValue();
00052 virtual void SetValueAsInt(int a);
00053 virtual int GetValueAsInt();
00054 virtual void SetValueAsFormattedDouble(double f, int size);
00055 virtual void SetValueAsDouble(double f);
00056 virtual double GetValueAsDouble();
00058
00060
00065 virtual void SetWidth(int width);
00066 vtkGetMacro(Width, int);
00068
00070
00071 virtual void SetReadOnly(int);
00072 vtkBooleanMacro(ReadOnly, int);
00073 vtkGetMacro(ReadOnly, int);
00075
00082 virtual void SetCommand(vtkObject *object, const char *method);
00083
00090 virtual void UpdateEnableState();
00091
00092 protected:
00093 vtkKWEntry();
00094 ~vtkKWEntry();
00095
00096 int Width;
00097 int ReadOnly;
00098
00099 private:
00100
00101 char *InternalValueString;
00102 vtkGetStringMacro(InternalValueString);
00103 vtkSetStringMacro(InternalValueString);
00104
00105 vtkKWEntry(const vtkKWEntry&);
00106 void operator=(const vtkKWEntry&);
00107 };
00108
00109 #endif