26 #ifndef __vtkKWSpinBox_h
27 #define __vtkKWSpinBox_h
38 void PrintSelf(ostream& os, vtkIndent indent);
42 virtual void SetRange(
double from,
double to);
46 virtual void SetIncrement(
double increment);
47 virtual double GetIncrement();
51 virtual void SetValue(
double value);
52 virtual double GetValue();
59 virtual void SetValueFormat(
const char *format);
60 virtual const char* GetValueFormat();
65 virtual void SetWrap(
int wrap);
66 virtual int GetWrap();
67 vtkBooleanMacro(Wrap,
int);
80 vtkGetMacro(RestrictValue,
int);
81 virtual void SetRestrictValue(
int);
82 virtual void SetRestrictValueToInteger();
83 virtual void SetRestrictValueToDouble();
84 virtual void SetRestrictValueToNone();
97 virtual void SetValidationCommand(vtkObject *
object,
const char *method);
98 virtual int InvokeValidationCommand(
const char *value);
102 virtual void SetWidth(
int);
103 virtual int GetWidth();
107 virtual void GetBackgroundColor(
double *r,
double *g,
double *b);
108 virtual double* GetBackgroundColor();
109 virtual void SetBackgroundColor(
double r,
double g,
double b);
110 virtual void SetBackgroundColor(
double rgb[3])
115 virtual void GetForegroundColor(
double *r,
double *g,
double *b);
116 virtual double* GetForegroundColor();
117 virtual void SetForegroundColor(
double r,
double g,
double b);
118 virtual void SetForegroundColor(
double rgb[3])
123 virtual void GetDisabledBackgroundColor(
double *r,
double *g,
double *b);
124 virtual double* GetDisabledBackgroundColor();
125 virtual void SetDisabledBackgroundColor(
double r,
double g,
double b);
126 virtual void SetDisabledBackgroundColor(
double rgb[3])
131 virtual void GetDisabledForegroundColor(
double *r,
double *g,
double *b);
132 virtual double* GetDisabledForegroundColor();
133 virtual void SetDisabledForegroundColor(
double r,
double g,
double b);
134 virtual void SetDisabledForegroundColor(
double rgb[3])
139 virtual void GetReadOnlyBackgroundColor(
double *r,
double *g,
double *b);
140 virtual double* GetReadOnlyBackgroundColor();
141 virtual void SetReadOnlyBackgroundColor(
double r,
double g,
double b);
142 virtual void SetReadOnlyBackgroundColor(
double rgb[3])
147 virtual void GetButtonBackgroundColor(
double *r,
double *g,
double *b);
148 virtual double* GetButtonBackgroundColor();
149 virtual void SetButtonBackgroundColor(
double r,
double g,
double b);
150 virtual void SetButtonBackgroundColor(
double rgb[3])
157 virtual void SetHighlightThickness(
int);
158 virtual int GetHighlightThickness();
165 virtual void GetActiveBackgroundColor(
double *r,
double *g,
double *b);
166 virtual double* GetActiveBackgroundColor();
167 virtual void SetActiveBackgroundColor(
double r,
double g,
double b);
168 virtual void SetActiveBackgroundColor(
double rgb[3])
175 virtual void SetBorderWidth(
int);
176 virtual int GetBorderWidth();
183 virtual void SetRelief(
int);
184 virtual int GetRelief();
185 virtual void SetReliefToRaised();
186 virtual void SetReliefToSunken();
187 virtual void SetReliefToFlat();
188 virtual void SetReliefToRidge();
189 virtual void SetReliefToSolid();
190 virtual void SetReliefToGroove();
204 virtual void SetFont(
const char *font);
205 virtual const char* GetFont();
213 virtual void SetExportSelection(
int);
214 virtual int GetExportSelection();
215 vtkBooleanMacro(ExportSelection,
int);
231 virtual void SetCommand(vtkObject *
object,
const char *method);
232 virtual void InvokeCommand(
double value);
240 TriggerOnFocusOut = 1,
241 TriggerOnReturnKey = 2,
242 TriggerOnAnyChange = 4
245 vtkGetMacro(CommandTrigger,
int);
246 virtual void SetCommandTrigger(
int);
247 virtual void SetCommandTriggerToReturnKeyAndFocusOut();
248 virtual void SetCommandTriggerToAnyChange();
264 SpinBoxValueChangedEvent = 10000
279 virtual void ValueCallback();
280 virtual int ValidationCallback(
const char *value);
281 virtual void TracedVariableChangedCallback(
282 const char *,
const char *,
const char *);
283 virtual void RightClickCallback(
int x,
int y);
303 virtual void PopulateContextMenu(
vtkKWMenu*);
307 virtual void Configure();
308 virtual void ConfigureValidation();