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 e1745a02..915d12a1 100644
--- a/languages/ruby/rubysupport_part.cpp
+++ b/languages/ruby/rubysupport_part.cpp
@@ -5,15 +5,15 @@
#include "qtdesignerrubyintegration.h"
#include "rubyimplementationwidget.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 "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 <tqdir.h>
#include <tqwhatsthis.h>
@@ -24,7 +24,7 @@
#include <kiconloader.h>
#include <tdelocale.h>
-#include <kdevgenericfactory.h>
+#include <tdevgenericfactory.h>
#include <kprocess.h>
#include <kdebug.h>
#include <tdeaction.h>
@@ -37,15 +37,15 @@
#include <codemodel_utils.h>
-typedef KDevGenericFactory<RubySupportPart> RubySupportFactory;
-static const KDevPluginInfo data("kdevrubysupport");
-K_EXPORT_COMPONENT_FACTORY( libkdevrubysupport, RubySupportFactory( data ) )
+typedef TDevGenericFactory<RubySupportPart> RubySupportFactory;
+static const TDevPluginInfo data("tdevrubysupport");
+K_EXPORT_COMPONENT_FACTORY( libtdevrubysupport, RubySupportFactory( data ) )
RubySupportPart::RubySupportPart(TQObject *parent, const char *name, const TQStringList& )
- : KDevLanguageSupport (&data, parent, name ? name : "RubySupportPart" )
+ : TDevLanguageSupport (&data, parent, name ? name : "RubySupportPart" )
{
setInstance(RubySupportFactory::instance());
- setXMLFile("kdevrubysupport.rc");
+ setXMLFile("tdevrubysupport.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 KDevShellWidget( 0, "irb console");
+ m_shellWidget = new TDevShellWidget( 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 (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
+ if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("TDevelop/AppFrontend"))
appFrontend->startAppCommand(project()->projectDirectory(), cmd, false);
}
}
@@ -211,7 +211,7 @@ void RubySupportPart::savedFile(const KURL &fileName)
}
}
-KDevLanguageSupport::Features RubySupportPart::features()
+TDevLanguageSupport::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 (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
+ if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("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 (KDevAppFrontend *appFrontend = extension<KDevAppFrontend>("TDevelop/AppFrontend"))
+ if (TDevAppFrontend *appFrontend = extension<TDevAppFrontend>("TDevelop/AppFrontend"))
appFrontend->startAppCommand(TQString(), program, inTerminal);
}
@@ -627,9 +627,9 @@ KMimeType::List RubySupportPart::mimeTypes( )
return list;
}
-KDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerType type)
+TDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerType type)
{
- KDevDesignerIntegration *des = 0;
+ TDevDesignerIntegration *des = 0;
switch (type)
{
case KInterfaceDesigner::TQtDesigner:
@@ -651,7 +651,7 @@ KDevDesignerIntegration *RubySupportPart::designer(KInterfaceDesigner::DesignerT
void RubySupportPart::projectClosed( )
{
- for (TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
+ for (TQMap<KInterfaceDesigner::DesignerType, TDevDesignerIntegration*>::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 KDevDesigner."));
+ popup->setWhatsThis(id, i18n("<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated TDevDesigner."));
}
}
}