00001 00012 #ifdef _MSC_VER 00013 #include "msdevstudio/MSconfig.h" 00014 #endif 00015 00016 #include "QtViewFactory.h" 00017 00018 #include "QtFont.h" 00019 #include "QtView.h" 00020 00021 #include "plotters/PlotterBase.h" 00022 00023 QtViewFactory::QtViewFactory( ) 00024 : ViewFactory() 00025 { 00026 } 00027 00028 ViewFactory * QtViewFactory::instance () 00029 { 00030 if ( m_instance == 0 ) { 00031 m_instance = new QtViewFactory (); 00032 } 00033 00034 return m_instance; 00035 } 00036 00037 ViewBase * 00038 QtViewFactory:: 00039 createView ( PlotterBase * plotter ) const 00040 { 00041 QtView * view = new QtView ( plotter ); 00042 00043 return view; 00044 } 00045 00046 FontBase * 00047 QtViewFactory:: 00048 createFont () const 00049 { 00050 return new QtFont (); 00051 }