Fixed help handbook sections for System Administration. This relates to bug 1850.

pull/2/head
Michele Calgaro 10 years ago
parent f1baae5fff
commit 1bd907fe3d

@ -667,7 +667,7 @@ stretched to fit all four corners.</para> </listitem>
</sect2> </sect2>
<sect2 id="tdmconfig-shutdown"> <sect2 id="tdmconfig-shutdown">
<title><guilabel>Shutdown</guilabel></title> <title>Shutdown</title>
<para><guilabel>Allow Shutdown</guilabel></para> <para><guilabel>Allow Shutdown</guilabel></para>
<para>Use this drop down box to choose who is allowed to shut down:</para> <para>Use this drop down box to choose who is allowed to shut down:</para>

@ -2034,6 +2034,23 @@ void KDisplayConfig::defaults()
load( true ); load( true );
} }
TQString KDisplayConfig::handbookSection() const
{
int index = base->mainTabContainerWidget->currentPageIndex();
if (index == 0)
return "displayconfig-global";
else if (index == 1)
return "displayconfig-resolution";
else if (index == 2)
return "displayconfig-brightness";
else if (index == 3)
return "displayconfig-power";
else if (index == 4)
return "displayconfig-colors";
else
return TQString::null;
}
TQString KDisplayConfig::quickHelp() const TQString KDisplayConfig::quickHelp() const
{ {
return i18n("<h1>Monitor & Display Configuration</h1> This module allows you to configure monitors attached to your" return i18n("<h1>Monitor & Display Configuration</h1> This module allows you to configure monitors attached to your"

@ -67,6 +67,7 @@ public:
void load( bool useDefaults); void load( bool useDefaults);
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
TQString quickHelp() const; TQString quickHelp() const;

@ -274,6 +274,25 @@ void TDModule::defaults()
} }
} }
TQString TDModule::handbookSection() const
{
int index = tab->currentPageIndex();
if (index == 0)
return "tdmconfig-appearance";
else if (index == 1)
return "tdmconfig-font";
else if (index == 2)
return "tdmconfig-background";
else if (index == 3)
return "tdmconfig-shutdown";
else if (index == 4)
return "tdmconfig-users";
else if (index == 5)
return "tdmconfig-convenience";
else
return TQString::null;
}
void TDModule::propagateUsers() void TDModule::propagateUsers()
{ {
groupmap.clear(); groupmap.clear();

@ -48,6 +48,7 @@ public:
void load(); void load();
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
public slots: public slots:

@ -2,7 +2,7 @@
Exec=tdecmshell tdm Exec=tdecmshell tdm
Icon=tdmconfig Icon=tdmconfig
Type=Application Type=Application
X-DocPath=tdm/index.html X-DocPath=tdm/configuring-tdm.html
X-TDE-SubstituteUID=true X-TDE-SubstituteUID=true

Loading…
Cancel
Save