Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Widgets/vtkKWSpinBox.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWSpinBox.h,v $
00004 
00005   Copyright (c) Kitware, Inc.
00006   All rights reserved.
00007   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
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&); // Not implemented
00113   void operator=(const vtkKWSpinBox&); // Not implemented
00114 };
00115 
00116 #endif

Generated on Tue May 30 12:31:44 2006 for ParaView by doxygen 1.3.5