diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-03-02 20:05:33 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-03-02 20:05:33 +0100 |
commit | 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 (patch) | |
tree | db1b6b28566e5fe9accb4a688f7257673cecb080 /parts/abbrev | |
parent | afb74575caf7dd8ccb6c235b1c8d788e320c19da (diff) | |
download | tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip |
Finish renaming tdevelop components
Diffstat (limited to 'parts/abbrev')
-rw-r--r-- | parts/abbrev/CMakeLists.txt | 10 | ||||
-rw-r--r-- | parts/abbrev/Makefile.am | 16 | ||||
-rw-r--r-- | parts/abbrev/abbrevpart.cpp | 26 | ||||
-rw-r--r-- | parts/abbrev/abbrevpart.h | 4 | ||||
-rw-r--r-- | parts/abbrev/tdevabbrev.desktop (renamed from parts/abbrev/kdevabbrev.desktop) | 2 | ||||
-rw-r--r-- | parts/abbrev/tdevabbrev.rc (renamed from parts/abbrev/kdevabbrev.rc) | 0 |
6 files changed, 29 insertions, 29 deletions
diff --git a/parts/abbrev/CMakeLists.txt b/parts/abbrev/CMakeLists.txt index 219ad73d..6a61f9d8 100644 --- a/parts/abbrev/CMakeLists.txt +++ b/parts/abbrev/CMakeLists.txt @@ -26,14 +26,14 @@ link_directories( ##### other data ################################ -install( FILES kdevabbrev.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES qt_classes cpp_keywords DESTINATION ${DATA_INSTALL_DIR}/kdevabbrev/sources ) -install( FILES kdevabbrev.rc DESTINATION ${DATA_INSTALL_DIR}/kdevabbrev ) +install( FILES tdevabbrev.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES qt_classes cpp_keywords DESTINATION ${DATA_INSTALL_DIR}/tdevabbrev/sources ) +install( FILES tdevabbrev.rc DESTINATION ${DATA_INSTALL_DIR}/tdevabbrev ) -##### libkdevabbrev (module) #################### +##### libtdevabbrev (module) #################### -tde_add_kpart( libkdevabbrev AUTOMOC +tde_add_kpart( libtdevabbrev AUTOMOC SOURCES abbrevpart.cpp abbrevconfigwidget.cpp abbrevconfigwidgetbase.ui addtemplatedlg.cpp diff --git a/parts/abbrev/Makefile.am b/parts/abbrev/Makefile.am index f5c3ec2e..1c4f559c 100644 --- a/parts/abbrev/Makefile.am +++ b/parts/abbrev/Makefile.am @@ -2,19 +2,19 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/interfaces/extensions -I$(top_srcdir)/lib/util $(all_includes) -kde_module_LTLIBRARIES = libkdevabbrev.la -libkdevabbrev_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -libkdevabbrev_la_LIBADD = $(top_builddir)/lib/libtdevelop.la +kde_module_LTLIBRARIES = libtdevabbrev.la +libtdevabbrev_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) +libtdevabbrev_la_LIBADD = $(top_builddir)/lib/libtdevelop.la -libkdevabbrev_la_SOURCES = abbrevpart.cpp abbrevconfigwidget.cpp abbrevconfigwidgetbase.ui addtemplatedlg.cpp addtemplatedlgbase.ui +libtdevabbrev_la_SOURCES = abbrevpart.cpp abbrevconfigwidget.cpp abbrevconfigwidgetbase.ui addtemplatedlg.cpp addtemplatedlgbase.ui METASOURCES = AUTO servicedir = $(kde_servicesdir) -service_DATA = kdevabbrev.desktop +service_DATA = tdevabbrev.desktop -sourcesdir = $(kde_datadir)/kdevabbrev/sources +sourcesdir = $(kde_datadir)/tdevabbrev/sources sources_DATA = qt_classes cpp_keywords -rcdir = $(kde_datadir)/kdevabbrev -rc_DATA = kdevabbrev.rc +rcdir = $(kde_datadir)/tdevabbrev +rc_DATA = tdevabbrev.rc 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() ) ); } diff --git a/parts/abbrev/abbrevpart.h b/parts/abbrev/abbrevpart.h index 2b602088..cbb60e50 100644 --- a/parts/abbrev/abbrevpart.h +++ b/parts/abbrev/abbrevpart.h @@ -18,7 +18,7 @@ #include <tqmap.h> #include <tqptrlist.h> -#include "kdevplugin.h" +#include "tdevplugin.h" #include <tdetexteditor/codecompletioninterface.h> @@ -60,7 +60,7 @@ private: TQStringList m_suffixes; }; -class AbbrevPart : public KDevPlugin +class AbbrevPart : public TDevPlugin { Q_OBJECT diff --git a/parts/abbrev/kdevabbrev.desktop b/parts/abbrev/tdevabbrev.desktop index 5c230dd4..f06bf2eb 100644 --- a/parts/abbrev/kdevabbrev.desktop +++ b/parts/abbrev/tdevabbrev.desktop @@ -77,7 +77,7 @@ GenericName[zh_CN]=缩写扩展 GenericName[zh_TW]=縮寫擴展 ServiceTypes=TDevelop/Plugin Icon=fontsizeup -X-TDE-Library=libkdevabbrev +X-TDE-Library=libtdevabbrev X-TDevelop-Version=5 X-TDevelop-Scope=Global X-TDevelop-Properties=CodeEditing diff --git a/parts/abbrev/kdevabbrev.rc b/parts/abbrev/tdevabbrev.rc index e994ee76..e994ee76 100644 --- a/parts/abbrev/kdevabbrev.rc +++ b/parts/abbrev/tdevabbrev.rc |