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

GUI/Widgets/vtkKWText.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWText.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 =========================================================================*/
00024 #ifndef __vtkKWText_h
00025 #define __vtkKWText_h
00026 
00027 #include "vtkKWCoreWidget.h"
00028 
00029 class vtkKWApplication;
00030 class vtkKWTextInternals;
00031 
00032 class KWWIDGETS_EXPORT vtkKWText : public vtkKWCoreWidget
00033 {
00034 public:
00035   static vtkKWText* New();
00036   vtkTypeRevisionMacro(vtkKWText,vtkKWCoreWidget);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040   virtual void Create(vtkKWApplication *app);
00041 
00043 
00046   virtual char *GetText();
00047   virtual void SetText(const char *);
00048   virtual void SetText(const char *, const char *tag);
00049   virtual void AppendText(const char *);
00050   virtual void AppendText(const char *, const char *tag);
00052 
00054 
00055   virtual void SetReadOnly(int val);
00056   vtkGetMacro(ReadOnly, int);
00057   vtkBooleanMacro(ReadOnly, int);
00059 
00061 
00065   virtual void SetQuickFormatting(int);
00066   vtkGetMacro(QuickFormatting, int);
00067   vtkBooleanMacro(QuickFormatting, int);
00069 
00071 
00072   virtual void SetWidth(int);
00073   virtual int GetWidth();
00074   virtual void SetHeight(int);
00075   virtual int GetHeight();
00077 
00079 
00080   virtual void SetWrapToNone();
00081   virtual void SetWrapToWord();
00082   virtual void SetWrapToChar();
00084 
00087   virtual void AddTagMatcher(const char *regexp, const char *tag);
00088 
00090 
00102   vtkBooleanMacro(ResizeToGrid, int);
00103   virtual void SetResizeToGrid(int);
00104   virtual int GetResizeToGrid();
00106 
00113   virtual void UpdateEnableState();
00114 
00116 
00117   static const char *MarkerBold;
00118   static const char *MarkerItalic;
00119   static const char *MarkerUnderline;
00120   static const char *TagBold;
00121   static const char *TagItalic;
00122   static const char *TagUnderline;
00123   static const char *TagFgNavy;
00124   static const char *TagFgRed;
00125   static const char *TagFgBlue;
00126   static const char *TagFgDarkGreen;
00127   //ETX
00129 
00130 protected:
00131   vtkKWText();
00132   ~vtkKWText();
00133 
00134   int ReadOnly;
00135   int QuickFormatting;
00136 
00137   //BTX
00138   // PIMPL Encapsulation for STL containers
00139   vtkKWTextInternals *Internals;
00140   //ETX
00141 
00142   virtual void AppendTextInternalTagging(const char *, const char *tag);
00143   virtual void AppendTextInternal(const char *, const char *tag);
00144 
00145 private:
00146 
00147   char *InternalTextString;
00148   vtkGetStringMacro(InternalTextString);
00149   vtkSetStringMacro(InternalTextString);
00150 
00151   vtkKWText(const vtkKWText&); // Not implemented
00152   void operator=(const vtkKWText&); // Not implemented
00153 };
00154 
00155 #endif

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