summaryrefslogtreecommitdiffstats
path: root/languages/python/pythonsupportpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/python/pythonsupportpart.cpp')
-rw-r--r--languages/python/pythonsupportpart.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/languages/python/pythonsupportpart.cpp b/languages/python/pythonsupportpart.cpp
index 279688a6..1f2c7b87 100644
--- a/languages/python/pythonsupportpart.cpp
+++ b/languages/python/pythonsupportpart.cpp
@@ -12,10 +12,10 @@
#include "pythonsupportpart.h"
#include "pythonconfigwidget.h"
-#include <tdevcore.h>
-#include <tdevproject.h>
-#include <tdevappfrontend.h>
-#include <tdevpartcontroller.h>
+#include <kdevcore.h>
+#include <kdevproject.h>
+#include <kdevappfrontend.h>
+#include <kdevpartcontroller.h>
#include <codemodel.h>
#include <domutil.h>
@@ -29,8 +29,8 @@
#include <tdeapplication.h>
#include <kdebug.h>
#include <kdialogbase.h>
-#include <tdevgenericfactory.h>
-#include <tdevplugininfo.h>
+#include <kdevgenericfactory.h>
+#include <kdevplugininfo.h>
#include <kinputdialog.h>
#include <tdelocale.h>
#include <tqregexp.h>
@@ -38,16 +38,16 @@
#include "qtdesignerpythonintegration.h"
#include "pythonimplementationwidget.h"
-typedef TDevGenericFactory<PythonSupportPart> PythonSupportFactory;
-static const TDevPluginInfo data("tdepythonsupport");
-K_EXPORT_COMPONENT_FACTORY( libtdevpythonsupport, PythonSupportFactory( data ) )
+typedef KDevGenericFactory<PythonSupportPart> PythonSupportFactory;
+static const KDevPluginInfo data("kdevpythonsupport");
+K_EXPORT_COMPONENT_FACTORY( libkdevpythonsupport, PythonSupportFactory( data ) )
PythonSupportPart::PythonSupportPart(TQObject *parent, const char *name, const TQStringList &)
- : TDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart")
+ : KDevLanguageSupport(&data, parent, name ? name : "PythonSupportPart")
{
setInstance(PythonSupportFactory::instance());
- setXMLFile("tdepythonsupport.rc");
+ setXMLFile("kdevpythonsupport.rc");
connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
@@ -100,7 +100,7 @@ void PythonSupportPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
m_contextFileName = url.fileName();
int id = popup->insertItem(i18n("Create or Select Implementation..."), this, TQT_SLOT(slotCreateSubclass()));
- popup->setWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated TDevDesigner."));
+ popup->setWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner."));
}
}
}
@@ -217,7 +217,7 @@ void PythonSupportPart::savedFile(const KURL &fileName)
}
-TDevLanguageSupport::Features PythonSupportPart::features()
+KDevLanguageSupport::Features PythonSupportPart::features()
{
return Features(Classes | Functions);
}
@@ -316,7 +316,7 @@ void PythonSupportPart::parse(const TQString &fileName)
TQString PythonSupportPart::interpreter()
{
- TQString prog = DomUtil::readEntry(*projectDom(), "/tdepythonsupport/run/interpreter");
+ TQString prog = DomUtil::readEntry(*projectDom(), "/kdevpythonsupport/run/interpreter");
if (prog.isEmpty())
prog = "python";
@@ -326,8 +326,8 @@ TQString PythonSupportPart::interpreter()
void PythonSupportPart::startApplication(const TQString &program)
{
- bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/tdepythonsupport/run/terminal");
- if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("TDevelop/AppFrontend"))
+ bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevpythonsupport/run/terminal");
+ if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString(), program, inTerminal);
}
@@ -369,9 +369,9 @@ void PythonSupportPart::slotPydoc()
}
}
-TDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::DesignerType type)
+KDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::DesignerType type)
{
- TDevDesignerIntegration *des = 0;
+ KDevDesignerIntegration *des = 0;
switch (type)
{
case KInterfaceDesigner::TQtDesigner:
@@ -381,7 +381,7 @@ TDevDesignerIntegration *PythonSupportPart::designer(KInterfaceDesigner::Designe
PythonImplementationWidget *impl = new PythonImplementationWidget(this);
des = new QtDesignerPythonIntegration(this, impl);
des->loadSettings(*project()->projectDom(),
- "tdepythonsupport/designerintegration");
+ "kdevpythonsupport/designerintegration");
m_designers[type] = des;
}
break;