1
/***************************************************************************
2
* Copyright (C) 2000-2001 by Bernd Gehrmann *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#include <kinstance.h>
13
#include <kstandarddirs.h>
14
#include <kdevplugininfo.h>
15
#include "cppsupportfactory.h"
17
K_EXPORT_COMPONENT_FACTORY( libkdevcppsupport, CppSupportFactory )
19
static const KDevPluginInfo data("kdevcppsupport");
21
CppSupportFactory::CppSupportFactory()
22
: KDevGenericFactory<CppSupportPart>( data )
26
KInstance *CppSupportFactory::createInstance()
28
KInstance *instance = KDevGenericFactory<CppSupportPart>::createInstance();
29
KStandardDirs *dirs = instance->dirs();
30
dirs->addResourceType( "newclasstemplates", KStandardDirs::kde_default("data") + "kdevcppsupport/newclass/" );
31
dirs->addResourceType( "pcs", KStandardDirs::kde_default( "data" ) + "kdevcppsupport/pcs/" );
36
const KDevPluginInfo * CppSupportFactory::info()
40
//kate: indent-mode csands; tab-width 4; space-indent off;