summaryrefslogtreecommitdiffstats
path: root/languages/ruby/rubysupport_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/rubysupport_part.cpp')
-rw-r--r--languages/ruby/rubysupport_part.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/languages/ruby/rubysupport_part.cpp b/languages/ruby/rubysupport_part.cpp
index 915d12a1..e1745a02 100644
--- a/languages/ruby/rubysupport_part.cpp
+++ b/languages/ruby/rubysupport_part.cpp
@@ -5,15 +5,15 @@
#include "qtdesignerrubyintegration.h"
#include "rubyimplementationwidget.h"
-#include "tdevcore.h"
-#include "tdevmainwindow.h"
-#include "tdevlanguagesupport.h"
-#include "tdevpartcontroller.h"
-#include "tdevproject.h"
-#include "tdevappfrontend.h"
-#include "tdevplugininfo.h"
-#include "tdevshellwidget.h"
-#include "tdevquickopen.h"
+#include "kdevcore.h"
+#include "kdevmainwindow.h"
+#include "kdevlanguagesupport.h"
+#include "kdevpartcontroller.h"
+#include "kdevproject.h"
+#include "kdevappfrontend.h"
+#include "kdevplugininfo.h"
+#include "kdevshellwidget.h"
+#include "kdevquickopen.h"
#include <tqdir.h>
#include <tqwhatsthis.h>
@@ -24,7 +24,7 @@
#include <kiconloader.h>
#include <tdelocale.h>
-#include <tdevgenericfactory.h>
+#include <kdevgenericfactory.h>
#include <kprocess.h>
#include <kdebug.h>
#include <tdeaction.h>
@@ -37,15 +37,15 @@
#include <codemodel_utils.h>
-typedef TDevGenericFactory<RubySupportPart> RubySupportFactory;
-static const TDevPluginInfo data("tdevrubysupport");
-K_EXPORT_COMPONENT_FACTORY( libtdevrubysupport, RubySupportFactory( data ) )
+typedef KDevGenericFactory<RubySupportPart> RubySupportFactory;
+static const KDevPluginInfo data("kdevrubysupport");
+K_EXPORT_COMPONENT_FACTORY( libkdevrubysupport, RubySupportFactory( data ) )
RubySupportPart::RubySupportPart(TQObject *parent, const char *name, const TQStringList& )
- : TDevLanguageSupport (&data, parent, name ? name : "RubySupportPart" )
+ : KDevLanguageSupport (&data, parent, name ? name : "RubySupportPart" )
{
setInstance(RubySupportFactory::instance());
- setXMLFile("tdevrubysupport.rc");
+ setXMLFile("kdevrubysupport.rc");
TDEAction *action;
action = new TDEAction( i18n("&Run"), "exec", SHIFT + Key_F9,
@@ -72,7 +72,7 @@ RubySupportPart::RubySupportPart(TQObject *parent, const char *name, const TQStr
kdDebug() << "Creating RubySupportPart" << endl;
- m_shellWidget = new TDevShellWidget( 0, "irb console");
+ m_shellWidget = new KDevShellWidget( 0, "irb console");
m_shellWidget->setIcon( SmallIcon("ruby_config.png", TDEIcon::SizeMedium, TDEIcon::DefaultState, RubySupportPart::instance()));
m_shellWidget->setCaption(i18n("Ruby Shell"));
mainWindow()->embedOutputView( m_shellWidget, i18n("Ruby Shell"), i18n("Ruby Shell"));
@@ -127,7 +127,7 @@ void RubySupportPart::projectOpened()
TQFileInfo server(project()->projectDirectory() + "/script/server");
if (! server.exists()) {
cmd += "rails " + project()->projectDirectory();
- if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("TDevelop/AppFrontend"))
+ if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
appFrontend->startAppCommand(project()->projectDirectory(), cmd, false);
}
}
@@ -211,7 +211,7 @@ void RubySupportPart::savedFile(const KURL &fileName)
}
}
-TDevLanguageSupport::Features RubySupportPart::features()
+KDevLanguageSupport::Features RubySupportPart::features()
{
return Features(Classes | Functions | Variables | Declarations | Signals | Slots);
}
@@ -528,7 +528,7 @@ void RubySupportPart::slotRun ()
// Starting WEBrick for a Rails app. Translate a SIGTERM signal sent by KDevelop
// to a SIGINT expected by WEBrick (ie control&c) to terminate it.
cmd += "script/server& \n trap \"kill -s SIGINT $!\" TERM \n wait \n exit 0";
- if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("TDevelop/AppFrontend"))
+ if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
appFrontend->startAppCommand(project()->projectDirectory(), cmd, false);
} else {
TQString cmd = TQString("%1 -K%2 -C\"%3\" -I\"%4\" \"%5\" %6")
@@ -613,7 +613,7 @@ TQString RubySupportPart::characterCoding() {
void RubySupportPart::startApplication(const TQString &program) {
bool inTerminal = DomUtil::readBoolEntry(*projectDom(), "/kdevrubysupport/run/terminal");
- if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("TDevelop/AppFrontend"))
+ if (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString(), program, inTerminal);
}
@@ -627,9 +627,9 @@ KMimeType::List RubySupportPart::mimeTypes( )
return list;
}
-TDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerType type)
+KDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerType type)
{
- TDevDesignerIntegration *des = 0;
+ KDevDesignerIntegration *des = 0;
switch (type)
{
case KInterfaceDesigner::TQtDesigner:
@@ -651,7 +651,7 @@ TDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerT
void RubySupportPart::projectClosed( )
{
- for (TQMap<KInterfaceDesigner::DesignerType, TDevDesignerIntegration*>::const_iterator it = m_designers.begin();
+ for (TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
it != m_designers.end(); ++it)
{
kdDebug() << "calling save settings fro designer integration" << endl;
@@ -669,7 +669,7 @@ void RubySupportPart::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."));
}
}
}