From 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sun, 2 Mar 2014 20:05:33 +0100 Subject: Finish renaming tdevelop components --- .../cpp/pcsimporter/customimporter/CMakeLists.txt | 8 +- .../cpp/pcsimporter/customimporter/Makefile.am | 12 +-- .../customimporter/kdevcustomimporter.cpp | 118 --------------------- .../customimporter/kdevcustomimporter.h | 41 ------- .../customimporter/kdevpcscustomimporter.desktop | 44 -------- .../customimporter/tdevcustomimporter.cpp | 118 +++++++++++++++++++++ .../customimporter/tdevcustomimporter.h | 41 +++++++ .../customimporter/tdevpcscustomimporter.desktop | 44 ++++++++ 8 files changed, 213 insertions(+), 213 deletions(-) delete mode 100644 languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp delete mode 100644 languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h delete mode 100644 languages/cpp/pcsimporter/customimporter/kdevpcscustomimporter.desktop create mode 100644 languages/cpp/pcsimporter/customimporter/tdevcustomimporter.cpp create mode 100644 languages/cpp/pcsimporter/customimporter/tdevcustomimporter.h create mode 100644 languages/cpp/pcsimporter/customimporter/tdevpcscustomimporter.desktop (limited to 'languages/cpp/pcsimporter/customimporter') diff --git a/languages/cpp/pcsimporter/customimporter/CMakeLists.txt b/languages/cpp/pcsimporter/customimporter/CMakeLists.txt index c2e07bdb..90652509 100644 --- a/languages/cpp/pcsimporter/customimporter/CMakeLists.txt +++ b/languages/cpp/pcsimporter/customimporter/CMakeLists.txt @@ -24,14 +24,14 @@ link_directories( ##### other data ################################ -install( FILES kdevpcscustomimporter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tdevpcscustomimporter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -##### libkdevcustompcsimporter (module) ######### +##### libtdevcustompcsimporter (module) ######### -tde_add_kpart( libkdevcustompcsimporter AUTOMOC +tde_add_kpart( libtdevcustompcsimporter AUTOMOC SOURCES - kdevcustomimporter.cpp settingsdialog.cpp + tdevcustomimporter.cpp settingsdialog.cpp settingsdialogbase.ui LINK lang_interfaces-shared tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} diff --git a/languages/cpp/pcsimporter/customimporter/Makefile.am b/languages/cpp/pcsimporter/customimporter/Makefile.am index 7e6a7093..1a6c1f1d 100644 --- a/languages/cpp/pcsimporter/customimporter/Makefile.am +++ b/languages/cpp/pcsimporter/customimporter/Makefile.am @@ -1,12 +1,12 @@ INCLUDES = -I$(top_srcdir)/languages/lib/interfaces \ -I$(top_srcdir)/lib/interfaces $(all_includes) METASOURCES = AUTO -kde_module_LTLIBRARIES = libkdevcustompcsimporter.la +kde_module_LTLIBRARIES = libtdevcustompcsimporter.la -noinst_HEADERS = kdevcustomimporter.h -libkdevcustompcsimporter_la_SOURCES = kdevcustomimporter.cpp settingsdialog.cpp settingsdialogbase.ui -libkdevcustompcsimporter_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ +noinst_HEADERS = tdevcustomimporter.h +libtdevcustompcsimporter_la_SOURCES = tdevcustomimporter.cpp settingsdialog.cpp settingsdialogbase.ui +libtdevcustompcsimporter_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ $(top_builddir)/languages/lib/interfaces/liblang_interfaces.la -libkdevcustompcsimporter_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) -kde_services_DATA = kdevpcscustomimporter.desktop +libtdevcustompcsimporter_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) +kde_services_DATA = tdevpcscustomimporter.desktop diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp deleted file mode 100644 index 38a41eb8..00000000 --- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.cpp +++ /dev/null @@ -1,118 +0,0 @@ -/*************************************************************************** -* Copyright (C) 2003 by Alexander Dymo * -* cloudtemple@mksat.net * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -***************************************************************************/ -#include "kdevcustomimporter.h" - -#include "settingsdialog.h" - -#include -#include - -#include -#include - -K_EXPORT_COMPONENT_FACTORY( libkdevcustompcsimporter, KGenericFactory( "kdevcustompcsimporter" ) ) - -KDevCustomImporter::KDevCustomImporter( TQObject* parent, const char* name, const TQStringList & // args - ) - : KDevPCSImporter( parent, name ) -{} - - -KDevCustomImporter::~KDevCustomImporter() -{} - - -TQString KDevCustomImporter::dbName() const -{ - return m_settings->dbName(); -} - -TQStringList KDevCustomImporter::fileList( const TQString& path ) -{ - TQDir dir( path ); - if ( !dir.exists() ) - return TQStringList(); -// TQStringList lst = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" ); - TQStringList lst = dir.entryList( m_settings->filePattern() ); - TQStringList fileList; - for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) - { - fileList.push_back( dir.absPath() + "/" + ( *it ) ); - } - return fileList; -} - -TQStringList KDevCustomImporter::fileList() -{ - if ( !m_settings ) - return TQStringList(); - - TQStringList lst = m_settings->dirs(); - TQStringList files; - for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) - { - if ( !m_settings->recursive() ) - files += fileList( *it ); - else - processDir( *it, files ); - } - - return files; -} - -TQStringList KDevCustomImporter::includePaths() -{ - if ( !m_settings ) - return TQStringList(); - - return m_settings->dirs(); -} - -TQWidget* KDevCustomImporter::createSettingsPage( TQWidget* parent, const char* name ) -{ - m_settings = new SettingsDialog( parent, name ); - return m_settings; -} - -void KDevCustomImporter::processDir( const TQString path, TQStringList & files ) -{ - TQValueStack s; - s.push( path ); - files += fileList( path ); - - TQDir dir; - do - { - dir.setPath( s.pop() ); - if (!dir.exists()) - continue; - kdDebug( 9015 ) << "Examining: " << dir.path() << endl; - const TQFileInfoList *dirEntries = dir.entryInfoList(); - if ( !dirEntries ) continue; - TQPtrListIterator it( *dirEntries ); - for ( ; dirEntries && it.current(); ++it ) - { - TQString fileName = it.current() ->fileName(); - if ( fileName == "." || fileName == ".." ) - continue; - if ( it.current() ->isDir() ) - { - TQString tmpPath = it.current() ->absFilePath(); - kdDebug( 9015 ) << "Pushing: " << tmpPath << endl; - s.push( tmpPath ); - files += fileList( tmpPath ); - } - } - } - while ( !s.isEmpty() ); -} - -#include "kdevcustomimporter.moc" -//kate: indent-mode csands; tab-width 4; space-indent off; diff --git a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h b/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h deleted file mode 100644 index 884a033d..00000000 --- a/languages/cpp/pcsimporter/customimporter/kdevcustomimporter.h +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** -* Copyright (C) 2003 by Alexander Dymo * -* cloudtemple@mksat.net * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -***************************************************************************/ -#ifndef KDEVCUSTOMIMPORTER_H -#define KDEVCUSTOMIMPORTER_H - -#include "kdevpcsimporter.h" - -#include - -class SettingsDialog; - -class KDevCustomImporter : public KDevPCSImporter -{ -Q_OBJECT - -public: - KDevCustomImporter(TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList()); - - ~KDevCustomImporter(); - - virtual TQString dbName() const; - virtual TQStringList fileList(); - virtual TQStringList includePaths(); - virtual TQWidget* createSettingsPage(TQWidget* parent, const char* name); - -protected: - TQStringList fileList( const TQString& path ); - void processDir(const TQString path, TQStringList &files ); - -private: - TQGuardedPtr m_settings; -}; - -#endif diff --git a/languages/cpp/pcsimporter/customimporter/kdevpcscustomimporter.desktop b/languages/cpp/pcsimporter/customimporter/kdevpcscustomimporter.desktop deleted file mode 100644 index b351a8e3..00000000 --- a/languages/cpp/pcsimporter/customimporter/kdevpcscustomimporter.desktop +++ /dev/null @@ -1,44 +0,0 @@ -[Desktop Entry] -Type=Service -Name=KDevPCSCustomImporter -Name[da]=TDevelop brugerdefineret PCS-importør -Name[nds]=EgenPCS-Import för TDevelop -Name[pl]=KDevWłasnyImportPCS -Name[sk]=KDev PCS vlastný import -Name[sv]=TDevelop egen import av PCS -Name[zh_TW]=TDevelop PCS 自訂匯入器 -Comment=TDevelop Custom Directory PCS Importer -Comment[ca]=Importador PCS de directori personalitzat per a TDevelop -Comment[da]=TDevelop brugerdefineret mappe-PCS-importør -Comment[de]=Import für persistenten Klassenspeicher aus benutzerdefinierten Ordnern -Comment[el]=Εισαγωγέας PCS προσαρμοσμένου καταλόγου του TDevelop -Comment[es]=Importador PCS de carpeta personalizada de TDevelop -Comment[et]=TDevelopi kohandatud kataloogi PCS importija -Comment[eu]=TDevelop-en direktorio pertsonalizatuko PCS inportatzailea -Comment[fa]=واردکنندۀ PCS فهرست سفارشی TDevelop -Comment[fr]=Importation PCS de dossiers personnalisés pour TDevelop -Comment[gl]=Importador PCS de directorios personalizados para TDevelop -Comment[hi]=के-डेवलप मनपसंद डिरेक्ट्री पीसीएस आयातक -Comment[hu]=TDevelop egyéni könyvtár PCS-importáló -Comment[it]=Cartella per l'importatore personalizzato PCS di TDevelop -Comment[ja]=TDevelop カスタムディレクトリ PCS インポータ -Comment[nds]=Import för duerhaftig Klassenspieker ut Bruker-Ornern -Comment[ne]=केडीई विकास अनुकूल डाइरेक्टरी PCS आयातकर्ता -Comment[nl]=TDevelop PCS Importer voor eigen mappen -Comment[pl]=Własny program do importowania PCS dla TDevelopa -Comment[pt]=Importador de PCS com Directoria Personalizada do TDevelop -Comment[pt_BR]=Importador de Diretório PCS Personalizado para o TDevelop -Comment[ru]=Загрузка символов из любого каталога в хранилище классов -Comment[sk]=TDevelop vlastný PCS import priečinkov -Comment[sr]=TDevelop-ов PCS увозник прилагођеног директоријума -Comment[sr@Latn]=TDevelop-ov PCS uvoznik prilagođenog direktorijuma -Comment[sv]=TDevelop PCS-import för egen katalog -Comment[ta]=கெடெவலப் கஸ்டம் டைரக்ட்ரி இறக்குமதியாளர் -Comment[tg]=Пурборкунии нишонаҳо аз анбори синфҳои каталог -Comment[tr]=TDevelop Özel Dizin PCS Aktarıcısı -Comment[zh_CN]=TDevelop 自定义目录的 PCS 导入器 -Comment[zh_TW]=TDevelop 自訂目錄 PCS 匯入器 -Icon=gear -ServiceTypes=TDevelop/PCSImporter -X-TDE-Library=libkdevcustompcsimporter -X-TDevelop-PCSImporter= diff --git a/languages/cpp/pcsimporter/customimporter/tdevcustomimporter.cpp b/languages/cpp/pcsimporter/customimporter/tdevcustomimporter.cpp new file mode 100644 index 00000000..33a2bf40 --- /dev/null +++ b/languages/cpp/pcsimporter/customimporter/tdevcustomimporter.cpp @@ -0,0 +1,118 @@ +/*************************************************************************** +* Copyright (C) 2003 by Alexander Dymo * +* cloudtemple@mksat.net * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +***************************************************************************/ +#include "tdevcustomimporter.h" + +#include "settingsdialog.h" + +#include +#include + +#include +#include + +K_EXPORT_COMPONENT_FACTORY( libtdevcustompcsimporter, KGenericFactory( "tdevcustompcsimporter" ) ) + +TDevCustomImporter::TDevCustomImporter( TQObject* parent, const char* name, const TQStringList & // args + ) + : TDevPCSImporter( parent, name ) +{} + + +TDevCustomImporter::~TDevCustomImporter() +{} + + +TQString TDevCustomImporter::dbName() const +{ + return m_settings->dbName(); +} + +TQStringList TDevCustomImporter::fileList( const TQString& path ) +{ + TQDir dir( path ); + if ( !dir.exists() ) + return TQStringList(); +// TQStringList lst = dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tlh" ); + TQStringList lst = dir.entryList( m_settings->filePattern() ); + TQStringList fileList; + for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) + { + fileList.push_back( dir.absPath() + "/" + ( *it ) ); + } + return fileList; +} + +TQStringList TDevCustomImporter::fileList() +{ + if ( !m_settings ) + return TQStringList(); + + TQStringList lst = m_settings->dirs(); + TQStringList files; + for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) + { + if ( !m_settings->recursive() ) + files += fileList( *it ); + else + processDir( *it, files ); + } + + return files; +} + +TQStringList TDevCustomImporter::includePaths() +{ + if ( !m_settings ) + return TQStringList(); + + return m_settings->dirs(); +} + +TQWidget* TDevCustomImporter::createSettingsPage( TQWidget* parent, const char* name ) +{ + m_settings = new SettingsDialog( parent, name ); + return m_settings; +} + +void TDevCustomImporter::processDir( const TQString path, TQStringList & files ) +{ + TQValueStack s; + s.push( path ); + files += fileList( path ); + + TQDir dir; + do + { + dir.setPath( s.pop() ); + if (!dir.exists()) + continue; + kdDebug( 9015 ) << "Examining: " << dir.path() << endl; + const TQFileInfoList *dirEntries = dir.entryInfoList(); + if ( !dirEntries ) continue; + TQPtrListIterator it( *dirEntries ); + for ( ; dirEntries && it.current(); ++it ) + { + TQString fileName = it.current() ->fileName(); + if ( fileName == "." || fileName == ".." ) + continue; + if ( it.current() ->isDir() ) + { + TQString tmpPath = it.current() ->absFilePath(); + kdDebug( 9015 ) << "Pushing: " << tmpPath << endl; + s.push( tmpPath ); + files += fileList( tmpPath ); + } + } + } + while ( !s.isEmpty() ); +} + +#include "tdevcustomimporter.moc" +//kate: indent-mode csands; tab-width 4; space-indent off; diff --git a/languages/cpp/pcsimporter/customimporter/tdevcustomimporter.h b/languages/cpp/pcsimporter/customimporter/tdevcustomimporter.h new file mode 100644 index 00000000..925e42f9 --- /dev/null +++ b/languages/cpp/pcsimporter/customimporter/tdevcustomimporter.h @@ -0,0 +1,41 @@ +/*************************************************************************** +* Copyright (C) 2003 by Alexander Dymo * +* cloudtemple@mksat.net * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +***************************************************************************/ +#ifndef TDEVCUSTOMIMPORTER_H +#define TDEVCUSTOMIMPORTER_H + +#include "tdevpcsimporter.h" + +#include + +class SettingsDialog; + +class TDevCustomImporter : public TDevPCSImporter +{ +Q_OBJECT + +public: + TDevCustomImporter(TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList()); + + ~TDevCustomImporter(); + + virtual TQString dbName() const; + virtual TQStringList fileList(); + virtual TQStringList includePaths(); + virtual TQWidget* createSettingsPage(TQWidget* parent, const char* name); + +protected: + TQStringList fileList( const TQString& path ); + void processDir(const TQString path, TQStringList &files ); + +private: + TQGuardedPtr m_settings; +}; + +#endif diff --git a/languages/cpp/pcsimporter/customimporter/tdevpcscustomimporter.desktop b/languages/cpp/pcsimporter/customimporter/tdevpcscustomimporter.desktop new file mode 100644 index 00000000..50530ef8 --- /dev/null +++ b/languages/cpp/pcsimporter/customimporter/tdevpcscustomimporter.desktop @@ -0,0 +1,44 @@ +[Desktop Entry] +Type=Service +Name=TDevPCSCustomImporter +Name[da]=TDevelop brugerdefineret PCS-importør +Name[nds]=EgenPCS-Import för TDevelop +Name[pl]=KDevWłasnyImportPCS +Name[sk]=KDev PCS vlastný import +Name[sv]=TDevelop egen import av PCS +Name[zh_TW]=TDevelop PCS 自訂匯入器 +Comment=TDevelop Custom Directory PCS Importer +Comment[ca]=Importador PCS de directori personalitzat per a TDevelop +Comment[da]=TDevelop brugerdefineret mappe-PCS-importør +Comment[de]=Import für persistenten Klassenspeicher aus benutzerdefinierten Ordnern +Comment[el]=Εισαγωγέας PCS προσαρμοσμένου καταλόγου του TDevelop +Comment[es]=Importador PCS de carpeta personalizada de TDevelop +Comment[et]=TDevelopi kohandatud kataloogi PCS importija +Comment[eu]=TDevelop-en direktorio pertsonalizatuko PCS inportatzailea +Comment[fa]=واردکنندۀ PCS فهرست سفارشی TDevelop +Comment[fr]=Importation PCS de dossiers personnalisés pour TDevelop +Comment[gl]=Importador PCS de directorios personalizados para TDevelop +Comment[hi]=के-डेवलप मनपसंद डिरेक्ट्री पीसीएस आयातक +Comment[hu]=TDevelop egyéni könyvtár PCS-importáló +Comment[it]=Cartella per l'importatore personalizzato PCS di TDevelop +Comment[ja]=TDevelop カスタムディレクトリ PCS インポータ +Comment[nds]=Import för duerhaftig Klassenspieker ut Bruker-Ornern +Comment[ne]=केडीई विकास अनुकूल डाइरेक्टरी PCS आयातकर्ता +Comment[nl]=TDevelop PCS Importer voor eigen mappen +Comment[pl]=Własny program do importowania PCS dla TDevelopa +Comment[pt]=Importador de PCS com Directoria Personalizada do TDevelop +Comment[pt_BR]=Importador de Diretório PCS Personalizado para o TDevelop +Comment[ru]=Загрузка символов из любого каталога в хранилище классов +Comment[sk]=TDevelop vlastný PCS import priečinkov +Comment[sr]=TDevelop-ов PCS увозник прилагођеног директоријума +Comment[sr@Latn]=TDevelop-ov PCS uvoznik prilagođenog direktorijuma +Comment[sv]=TDevelop PCS-import för egen katalog +Comment[ta]=கெடெவலப் கஸ்டம் டைரக்ட்ரி இறக்குமதியாளர் +Comment[tg]=Пурборкунии нишонаҳо аз анбори синфҳои каталог +Comment[tr]=TDevelop Özel Dizin PCS Aktarıcısı +Comment[zh_CN]=TDevelop 自定义目录的 PCS 导入器 +Comment[zh_TW]=TDevelop 自訂目錄 PCS 匯入器 +Icon=gear +ServiceTypes=TDevelop/PCSImporter +X-TDE-Library=libtdevcustompcsimporter +X-TDevelop-PCSImporter= -- cgit v1.2.1