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