summaryrefslogtreecommitdiffstats
path: root/src/konqplugin/tork_plug_in.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/konqplugin/tork_plug_in.cpp')
-rw-r--r--src/konqplugin/tork_plug_in.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/konqplugin/tork_plug_in.cpp b/src/konqplugin/tork_plug_in.cpp
index 5064279..9d1f825 100644
--- a/src/konqplugin/tork_plug_in.cpp
+++ b/src/konqplugin/tork_plug_in.cpp
@@ -40,21 +40,21 @@
#include <dcopref.h>
#include <kdatastream.h>
#include <kdebug.h>
-#include <khtml_part.h>
+#include <tdehtml_part.h>
#include <kiconloader.h>
-#include <kglobal.h>
-#include <kaction.h>
+#include <tdeglobal.h>
+#include <tdeaction.h>
#include <kinstance.h>
-#include <klocale.h>
-#include <kmessagebox.h>
-#include <kpopupmenu.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
+#include <tdepopupmenu.h>
#include <krun.h>
#include <dom/html_document.h>
#include <dom/html_misc.h>
#include <dom/dom_element.h>
-#include <kparts/partmanager.h>
+#include <tdeparts/partmanager.h>
#include <set>
@@ -62,32 +62,32 @@
Tork_plug_in::Tork_plug_in( TQObject* parent, const char* name )
: Plugin( parent, name )
{
- TQPixmap pix = KGlobal::iconLoader()->loadIcon("tork",
- KIcon::MainToolbar);
- KActionMenu *menu = new KActionMenu( i18n("Anonymity Manager"), pix,
+ TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("tork",
+ TDEIcon::MainToolbar);
+ TDEActionMenu *menu = new TDEActionMenu( i18n("Anonymity Manager"), pix,
actionCollection(), "tork_menu" );
menu->setDelayed( false );
connect( menu->popupMenu(), SIGNAL( aboutToShow() ), SLOT( showPopup() ));
- m_paToggleKDE=new KAction(i18n("Anonymize KDE"),
- KGlobal::iconLoader()->loadIconSet("tork_konqueroroff", KIcon::Small),
- KShortcut(),
+ m_paToggleKDE=new TDEAction(i18n("Anonymize KDE"),
+ TDEGlobal::iconLoader()->loadIconSet("tork_konqueroroff", TDEIcon::Small),
+ TDEShortcut(),
this, SLOT(toggleKDE()),
actionCollection(), "tork_konqueroron" );
menu->insert( m_paToggleKDE );
- KAction *m_firefox=new KAction(i18n("Re-Open Anonymously with Firefox"),
- KGlobal::iconLoader()->loadIconSet("tork_firefox", KIcon::Small),
- KShortcut(),
+ TDEAction *m_firefox=new TDEAction(i18n("Re-Open Anonymously with Firefox"),
+ TDEGlobal::iconLoader()->loadIconSet("tork_firefox", TDEIcon::Small),
+ TDEShortcut(),
this, SLOT(openWithFirefox()),
actionCollection(), "tork_firefox" );
menu->insert( m_firefox );
- KAction *m_opera=new KAction(i18n("Re-Open Anonymously with Opera"),
- KGlobal::iconLoader()->loadIconSet("tork_opera", KIcon::Small),
- KShortcut(),
+ TDEAction *m_opera=new TDEAction(i18n("Re-Open Anonymously with Opera"),
+ TDEGlobal::iconLoader()->loadIconSet("tork_opera", TDEIcon::Small),
+ TDEShortcut(),
this, SLOT(openWithOpera()),
actionCollection(), "tork_opera" );
menu->insert( m_opera );
@@ -115,12 +115,12 @@ void Tork_plug_in::showPopup()
}
if (anonymized){
- m_paToggleKDE->setIconSet( KGlobal::iconLoader()->loadIconSet("tork_konqueroroff",
- KIcon::Small) );
+ m_paToggleKDE->setIconSet( TDEGlobal::iconLoader()->loadIconSet("tork_konqueroroff",
+ TDEIcon::Small) );
m_paToggleKDE->setText( "De-Anonymize KDE" );
}else{
- m_paToggleKDE->setIconSet( KGlobal::iconLoader()->loadIconSet("tork_konqueroron",
- KIcon::Small) );
+ m_paToggleKDE->setIconSet( TDEGlobal::iconLoader()->loadIconSet("tork_konqueroron",
+ TDEIcon::Small) );
m_paToggleKDE->setText( "Anonymize KDE" );
}
}
@@ -141,7 +141,7 @@ void Tork_plug_in::openWithOpera()
void Tork_plug_in::openWithBrowser(const TQString &browser)
{
- KHTMLPart *htmlPart = static_cast<KHTMLPart*>( parent() );
+ TDEHTMLPart *htmlPart = static_cast<TDEHTMLPart*>( parent() );
TQString url = htmlPart->toplevelURL().url();
if (p_dcopServer->isApplicationRegistered ("tork")){
@@ -168,7 +168,7 @@ void Tork_plug_in::toggleKDE()
KPluginFactory::KPluginFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name )
{
- s_instance = new KInstance("KPluginFactory");
+ s_instance = new TDEInstance("KPluginFactory");
}
TQObject* KPluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
@@ -184,14 +184,14 @@ KPluginFactory::~KPluginFactory()
extern "C"
{
- KDE_EXPORT void* init_khtml_tork()
+ KDE_EXPORT void* init_tdehtml_tork()
{
- KGlobal::locale()->insertCatalogue("tork");
+ TDEGlobal::locale()->insertCatalogue("tork");
return new KPluginFactory;
}
}
-KInstance* KPluginFactory::s_instance = 0L;
+TDEInstance* KPluginFactory::s_instance = 0L;
#include "tork_plug_in.moc"