diff options
Diffstat (limited to 'buildtools/pascal')
-rw-r--r-- | buildtools/pascal/CMakeLists.txt | 10 | ||||
-rw-r--r-- | buildtools/pascal/Makefile.am | 16 | ||||
-rw-r--r-- | buildtools/pascal/pascalglobaloptionsdlg.cpp | 4 | ||||
-rw-r--r-- | buildtools/pascal/pascalproject_part.cpp | 48 | ||||
-rw-r--r-- | buildtools/pascal/pascalproject_part.h | 12 | ||||
-rw-r--r-- | buildtools/pascal/pascalproject_widget.cpp | 2 | ||||
-rw-r--r-- | buildtools/pascal/pascalproject_widget.h | 2 | ||||
-rw-r--r-- | buildtools/pascal/pascalprojectoptionsdlg.cpp | 8 | ||||
-rw-r--r-- | buildtools/pascal/pascalprojectoptionsdlg.h | 2 | ||||
-rw-r--r-- | buildtools/pascal/tdevpascalproject.desktop (renamed from buildtools/pascal/kdevpascalproject.desktop) | 2 | ||||
-rw-r--r-- | buildtools/pascal/tdevpascalproject.rc (renamed from buildtools/pascal/kdevpascalproject.rc) | 0 |
11 files changed, 53 insertions, 53 deletions
diff --git a/buildtools/pascal/CMakeLists.txt b/buildtools/pascal/CMakeLists.txt index b10a6bec..f43f27b2 100644 --- a/buildtools/pascal/CMakeLists.txt +++ b/buildtools/pascal/CMakeLists.txt @@ -30,17 +30,17 @@ link_directories( ##### other data ################################ -install( FILES kdevpascalproject.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES kdevpascalproject.rc DESTINATION ${DATA_INSTALL_DIR}/kdevpascalproject ) +install( FILES tdevpascalproject.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES tdevpascalproject.rc DESTINATION ${DATA_INSTALL_DIR}/tdevpascalproject ) -##### libkdevpascalproject (module) ############# +##### libtdevpascalproject (module) ############# -tde_add_kpart( libkdevpascalproject AUTOMOC +tde_add_kpart( libtdevpascalproject AUTOMOC SOURCES pascalproject_part.cpp pascalproject_widget.cpp pascalproject_optionsdlgbase.ui pascalprojectoptionsdlg.cpp pascalglobaloptionsdlg.cpp service.cpp - LINK kdevbuildbase-shared kdevbuildtoolswidgets-shared + LINK tdevbuildbase-shared tdevbuildtoolswidgets-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/buildtools/pascal/Makefile.am b/buildtools/pascal/Makefile.am index 9bf4fc90..f822bd6d 100644 --- a/buildtools/pascal/Makefile.am +++ b/buildtools/pascal/Makefile.am @@ -4,20 +4,20 @@ INCLUDES = -I$(top_srcdir)/buildtools/lib/base \ -I$(top_srcdir)/lib/interfaces/extras -I$(top_srcdir)/lib/util -I$(top_builddir)/buildtools/lib/widgets \ $(all_includes) -kde_module_LTLIBRARIES = libkdevpascalproject.la -libkdevpascalproject_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -libkdevpascalproject_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ - $(top_builddir)/buildtools/lib/widgets/libkdevbuildtoolswidgets.la $(top_builddir)/buildtools/lib/base/libkdevbuildbase.la +kde_module_LTLIBRARIES = libtdevpascalproject.la +libtdevpascalproject_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) +libtdevpascalproject_la_LIBADD = $(top_builddir)/lib/libtdevelop.la \ + $(top_builddir)/buildtools/lib/widgets/libtdevbuildtoolswidgets.la $(top_builddir)/buildtools/lib/base/libtdevbuildbase.la -libkdevpascalproject_la_SOURCES = pascalproject_part.cpp pascalproject_widget.cpp pascalproject_optionsdlgbase.ui pascalprojectoptionsdlg.cpp pascalglobaloptionsdlg.cpp service.cpp +libtdevpascalproject_la_SOURCES = pascalproject_part.cpp pascalproject_widget.cpp pascalproject_optionsdlgbase.ui pascalprojectoptionsdlg.cpp pascalglobaloptionsdlg.cpp service.cpp METASOURCES = AUTO servicedir = $(kde_servicesdir) -service_DATA = kdevpascalproject.desktop +service_DATA = tdevpascalproject.desktop -rcdir = $(kde_datadir)/kdevpascalproject -rc_DATA = kdevpascalproject.rc +rcdir = $(kde_datadir)/tdevpascalproject +rc_DATA = tdevpascalproject.rc diff --git a/buildtools/pascal/pascalglobaloptionsdlg.cpp b/buildtools/pascal/pascalglobaloptionsdlg.cpp index ccbf8dc1..b55ae62f 100644 --- a/buildtools/pascal/pascalglobaloptionsdlg.cpp +++ b/buildtools/pascal/pascalglobaloptionsdlg.cpp @@ -17,7 +17,7 @@ #include <kdebug.h> #include <tdeconfig.h> -#include "kdevcompileroptions.h" +#include "tdevcompileroptions.h" #include "service.h" #include "pascalproject_part.h" @@ -64,7 +64,7 @@ PascalGlobalOptionsDlg::~PascalGlobalOptionsDlg() void PascalGlobalOptionsDlg::optionsButtonClicked() { TQString name = ServiceComboBox::currentText(compiler_box, service_names); - KDevCompilerOptions *plugin = m_part->createCompilerOptions(name); + TDevCompilerOptions *plugin = m_part->createCompilerOptions(name); if (plugin) { TQString flags = plugin->exec(this, options_edit->text()); diff --git a/buildtools/pascal/pascalproject_part.cpp b/buildtools/pascal/pascalproject_part.cpp index 01b0734a..42864e23 100644 --- a/buildtools/pascal/pascalproject_part.cpp +++ b/buildtools/pascal/pascalproject_part.cpp @@ -21,7 +21,7 @@ #include <kiconloader.h> #include <tdelocale.h> #include <tdeaction.h> -#include <kdevgenericfactory.h> +#include <tdevgenericfactory.h> #include <kdebug.h> #include <kdialogbase.h> #include <tdemessagebox.h> @@ -32,13 +32,13 @@ #include <kprocess.h> #include "domutil.h" -#include "kdevcore.h" -#include "kdevmainwindow.h" -#include "kdevmakefrontend.h" -#include "kdevappfrontend.h" -#include "kdevpartcontroller.h" -#include "kdevlanguagesupport.h" -#include "kdevcompileroptions.h" +#include "tdevcore.h" +#include "tdevmainwindow.h" +#include "tdevmakefrontend.h" +#include "tdevappfrontend.h" +#include "tdevpartcontroller.h" +#include "tdevlanguagesupport.h" +#include "tdevcompileroptions.h" #include "runoptionswidget.h" #include "envvartools.h" @@ -46,17 +46,17 @@ #include "pascalprojectoptionsdlg.h" #include "pascalglobaloptionsdlg.h" -#include <kdevplugininfo.h> +#include <tdevplugininfo.h> -typedef KDevGenericFactory<PascalProjectPart> PascalProjectFactory; -static const KDevPluginInfo data("kdevpascalproject"); -K_EXPORT_COMPONENT_FACTORY( libkdevpascalproject, PascalProjectFactory( data ) ) +typedef TDevGenericFactory<PascalProjectPart> PascalProjectFactory; +static const TDevPluginInfo data("tdevpascalproject"); +K_EXPORT_COMPONENT_FACTORY( libtdevpascalproject, PascalProjectFactory( data ) ) PascalProjectPart::PascalProjectPart(TQObject *parent, const char *name, const TQStringList& ) - :KDevBuildTool(&data, parent, name ? name : "PascalProjectPart" ) + :TDevBuildTool(&data, parent, name ? name : "PascalProjectPart" ) { setInstance(PascalProjectFactory::instance()); - setXMLFile("kdevpascalproject.rc"); + setXMLFile("tdevpascalproject.rc"); TDEAction *action; action = new TDEAction( i18n("&Build Project"), "make_tdevelop", Key_F8, @@ -82,7 +82,7 @@ PascalProjectPart::PascalProjectPart(TQObject *parent, const char *name, const T // TQWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?")); - // now you decide what should happen to the widget. Take a look at kdevcore.h + // now you decide what should happen to the widget. Take a look at tdevcore.h // or at other plugins how to embed it. // if you want to embed your widget as an outputview, simply uncomment @@ -172,7 +172,7 @@ void PascalProjectPart::openProject(const TQString &dirName, const TQString &pro } } while (!s.isEmpty()); - KDevProject::openProject( dirName, projectName ); + TDevProject::openProject( dirName, projectName ); } void PascalProjectPart::closeProject() @@ -197,7 +197,7 @@ DomUtil::PairList PascalProjectPart::runEnvironmentVars() const */ TQString PascalProjectPart::runDirectory() const { - TQString cwd = defaultRunDirectory("kdevpascalproject"); + TQString cwd = defaultRunDirectory("tdevpascalproject"); if (cwd.isEmpty()) cwd = buildDirectory(); return cwd; @@ -384,12 +384,12 @@ void PascalProjectPart::slotExecute() void PascalProjectPart::changedFiles( const TQStringList & fileList ) { - KDevProject::changedFiles(fileList); + TDevProject::changedFiles(fileList); } void PascalProjectPart::changedFile( const TQString & fileName ) { - KDevProject::changedFile(fileName); + TDevProject::changedFile(fileName); } void PascalProjectPart::projectConfigWidget( KDialogBase * dlg ) @@ -436,7 +436,7 @@ void PascalProjectPart::configWidget( KDialogBase * dlg ) connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); } -KDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &name) +TDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &name) { KService::Ptr service = KService::serviceByDesktopName(name); if (!service) { @@ -458,13 +458,13 @@ KDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &na args = TQStringList::split(" ", prop.toString()); TQObject *obj = factory->create(this, service->name().latin1(), - "KDevCompilerOptions", args); + "TDevCompilerOptions", args); - if (!obj->inherits("KDevCompilerOptions")) { - kdDebug() << "Component does not inherit KDevCompilerOptions" << endl; + if (!obj->inherits("TDevCompilerOptions")) { + kdDebug() << "Component does not inherit TDevCompilerOptions" << endl; return 0; } - KDevCompilerOptions *dlg = (KDevCompilerOptions*) obj; + TDevCompilerOptions *dlg = (TDevCompilerOptions*) obj; return dlg; } diff --git a/buildtools/pascal/pascalproject_part.h b/buildtools/pascal/pascalproject_part.h index 54d09b2e..8f46817b 100644 --- a/buildtools/pascal/pascalproject_part.h +++ b/buildtools/pascal/pascalproject_part.h @@ -8,18 +8,18 @@ * (at your option) any later version. * * * ***************************************************************************/ -#ifndef __KDEVPART_PASCALPROJECT_H__ -#define __KDEVPART_PASCALPROJECT_H__ +#ifndef __TDEVPART_PASCALPROJECT_H__ +#define __TDEVPART_PASCALPROJECT_H__ #include <tqguardedptr.h> -#include "kdevbuildtool.h" +#include "tdevbuildtool.h" class PascalProjectWidget; class KDialogBase; -class KDevCompilerOptions; +class TDevCompilerOptions; -class PascalProjectPart : public KDevBuildTool +class PascalProjectPart : public TDevBuildTool { Q_OBJECT @@ -61,7 +61,7 @@ public: virtual void changedFiles( const TQStringList & fileList ); virtual void changedFile( const TQString & fileName ); - KDevCompilerOptions *createCompilerOptions(const TQString &name); + TDevCompilerOptions *createCompilerOptions(const TQString &name); virtual TQString defaultOptions(const TQString compiler) const; TQStringList distFiles() const; diff --git a/buildtools/pascal/pascalproject_widget.cpp b/buildtools/pascal/pascalproject_widget.cpp index a8671023..9ce95c47 100644 --- a/buildtools/pascal/pascalproject_widget.cpp +++ b/buildtools/pascal/pascalproject_widget.cpp @@ -4,7 +4,7 @@ #include <kdebug.h> -#include <kdevcore.h> +#include <tdevcore.h> #include "pascalproject_part.h" diff --git a/buildtools/pascal/pascalproject_widget.h b/buildtools/pascal/pascalproject_widget.h index 252c7500..5e104856 100644 --- a/buildtools/pascal/pascalproject_widget.h +++ b/buildtools/pascal/pascalproject_widget.h @@ -6,7 +6,7 @@ #include <tqstring.h> -class KDevProject; +class TDevProject; class PascalProjectPart; diff --git a/buildtools/pascal/pascalprojectoptionsdlg.cpp b/buildtools/pascal/pascalprojectoptionsdlg.cpp index 9c7c2518..1593656a 100644 --- a/buildtools/pascal/pascalprojectoptionsdlg.cpp +++ b/buildtools/pascal/pascalprojectoptionsdlg.cpp @@ -20,7 +20,7 @@ #include <tqvalidator.h> #include "domutil.h" -#include "kdevcompileroptions.h" +#include "tdevcompileroptions.h" #include "service.h" #include "pascalproject_part.h" @@ -59,7 +59,7 @@ TQStringList PascalProjectOptionsDlg::allBuildConfigs() TQStringList allConfigs; allConfigs.append("default"); - TQDomNode node = dom.documentElement().namedItem("kdevpascalproject").namedItem("configurations"); + TQDomNode node = dom.documentElement().namedItem("tdevpascalproject").namedItem("configurations"); TQDomElement childEl = node.firstChild().toElement(); while (!childEl.isNull()) { TQString config = childEl.tagName(); @@ -173,7 +173,7 @@ void PascalProjectOptionsDlg::configRemoved() TQString config = config_combo->currentText(); TQDomDocument dom = *m_part->projectDom(); - TQDomNode node = dom.documentElement().namedItem("kdevpascalproject").namedItem("configurations"); + TQDomNode node = dom.documentElement().namedItem("tdevpascalproject").namedItem("configurations"); node.removeChild(node.namedItem(config)); allConfigs.remove(config); @@ -187,7 +187,7 @@ void PascalProjectOptionsDlg::configRemoved() void PascalProjectOptionsDlg::optionsButtonClicked( ) { TQString name = ServiceComboBox::currentText(compiler_box, service_names); - KDevCompilerOptions *plugin = m_part->createCompilerOptions(name); + TDevCompilerOptions *plugin = m_part->createCompilerOptions(name); if (plugin) { TQString flags = plugin->exec(this, options_edit->text()); diff --git a/buildtools/pascal/pascalprojectoptionsdlg.h b/buildtools/pascal/pascalprojectoptionsdlg.h index acedb14d..c641faf3 100644 --- a/buildtools/pascal/pascalprojectoptionsdlg.h +++ b/buildtools/pascal/pascalprojectoptionsdlg.h @@ -16,7 +16,7 @@ #include "pascalproject_optionsdlgbase.h" class PascalProjectPart; -class KDevCompilerOptions; +class TDevCompilerOptions; class PascalProjectOptionsDlg : public PascalProjectOptionsDlgBase { diff --git a/buildtools/pascal/kdevpascalproject.desktop b/buildtools/pascal/tdevpascalproject.desktop index cde3c21d..36143f24 100644 --- a/buildtools/pascal/kdevpascalproject.desktop +++ b/buildtools/pascal/tdevpascalproject.desktop @@ -89,5 +89,5 @@ GenericName[uz@cyrillic]=Pascal лойиҳаси GenericName[zh_CN]=Pascal 工程 GenericName[zh_TW]=Pascal 專案 ServiceTypes=TDevelop/Project -X-TDE-Library=libkdevpascalproject +X-TDE-Library=libtdevpascalproject X-TDevelop-Version=5 diff --git a/buildtools/pascal/kdevpascalproject.rc b/buildtools/pascal/tdevpascalproject.rc index 9e7f46fd..9e7f46fd 100644 --- a/buildtools/pascal/kdevpascalproject.rc +++ b/buildtools/pascal/tdevpascalproject.rc |