Add handbookSection support to tabbed "Internet & Network" TDEControl modules

This relates to Bug 1850
pull/1/head
Timothy Pearson 10 years ago
parent fa1a997a1f
commit 2cffbbcadc

@ -349,6 +349,9 @@ screenshot below:
</screenshot>
</para>
<sect2 id="rfb-access">
<title><guilabel>Access</guilabel></title>
<para>
The <guilabel>Access</guilabel> tab allows you configure settings
related to access to the &krfb; server.
@ -395,6 +398,11 @@ password is securely guarded.
</para>
</note>
</sect2>
<sect2 id="rfb-session">
<title><guilabel>Session</guilabel></title>
<para>
&krfb; allows you to control whether the background image is passed to
the client, or not. This is controlled using a checkbox in the
@ -424,6 +432,11 @@ image. If you leave it blank, it is up to the client whether the
background image is transferred or not transferred.
</para>
</sect2>
<sect2 id="rfb-network">
<title><guilabel>Network</guilabel></title>
<para>
The <guilabel>Network</guilabel> tab allows control over the port that
&krfb; uses, as shown below.
@ -457,6 +470,8 @@ Protocol is turned on, this will automatically deal with identifying
the correct port.
</para>
</sect2>
</sect1>
<sect1 id="krfb-connection">

@ -1428,6 +1428,20 @@ TQString KcmSambaConf::quickHelp() const
return i18n("<h1>Samba Configuration</h1> here you can configure your SAMBA server.");
}
TQString KcmSambaConf::handbookSection() const
{
// FIXME
// No context-sensitive help documentation currently exists for this module!
int index = _interface->mainTab->currentPageIndex();
if (index == 0) {
//return "";
return TQString::null;
}
else {
return TQString::null;
}
}
// ------------------------------------------------------------------------
extern "C"

@ -4,7 +4,7 @@
begin : Mon Apr 8 13:35:56 CEST 2002
copyright : (C) 2002 by Christian Nitschkowski
email : segfault_ii@web.de
copyright : (C) 2002-2003 by Jan Schäfer
copyright : (C) 2002-2003 by Jan Sch<EFBFBD>fer
email : janschaefer@users.sourceforge.net
***************************************************************************/
@ -80,6 +80,8 @@ class KcmSambaConf: public TDECModule
int buttons();
TQString quickHelp() const;
virtual TQString handbookSection() const;
public slots:
void configChanged();

@ -25,6 +25,7 @@
#include <tqradiobutton.h>
#include <tqlineedit.h>
#include <tqbuttongroup.h>
#include <tqtabwidget.h>
#include <tqcstring.h>
#include <tqdatastream.h>
#include <tdeapplication.h>
@ -177,4 +178,20 @@ TQString KcmKRfb::quickHelp() const
" the TDE desktop sharing.");
}
TQString KcmKRfb::handbookSection() const
{
int index = m_confWidget->TabWidget2->currentPageIndex();
if (index == 0) {
//return "rfb-access";
return TQString::null;
}
else if (index == 1) {
return "rfb-session";
}
else if (index == 2) {
return "rfb-network";
}
else {
return TQString::null;
}
}

@ -39,6 +39,8 @@ public:
void save();
void defaults();
TQString quickHelp() const;
virtual TQString handbookSection() const;
private slots:
void setInvitationNum(int num);
void configChanged();

@ -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 *)

@ -36,29 +36,29 @@ class KTalkdConfigModule : public TDECModule
{
Q_OBJECT
public:
public:
KTalkdConfigModule(TQWidget *parent, const char *name);
virtual ~KTalkdConfigModule();
KTalkdConfigModule(TQWidget *parent, const char *name);
virtual ~KTalkdConfigModule();
//void init();
void load();
void save();
void defaults();
//void init();
void load();
void save();
void defaults();
virtual TQString handbookSection() const;
protected:
void resizeEvent(TQResizeEvent *);
protected:
void resizeEvent(TQResizeEvent *);
private:
KSimpleConfig *config;
KSimpleConfig *announceconfig;
private:
KSimpleConfig *config;
KSimpleConfig *announceconfig;
TQTabWidget *tab;
TQTabWidget *tab;
KSoundPageConfig *soundpage;
KAnswmachPageConfig *answmachpage;
KForwmachPageConfig *forwmachpage;
KSoundPageConfig *soundpage;
KAnswmachPageConfig *answmachpage;
KForwmachPageConfig *forwmachpage;
};
#endif

@ -370,6 +370,20 @@ if (!failedParts.empty()) KMessageBox::informationList(0,i18n("The following set
}
TQString KCMWifi::handbookSection() const
{
// FIXME
// No context-sensitive help documentation currently exists for this module!
int index = tabs->currentPageIndex();
if (index == 0) {
//return "";
return TQString::null;
}
else {
return TQString::null;
}
}
extern "C"
{
void init_wifi()

@ -49,6 +49,8 @@ public:
static const int vendorBase = 10;
virtual TQString handbookSection() const;
protected slots:
void slotActivate();
void slotChanged();

Loading…
Cancel
Save