From 6392f5a9dfce2bf83617d49bb7f332181ec6004e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 25 May 2014 15:37:31 +0900 Subject: Revert "Finish renaming tdevelop components" This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73. --- parts/snippet/CMakeLists.txt | 8 +-- parts/snippet/Makefile.am | 14 +++--- parts/snippet/kdevpart_snippet.rc | 8 +++ parts/snippet/kdevsnippet.desktop | 102 ++++++++++++++++++++++++++++++++++++++ parts/snippet/snippet_part.cpp | 20 ++++---- parts/snippet/snippet_part.h | 10 ++-- parts/snippet/snippet_widget.cpp | 8 +-- parts/snippet/snippet_widget.h | 2 +- parts/snippet/tdevpart_snippet.rc | 8 --- parts/snippet/tdevsnippet.desktop | 102 -------------------------------------- 10 files changed, 141 insertions(+), 141 deletions(-) create mode 100644 parts/snippet/kdevpart_snippet.rc create mode 100644 parts/snippet/kdevsnippet.desktop delete mode 100644 parts/snippet/tdevpart_snippet.rc delete mode 100644 parts/snippet/tdevsnippet.desktop (limited to 'parts/snippet') diff --git a/parts/snippet/CMakeLists.txt b/parts/snippet/CMakeLists.txt index 43776bf0..704ec3e9 100644 --- a/parts/snippet/CMakeLists.txt +++ b/parts/snippet/CMakeLists.txt @@ -26,13 +26,13 @@ link_directories( ##### other data ################################ -install( FILES tdevsnippet.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES tdevpart_snippet.rc DESTINATION ${DATA_INSTALL_DIR}/tdevsnippet ) +install( FILES kdevsnippet.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kdevpart_snippet.rc DESTINATION ${DATA_INSTALL_DIR}/kdevsnippet ) -##### libtdevsnippet (module) ################### +##### libkdevsnippet (module) ################### -tde_add_kpart( libtdevsnippet AUTOMOC +tde_add_kpart( libkdevsnippet AUTOMOC SOURCES snippet_part.cpp snippet_widget.cpp snippetdlg.ui snippetitem.cpp snippetsettingsbase.ui snippetsettings.cpp diff --git a/parts/snippet/Makefile.am b/parts/snippet/Makefile.am index d2429963..e2c207a4 100644 --- a/parts/snippet/Makefile.am +++ b/parts/snippet/Makefile.am @@ -1,17 +1,17 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/util $(all_includes) -kde_module_LTLIBRARIES = libtdevsnippet.la -libtdevsnippet_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -libtdevsnippet_la_LIBADD = $(top_builddir)/lib/libtdevelop.la +kde_module_LTLIBRARIES = libkdevsnippet.la +libkdevsnippet_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) +libkdevsnippet_la_LIBADD = $(top_builddir)/lib/libtdevelop.la -libtdevsnippet_la_SOURCES = snippet_part.cpp snippet_widget.cpp snippetdlg.ui snippetitem.cpp snippetsettingsbase.ui snippetsettings.cpp snippetconfig.cpp +libkdevsnippet_la_SOURCES = snippet_part.cpp snippet_widget.cpp snippetdlg.ui snippetitem.cpp snippetsettingsbase.ui snippetsettings.cpp snippetconfig.cpp METASOURCES = AUTO servicedir = $(kde_servicesdir) -service_DATA = tdevsnippet.desktop +service_DATA = kdevsnippet.desktop -rc_DATA = tdevpart_snippet.rc -rcdir = $(kde_datadir)/tdevsnippet +rc_DATA = kdevpart_snippet.rc +rcdir = $(kde_datadir)/kdevsnippet noinst_HEADERS = snippetdlg.h snippetitem.h snippetsettingsbase.h snippetsettings.h snippetconfig.h diff --git a/parts/snippet/kdevpart_snippet.rc b/parts/snippet/kdevpart_snippet.rc new file mode 100644 index 00000000..4f34ec50 --- /dev/null +++ b/parts/snippet/kdevpart_snippet.rc @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/parts/snippet/kdevsnippet.desktop b/parts/snippet/kdevsnippet.desktop new file mode 100644 index 00000000..f9ba9652 --- /dev/null +++ b/parts/snippet/kdevsnippet.desktop @@ -0,0 +1,102 @@ +[Desktop Entry] +Type=Service +Exec= +Comment=This plugin allows you to store code snippets and add them to your code +Comment[ca]=Aquest connector permet guardar trossos de codi i afegir-los més tard al vostre codi +Comment[da]=Dette plugin tillader dig at opbevare kodestumper og tilføje dem til din kode +Comment[de]=Dieses Modul erlaubt das Abspeichern und Wiederverwenden von Quelltext-Schnipseln +Comment[el]=Αυτό το πρόσθετο σας επιτρέπει να αποθηκεύσετε δείγματα κώδικα και να τα προσθέσετε στον κώδικά σας +Comment[es]=Este complemento permite almacenar trozos de código y añadirlos a su código fuente +Comment[et]=See plugin võimaldab salvestada koodijuppe ja neid koodi lisada +Comment[eu]=Plugin honek kode zatiak gordetzeo eta zure kodeari gehitzeko aukera eskeintzen dizu +Comment[fa]=این وصله، اجازۀ ذخیرۀ تکه‌های کد و افزودن آنها را به کدتان می‌دهد +Comment[fr]=Ce module externe permet de stocker des fragments de code et de les ajouter à votre code +Comment[gl]=Esta extensión permite almacenar fragmentos de código e engadilos ao seu código +Comment[hu]=Ez a modul kódrészletek eltárolását és programkódba való beillesztését teszi lehetővé +Comment[it]=Questo plugin consente di memorizzare frammenti di codice e di aggiungerli al tuo codice +Comment[ja]=このプラグインはコード断片を格納し、あなたのコードにそれらを加えることを可能にします。 +Comment[ms]=Plugin ini membenarkan anda untuk menyimpan petikan kod dan menambahkannya ke dalam kod anda +Comment[nds]=Dit Moduul stellt dat Sekern un Tofögen vun Kode-Snippels praat. +Comment[ne]=यो प्लगइनले तपाईँलाई सङ्केत स्निपेट्स भण्डारण गर्न र तपाईँको सङ्केतमा तिनीहरूलाई थप्न अनुमति दिन्छ +Comment[nl]=Deze plugin staat u toe om tekstblokken op te slaan en deze toe te voegen aan uw code +Comment[pl]=Wtyczka umożliwiająca zapisanie fragmentów kodu i wstawianie ich później do kodu +Comment[pt]=Este 'plugin' permite-lhe guardar pedaços de códigos e adicioná-los ao seu código +Comment[pt_BR]=Este plug-in permite a você armazenar os pedaços de código e adicioná-los em seu código +Comment[ru]=Модуль сохранения часто используемых частей кода в одно место для быстрого доступа к ним +Comment[sk]=Modul umožní uložiť si výňatky kódu a ich vkladať +Comment[sr]=Овај прикључак вам омогућава да чувате исечке кôда и додајете их у сопствени кôд +Comment[sr@Latn]=Ovaj priključak vam omogućava da čuvate isečke kôda i dodajete ih u sopstveni kôd +Comment[sv]=Det här insticksprogrammet gör det möjligt att lagra kodsnuttar och lägga till dem i din kod +Comment[ta]=இந்த உள்ளீடுகள் ஸ்னிப்பட் குறியீடுகளை சேமிக்கவும் மற்றும் அக்குறியீட்டை சேர்க்கவும் வழிவகுக்கிறது +Comment[tg]=Нигоҳ дории модул баъзан истифодашавии як қисми код дар як ҷой барои зуд роҳ гирифтан ба он ҷо +Comment[tr]=Bu eklenti kod parçalarını saklamanızı ve onları kodunuza eklemenizi sağlar +Comment[zh_CN]=这个插件允许您保存代码片段并将这些片段插入到您的代码中 +Comment[zh_TW]=此外掛程式讓您儲存程式碼片段,並可以加入您的程式碼中 +Name=Code Snippets +Name[ca]=Trossos de codi +Name[da]=Kodestumper +Name[de]=Quelltext-Schnipsel +Name[el]=Δείγματα κώδικα +Name[es]=Trozos de código +Name[et]=Koodijupid +Name[eu]=Kode zatiak +Name[fa]=تکه‌های کد +Name[fr]=Fragments de code +Name[ga]=Blúirí Cóid +Name[hu]=Kódrészletek +Name[it]=Frammenti di codice +Name[ja]=コード Snippet +Name[ms]=Petikan Kod +Name[nds]=Kode-Snippels +Name[ne]=सङ्केत स्निपेट्स +Name[pl]=Fragmenty kodu +Name[pt]=Pedaços de Código +Name[pt_BR]=Pedaços de Código +Name[ru]=Заготовки кода +Name[sk]=Výňatky kódu +Name[sl]=Odseki kode +Name[sv]=Kodsnuttar +Name[ta]=ஸ்னிப்பட் குறியீடுகள் +Name[tg]=Тайёр намудани код +Name[tr]=Kod Parçacıkları +Name[zh_CN]=代码片段 +Name[zh_TW]=程式碼片段 +GenericName=Code Snippets +GenericName[ca]=Trossos de codi +GenericName[da]=Kodestumper +GenericName[de]=Quelltext-Schnipsel +GenericName[el]=Δείγματα κώδικα +GenericName[es]=Trozos de código +GenericName[et]=Koodijupid +GenericName[eu]=Kode zatiak +GenericName[fa]=تکه‌های کد +GenericName[fr]=Fragments de code +GenericName[ga]=Blúirí Cóid +GenericName[gl]=Fragmentos de código +GenericName[hu]=Kódrészletek +GenericName[it]=Frammenti di codice +GenericName[ja]=コード Snippet +GenericName[ms]=Petikan Kod +GenericName[nds]=Kode-Snippels +GenericName[ne]=सङ्केत स्निपेट्स +GenericName[nl]=Tekstblokken +GenericName[pl]=Fragmenty kodu +GenericName[pt]=Pedaços de Código +GenericName[pt_BR]=Pedaços de código +GenericName[ru]=Заготовки кода +GenericName[sk]=Výňatky kódu +GenericName[sl]=Odseki kode +GenericName[sr]=Исечци кôда +GenericName[sr@Latn]=Isečci kôda +GenericName[sv]=Kodsnuttar +GenericName[ta]=ஸ்ப்பட் குறியீடு +GenericName[tg]=Тайёр намудани кодҳо +GenericName[tr]=Kod Parçacıkları +GenericName[zh_CN]=代码片段 +GenericName[zh_TW]=程式碼片段 +Icon=editcut +ServiceTypes=TDevelop/Plugin +X-TDevelop-Scope=Global +X-TDE-Library=libkdevsnippet +X-TDevelop-Version=5 +X-TDevelop-Properties=CodeEditing diff --git a/parts/snippet/snippet_part.cpp b/parts/snippet/snippet_part.cpp index e31ebe7a..82969151 100644 --- a/parts/snippet/snippet_part.cpp +++ b/parts/snippet/snippet_part.cpp @@ -20,11 +20,11 @@ #include #include -#include "tdevcore.h" -#include -#include "tdevmainwindow.h" -#include -#include +#include "kdevcore.h" +#include +#include "kdevmainwindow.h" +#include +#include #include @@ -33,15 +33,15 @@ #include "snippetsettings.h" #include "snippetconfig.h" -static const TDevPluginInfo data("tdevsnippet"); -typedef TDevGenericFactory snippetFactory; -K_EXPORT_COMPONENT_FACTORY( libtdevsnippet, snippetFactory( data ) ) +static const KDevPluginInfo data("kdevsnippet"); +typedef KDevGenericFactory snippetFactory; +K_EXPORT_COMPONENT_FACTORY( libkdevsnippet, snippetFactory( data ) ) SnippetPart::SnippetPart(TQObject *parent, const char *name, const TQStringList& ) - : TDevPlugin(&data, parent, name ? name : "SnippetPart" ) + : KDevPlugin(&data, parent, name ? name : "SnippetPart" ) { setInstance(snippetFactory::instance()); - setXMLFile("tdevpart_snippet.rc"); + setXMLFile("kdevpart_snippet.rc"); m_widget = new SnippetWidget(this); m_widget->setCaption(i18n("Code Snippets")); diff --git a/parts/snippet/snippet_part.h b/parts/snippet/snippet_part.h index 98a809cf..8ffd8fce 100644 --- a/parts/snippet/snippet_part.h +++ b/parts/snippet/snippet_part.h @@ -7,12 +7,12 @@ */ -#ifndef __TDEVPART_SNIPPET_H__ -#define __TDEVPART_SNIPPET_H__ +#ifndef __KDEVPART_SNIPPET_H__ +#define __KDEVPART_SNIPPET_H__ #include -#include +#include class SnippetWidget; @@ -20,11 +20,11 @@ class TDEAboutData; class KDialogBase; /* -This is the TDevPlugin for the CodeSnippet feature +This is the KDevPlugin for the CodeSnippet feature For more info read the README.dox file @author Robert Gruber */ -class SnippetPart : public TDevPlugin +class SnippetPart : public KDevPlugin { Q_OBJECT diff --git a/parts/snippet/snippet_widget.cpp b/parts/snippet/snippet_widget.cpp index 6b59f16f..9cd4ae4b 100644 --- a/parts/snippet/snippet_widget.cpp +++ b/parts/snippet/snippet_widget.cpp @@ -36,9 +36,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include "snippetdlg.h" #include "snippetitem.h" @@ -418,7 +418,7 @@ void SnippetWidget::initConfigOldVersion(TDEConfig *cfg) void SnippetWidget::initConfig() { if (_cfg == NULL) - _cfg = new TDEConfig("tdevsnippetrc", false, false); + _cfg = new TDEConfig("kdevsnippetrc", false, false); _cfg->setGroup("SnippetPart"); diff --git a/parts/snippet/snippet_widget.h b/parts/snippet/snippet_widget.h index 4d534802..8b6c17a1 100644 --- a/parts/snippet/snippet_widget.h +++ b/parts/snippet/snippet_widget.h @@ -19,7 +19,7 @@ #include #include "snippetconfig.h" -class TDevProject; +class KDevProject; class SnippetPart; class TQPushButton; class TDEListView; diff --git a/parts/snippet/tdevpart_snippet.rc b/parts/snippet/tdevpart_snippet.rc deleted file mode 100644 index f4b9d2db..00000000 --- a/parts/snippet/tdevpart_snippet.rc +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/parts/snippet/tdevsnippet.desktop b/parts/snippet/tdevsnippet.desktop deleted file mode 100644 index b257280c..00000000 --- a/parts/snippet/tdevsnippet.desktop +++ /dev/null @@ -1,102 +0,0 @@ -[Desktop Entry] -Type=Service -Exec= -Comment=This plugin allows you to store code snippets and add them to your code -Comment[ca]=Aquest connector permet guardar trossos de codi i afegir-los més tard al vostre codi -Comment[da]=Dette plugin tillader dig at opbevare kodestumper og tilføje dem til din kode -Comment[de]=Dieses Modul erlaubt das Abspeichern und Wiederverwenden von Quelltext-Schnipseln -Comment[el]=Αυτό το πρόσθετο σας επιτρέπει να αποθηκεύσετε δείγματα κώδικα και να τα προσθέσετε στον κώδικά σας -Comment[es]=Este complemento permite almacenar trozos de código y añadirlos a su código fuente -Comment[et]=See plugin võimaldab salvestada koodijuppe ja neid koodi lisada -Comment[eu]=Plugin honek kode zatiak gordetzeo eta zure kodeari gehitzeko aukera eskeintzen dizu -Comment[fa]=این وصله، اجازۀ ذخیرۀ تکه‌های کد و افزودن آنها را به کدتان می‌دهد -Comment[fr]=Ce module externe permet de stocker des fragments de code et de les ajouter à votre code -Comment[gl]=Esta extensión permite almacenar fragmentos de código e engadilos ao seu código -Comment[hu]=Ez a modul kódrészletek eltárolását és programkódba való beillesztését teszi lehetővé -Comment[it]=Questo plugin consente di memorizzare frammenti di codice e di aggiungerli al tuo codice -Comment[ja]=このプラグインはコード断片を格納し、あなたのコードにそれらを加えることを可能にします。 -Comment[ms]=Plugin ini membenarkan anda untuk menyimpan petikan kod dan menambahkannya ke dalam kod anda -Comment[nds]=Dit Moduul stellt dat Sekern un Tofögen vun Kode-Snippels praat. -Comment[ne]=यो प्लगइनले तपाईँलाई सङ्केत स्निपेट्स भण्डारण गर्न र तपाईँको सङ्केतमा तिनीहरूलाई थप्न अनुमति दिन्छ -Comment[nl]=Deze plugin staat u toe om tekstblokken op te slaan en deze toe te voegen aan uw code -Comment[pl]=Wtyczka umożliwiająca zapisanie fragmentów kodu i wstawianie ich później do kodu -Comment[pt]=Este 'plugin' permite-lhe guardar pedaços de códigos e adicioná-los ao seu código -Comment[pt_BR]=Este plug-in permite a você armazenar os pedaços de código e adicioná-los em seu código -Comment[ru]=Модуль сохранения часто используемых частей кода в одно место для быстрого доступа к ним -Comment[sk]=Modul umožní uložiť si výňatky kódu a ich vkladať -Comment[sr]=Овај прикључак вам омогућава да чувате исечке кôда и додајете их у сопствени кôд -Comment[sr@Latn]=Ovaj priključak vam omogućava da čuvate isečke kôda i dodajete ih u sopstveni kôd -Comment[sv]=Det här insticksprogrammet gör det möjligt att lagra kodsnuttar och lägga till dem i din kod -Comment[ta]=இந்த உள்ளீடுகள் ஸ்னிப்பட் குறியீடுகளை சேமிக்கவும் மற்றும் அக்குறியீட்டை சேர்க்கவும் வழிவகுக்கிறது -Comment[tg]=Нигоҳ дории модул баъзан истифодашавии як қисми код дар як ҷой барои зуд роҳ гирифтан ба он ҷо -Comment[tr]=Bu eklenti kod parçalarını saklamanızı ve onları kodunuza eklemenizi sağlar -Comment[zh_CN]=这个插件允许您保存代码片段并将这些片段插入到您的代码中 -Comment[zh_TW]=此外掛程式讓您儲存程式碼片段,並可以加入您的程式碼中 -Name=Code Snippets -Name[ca]=Trossos de codi -Name[da]=Kodestumper -Name[de]=Quelltext-Schnipsel -Name[el]=Δείγματα κώδικα -Name[es]=Trozos de código -Name[et]=Koodijupid -Name[eu]=Kode zatiak -Name[fa]=تکه‌های کد -Name[fr]=Fragments de code -Name[ga]=Blúirí Cóid -Name[hu]=Kódrészletek -Name[it]=Frammenti di codice -Name[ja]=コード Snippet -Name[ms]=Petikan Kod -Name[nds]=Kode-Snippels -Name[ne]=सङ्केत स्निपेट्स -Name[pl]=Fragmenty kodu -Name[pt]=Pedaços de Código -Name[pt_BR]=Pedaços de Código -Name[ru]=Заготовки кода -Name[sk]=Výňatky kódu -Name[sl]=Odseki kode -Name[sv]=Kodsnuttar -Name[ta]=ஸ்னிப்பட் குறியீடுகள் -Name[tg]=Тайёр намудани код -Name[tr]=Kod Parçacıkları -Name[zh_CN]=代码片段 -Name[zh_TW]=程式碼片段 -GenericName=Code Snippets -GenericName[ca]=Trossos de codi -GenericName[da]=Kodestumper -GenericName[de]=Quelltext-Schnipsel -GenericName[el]=Δείγματα κώδικα -GenericName[es]=Trozos de código -GenericName[et]=Koodijupid -GenericName[eu]=Kode zatiak -GenericName[fa]=تکه‌های کد -GenericName[fr]=Fragments de code -GenericName[ga]=Blúirí Cóid -GenericName[gl]=Fragmentos de código -GenericName[hu]=Kódrészletek -GenericName[it]=Frammenti di codice -GenericName[ja]=コード Snippet -GenericName[ms]=Petikan Kod -GenericName[nds]=Kode-Snippels -GenericName[ne]=सङ्केत स्निपेट्स -GenericName[nl]=Tekstblokken -GenericName[pl]=Fragmenty kodu -GenericName[pt]=Pedaços de Código -GenericName[pt_BR]=Pedaços de código -GenericName[ru]=Заготовки кода -GenericName[sk]=Výňatky kódu -GenericName[sl]=Odseki kode -GenericName[sr]=Исечци кôда -GenericName[sr@Latn]=Isečci kôda -GenericName[sv]=Kodsnuttar -GenericName[ta]=ஸ்ப்பட் குறியீடு -GenericName[tg]=Тайёр намудани кодҳо -GenericName[tr]=Kod Parçacıkları -GenericName[zh_CN]=代码片段 -GenericName[zh_TW]=程式碼片段 -Icon=editcut -ServiceTypes=TDevelop/Plugin -X-TDevelop-Scope=Global -X-TDE-Library=libtdevsnippet -X-TDevelop-Version=5 -X-TDevelop-Properties=CodeEditing -- cgit v1.2.3