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

GUI/Widgets/vtkKWCoreWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWCoreWidget.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 =========================================================================*/
00027 #ifndef __vtkKWCoreWidget_h
00028 #define __vtkKWCoreWidget_h
00029 
00030 #include "vtkKWWidget.h"
00031 #include "vtkKWTkOptions.h" // For option constants
00032 
00033 class KWWIDGETS_EXPORT vtkKWCoreWidget : public vtkKWWidget
00034 {
00035 public:
00036   static vtkKWCoreWidget* New();
00037   vtkTypeRevisionMacro(vtkKWCoreWidget, vtkKWWidget);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041   virtual void Create(vtkKWApplication *app);
00042 
00044 
00046   virtual void GetBackgroundColor(double *r, double *g, double *b);
00047   virtual double* GetBackgroundColor();
00048   virtual void SetBackgroundColor(double r, double g, double b);
00049   virtual void SetBackgroundColor(double rgb[3])
00050     { this->SetBackgroundColor(rgb[0], rgb[1], rgb[2]); };
00051   virtual void GetForegroundColor(double *r, double *g, double *b);
00052   virtual double* GetForegroundColor();
00053   virtual void SetForegroundColor(double r, double g, double b);
00054   virtual void SetForegroundColor(double rgb[3])
00055     { this->SetForegroundColor(rgb[0], rgb[1], rgb[2]); };
00057   
00059 
00062   virtual void SetHighlightThickness(int);
00063   virtual int GetHighlightThickness();
00065   
00067 
00070   virtual void SetBorderWidth(int);
00071   virtual int GetBorderWidth();
00073   
00075 
00078   virtual void SetRelief(int);
00079   virtual int GetRelief();
00080   virtual void SetReliefToRaised() 
00081     { this->SetRelief(vtkKWTkOptions::ReliefRaised); };
00082   virtual void SetReliefToSunken() 
00083     { this->SetRelief(vtkKWTkOptions::ReliefSunken); };
00084   virtual void SetReliefToFlat() 
00085     { this->SetRelief(vtkKWTkOptions::ReliefFlat); };
00086   virtual void SetReliefToRidge() 
00087     { this->SetRelief(vtkKWTkOptions::ReliefRidge); };
00088   virtual void SetReliefToSolid() 
00089     { this->SetRelief(vtkKWTkOptions::ReliefSolid); };
00090   virtual void SetReliefToGroove() 
00091     { this->SetRelief(vtkKWTkOptions::ReliefGroove); };
00093 
00095 
00103   virtual void SetPadX(int);
00104   virtual int GetPadX();
00105   virtual void SetPadY(int);
00106   virtual int GetPadY();
00108 
00110 
00117   virtual int SetConfigurationOption(const char* option, const char *value);
00118   virtual int HasConfigurationOption(const char* option);
00119   virtual const char* GetConfigurationOption(const char* option);
00120   virtual int GetConfigurationOptionAsInt(const char* option);
00121   virtual int SetConfigurationOptionAsInt(const char* option, int value);
00122   virtual double GetConfigurationOptionAsDouble(const char* option);
00123   virtual int SetConfigurationOptionAsDouble(const char* option, double value);
00124   virtual void GetConfigurationOptionAsColor(
00125     const char* option, double *r, double *g, double *b);
00126   virtual double* GetConfigurationOptionAsColor(const char* option);
00127   virtual void SetConfigurationOptionAsColor(
00128     const char* option, double r, double g, double b);
00129   virtual void SetConfigurationOptionAsColor(const char* option, double rgb[3])
00130     { this->SetConfigurationOptionAsColor(option, rgb[0], rgb[1], rgb[2]); };
00132 
00134 
00139   virtual void SetState(int);
00140   virtual int GetState();
00141   virtual void SetStateToDisabled() 
00142     { this->SetState(vtkKWTkOptions::StateDisabled); };
00143   virtual void SetStateToNormal() 
00144     { this->SetState(vtkKWTkOptions::StateNormal); };
00145   virtual void SetStateToReadOnly() 
00146     { this->SetState(vtkKWTkOptions::StateReadOnly); };
00148 
00149 protected:
00150   vtkKWCoreWidget() {};
00151   ~vtkKWCoreWidget() {};
00152 
00154   virtual const char* GetType();
00155   
00157 
00165   enum
00166   {
00167     ConvertStringEscapeCurlyBraces   = 1,
00168     ConvertStringEscapeInterpretable = 2
00169   };
00170   const char* ConvertTclStringToInternalString(
00171     const char *source, int options = 0);
00172   const char* ConvertInternalStringToTclString(
00173     const char *source, int options = 0);
00174   //ETX
00176 
00178 
00184   virtual void SetTextOption(const char *option, const char *value);
00185   virtual const char* GetTextOption(const char *option);
00187 
00188 private:
00189   vtkKWCoreWidget(const vtkKWCoreWidget&); // Not implemented
00190   void operator=(const vtkKWCoreWidget&); // Not implemented
00191 };
00192 
00193 
00194 #endif
00195 
00196 
00197 

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