summaryrefslogtreecommitdiffstats
path: root/ktalkd
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-10-10 14:57:12 -0500
committerTimothy Pearson <[email protected]>2014-10-10 14:57:12 -0500
commit2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff (patch)
treeb35f0616271a50f425343acbd02962dc9272db73 /ktalkd
parentfa1a997a1fb5dd3be69fc2e31c098247d512465a (diff)
downloadtdenetwork-2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff.tar.gz
tdenetwork-2cffbbcadc505c1dcdeab6cd16dfa21daf7816ff.zip
Add handbookSection support to tabbed "Internet & Network" TDEControl modules
This relates to Bug 1850
Diffstat (limited to 'ktalkd')
-rw-r--r--ktalkd/kcmktalkd/main.cpp14
-rw-r--r--ktalkd/kcmktalkd/main.h44
2 files changed, 36 insertions, 22 deletions
diff --git a/ktalkd/kcmktalkd/main.cpp b/ktalkd/kcmktalkd/main.cpp
index 89bf8db5..29c4cbf2 100644
--- a/ktalkd/kcmktalkd/main.cpp
+++ b/ktalkd/kcmktalkd/main.cpp
@@ -86,6 +86,20 @@ void KTalkdConfigModule::resizeEvent(TQResizeEvent *)
tab->setGeometry(0,0,width(),height());
}
+TQString KTalkdConfigModule::handbookSection() const
+{
+ // FIXME
+ // No context-sensitive help documentation currently exists for this module!
+ int index = tab->currentPageIndex();
+ if (index == 0) {
+ //return "";
+ return TQString::null;
+ }
+ else {
+ return TQString::null;
+ }
+}
+
extern "C"
{
KDE_EXPORT TDECModule *create_ktalkd(TQWidget *parent, const char *)
diff --git a/ktalkd/kcmktalkd/main.h b/ktalkd/kcmktalkd/main.h
index 1b55b425..5e5a3f43 100644
--- a/ktalkd/kcmktalkd/main.h
+++ b/ktalkd/kcmktalkd/main.h
@@ -35,30 +35,30 @@ class KForwmachPageConfig;
class KTalkdConfigModule : public TDECModule
{
Q_OBJECT
-
-
-public:
-
- KTalkdConfigModule(TQWidget *parent, const char *name);
- virtual ~KTalkdConfigModule();
-
- //void init();
- void load();
- void save();
- void defaults();
-
-protected:
- void resizeEvent(TQResizeEvent *);
-
-private:
- KSimpleConfig *config;
- KSimpleConfig *announceconfig;
- TQTabWidget *tab;
+ public:
+
+ KTalkdConfigModule(TQWidget *parent, const char *name);
+ virtual ~KTalkdConfigModule();
+
+ //void init();
+ void load();
+ void save();
+ void defaults();
+
+ virtual TQString handbookSection() const;
+ protected:
+ void resizeEvent(TQResizeEvent *);
+
+ private:
+ KSimpleConfig *config;
+ KSimpleConfig *announceconfig;
- KSoundPageConfig *soundpage;
- KAnswmachPageConfig *answmachpage;
- KForwmachPageConfig *forwmachpage;
+ TQTabWidget *tab;
+
+ KSoundPageConfig *soundpage;
+ KAnswmachPageConfig *answmachpage;
+ KForwmachPageConfig *forwmachpage;
};
#endif