[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/konqhtml
From: George Staikos <staikos () kde ! org>
Date: 2005-02-25 17:45:26
Message-ID: 20050225174526.D8C6CEF06 () office ! kde ! org
[Download RAW message or body]
CVS commit by staikos:
configuration gui for demand-loading of plugins
M +5 -0 pluginopts.cpp 1.45
M +1 -1 pluginopts.h 1.13
--- kdebase/kcontrol/konqhtml/pluginopts.cpp #1.44:1.45
@@ -60,4 +60,5 @@ KPluginOptions::KPluginOptions( KConfig*
enablePluginsGloballyCB = new QCheckBox( i18n( "&Enable plugins globally" ), globalGB );
enableHTTPOnly = new QCheckBox( i18n( "Only allow &HTTP and HTTPS URLs for plugins" ), globalGB );
+ enableUserDemand = new QCheckBox( i18n( "&Load plugins on demand only" ), globalGB );
priorityLabel = new QLabel(i18n("CPU priority for plugins: %1").arg(QString::null), globalGB);
priority = new QSlider(5, 100, 5, 100, Horizontal, globalGB);
@@ -65,4 +66,5 @@ KPluginOptions::KPluginOptions( KConfig*
connect( enablePluginsGloballyCB, SIGNAL( clicked() ), this, SLOT( slotTogglePluginsEnabled() ) );
connect( enableHTTPOnly, SIGNAL( clicked() ), this, SLOT( slotChanged() ) );
+ connect( enableUserDemand, SIGNAL( clicked() ), this, SLOT( slotChanged() ) );
connect( priority, SIGNAL( valueChanged(int) ), this, SLOT( slotChanged() ) );
connect( priority, SIGNAL( valueChanged(int) ), this, SLOT( updatePLabel(int) ) );
@@ -193,4 +195,5 @@ void KPluginOptions::load()
m_widget->dirDown->setEnabled( false );
enableHTTPOnly->setChecked( config->readBoolEntry("HTTP URLs Only", false) );
+ enableUserDemand->setChecked( config->readBoolEntry("demandLoad", false) );
priority->setValue(100 - KCLAMP(config->readNumEntry("Nice Level", 0), 0, 19) * 5);
updatePLabel(priority->value());
@@ -209,4 +212,5 @@ void KPluginOptions::defaults()
enablePluginsGloballyCB->setChecked( global_policies.isFeatureEnabled() );
enableHTTPOnly->setChecked(false);
+ enableUserDemand->setChecked(false);
priority->setValue(100);
@@ -253,4 +257,5 @@ void KPluginOptions::save()
config->writeEntry( "startkdeScan", m_widget->scanAtStartup->isChecked() );
config->writeEntry( "HTTP URLs Only", enableHTTPOnly->isChecked() );
+ config->writeEntry( "demandLoad", enableUserDemand->isChecked() );
config->writeEntry("Nice Level", (int)(100 - priority->value()) / 5);
config->sync();
--- kdebase/kcontrol/konqhtml/pluginopts.h #1.12:1.13
@@ -114,5 +114,5 @@ private:
QString m_groupname;
- QCheckBox *enablePluginsGloballyCB, *enableHTTPOnly;
+ QCheckBox *enablePluginsGloballyCB, *enableHTTPOnly, *enableUserDemand;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic