#ifdef HAVE_CONFIG_H #include #endif #ifdef ENABLE_NLS namespace LIBPLP { extern "C" { #include void init_libplp_i18n() { #ifdef HAVE_BINDTEXTDOMAIN_CODESET bind_textdomain_codeset(PACKAGE, "latin1"); #endif textdomain(PACKAGE); } }; }; #endif #include "plppropsFactory.h" #include "plpprops.h" #include #include #include extern "C" { void *init_libplpprops() { return new plppropsFactory(); } }; plppropsFactory::plppropsFactory(QObject *parent, const char *name) : KLibFactory(parent, name) { s_global = new KInstance("plpprops"); // Install the translations #ifdef ENABLE_NLS LIBPLP::init_libplp_i18n(); #endif KGlobal::locale()->insertCatalogue(QString::fromLatin1("plptools")); KGlobal::locale()->insertCatalogue(QString::fromLatin1("libplpprops")); } plppropsFactory::~plppropsFactory() { delete s_global; } QObject* plppropsFactory::createObject(QObject* parent, const char *name, const char *classname, const QStringList & ) { QObject *obj = 0L; if ((strcmp(classname, "KPropsDlgPlugin") == 0) && parent && parent->inherits("KPropertiesDialog")) obj = new PlpPropsPlugin(static_cast(parent)); return obj; } #include