summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdeio/kcookiesmain.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-10 14:55:30 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-10 14:55:30 -0500
commit0014712b085cecda712bbbdd31e618a1ada2a4e3 (patch)
treefab9eeb029508face395fb9fa962365527b57277 /kcontrol/tdeio/kcookiesmain.cpp
parentcc12a51c629cfaec41a6170a480ea0a757b26f54 (diff)
downloadtdebase-0014712b085cecda712bbbdd31e618a1ada2a4e3.tar.gz
tdebase-0014712b085cecda712bbbdd31e618a1ada2a4e3.zip
Add handbookSection support to tabbed "Internet & Network" TDEControl modules
This relates to Bug 1850
Diffstat (limited to 'kcontrol/tdeio/kcookiesmain.cpp')
-rw-r--r--kcontrol/tdeio/kcookiesmain.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/kcontrol/tdeio/kcookiesmain.cpp b/kcontrol/tdeio/kcookiesmain.cpp
index 417eb9e46..9869c6c92 100644
--- a/kcontrol/tdeio/kcookiesmain.cpp
+++ b/kcontrol/tdeio/kcookiesmain.cpp
@@ -19,6 +19,10 @@
KCookiesMain::KCookiesMain(TQWidget *parent)
: TDECModule(parent, "kcmtdeio")
{
+ int currentTabNumber = 0;
+ policiesTabNumber = -1;
+ managementTabNumber = -1;
+
management = 0;
bool managerOK = true;
@@ -33,19 +37,23 @@ KCookiesMain::KCookiesMain(TQWidget *parent)
"You will not be able to manage the cookies that "
"are stored on your computer."));
}
-
+
TQVBoxLayout *layout = new TQVBoxLayout(this);
tab = new TQTabWidget(this);
layout->addWidget(tab);
policies = new KCookiesPolicies(this);
tab->addTab(policies, i18n("&Policy"));
+ policiesTabNumber = currentTabNumber;
+ currentTabNumber++;
connect(policies, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
if( managerOK )
{
management = new KCookiesManagement(this);
tab->addTab(management, i18n("&Management"));
+ managementTabNumber = currentTabNumber;
+ currentTabNumber++;
connect(management, TQT_SIGNAL(changed(bool)), TQT_SIGNAL(changed(bool)));
}
}
@@ -96,4 +104,19 @@ TQString KCookiesMain::quickHelp() const
" every time TDE receives a cookie." );
}
+TQString KCookiesMain::handbookSection() const
+{
+ int index = tab->currentPageIndex();
+ if (index == policiesTabNumber) {
+ //return "cookie-policy";
+ return TQString::null;
+ }
+ else if (index == managementTabNumber) {
+ return "cookie-management";
+ }
+ else {
+ return TQString::null;
+ }
+}
+
#include "kcookiesmain.moc"