KDevelop API Documentation

parts/appwizard/appwizardfactory.cpp

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2000-2001 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 00013 #include <kstandarddirs.h> 00014 00015 #include "appwizardfactory.h" 00016 00017 static const KAboutData data("kdevappwizard", I18N_NOOP("Create New Project"), "1.0"); 00018 K_EXPORT_COMPONENT_FACTORY( libkdevappwizard, AppWizardFactory ) 00019 00020 AppWizardFactory::AppWizardFactory() 00021 : KDevGenericFactory<AppWizardPart>( &data ) 00022 { 00023 } 00024 00025 KInstance *AppWizardFactory::createInstance() 00026 { 00027 KInstance *instance = KDevGenericFactory<AppWizardPart>::createInstance(); 00028 KStandardDirs *dirs = instance->dirs(); 00029 dirs->addResourceType("apptemplates", KStandardDirs::kde_default("data") + "kdevappwizard/templates/"); 00030 dirs->addResourceType("appimports", KStandardDirs::kde_default("data") + "kdevappwizard/imports/"); 00031 dirs->addResourceType("appimportfiles", KStandardDirs::kde_default("data") + "kdevappwizard/importfiles/"); 00032 00033 return instance; 00034 } 00035
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:09 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003