summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdeio
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/tdeio')
-rw-r--r--kcontrol/tdeio/kcookiesmain.cpp25
-rw-r--r--kcontrol/tdeio/kcookiesmain.h4
-rw-r--r--kcontrol/tdeio/kproxydlg.cpp17
-rw-r--r--kcontrol/tdeio/kproxydlg.h2
-rw-r--r--kcontrol/tdeio/main.cpp33
-rw-r--r--kcontrol/tdeio/main.h5
6 files changed, 84 insertions, 2 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"
diff --git a/kcontrol/tdeio/kcookiesmain.h b/kcontrol/tdeio/kcookiesmain.h
index 14b202ff4..99591c8ad 100644
--- a/kcontrol/tdeio/kcookiesmain.h
+++ b/kcontrol/tdeio/kcookiesmain.h
@@ -27,11 +27,15 @@ public:
virtual void defaults();
virtual TQString quickHelp() const;
+ virtual TQString handbookSection() const;
+
private:
TQTabWidget* tab;
KCookiesPolicies* policies;
KCookiesManagement* management;
+ int policiesTabNumber;
+ int managementTabNumber;
};
#endif // __KCOOKIESMAIN_H
diff --git a/kcontrol/tdeio/kproxydlg.cpp b/kcontrol/tdeio/kproxydlg.cpp
index 7bd082eda..9253916d7 100644
--- a/kcontrol/tdeio/kproxydlg.cpp
+++ b/kcontrol/tdeio/kproxydlg.cpp
@@ -44,7 +44,7 @@ KProxyOptions::KProxyOptions (TQWidget* parent )
:TDECModule (parent, "kcmtdeio")
{
TQVBoxLayout *layout = new TQVBoxLayout(this);
-
+
mTab = new TQTabWidget(this);
layout->addWidget(mTab);
@@ -94,6 +94,21 @@ TQString KProxyOptions::quickHelp() const
return TQString::null;
}
+TQString KProxyOptions::handbookSection() const
+{
+ int index = mTab->currentPageIndex();
+ if (index == 0) {
+ //return "proxies-intro";
+ return TQString::null;
+ }
+ else if (index == 1) {
+ return "socks";
+ }
+ else {
+ return TQString::null;
+ }
+}
+
KProxyDialog::KProxyDialog( TQWidget* parent)
:TDECModule( parent, "kcmtdeio" )
diff --git a/kcontrol/tdeio/kproxydlg.h b/kcontrol/tdeio/kproxydlg.h
index 30bdb935b..d70921ef9 100644
--- a/kcontrol/tdeio/kproxydlg.h
+++ b/kcontrol/tdeio/kproxydlg.h
@@ -44,6 +44,8 @@ public:
virtual void defaults();
virtual TQString quickHelp() const;
+ virtual TQString handbookSection() const;
+
private:
TDECModule* mProxy;
TDECModule* mSocks;
diff --git a/kcontrol/tdeio/main.cpp b/kcontrol/tdeio/main.cpp
index 878624393..7fb9b4394 100644
--- a/kcontrol/tdeio/main.cpp
+++ b/kcontrol/tdeio/main.cpp
@@ -81,7 +81,12 @@ LanBrowser::LanBrowser(TQWidget *parent)
:TDECModule(parent,"kcmtdeio")
,layout(this)
,tabs(this)
+,smbPageTabNumber(-1)
+,lisaPageTabNumber(-1)
+,tdeioLanPageTabNumber(-1)
{
+ int currentTabNumber = 0;
+
setQuickHelp( i18n("<h1>Local Network Browsing</h1>Here you setup your "
"<b>\"Network Neighborhood\"</b>. You "
"can use either the LISa daemon and the lan:/ ioslave, or the "
@@ -103,12 +108,16 @@ LanBrowser::LanBrowser(TQWidget *parent)
smbPage = create_smb(&tabs, 0);
tabs.addTab(smbPage, i18n("&Windows Shares"));
+ smbPageTabNumber = currentTabNumber;
+ currentTabNumber++;
connect(smbPage,TQT_SIGNAL(changed(bool)), TQT_SLOT( changed() ));
lisaPage = TDECModuleLoader::loadModule("kcmlisa", TDECModuleLoader::None, &tabs);
if (lisaPage)
{
tabs.addTab(lisaPage,i18n("&LISa Daemon"));
+ lisaPageTabNumber = currentTabNumber;
+ currentTabNumber++;
connect(lisaPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() ));
}
@@ -123,6 +132,8 @@ LanBrowser::LanBrowser(TQWidget *parent)
if (tdeioLanPage)
{
tabs.addTab(tdeioLanPage,i18n("lan:/ Iosla&ve"));
+ tdeioLanPageTabNumber = currentTabNumber;
+ currentTabNumber++;
connect(tdeioLanPage,TQT_SIGNAL(changed()), TQT_SLOT( changed() ));
}
@@ -154,5 +165,27 @@ void LanBrowser::save()
emit changed(false);
}
+TQString LanBrowser::handbookSection() const
+{
+ int index = tabs.currentPageIndex();
+ if (index == smbPageTabNumber) {
+ //return "windows-shares";
+ return TQString::null;
+ }
+ else if (index == lisaPageTabNumber) {
+ // FIXME
+ // Documentation does not yet exist!
+ return "";
+ }
+ else if (index == tdeioLanPageTabNumber) {
+ // FIXME
+ // Documentation does not yet exist!
+ return "";
+ }
+ else {
+ return TQString::null;
+ }
+}
+
#include "main.moc"
diff --git a/kcontrol/tdeio/main.h b/kcontrol/tdeio/main.h
index 23451b2b7..3f1fb4d47 100644
--- a/kcontrol/tdeio/main.h
+++ b/kcontrol/tdeio/main.h
@@ -34,6 +34,8 @@ class LanBrowser:public TDECModule
virtual void load();
virtual void save();
+ virtual TQString handbookSection() const;
+
private:
TQVBoxLayout layout;
TQTabWidget tabs;
@@ -41,6 +43,9 @@ class LanBrowser:public TDECModule
TDECModule *lisaPage;
// TDECModule *resLisaPage;
TDECModule *tdeioLanPage;
+ int smbPageTabNumber;
+ int lisaPageTabNumber;
+ int tdeioLanPageTabNumber;
};
#endif