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/tdelibsimporter/CMakeLists.txt | 8 +- .../cpp/pcsimporter/tdelibsimporter/Makefile.am | 12 +-- .../tdelibsimporter/kdevtdelibsimporter.cpp | 119 --------------------- .../tdelibsimporter/kdevtdelibsimporter.desktop | 49 --------- .../tdelibsimporter/kdevtdelibsimporter.h | 41 ------- .../tdelibsimporter/tdevtdelibsimporter.cpp | 119 +++++++++++++++++++++ .../tdelibsimporter/tdevtdelibsimporter.desktop | 49 +++++++++ .../tdelibsimporter/tdevtdelibsimporter.h | 41 +++++++ 8 files changed, 219 insertions(+), 219 deletions(-) delete mode 100644 languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp delete mode 100644 languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.desktop delete mode 100644 languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.h create mode 100644 languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.cpp create mode 100644 languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.desktop create mode 100644 languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.h (limited to 'languages/cpp/pcsimporter/tdelibsimporter') diff --git a/languages/cpp/pcsimporter/tdelibsimporter/CMakeLists.txt b/languages/cpp/pcsimporter/tdelibsimporter/CMakeLists.txt index d48bad5a..4dbf0d0c 100644 --- a/languages/cpp/pcsimporter/tdelibsimporter/CMakeLists.txt +++ b/languages/cpp/pcsimporter/tdelibsimporter/CMakeLists.txt @@ -24,14 +24,14 @@ link_directories( ##### other data ################################ -install( FILES kdevtdelibsimporter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tdevtdelibsimporter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -##### libkdevtdelibsimporter (module) ########### +##### libtdevtdelibsimporter (module) ########### -tde_add_kpart( libkdevtdelibsimporter AUTOMOC +tde_add_kpart( libtdevtdelibsimporter AUTOMOC SOURCES - kdevtdelibsimporter.cpp settingsdialogbase.ui + tdevtdelibsimporter.cpp settingsdialogbase.ui settingsdialog.cpp LINK lang_interfaces-shared tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} diff --git a/languages/cpp/pcsimporter/tdelibsimporter/Makefile.am b/languages/cpp/pcsimporter/tdelibsimporter/Makefile.am index 14efcabc..e7c846d4 100644 --- a/languages/cpp/pcsimporter/tdelibsimporter/Makefile.am +++ b/languages/cpp/pcsimporter/tdelibsimporter/Makefile.am @@ -1,11 +1,11 @@ INCLUDES = -I$(top_srcdir)/languages/lib/interfaces \ -I$(top_srcdir)/lib/interfaces $(all_includes) METASOURCES = AUTO -kde_module_LTLIBRARIES = libkdevtdelibsimporter.la +kde_module_LTLIBRARIES = libtdevtdelibsimporter.la -noinst_HEADERS = kdevtdelibsimporter.h settingsdialog.h -libkdevtdelibsimporter_la_SOURCES = kdevtdelibsimporter.cpp settingsdialogbase.ui settingsdialog.cpp -kde_services_DATA = kdevtdelibsimporter.desktop -libkdevtdelibsimporter_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ +noinst_HEADERS = tdevtdelibsimporter.h settingsdialog.h +libtdevtdelibsimporter_la_SOURCES = tdevtdelibsimporter.cpp settingsdialogbase.ui settingsdialog.cpp +kde_services_DATA = tdevtdelibsimporter.desktop +libtdevtdelibsimporter_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ $(top_builddir)/languages/lib/interfaces/liblang_interfaces.la -libkdevtdelibsimporter_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) +libtdevtdelibsimporter_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) diff --git a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp deleted file mode 100644 index d3f5795b..00000000 --- a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.cpp +++ /dev/null @@ -1,119 +0,0 @@ -/*************************************************************************** -* Copyright (C) 2003 by Roberto Raggi * -* roberto@kdevelop.org * -* * -* 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 "kdevtdelibsimporter.h" -#include "kdevtdelibsimporter.moc" -#include "settingsdialog.h" - -#include -#include - -#include -#include -#include -#include - -K_EXPORT_COMPONENT_FACTORY( libkdevtdelibsimporter, KGenericFactory( "kdevtdelibsimporter" ) ) - -KDevKDELibsImporter::KDevKDELibsImporter( TQObject * parent, const char * name, const TQStringList& ) - : KDevPCSImporter( parent, name ) -{} - -KDevKDELibsImporter::~KDevKDELibsImporter() -{} - -TQStringList KDevKDELibsImporter::fileList( const TQString& path ) -{ - TQDir dir( path ); - TQStringList lst = dir.entryList( "*.h" ); - TQStringList fileList; - for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) - { - fileList.push_back( dir.absPath() + "/" + ( *it ) ); - } - return fileList; -} - - -TQStringList KDevKDELibsImporter::fileList() -{ - if ( !m_settings ) - return TQStringList(); - - TQStringList files; - int scope = m_settings->cbParsingScope->currentItem(); - if ( scope == 0 ) - { - files += fileList( m_settings->kdeDir() ); - files += fileList( m_settings->kdeDir() + "/arts" ); - files += fileList( m_settings->kdeDir() + "/artsc" ); - files += fileList( m_settings->kdeDir() + "/dcopc" ); - files += fileList( m_settings->kdeDir() + "/dom" ); - files += fileList( m_settings->kdeDir() + "/tdeabc" ); - files += fileList( m_settings->kdeDir() + "/tdeprint" ); - files += fileList( m_settings->kdeDir() + "/tdesu" ); - files += fileList( m_settings->kdeDir() + "/tdeio" ); - files += fileList( m_settings->kdeDir() + "/kjs" ); - files += fileList( m_settings->kdeDir() + "/tdeparts" ); - files += fileList( m_settings->kdeDir() + "/tdetexteditor" ); - } - else if ( scope == 1 ) - { - TQValueStack s; - s.push( m_settings->kdeDir() ); - files += fileList( m_settings->kdeDir() ); - - TQDir dir; - do - { - dir.setPath( s.pop() ); - kdDebug( 9015 ) << "Examining: " << dir.path() << endl; - const TQFileInfoList *dirEntries = dir.entryInfoList(); - if ( !dirEntries ) continue; - TQPtrListIterator it( *dirEntries ); - for ( ; it.current(); ++it ) - { - TQString fileName = it.current() ->fileName(); - if ( fileName == "." || fileName == ".." ) - continue; - TQString path = it.current() ->absFilePath(); - if ( it.current() ->isDir() ) - { - kdDebug( 9015 ) << "Pushing: " << path << endl; - s.push( path ); - files += fileList( path ); - } - } - } - while ( !s.isEmpty() ); - } - - return files; -} - -TQStringList KDevKDELibsImporter::includePaths() -{ - if ( !m_settings ) - return TQStringList(); - - TQStringList includePaths; - includePaths.push_back( m_settings->kdeDir() ); - return includePaths; -} - -TQWidget * KDevKDELibsImporter::createSettingsPage( TQWidget * parent, const char * name ) -{ - m_settings = new SettingsDialog( parent, name ); - return m_settings; -} -//kate: indent-mode csands; tab-width 4; space-indent off; - - diff --git a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.desktop b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.desktop deleted file mode 100644 index 7433518e..00000000 --- a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.desktop +++ /dev/null @@ -1,49 +0,0 @@ -[Desktop Entry] -Type=Service -Name=KDevKDELibsImporter -Name[da]=TDevelop KDELibs-importør -Name[de]=KDELibs-PCS-Import (TDevelop) -Name[hi]=के-डेव-केडीई-लिब्स-इम्पोर्टर -Name[ja]=KDev KDE -Name[nds]=KDELibs-PCS-Import (TDevelop) -Name[pl]=KDevKDEImportBib -Name[sk]=KDev KDE import knižníc -Name[sv]=TDevelop KDE-biblioteksimport -Name[ta]=கெடெவ் கெடெலிப்ஸ் இறக்குமதியாளர் -Name[zh_TW]=TDevelop KDE 函式庫匯入器 -Comment=TDevelop KDELibs PCS Importer -Comment[ca]=Importador PCS de KDELibs per a TDevelop -Comment[da]=TDevelop KDELibs PCS importør -Comment[de]=KDELibs-Import für persistenten Klassenspeicher -Comment[el]=Εισαγωγέας PCS TDevelop KDELibs -Comment[es]=Importador PCS de KDELibs de TDevelop -Comment[et]=TDevelopi tdelibs PCS importija -Comment[eu]=TDevelop-en KDELibs PCS inportatzailea -Comment[fa]=واردکنندۀ TDevelop KDELibs PCS -Comment[fr]=Importation PCS de KDELibs pour TDevelop -Comment[gl]=Importador PCS de KDELibs para TDevelop -Comment[hi]=के-डेवलप केडीई-लिब्स पीसीएस आयातक -Comment[hu]=TDevelop KDELibs PCS-importáló -Comment[it]=Importatore per KDELibs PCS di TDevelop -Comment[ja]=TDevelop KDELibs PCS インポータ -Comment[nds]=KDELibs-Import för duerhaftig Klassenspieker -Comment[ne]=TDevelop KDELibs PCS आयातकर्ता -Comment[nl]=TDevelop PCS Importer voor KDELibs -Comment[pl]=TDevelop: importowanie PCS (KDELibs) -Comment[pt]=Importador de PCS das KDELibs do TDevelop -Comment[pt_BR]=Importador PCS do KDELibs para o TDevelop -Comment[ru]=Загрузка символов из библиотеки KDELibs в хранилище классов -Comment[sk]=TDevelop PCS import KDE knižníc -Comment[sr]=TDevelop-ов KDELibs PCS увозник -Comment[sr@Latn]=TDevelop-ov KDELibs PCS uvoznik -Comment[sv]=TDevelop KDE-bibliotek PCS-import -Comment[ta]=கெடெவலப் கெடெலிப்ஸ் பிசிஸ் இறக்குமதியாளர் -Comment[tg]=Пурборкунии нишонаҳо аз китобхонаи KDELibs дар синфҳои анборӣ -Comment[tr]=TDevelop KDELibs PCS Aktarıcısı -Comment[zh_CN]=TDevelop KDELibs PCS 导入器 -Comment[zh_TW]=TDevelop KDE 函式庫匯入器 -Icon=gear -ServiceTypes=TDevelop/PCSImporter -X-TDE-Library=libkdevtdelibsimporter -X-TDevelop-PCSImporter= -X-TDevelop-Version=5 diff --git a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.h b/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.h deleted file mode 100644 index 14fb7cff..00000000 --- a/languages/cpp/pcsimporter/tdelibsimporter/kdevtdelibsimporter.h +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2003 by Roberto Raggi * - * roberto@kdevelop.org * - * * - * 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 KDEVTQTIMPORTER_H -#define KDEVTQTIMPORTER_H - -#include -#include - -class SettingsDialog; - -class KDevKDELibsImporter : public KDevPCSImporter -{ - Q_OBJECT - -public: - KDevKDELibsImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() ); - virtual ~KDevKDELibsImporter(); - - virtual TQString dbName() const { return TQString::fromLatin1("KDElibs"); } - virtual TQStringList fileList(); - virtual TQStringList includePaths(); - - virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); - -private: - TQStringList fileList( const TQString& path ); - -private: - TQGuardedPtr m_settings; -}; - -#endif diff --git a/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.cpp b/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.cpp new file mode 100644 index 00000000..6f83e483 --- /dev/null +++ b/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.cpp @@ -0,0 +1,119 @@ +/*************************************************************************** +* Copyright (C) 2003 by Roberto Raggi * +* roberto@kdevelop.org * +* * +* 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 "tdevtdelibsimporter.h" +#include "tdevtdelibsimporter.moc" +#include "settingsdialog.h" + +#include +#include + +#include +#include +#include +#include + +K_EXPORT_COMPONENT_FACTORY( libtdevtdelibsimporter, KGenericFactory( "tdevtdelibsimporter" ) ) + +TDevTDELibsImporter::TDevTDELibsImporter( TQObject * parent, const char * name, const TQStringList& ) + : TDevPCSImporter( parent, name ) +{} + +TDevTDELibsImporter::~TDevTDELibsImporter() +{} + +TQStringList TDevTDELibsImporter::fileList( const TQString& path ) +{ + TQDir dir( path ); + TQStringList lst = dir.entryList( "*.h" ); + TQStringList fileList; + for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) + { + fileList.push_back( dir.absPath() + "/" + ( *it ) ); + } + return fileList; +} + + +TQStringList TDevTDELibsImporter::fileList() +{ + if ( !m_settings ) + return TQStringList(); + + TQStringList files; + int scope = m_settings->cbParsingScope->currentItem(); + if ( scope == 0 ) + { + files += fileList( m_settings->kdeDir() ); + files += fileList( m_settings->kdeDir() + "/arts" ); + files += fileList( m_settings->kdeDir() + "/artsc" ); + files += fileList( m_settings->kdeDir() + "/dcopc" ); + files += fileList( m_settings->kdeDir() + "/dom" ); + files += fileList( m_settings->kdeDir() + "/tdeabc" ); + files += fileList( m_settings->kdeDir() + "/tdeprint" ); + files += fileList( m_settings->kdeDir() + "/tdesu" ); + files += fileList( m_settings->kdeDir() + "/tdeio" ); + files += fileList( m_settings->kdeDir() + "/kjs" ); + files += fileList( m_settings->kdeDir() + "/tdeparts" ); + files += fileList( m_settings->kdeDir() + "/tdetexteditor" ); + } + else if ( scope == 1 ) + { + TQValueStack s; + s.push( m_settings->kdeDir() ); + files += fileList( m_settings->kdeDir() ); + + TQDir dir; + do + { + dir.setPath( s.pop() ); + kdDebug( 9015 ) << "Examining: " << dir.path() << endl; + const TQFileInfoList *dirEntries = dir.entryInfoList(); + if ( !dirEntries ) continue; + TQPtrListIterator it( *dirEntries ); + for ( ; it.current(); ++it ) + { + TQString fileName = it.current() ->fileName(); + if ( fileName == "." || fileName == ".." ) + continue; + TQString path = it.current() ->absFilePath(); + if ( it.current() ->isDir() ) + { + kdDebug( 9015 ) << "Pushing: " << path << endl; + s.push( path ); + files += fileList( path ); + } + } + } + while ( !s.isEmpty() ); + } + + return files; +} + +TQStringList TDevTDELibsImporter::includePaths() +{ + if ( !m_settings ) + return TQStringList(); + + TQStringList includePaths; + includePaths.push_back( m_settings->kdeDir() ); + return includePaths; +} + +TQWidget * TDevTDELibsImporter::createSettingsPage( TQWidget * parent, const char * name ) +{ + m_settings = new SettingsDialog( parent, name ); + return m_settings; +} +//kate: indent-mode csands; tab-width 4; space-indent off; + + diff --git a/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.desktop b/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.desktop new file mode 100644 index 00000000..54cd2996 --- /dev/null +++ b/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.desktop @@ -0,0 +1,49 @@ +[Desktop Entry] +Type=Service +Name=TDevTDELibsImporter +Name[da]=TDevelop KDELibs-importør +Name[de]=KDELibs-PCS-Import (TDevelop) +Name[hi]=के-डेव-केडीई-लिब्स-इम्पोर्टर +Name[ja]=KDev KDE +Name[nds]=KDELibs-PCS-Import (TDevelop) +Name[pl]=TDevTDEImportBib +Name[sk]=KDev KDE import knižníc +Name[sv]=TDevelop KDE-biblioteksimport +Name[ta]=கெடெவ் கெடெலிப்ஸ் இறக்குமதியாளர் +Name[zh_TW]=TDevelop KDE 函式庫匯入器 +Comment=TDevelop KDELibs PCS Importer +Comment[ca]=Importador PCS de KDELibs per a TDevelop +Comment[da]=TDevelop KDELibs PCS importør +Comment[de]=KDELibs-Import für persistenten Klassenspeicher +Comment[el]=Εισαγωγέας PCS TDevelop KDELibs +Comment[es]=Importador PCS de KDELibs de TDevelop +Comment[et]=TDevelopi tdelibs PCS importija +Comment[eu]=TDevelop-en KDELibs PCS inportatzailea +Comment[fa]=واردکنندۀ TDevelop KDELibs PCS +Comment[fr]=Importation PCS de KDELibs pour TDevelop +Comment[gl]=Importador PCS de KDELibs para TDevelop +Comment[hi]=के-डेवलप केडीई-लिब्स पीसीएस आयातक +Comment[hu]=TDevelop KDELibs PCS-importáló +Comment[it]=Importatore per KDELibs PCS di TDevelop +Comment[ja]=TDevelop KDELibs PCS インポータ +Comment[nds]=KDELibs-Import för duerhaftig Klassenspieker +Comment[ne]=TDevelop KDELibs PCS आयातकर्ता +Comment[nl]=TDevelop PCS Importer voor KDELibs +Comment[pl]=TDevelop: importowanie PCS (KDELibs) +Comment[pt]=Importador de PCS das KDELibs do TDevelop +Comment[pt_BR]=Importador PCS do KDELibs para o TDevelop +Comment[ru]=Загрузка символов из библиотеки KDELibs в хранилище классов +Comment[sk]=TDevelop PCS import KDE knižníc +Comment[sr]=TDevelop-ов KDELibs PCS увозник +Comment[sr@Latn]=TDevelop-ov KDELibs PCS uvoznik +Comment[sv]=TDevelop KDE-bibliotek PCS-import +Comment[ta]=கெடெவலப் கெடெலிப்ஸ் பிசிஸ் இறக்குமதியாளர் +Comment[tg]=Пурборкунии нишонаҳо аз китобхонаи KDELibs дар синфҳои анборӣ +Comment[tr]=TDevelop KDELibs PCS Aktarıcısı +Comment[zh_CN]=TDevelop KDELibs PCS 导入器 +Comment[zh_TW]=TDevelop KDE 函式庫匯入器 +Icon=gear +ServiceTypes=TDevelop/PCSImporter +X-TDE-Library=libtdevtdelibsimporter +X-TDevelop-PCSImporter= +X-TDevelop-Version=5 diff --git a/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.h b/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.h new file mode 100644 index 00000000..0d772bba --- /dev/null +++ b/languages/cpp/pcsimporter/tdelibsimporter/tdevtdelibsimporter.h @@ -0,0 +1,41 @@ +/*************************************************************************** + * Copyright (C) 2003 by Roberto Raggi * + * roberto@kdevelop.org * + * * + * 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 TDEVTQTIMPORTER_H +#define TDEVTQTIMPORTER_H + +#include +#include + +class SettingsDialog; + +class TDevTDELibsImporter : public TDevPCSImporter +{ + Q_OBJECT + +public: + TDevTDELibsImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() ); + virtual ~TDevTDELibsImporter(); + + virtual TQString dbName() const { return TQString::fromLatin1("KDElibs"); } + virtual TQStringList fileList(); + virtual TQStringList includePaths(); + + virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); + +private: + TQStringList fileList( const TQString& path ); + +private: + TQGuardedPtr m_settings; +}; + +#endif -- cgit v1.2.1