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

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

@ -25,6 +25,7 @@
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqtabwidget.h>
#include <tqcstring.h> #include <tqcstring.h>
#include <tqdatastream.h> #include <tqdatastream.h>
#include <tdeapplication.h> #include <tdeapplication.h>
@ -177,4 +178,20 @@ TQString KcmKRfb::quickHelp() const
" the TDE desktop sharing."); " 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 save();
void defaults(); void defaults();
TQString quickHelp() const; TQString quickHelp() const;
virtual TQString handbookSection() const;
private slots: private slots:
void setInvitationNum(int num); void setInvitationNum(int num);
void configChanged(); void configChanged();

@ -86,6 +86,20 @@ void KTalkdConfigModule::resizeEvent(TQResizeEvent *)
tab->setGeometry(0,0,width(),height()); 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" extern "C"
{ {
KDE_EXPORT TDECModule *create_ktalkd(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_ktalkd(TQWidget *parent, const char *)

@ -35,30 +35,30 @@ class KForwmachPageConfig;
class KTalkdConfigModule : public TDECModule class KTalkdConfigModule : public TDECModule
{ {
Q_OBJECT 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; TQTabWidget *tab;
KAnswmachPageConfig *answmachpage;
KForwmachPageConfig *forwmachpage; KSoundPageConfig *soundpage;
KAnswmachPageConfig *answmachpage;
KForwmachPageConfig *forwmachpage;
}; };
#endif #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" extern "C"
{ {
void init_wifi() void init_wifi()

@ -47,7 +47,9 @@ public:
IfConfigPage* addConfigTab( int count, bool vendor ); IfConfigPage* addConfigTab( int count, bool vendor );
void delConfigTab( int count ); void delConfigTab( int count );
static const int vendorBase = 10; static const int vendorBase = 10;
virtual TQString handbookSection() const;
protected slots: protected slots:
void slotActivate(); void slotActivate();

Loading…
Cancel
Save