summaryrefslogtreecommitdiffstats
path: root/buildtools/ada/adaproject_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/ada/adaproject_part.cpp')
-rw-r--r--buildtools/ada/adaproject_part.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/buildtools/ada/adaproject_part.cpp b/buildtools/ada/adaproject_part.cpp
index 195e2889..32833dfd 100644
--- a/buildtools/ada/adaproject_part.cpp
+++ b/buildtools/ada/adaproject_part.cpp
@@ -28,29 +28,29 @@
#include <tdeconfig.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 "tdevgenericfactory.h"
-#include <tdevplugininfo.h>
+#include "kdevcore.h"
+#include "kdevmainwindow.h"
+#include "kdevmakefrontend.h"
+#include "kdevappfrontend.h"
+#include "kdevpartcontroller.h"
+#include "kdevlanguagesupport.h"
+#include "kdevcompileroptions.h"
+#include "kdevgenericfactory.h"
+#include <kdevplugininfo.h>
#include "adaproject_widget.h"
#include "adaprojectoptionsdlg.h"
#include "adaglobaloptionsdlg.h"
-typedef TDevGenericFactory<AdaProjectPart> AdaProjectFactory;
-static const TDevPluginInfo data("tdevadaproject");
-K_EXPORT_COMPONENT_FACTORY( libtdevadaproject, AdaProjectFactory( data ) )
+typedef KDevGenericFactory<AdaProjectPart> AdaProjectFactory;
+static const KDevPluginInfo data("kdevadaproject");
+K_EXPORT_COMPONENT_FACTORY( libkdevadaproject, AdaProjectFactory( data ) )
AdaProjectPart::AdaProjectPart(TQObject *parent, const char *name, const TQStringList& )
- :TDevBuildTool(&data, parent, name ? name : "AdaProjectPart" )
+ :KDevBuildTool(&data, parent, name ? name : "AdaProjectPart" )
{
setInstance(AdaProjectFactory::instance());
- setXMLFile("tdevadaproject.rc");
+ setXMLFile("kdevadaproject.rc");
TDEAction *action;
action = new TDEAction( i18n("&Build Project"), "make_tdevelop", Key_F8,
@@ -70,7 +70,7 @@ AdaProjectPart::AdaProjectPart(TQObject *parent, const char *name, const TQStrin
// 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
@@ -109,8 +109,8 @@ void AdaProjectPart::openProject(const TQString &dirName, const TQString &projec
TQDomDocument &dom = *projectDom();
// Set the default directory radio to "executable"
- if (DomUtil::readEntry(dom, "/tdevadaproject/run/directoryradio") == "" ) {
- DomUtil::writeEntry(dom, "/tdevadaproject/run/directoryradio", "executable");
+ if (DomUtil::readEntry(dom, "/kdevadaproject/run/directoryradio") == "" ) {
+ DomUtil::writeEntry(dom, "/kdevadaproject/run/directoryradio", "executable");
}
loadProjectConfig();
@@ -165,7 +165,7 @@ void AdaProjectPart::openProject(const TQString &dirName, const TQString &projec
}
} while (!s.isEmpty());
- TDevProject::openProject( dirName, projectName );
+ KDevProject::openProject( dirName, projectName );
}
void AdaProjectPart::closeProject()
@@ -175,7 +175,7 @@ void AdaProjectPart::closeProject()
/** Retuns a PairList with the run environment variables */
DomUtil::PairList AdaProjectPart::runEnvironmentVars() const
{
- return DomUtil::readPairListEntry(*projectDom(), "/tdevadaproject/run/envvars", "envvar", "name", "value");
+ return DomUtil::readPairListEntry(*projectDom(), "/kdevadaproject/run/envvars", "envvar", "name", "value");
}
@@ -190,7 +190,7 @@ DomUtil::PairList AdaProjectPart::runEnvironmentVars() const
*/
TQString AdaProjectPart::runDirectory() const
{
- TQString cwd = defaultRunDirectory("tdevadaproject");
+ TQString cwd = defaultRunDirectory("kdevadaproject");
if (cwd.isEmpty())
cwd = buildDirectory();
return cwd;
@@ -212,7 +212,7 @@ TQString AdaProjectPart::mainProgram() const
if ( !dom ) return TQString();
- TQString DomMainProgram = DomUtil::readEntry( *dom, "/tdevadaproject/run/mainprogram");
+ TQString DomMainProgram = DomUtil::readEntry( *dom, "/kdevadaproject/run/mainprogram");
if ( DomMainProgram.isEmpty() ) return TQString();
@@ -231,14 +231,14 @@ TQString AdaProjectPart::mainProgram() const
/** Retuns a TQString with the run command line arguments */
TQString AdaProjectPart::debugArguments() const
{
- return DomUtil::readEntry(*projectDom(), "/tdevadaproject/run/globaldebugarguments");
+ return DomUtil::readEntry(*projectDom(), "/kdevadaproject/run/globaldebugarguments");
}
/** Retuns a TQString with the run command line arguments */
TQString AdaProjectPart::runArguments() const
{
- return DomUtil::readEntry(*projectDom(), "/tdevadaproject/run/programargs");
+ return DomUtil::readEntry(*projectDom(), "/kdevadaproject/run/programargs");
}
TQString AdaProjectPart::mainSource() const
@@ -361,12 +361,12 @@ void AdaProjectPart::slotExecute()
void AdaProjectPart::changedFiles( const TQStringList & fileList )
{
- TDevProject::changedFiles(fileList);
+ KDevProject::changedFiles(fileList);
}
void AdaProjectPart::changedFile( const TQString & fileName )
{
- TDevProject::changedFile(fileName);
+ KDevProject::changedFile(fileName);
}
void AdaProjectPart::projectConfigWidget( KDialogBase * dlg )
@@ -382,10 +382,10 @@ void AdaProjectPart::loadProjectConfig( )
{
TQDomDocument &dom = *(projectDom());
- TQString config = DomUtil::readEntry(dom, "/tdevadaproject/general/useconfiguration", "default");
- m_mainSource = DomUtil::readEntry(dom, TQString("/tdevadaproject/configurations/") + config + TQString("/mainsource") );
- m_compilerOpts = DomUtil::readEntry(dom, TQString("/tdevadaproject/configurations/") + config + TQString("/compileroptions"));
- m_compilerExec = DomUtil::readEntry(dom, TQString("/tdevadaproject/configurations/") + config + TQString("/compilerexec"));
+ TQString config = DomUtil::readEntry(dom, "/kdevadaproject/general/useconfiguration", "default");
+ m_mainSource = DomUtil::readEntry(dom, TQString("/kdevadaproject/configurations/") + config + TQString("/mainsource") );
+ m_compilerOpts = DomUtil::readEntry(dom, TQString("/kdevadaproject/configurations/") + config + TQString("/compileroptions"));
+ m_compilerExec = DomUtil::readEntry(dom, TQString("/kdevadaproject/configurations/") + config + TQString("/compilerexec"));
if (m_compilerExec.isEmpty())
{
@@ -408,7 +408,7 @@ void AdaProjectPart::configWidget( KDialogBase * dlg )
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
}
-TDevCompilerOptions *AdaProjectPart::createCompilerOptions(const TQString &name)
+KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const TQString &name)
{
KService::Ptr service = KService::serviceByDesktopName(name);
if (!service) {
@@ -430,13 +430,13 @@ TDevCompilerOptions *AdaProjectPart::createCompilerOptions(const TQString &name)
args = TQStringList::split(" ", prop.toString());
TQObject *obj = factory->create(this, service->name().latin1(),
- "TDevCompilerOptions", args);
+ "KDevCompilerOptions", args);
- if (!obj->inherits("TDevCompilerOptions")) {
- kdDebug() << "AdaProjectPart::createCompilerOptions: component does not inherit TDevCompilerOptions" << endl;
+ if (!obj->inherits("KDevCompilerOptions")) {
+ kdDebug() << "AdaProjectPart::createCompilerOptions: component does not inherit KDevCompilerOptions" << endl;
return 0;
}
- TDevCompilerOptions *dlg = (TDevCompilerOptions*) obj;
+ KDevCompilerOptions *dlg = (KDevCompilerOptions*) obj;
return dlg;
}