Fixed help handbook sections for TDE Components. This relates to bug 1850.

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

@ -32,9 +32,6 @@
url="help:/kcontrol/tdehtml/index.html">own configuration
modules</ulink>.</para></note>
<sect2 id="fileman-use">
<title>Use</title>
<para> The configuration options for the file manager are
organized under tabs as follows:</para>
@ -61,7 +58,7 @@ previews.</para>
</varlistentry>
</variablelist>
<sect3 id="fileman-appearance">
<sect2 id="fileman-appearance">
<title>Appearance</title>
<para>The following settings determine how text and colors are displayed in
@ -129,9 +126,9 @@ size.</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
<sect3 id="fileman-behav">
<sect2 id="fileman-behav">
<title>Behavior</title>
<variablelist>
@ -232,9 +229,9 @@ folder you will be shown.</para>
window. If any box is checked, &konqueror; asks for confirmation before
performing the corresponding action.</para>
</sect3>
</sect2>
<sect3>
<sect2 id="fileman-previews">
<title>Previews</title>
<para>&konqueror; has a
@ -288,8 +285,6 @@ of these. This will save time waiting for thumbnails to be created
when viewing a folder full of images you have not previously seen in
&konqueror;.</para>
</sect3>
</sect2>
</sect1>

@ -65,13 +65,14 @@ TQString HelpWidget::text() const
bool HelpWidget::clicked(const TQString & _url)
{
TQString textUrl = _url;
if ( textUrl.isNull() ) {
return true;
}
ConfigModule* dockModule = _dock->module();
if ( dockModule) {
if (dockModule) {
TQString localDocPath = dockModule->module()->handbookDocPath();
if (localDocPath != "")
textUrl = localDocPath;
if (textUrl.isNull())
return true;
TQString section = dockModule->module()->handbookSection();
if (section != "") {
textUrl = TQString( "%1#%2" ).arg( textUrl ).arg( section );

@ -320,6 +320,14 @@ void ProxyWidget::clientChanged(bool state)
emit changed(state);
}
TQString ProxyWidget::handbookDocPath() const
{
if (_client)
return _client->handbookDocPath();
else
return TQString::null;
}
TQString ProxyWidget::handbookSection() const
{
if (_client)

@ -46,6 +46,7 @@ public:
~ProxyWidget();
TQString quickHelp() const;
TQString handbookDocPath() const;
TQString handbookSection() const;
const TDEAboutData *aboutData() const;

@ -291,6 +291,11 @@ void KBehaviourOptions::save()
kapp->dcopClient()->send( "kdesktop", "KDesktopIface", "configure()", data );
}
TQString KBehaviourOptions::handbookSection() const
{
return "fileman-behav";
}
void KBehaviourOptions::updateWinPixmap(bool b)
{
if (b)

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

@ -95,6 +95,28 @@ void KBrowserOptions::save()
kuick->save();
}
TQString KBrowserOptions::handbookDocPath() const
{
int index = m_tab->currentPageIndex();
if (kuick && index == 3)
return "konq-plugins/kuick/index.html";
else
return TQString::null;
}
TQString KBrowserOptions::handbookSection() const
{
int index = m_tab->currentPageIndex();
if (index == 0)
return "fileman-appearance";
else if (index == 1)
return "fileman-behav";
else if (index == 2)
return "fileman-previews";
else
return TQString::null;
}
TQString KBrowserOptions::quickHelp() const
{
TQWidget *w = m_tab->currentPage();

@ -37,6 +37,8 @@ public:
virtual void save();
virtual void defaults();
virtual TQString quickHelp() const;
virtual TQString handbookDocPath() const;
virtual TQString handbookSection() const;
private:

@ -344,6 +344,11 @@ void KonqFontOptions::save()
kapp->dcopClient()->send( appname, "KDesktopIface", "configure()", data );
}
TQString KonqFontOptions::handbookSection() const
{
return "fileman-appearance";
}
void KonqFontOptions::slotTextBackgroundClicked()
{
m_pTextBackground->setEnabled( m_cbTextBackground->isChecked() );

@ -60,6 +60,7 @@ public:
virtual void load( bool readDefaults );
virtual void save();
virtual void defaults();
virtual TQString handbookSection() const;
public slots:
void slotFontSize(int i);

@ -211,6 +211,11 @@ void KPreviewOptions::save()
kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data );
}
TQString KPreviewOptions::handbookSection() const
{
return "fileman-previews";
}
void KPreviewOptions::changed()
{
emit TDECModule::changed(true);

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

Loading…
Cancel
Save