summaryrefslogtreecommitdiffstats
path: root/buildtools/pascal/pascalproject_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/pascal/pascalproject_part.cpp')
-rw-r--r--buildtools/pascal/pascalproject_part.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/buildtools/pascal/pascalproject_part.cpp b/buildtools/pascal/pascalproject_part.cpp
index 42864e23..01b0734a 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 <tdevgenericfactory.h>
+#include <kdevgenericfactory.h>
#include <kdebug.h>
#include <kdialogbase.h>
#include <tdemessagebox.h>
@@ -32,13 +32,13 @@
#include <kprocess.h>
#include "domutil.h"
-#include "tdevcore.h"
-#include "tdevmainwindow.h"
-#include "tdevmakefrontend.h"
-#include "tdevappfrontend.h"
-#include "tdevpartcontroller.h"
-#include "tdevlanguagesupport.h"
-#include "tdevcompileroptions.h"
+#include "kdevcore.h"
+#include "kdevmainwindow.h"
+#include "kdevmakefrontend.h"
+#include "kdevappfrontend.h"
+#include "kdevpartcontroller.h"
+#include "kdevlanguagesupport.h"
+#include "kdevcompileroptions.h"
#include "runoptionswidget.h"
#include "envvartools.h"
@@ -46,17 +46,17 @@
#include "pascalprojectoptionsdlg.h"
#include "pascalglobaloptionsdlg.h"
-#include <tdevplugininfo.h>
+#include <kdevplugininfo.h>
-typedef TDevGenericFactory<PascalProjectPart> PascalProjectFactory;
-static const TDevPluginInfo data("tdevpascalproject");
-K_EXPORT_COMPONENT_FACTORY( libtdevpascalproject, PascalProjectFactory( data ) )
+typedef KDevGenericFactory<PascalProjectPart> PascalProjectFactory;
+static const KDevPluginInfo data("kdevpascalproject");
+K_EXPORT_COMPONENT_FACTORY( libkdevpascalproject, PascalProjectFactory( data ) )
PascalProjectPart::PascalProjectPart(TQObject *parent, const char *name, const TQStringList& )
- :TDevBuildTool(&data, parent, name ? name : "PascalProjectPart" )
+ :KDevBuildTool(&data, parent, name ? name : "PascalProjectPart" )
{
setInstance(PascalProjectFactory::instance());
- setXMLFile("tdevpascalproject.rc");
+ setXMLFile("kdevpascalproject.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 tdevcore.h
+ // now you decide what should happen to the widget. Take a look at kdevcore.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());
- TDevProject::openProject( dirName, projectName );
+ KDevProject::openProject( dirName, projectName );
}
void PascalProjectPart::closeProject()
@@ -197,7 +197,7 @@ DomUtil::PairList PascalProjectPart::runEnvironmentVars() const
*/
TQString PascalProjectPart::runDirectory() const
{
- TQString cwd = defaultRunDirectory("tdevpascalproject");
+ TQString cwd = defaultRunDirectory("kdevpascalproject");
if (cwd.isEmpty())
cwd = buildDirectory();
return cwd;
@@ -384,12 +384,12 @@ void PascalProjectPart::slotExecute()
void PascalProjectPart::changedFiles( const TQStringList & fileList )
{
- TDevProject::changedFiles(fileList);
+ KDevProject::changedFiles(fileList);
}
void PascalProjectPart::changedFile( const TQString & fileName )
{
- TDevProject::changedFile(fileName);
+ KDevProject::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()) );
}
-TDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &name)
+KDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &name)
{
KService::Ptr service = KService::serviceByDesktopName(name);
if (!service) {
@@ -458,13 +458,13 @@ TDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &na
args = TQStringList::split(" ", prop.toString());
TQObject *obj = factory->create(this, service->name().latin1(),
- "TDevCompilerOptions", args);
+ "KDevCompilerOptions", args);
- if (!obj->inherits("TDevCompilerOptions")) {
- kdDebug() << "Component does not inherit TDevCompilerOptions" << endl;
+ if (!obj->inherits("KDevCompilerOptions")) {
+ kdDebug() << "Component does not inherit KDevCompilerOptions" << endl;
return 0;
}
- TDevCompilerOptions *dlg = (TDevCompilerOptions*) obj;
+ KDevCompilerOptions *dlg = (KDevCompilerOptions*) obj;
return dlg;
}