diff options
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" |