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

GUI/Widgets/vtkKWEntry.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWEntry.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 =========================================================================*/
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&); // Not implemented
00106   void operator=(const vtkKWEntry&); // Not Implemented
00107 };
00108 
00109 #endif

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