00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00028 #ifndef __vtkKWSpinBox_h
00029 #define __vtkKWSpinBox_h
00030
00031 #include "vtkKWCoreWidget.h"
00032
00033 class vtkKWApplication;
00034
00035 class KWWIDGETS_EXPORT vtkKWSpinBox : public vtkKWCoreWidget
00036 {
00037 public:
00038 static vtkKWSpinBox* New();
00039 vtkTypeRevisionMacro(vtkKWSpinBox,vtkKWCoreWidget);
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00043 virtual void Create(vtkKWApplication *app);
00044
00046 virtual void SetRange(double from, double to);
00047
00049 virtual void SetIncrement(double increment);
00050
00052
00053 virtual void SetValue(double value);
00054 virtual double GetValue();
00056
00058 virtual void SetValueFormat(const char *format);
00059
00061
00063 virtual void SetWrap(int wrap);
00064 virtual int GetWrap();
00065 vtkBooleanMacro(Wrap, int);
00067
00069
00070 virtual void SetRestrictValuesToIntegers(int restrict);
00071 vtkBooleanMacro(RestrictValuesToIntegers, int);
00073
00075
00076 virtual void SetWidth(int);
00077 virtual int GetWidth();
00079
00081
00086 virtual void SetExportSelection(int);
00087 virtual int GetExportSelection();
00088 vtkBooleanMacro(ExportSelection, int);
00090
00097 virtual void SetCommand(vtkObject *object, const char *method);
00098
00105 virtual void UpdateEnableState();
00106
00107 protected:
00108 vtkKWSpinBox();
00109 ~vtkKWSpinBox();
00110
00111 private:
00112 vtkKWSpinBox(const vtkKWSpinBox&);
00113 void operator=(const vtkKWSpinBox&);
00114 };
00115
00116 #endif