vtkSlicerTheme.h

Go to the documentation of this file.
00001 #ifndef __vtkSlicerTheme_h
00002 #define __vtkSlicerTheme_h
00003 
00004 #include "vtkKWTheme.h"
00005 #include "vtkSlicerColor.h"
00006 #include "vtkSlicerFont.h"
00007 #include "vtkSlicerCheckRadioButtonIcons.h"
00008 
00009 class VTK_SLICER_BASE_GUI_EXPORT vtkSlicerTheme : public vtkKWTheme
00010 {
00011   public:
00014   static vtkSlicerTheme* New ();
00015   vtkTypeRevisionMacro ( vtkSlicerTheme, vtkKWTheme );
00016   void PrintSelf ( ostream& os, vtkIndent indent );
00017 
00020   vtkGetObjectMacro ( SlicerColors, vtkSlicerColor );
00021   vtkGetObjectMacro ( SlicerFonts, vtkSlicerFont );
00022   vtkGetMacro (FontSize0, int );
00023   vtkGetMacro (FontSize1, int );    
00024   vtkGetMacro (FontSize2, int );
00025     
00026   virtual const char *GetFontFamily ( )
00027   {
00028     return ( this->FontFamily );
00029   }
00030   virtual void SetFontFamily ( const char *font )
00031   {
00032     this->FontFamily = font;
00033   }
00034   virtual void SetApplicationFont0 ( const char *str )
00035   {
00036     this->ApplicationFont0 = str;
00037   }
00038   virtual void SetApplicationFont1 ( const char *str )
00039   {
00040     this->ApplicationFont1 = str;
00041   }
00042   virtual void SetApplicationFont2 ( const char *str )
00043   {
00044     this->ApplicationFont2 = str;
00045   }
00046   const char *GetApplicationFont0 ( )
00047   {
00048     return this->ApplicationFont0;
00049   }
00050   const char *GetApplicationFont1 ( )
00051   {
00052     return this->ApplicationFont1;
00053   }
00054   const char *GetApplicationFont2 ( )
00055   {
00056     return this->ApplicationFont2;
00057   }
00058 
00061   virtual void Install ( );
00062   virtual void InstallFonts ( );
00063     
00064   protected:
00065   vtkSlicerTheme ( );
00066   virtual ~vtkSlicerTheme ( );
00067   vtkSlicerColor *SlicerColors;
00068   vtkSlicerFont *SlicerFonts;
00069     
00070   const char *FontFamily;
00071   int FontSize0;
00072   int FontSize1;
00073   int FontSize2;
00074 
00075   const char *ApplicationFont0;
00076   const char *ApplicationFont1;
00077   const char *ApplicationFont2;
00078     
00079   vtkSlicerCheckRadioButtonIcons *CheckRadioIcons;
00080     
00081   private:
00082   vtkSlicerTheme (const vtkSlicerTheme& ); 
00083   void operator = (const vtkSlicerTheme& ); 
00084     
00085 };
00086 #endif

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1