diff options
Diffstat (limited to 'parts/abbrev/abbrevpart.cpp')
-rw-r--r-- | parts/abbrev/abbrevpart.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/parts/abbrev/abbrevpart.cpp b/parts/abbrev/abbrevpart.cpp index 80d26599..87e44e23 100644 --- a/parts/abbrev/abbrevpart.cpp +++ b/parts/abbrev/abbrevpart.cpp @@ -24,35 +24,35 @@ #include <tdelocale.h> #include <tdeparts/part.h> #include <kstandarddirs.h> -#include <kdevgenericfactory.h> +#include <tdevgenericfactory.h> #include <tdeaction.h> #include <tdeconfig.h> #include <tdeio/netaccess.h> #include <kiconloader.h> -#include <kdevplugininfo.h> +#include <tdevplugininfo.h> #include <tdetexteditor/document.h> #include <tdetexteditor/editinterface.h> #include <tdetexteditor/viewcursorinterface.h> #include <tdetexteditor/codecompletioninterface.h> -#include "kdevcore.h" -#include "kdevpartcontroller.h" +#include "tdevcore.h" +#include "tdevpartcontroller.h" #include "abbrevconfigwidget.h" -#include "kdeveditorutil.h" +#include "tdeveditorutil.h" -static const KDevPluginInfo data("kdevabbrev"); +static const TDevPluginInfo data("tdevabbrev"); -class AbbrevFactory : public KDevGenericFactory<AbbrevPart> +class AbbrevFactory : public TDevGenericFactory<AbbrevPart> { public: AbbrevFactory() - : KDevGenericFactory<AbbrevPart>( data ) + : TDevGenericFactory<AbbrevPart>( data ) { } virtual TDEInstance *createInstance() { - TDEInstance *instance = KDevGenericFactory<AbbrevPart>::createInstance(); + TDEInstance *instance = TDevGenericFactory<AbbrevPart>::createInstance(); TDEStandardDirs *dirs = instance->dirs(); dirs->addResourceType( "codetemplates", TDEStandardDirs::kde_default( "data" ) + "kdevabbrev/templates/" ); @@ -63,13 +63,13 @@ public: } }; -K_EXPORT_COMPONENT_FACTORY( libkdevabbrev, AbbrevFactory ) +K_EXPORT_COMPONENT_FACTORY( libtdevabbrev, AbbrevFactory ) AbbrevPart::AbbrevPart(TQObject *parent, const char *name, const TQStringList &) - : KDevPlugin(&data, parent, name ? name : "AbbrevPart") + : TDevPlugin(&data, parent, name ? name : "AbbrevPart") { setInstance(AbbrevFactory::instance()); - setXMLFile("kdevabbrev.rc"); + setXMLFile("tdevabbrev.rc"); connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part*)) ); @@ -235,7 +235,7 @@ void AbbrevPart::save() TQString AbbrevPart::currentWord() const { - return KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) ); + return TDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) ); } |