diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-10 14:55:30 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-10 14:55:30 -0500 |
commit | 0014712b085cecda712bbbdd31e618a1ada2a4e3 (patch) | |
tree | fab9eeb029508face395fb9fa962365527b57277 /kcontrol/tdeio/main.cpp | |
parent | cc12a51c629cfaec41a6170a480ea0a757b26f54 (diff) | |
download | tdebase-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/main.cpp')
-rw-r--r-- | kcontrol/tdeio/main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
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" |