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/samba | |
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/samba')
-rw-r--r-- | kcontrol/samba/main.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/kcontrol/samba/main.cpp b/kcontrol/samba/main.cpp index 300b805fe..d5af28c1a 100644 --- a/kcontrol/samba/main.cpp +++ b/kcontrol/samba/main.cpp @@ -37,6 +37,8 @@ class SambaContainer:public TDECModule virtual void load(); virtual void save(); + virtual TQString handbookSection() const; + private: TDEConfig config; TQTabWidget tabs; @@ -71,7 +73,7 @@ SambaContainer::SambaContainer(TQWidget *parent, const char* name, const TQStrin setQuickHelp( i18n("The Samba and NFS Status Monitor is a front end to the programs" " <em>smbstatus</em> and <em>showmount</em>. Smbstatus reports on current" " Samba connections, and is part of the suite of Samba tools, which" - " implements the SMB (Session Message Block) protocol, also called the" + " implements the SMB (Server Message Block) protocol, also called the" " NetBIOS or LanManager protocol. This protocol can be used to provide" " printer sharing or drive sharing services on a network including" " machines running the various flavors of Microsoft Windows.<p>" @@ -117,3 +119,23 @@ void SambaContainer::save() config.sync(); } +TQString SambaContainer::handbookSection() const +{ + int index = tabs.currentPageIndex(); + if (index == 0) { + //return "smb-exports"; + return TQString::null; + } + else if (index == 1) { + return "smb-imports"; + } + else if (index == 2) { + return "smb-log"; + } + else if (index == 3) { + return "smb-statistics"; + } + else { + return TQString::null; + } +} |