summaryrefslogtreecommitdiffstats
path: root/konq-plugins/tdehtmlsettingsplugin
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/tdehtmlsettingsplugin')
-rw-r--r--konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp b/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp
index f81dacc..a12d714 100644
--- a/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp
+++ b/konq-plugins/tdehtmlsettingsplugin/settingsplugin.cpp
@@ -49,54 +49,54 @@ SettingsPlugin::SettingsPlugin( TQObject* parent, const char* name,
if ( !kapp->dcopClient()->isAttached() )
kapp->dcopClient()->attach();
- KActionMenu *menu = new KActionMenu( i18n("HTML Settings"), "configure",
+ TDEActionMenu *menu = new TDEActionMenu( i18n("HTML Settings"), "configure",
actionCollection(), "action menu" );
menu->setDelayed( false );
- KToggleAction *action;
+ TDEToggleAction *action;
- action = new KToggleAction( i18n("Java&Script"), 0,
+ action = new TDEToggleAction( i18n("Java&Script"), 0,
this, TQT_SLOT(toggleJavascript()),
actionCollection(), "javascript" );
menu->insert( action );
- action = new KToggleAction( i18n("&Java"), 0,
+ action = new TDEToggleAction( i18n("&Java"), 0,
this, TQT_SLOT(toggleJava()),
actionCollection(), "java" );
menu->insert( action );
- action = new KToggleAction( i18n("&Cookies"), 0,
+ action = new TDEToggleAction( i18n("&Cookies"), 0,
this, TQT_SLOT(toggleCookies()),
actionCollection(), "cookies" );
menu->insert( action );
- action = new KToggleAction( i18n("&Plugins"), 0,
+ action = new TDEToggleAction( i18n("&Plugins"), 0,
this, TQT_SLOT(togglePlugins()),
actionCollection(), "plugins" );
menu->insert( action );
- action = new KToggleAction( i18n("Autoload &Images"), 0,
+ action = new TDEToggleAction( i18n("Autoload &Images"), 0,
this, TQT_SLOT(toggleImageLoading()),
actionCollection(), "imageloading" );
menu->insert( action );
- menu->insert( new KActionSeparator(actionCollection()) );
+ menu->insert( new TDEActionSeparator(actionCollection()) );
- action = new KToggleAction( i18n("Enable Pro&xy"), 0,
+ action = new TDEToggleAction( i18n("Enable Pro&xy"), 0,
this, TQT_SLOT(toggleProxy()),
actionCollection(), "useproxy" );
action->setCheckedState(i18n("Disable Pro&xy"));
menu->insert( action );
- action = new KToggleAction( i18n("Enable Cac&he"), 0,
+ action = new TDEToggleAction( i18n("Enable Cac&he"), 0,
this, TQT_SLOT(toggleCache()),
actionCollection(), "usecache" );
action->setCheckedState(i18n("Disable Cac&he"));
menu->insert( action );
- KSelectAction *sAction = new KSelectAction( i18n("Cache Po&licy"), 0,
+ TDESelectAction *sAction = new TDESelectAction( i18n("Cache Po&licy"), 0,
0, 0, actionCollection(),
"cachepolicy" );
TQStringList policies;
@@ -129,25 +129,25 @@ void SettingsPlugin::showPopup()
KProtocolManager::reparseConfiguration();
bool cookies = cookiesEnabled( part->url().url() );
- ((KToggleAction*)actionCollection()->action("useproxy"))->setChecked(KProtocolManager::useProxy());
- ((KToggleAction*)actionCollection()->action("java"))->setChecked( part->javaEnabled() );
- ((KToggleAction*)actionCollection()->action("javascript"))->setChecked( part->jScriptEnabled() );
- ((KToggleAction*)actionCollection()->action("cookies"))->setChecked( cookies );
- ((KToggleAction*)actionCollection()->action("plugins"))->setChecked( part->pluginsEnabled() );
- ((KToggleAction*)actionCollection()->action("imageloading"))->setChecked( part->autoloadImages() );
- ((KToggleAction*)actionCollection()->action("usecache"))->setChecked(KProtocolManager::useCache());
+ ((TDEToggleAction*)actionCollection()->action("useproxy"))->setChecked(KProtocolManager::useProxy());
+ ((TDEToggleAction*)actionCollection()->action("java"))->setChecked( part->javaEnabled() );
+ ((TDEToggleAction*)actionCollection()->action("javascript"))->setChecked( part->jScriptEnabled() );
+ ((TDEToggleAction*)actionCollection()->action("cookies"))->setChecked( cookies );
+ ((TDEToggleAction*)actionCollection()->action("plugins"))->setChecked( part->pluginsEnabled() );
+ ((TDEToggleAction*)actionCollection()->action("imageloading"))->setChecked( part->autoloadImages() );
+ ((TDEToggleAction*)actionCollection()->action("usecache"))->setChecked(KProtocolManager::useCache());
TDEIO::CacheControl cc = KProtocolManager::cacheControl();
switch ( cc )
{
case TDEIO::CC_Verify:
- ((KSelectAction*)actionCollection()->action("cachepolicy"))->setCurrentItem( 0 );
+ ((TDESelectAction*)actionCollection()->action("cachepolicy"))->setCurrentItem( 0 );
break;
case TDEIO::CC_CacheOnly:
- ((KSelectAction*)actionCollection()->action("cachepolicy"))->setCurrentItem( 2 );
+ ((TDESelectAction*)actionCollection()->action("cachepolicy"))->setCurrentItem( 2 );
break;
case TDEIO::CC_Cache:
- ((KSelectAction*)actionCollection()->action("cachepolicy"))->setCurrentItem( 1 );
+ ((TDESelectAction*)actionCollection()->action("cachepolicy"))->setCurrentItem( 1 );
break;
case TDEIO::CC_Reload: // nothing for now
case TDEIO::CC_Refresh:
@@ -162,7 +162,7 @@ void SettingsPlugin::toggleJava()
if( parent() && parent()->inherits("TDEHTMLPart"))
{
TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent());
- part->setJavaEnabled( ((KToggleAction*)actionCollection()->action("java"))->isChecked() );
+ part->setJavaEnabled( ((TDEToggleAction*)actionCollection()->action("java"))->isChecked() );
}
}
@@ -171,7 +171,7 @@ void SettingsPlugin::toggleJavascript()
if( parent() && parent()->inherits("TDEHTMLPart"))
{
TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent());
- part->setJScriptEnabled( ((KToggleAction*)actionCollection()->action("javascript"))->isChecked() );
+ part->setJScriptEnabled( ((TDEToggleAction*)actionCollection()->action("javascript"))->isChecked() );
}
}
@@ -183,7 +183,7 @@ void SettingsPlugin::toggleCookies()
TDEHTMLPart *part = static_cast<TDEHTMLPart *>( parent() );
TQString advice;
- bool enable = ((KToggleAction*)actionCollection()->action("cookies"))->isChecked();
+ bool enable = ((TDEToggleAction*)actionCollection()->action("cookies"))->isChecked();
advice = enable ? "Accept" : "Reject";
TQCString replyType;
@@ -206,7 +206,7 @@ void SettingsPlugin::togglePlugins()
if( parent() && parent()->inherits("TDEHTMLPart"))
{
TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent());
- part->setPluginsEnabled( ((KToggleAction*)actionCollection()->action("plugins"))->isChecked() );
+ part->setPluginsEnabled( ((TDEToggleAction*)actionCollection()->action("plugins"))->isChecked() );
}
}
@@ -215,7 +215,7 @@ void SettingsPlugin::toggleImageLoading()
if( parent() && parent()->inherits("TDEHTMLPart"))
{
TDEHTMLPart *part = static_cast<TDEHTMLPart *>(parent());
- part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() );
+ part->setAutoloadImages( ((TDEToggleAction*)actionCollection()->action("imageloading"))->isChecked() );
}
}
@@ -254,7 +254,7 @@ bool SettingsPlugin::cookiesEnabled( const TQString& url )
void SettingsPlugin::toggleProxy()
{
- bool enable = ((KToggleAction*)actionCollection()->action("useproxy"))->isChecked();
+ bool enable = ((TDEToggleAction*)actionCollection()->action("useproxy"))->isChecked();
int type;
@@ -270,7 +270,7 @@ void SettingsPlugin::toggleProxy()
config.setGroup( "Proxy Settings" );
config.writeEntry( "ProxyType", type );
- ((KToggleAction*)actionCollection()->action("useproxy"))->setChecked(enable);
+ ((TDEToggleAction*)actionCollection()->action("useproxy"))->setChecked(enable);
updateIOSlaves();
}
@@ -281,7 +281,7 @@ void SettingsPlugin::toggleCache()
TDEConfig config( "tdeio_httprc", false, false );
config.writeEntry( "UseCache", !usesCache );
- ((KToggleAction*)actionCollection()->action("usecache"))->setChecked( !usesCache );
+ ((TDEToggleAction*)actionCollection()->action("usecache"))->setChecked( !usesCache );
updateIOSlaves();
}