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

GUI/Widgets/vtkKWMessage.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWMessage.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 =========================================================================*/
00035 #ifndef __vtkKWMessage_h
00036 #define __vtkKWMessage_h
00037 
00038 #include "vtkKWCoreWidget.h"
00039 
00040 class KWWIDGETS_EXPORT vtkKWMessage : public vtkKWCoreWidget
00041 {
00042 public:
00043   static vtkKWMessage* New();
00044   vtkTypeRevisionMacro(vtkKWMessage,vtkKWCoreWidget);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048   virtual void Create(vtkKWApplication *app);
00049   
00051 
00052   virtual void SetText(const char*);
00053   vtkGetStringMacro(Text);
00055 
00057 
00062   virtual void SetWidth(int);
00063   virtual int GetWidth();
00065 
00067 
00074   virtual void SetAspectRatio(int);
00075   virtual int GetAspectRatio();
00077 
00079 
00096   virtual void SetJustification(int);
00097   virtual int GetJustification();
00098   virtual void SetJustificationToLeft() 
00099     { this->SetJustification(vtkKWTkOptions::JustificationLeft); };
00100   virtual void SetJustificationToCenter() 
00101     { this->SetJustification(vtkKWTkOptions::JustificationCenter); };
00102   virtual void SetJustificationToRight() 
00103     { this->SetJustification(vtkKWTkOptions::JustificationRight); };
00105 
00107 
00111   virtual void SetAnchor(int);
00112   virtual int GetAnchor();
00113   virtual void SetAnchorToNorth() 
00114     { this->SetAnchor(vtkKWTkOptions::AnchorNorth); };
00115   virtual void SetAnchorToNorthEast() 
00116     { this->SetAnchor(vtkKWTkOptions::AnchorNorthEast); };
00117   virtual void SetAnchorToEast() 
00118     { this->SetAnchor(vtkKWTkOptions::AnchorEast); };
00119   virtual void SetAnchorToSouthEast() 
00120     { this->SetAnchor(vtkKWTkOptions::AnchorSouthEast); };
00121   virtual void SetAnchorToSouth() 
00122     { this->SetAnchor(vtkKWTkOptions::AnchorSouth); };
00123   virtual void SetAnchorToSouthWest() 
00124     { this->SetAnchor(vtkKWTkOptions::AnchorSouthWest); };
00125   virtual void SetAnchorToWest() 
00126     { this->SetAnchor(vtkKWTkOptions::AnchorWest); };
00127   virtual void SetAnchorToNorthWest() 
00128     { this->SetAnchor(vtkKWTkOptions::AnchorNorthWest); };
00129   virtual void SetAnchorToCenter() 
00130     { this->SetAnchor(vtkKWTkOptions::AnchorCenter); };
00132 
00133 protected:
00134   vtkKWMessage();
00135   ~vtkKWMessage();
00136 
00137   virtual void UpdateText();
00138 
00139 private:
00140   char* Text;
00141 
00142   vtkKWMessage(const vtkKWMessage&); // Not implemented
00143   void operator=(const vtkKWMessage&); // Not implemented
00144 };
00145 
00146 #endif

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