#ifdef HAVE_CONFIG_H #include #endif #include "KDChartWrapperFactory.h" #include #include #include "wrappers/KDChartParamsWrapper.h" #include "wrappers/KDChartTableDataWrapper.h" #include "wrappers/KDChartCustomBoxWrapper.h" #include #include "wrappers/KDChartAxisParamsWrapper.h" KDChartWrapperFactory::KDChartWrapperFactory() { registerWrapper( "KDChartParams", "KDChartParamsWrapper" ); registerWrapper( "KDChartVectorTableData", "KDChartTableDataWrapper" ); registerWrapper( "KDChartCustomBox", "KDChartCustomBoxWrapper" ); registerWrapper( "KDChartAxisParams", "KDChartAxisParamsWrapper" ); } TQObject* KDChartWrapperFactory::create( const TQString& className, void* ptr ) { if ( className == TQString::fromLatin1( "KDChartParams" ) ) return new KDChartParamsWrapper( static_cast( ptr ) ); if ( className == TQString::fromLatin1( "KDChartVectorTableData" ) ) return new KDChartTableDataWrapper( static_cast( ptr ) ); if ( className == TQString::fromLatin1( "KDChartCustomBox" ) ) return new KDChartCustomBoxWrapper( static_cast( ptr ) ); if ( className == TQString::fromLatin1( "KDChartAxisParams" ) ) return new KDChartAxisParamsWrapper( static_cast( ptr ) ); return 0; }