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/qtimporter/CMakeLists.txt | 8 +-- languages/cpp/pcsimporter/qtimporter/Makefile.am | 12 ++-- .../cpp/pcsimporter/qtimporter/kdevqtimporter.cpp | 73 ---------------------- .../pcsimporter/qtimporter/kdevqtimporter.desktop | 37 ----------- .../cpp/pcsimporter/qtimporter/kdevqtimporter.h | 38 ----------- .../cpp/pcsimporter/qtimporter/tdevqtimporter.cpp | 73 ++++++++++++++++++++++ .../pcsimporter/qtimporter/tdevqtimporter.desktop | 37 +++++++++++ .../cpp/pcsimporter/qtimporter/tdevqtimporter.h | 38 +++++++++++ 8 files changed, 158 insertions(+), 158 deletions(-) delete mode 100644 languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp delete mode 100644 languages/cpp/pcsimporter/qtimporter/kdevqtimporter.desktop delete mode 100644 languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h create mode 100644 languages/cpp/pcsimporter/qtimporter/tdevqtimporter.cpp create mode 100644 languages/cpp/pcsimporter/qtimporter/tdevqtimporter.desktop create mode 100644 languages/cpp/pcsimporter/qtimporter/tdevqtimporter.h (limited to 'languages/cpp/pcsimporter/qtimporter') diff --git a/languages/cpp/pcsimporter/qtimporter/CMakeLists.txt b/languages/cpp/pcsimporter/qtimporter/CMakeLists.txt index 64e95d39..9af966d9 100644 --- a/languages/cpp/pcsimporter/qtimporter/CMakeLists.txt +++ b/languages/cpp/pcsimporter/qtimporter/CMakeLists.txt @@ -24,14 +24,14 @@ link_directories( ##### other data ################################ -install( FILES kdevqtimporter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tdevqtimporter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -##### libkdevqtimporter (module) ################ +##### libtdevqtimporter (module) ################ -tde_add_kpart( libkdevqtimporter AUTOMOC +tde_add_kpart( libtdevqtimporter AUTOMOC SOURCES - kdevqtimporter.cpp settingsdialogbase.ui settingsdialog.cpp + tdevqtimporter.cpp settingsdialogbase.ui settingsdialog.cpp LINK lang_interfaces-shared tdevelop-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/languages/cpp/pcsimporter/qtimporter/Makefile.am b/languages/cpp/pcsimporter/qtimporter/Makefile.am index 80ccc8be..23a60885 100644 --- a/languages/cpp/pcsimporter/qtimporter/Makefile.am +++ b/languages/cpp/pcsimporter/qtimporter/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 = libkdevqtimporter.la +kde_module_LTLIBRARIES = libtdevqtimporter.la -noinst_HEADERS = kdevqtimporter.h settingsdialog.h -libkdevqtimporter_la_SOURCES = kdevqtimporter.cpp settingsdialogbase.ui settingsdialog.cpp -kde_services_DATA = kdevqtimporter.desktop -libkdevqtimporter_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ +noinst_HEADERS = tdevqtimporter.h settingsdialog.h +libtdevqtimporter_la_SOURCES = tdevqtimporter.cpp settingsdialogbase.ui settingsdialog.cpp +kde_services_DATA = tdevqtimporter.desktop +libtdevqtimporter_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ $(top_builddir)/languages/lib/interfaces/liblang_interfaces.la -libkdevqtimporter_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) +libtdevqtimporter_la_LDFLAGS = -module $(all_libraries) $(KDE_PLUGIN) diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp deleted file mode 100644 index 62eb38fd..00000000 --- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.cpp +++ /dev/null @@ -1,73 +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 "kdevqtimporter.h" -#include "kdevqtimporter.moc" -#include "settingsdialog.h" - -#include - -#include -#include - -K_EXPORT_COMPONENT_FACTORY( libkdevqtimporter, KGenericFactory( "kdevqtimporter" ) ) - -KDevQtImporter::KDevQtImporter( TQObject * parent, const char * name, const TQStringList& ) - : KDevPCSImporter( parent, name ) -{} - -KDevQtImporter::~KDevQtImporter() -{} - -TQStringList KDevQtImporter::fileList() -{ - if ( !m_settings ) - return TQStringList(); - - TQDir dir( m_settings->qtDir() ); - TQStringList lst = dir.entryList( "*.h" ); - TQStringList fileList; - for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) - { - if ( ( *it ).startsWith( "qconfig-" ) ) - { - if ( ( *it ).endsWith( m_settings->configuration() + ".h" ) ) - fileList.prepend( dir.absPath() + "/" + ( *it ) ); - } - else - { - fileList.push_back( dir.absPath() + "/" + ( *it ) ); - } - } - return fileList; -} - -TQStringList KDevQtImporter::includePaths() -{ - if ( !m_settings ) - return TQStringList(); - - TQStringList includePaths; - includePaths.push_back( m_settings->qtDir() ); - includePaths.push_back( m_settings->qtDir() + "/private" ); - includePaths.push_back( m_settings->qtDir() + "/default" ); - - /// @todo add mkspec - return includePaths; -} - -TQWidget * KDevQtImporter::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/qtimporter/kdevqtimporter.desktop b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.desktop deleted file mode 100644 index 72161838..00000000 --- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.desktop +++ /dev/null @@ -1,37 +0,0 @@ -[Desktop Entry] -Type=Service -Name=KDevQtImporter -Name[da]=TDevelop Qt-importør -Name[de]=Qt-PCS-Import (TDevelop) -Name[hi]=के-डेव-क्यूटी-आयातक -Name[nds]=Qt-PCS-Import (TDevelop) -Name[pl]=KDevImportQt -Name[sv]=TDevelop QT-import -Name[ta]=கெடெவ் க்யு இறக்குமதியாளர் -Name[zh_TW]=KDev Qt 匯入器 -Comment=TDevelop Qt3 PCS Importer -Comment[ca]=Importador PCS de Qt3 per a TDevelop -Comment[da]=TDevelop Qt3 PCS importør -Comment[de]=Qt3-Import für persistenten Klassenspeicher -Comment[el]=Εισαγωγέας PCS TDevelop Qt3 -Comment[es]=Importador PCS de Qt3 de TDevelop -Comment[et]=TDevelopi Qt3 PCS importija -Comment[fr]=Importation PCS de Qt3 pour TDevelop -Comment[hu]=TDevelop Qt3 PCS-importáló -Comment[it]=Importatore PCS di Qt3 di TDevelop -Comment[ja]=TDevelop Qt3 PCS インポータ -Comment[nds]=Qt3-Import för duerhaftig Klassenspieker -Comment[pl]=TDevelop: importowanie PCS Qt3 -Comment[pt]=Importador de PCS para Qt3 do TDevelop -Comment[pt_BR]=Importador de PCS para Qt3 do TDevelop -Comment[ru]=Импорт Qt 3 PCS в TDevelop -Comment[sk]=TDevelop Qt3 PCS import -Comment[sr]=TDevelop-ов Qt3 PCS увозник -Comment[sr@Latn]=TDevelop-ov Qt3 PCS uvoznik -Comment[sv]=TDevelop QT3 PCS-import -Comment[zh_TW]=TDevelop Qt3 PCS 匯入器 -Icon=gear -ServiceTypes=TDevelop/PCSImporter -X-TDE-Library=libkdevqtimporter -X-TDevelop-PCSImporter= -X-TDevelop-Version=5 diff --git a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h b/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h deleted file mode 100644 index bad9973e..00000000 --- a/languages/cpp/pcsimporter/qtimporter/kdevqtimporter.h +++ /dev/null @@ -1,38 +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 KDevQtImporter : public KDevPCSImporter -{ - Q_OBJECT - -public: - KDevQtImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() ); - virtual ~KDevQtImporter(); - - virtual TQString dbName() const { return TQString::fromLatin1("TQt"); } - virtual TQStringList fileList(); - virtual TQStringList includePaths(); - - virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); - -private: - TQGuardedPtr m_settings; -}; - -#endif diff --git a/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.cpp b/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.cpp new file mode 100644 index 00000000..b3b94019 --- /dev/null +++ b/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.cpp @@ -0,0 +1,73 @@ +/*************************************************************************** +* 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 "tdevqtimporter.h" +#include "tdevqtimporter.moc" +#include "settingsdialog.h" + +#include + +#include +#include + +K_EXPORT_COMPONENT_FACTORY( libtdevqtimporter, KGenericFactory( "tdevqtimporter" ) ) + +TDevQtImporter::TDevQtImporter( TQObject * parent, const char * name, const TQStringList& ) + : TDevPCSImporter( parent, name ) +{} + +TDevQtImporter::~TDevQtImporter() +{} + +TQStringList TDevQtImporter::fileList() +{ + if ( !m_settings ) + return TQStringList(); + + TQDir dir( m_settings->qtDir() ); + TQStringList lst = dir.entryList( "*.h" ); + TQStringList fileList; + for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) + { + if ( ( *it ).startsWith( "qconfig-" ) ) + { + if ( ( *it ).endsWith( m_settings->configuration() + ".h" ) ) + fileList.prepend( dir.absPath() + "/" + ( *it ) ); + } + else + { + fileList.push_back( dir.absPath() + "/" + ( *it ) ); + } + } + return fileList; +} + +TQStringList TDevQtImporter::includePaths() +{ + if ( !m_settings ) + return TQStringList(); + + TQStringList includePaths; + includePaths.push_back( m_settings->qtDir() ); + includePaths.push_back( m_settings->qtDir() + "/private" ); + includePaths.push_back( m_settings->qtDir() + "/default" ); + + /// @todo add mkspec + return includePaths; +} + +TQWidget * TDevQtImporter::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/qtimporter/tdevqtimporter.desktop b/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.desktop new file mode 100644 index 00000000..f9b02306 --- /dev/null +++ b/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.desktop @@ -0,0 +1,37 @@ +[Desktop Entry] +Type=Service +Name=TDevQtImporter +Name[da]=TDevelop Qt-importør +Name[de]=Qt-PCS-Import (TDevelop) +Name[hi]=के-डेव-क्यूटी-आयातक +Name[nds]=Qt-PCS-Import (TDevelop) +Name[pl]=KDevImportQt +Name[sv]=TDevelop QT-import +Name[ta]=கெடெவ் க்யு இறக்குமதியாளர் +Name[zh_TW]=KDev Qt 匯入器 +Comment=TDevelop Qt3 PCS Importer +Comment[ca]=Importador PCS de Qt3 per a TDevelop +Comment[da]=TDevelop Qt3 PCS importør +Comment[de]=Qt3-Import für persistenten Klassenspeicher +Comment[el]=Εισαγωγέας PCS TDevelop Qt3 +Comment[es]=Importador PCS de Qt3 de TDevelop +Comment[et]=TDevelopi Qt3 PCS importija +Comment[fr]=Importation PCS de Qt3 pour TDevelop +Comment[hu]=TDevelop Qt3 PCS-importáló +Comment[it]=Importatore PCS di Qt3 di TDevelop +Comment[ja]=TDevelop Qt3 PCS インポータ +Comment[nds]=Qt3-Import för duerhaftig Klassenspieker +Comment[pl]=TDevelop: importowanie PCS Qt3 +Comment[pt]=Importador de PCS para Qt3 do TDevelop +Comment[pt_BR]=Importador de PCS para Qt3 do TDevelop +Comment[ru]=Импорт Qt 3 PCS в TDevelop +Comment[sk]=TDevelop Qt3 PCS import +Comment[sr]=TDevelop-ов Qt3 PCS увозник +Comment[sr@Latn]=TDevelop-ov Qt3 PCS uvoznik +Comment[sv]=TDevelop QT3 PCS-import +Comment[zh_TW]=TDevelop Qt3 PCS 匯入器 +Icon=gear +ServiceTypes=TDevelop/PCSImporter +X-TDE-Library=libtdevqtimporter +X-TDevelop-PCSImporter= +X-TDevelop-Version=5 diff --git a/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.h b/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.h new file mode 100644 index 00000000..3f7d1ac8 --- /dev/null +++ b/languages/cpp/pcsimporter/qtimporter/tdevqtimporter.h @@ -0,0 +1,38 @@ +/*************************************************************************** + * 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 TDevQtImporter : public TDevPCSImporter +{ + Q_OBJECT + +public: + TDevQtImporter( TQObject* parent=0, const char* name=0, const TQStringList& args=TQStringList() ); + virtual ~TDevQtImporter(); + + virtual TQString dbName() const { return TQString::fromLatin1("TQt"); } + virtual TQStringList fileList(); + virtual TQStringList includePaths(); + + virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); + +private: + TQGuardedPtr m_settings; +}; + +#endif -- cgit v1.2.3