Link tabs to handbook sections in Style and Panels tdecontrol modules

This relates to Bug 1850
pull/2/head
Timothy Pearson 10 years ago
parent 4e5a99f6d2
commit cc12a51c62

@ -45,7 +45,9 @@ url="help:/kcontrol/color/index.html">Colors</ulink>.</para>
<para>This panel is divided into three tabs: <guilabel>Style</guilabel>, <para>This panel is divided into three tabs: <guilabel>Style</guilabel>,
<guilabel>Effects</guilabel>, <guilabel>Toolbar</guilabel>.</para> <guilabel>Effects</guilabel>, <guilabel>Toolbar</guilabel>.</para>
<sect3 id="style-style"> </sect2>
<sect2 id="style-style">
<title><guilabel>Style</guilabel> tab</title> <title><guilabel>Style</guilabel> tab</title>
<para>The top list box, labeled <guilabel>Widget Style</guilabel> <para>The top list box, labeled <guilabel>Widget Style</guilabel>
@ -87,9 +89,9 @@ application.</para>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
--> -->
</sect3> </sect2>
<sect3 id="style-effects"> <sect2 id="style-effects">
<title><guilabel>Effects</guilabel> tab</title> <title><guilabel>Effects</guilabel> tab</title>
<para>If you click on the <guilabel>Effects</guilabel> tab, you will see the panel is divided <para>If you click on the <guilabel>Effects</guilabel> tab, you will see the panel is divided
@ -145,9 +147,9 @@ appearance that the menu is lifted off the application, and the menu is creating
to select the method &tde; uses to generate the transparency. You can use the slider to determine the level of to select the method &tde; uses to generate the transparency. You can use the slider to determine the level of
transparency in menus. A preview is visible on the right side of this section.</para> transparency in menus. A preview is visible on the right side of this section.</para>
</sect3> </sect2>
<sect3 id="style-misc"> <sect2 id="style-misc">
<title><guilabel>Toolbar</guilabel> tab</title> <title><guilabel>Toolbar</guilabel> tab</title>
<variablelist> <variablelist>
@ -180,8 +182,6 @@ If <guilabel>Icon Only</guilabel> is selected, then there is no text on the tool
</variablelist> </variablelist>
</sect3>
</sect2> </sect2>
</sect1> </sect1>

@ -65,6 +65,11 @@ TQString HelpWidget::text() const
bool HelpWidget::clicked(const TQString & _url) bool HelpWidget::clicked(const TQString & _url)
{ {
TQString textUrl = _url; TQString textUrl = _url;
if ( textUrl.isNull() ) {
return true;
}
ConfigModule* dockModule = _dock->module(); ConfigModule* dockModule = _dock->module();
if ( dockModule) { if ( dockModule) {
TQString section = dockModule->module()->handbookSection(); TQString section = dockModule->module()->handbookSection();
@ -73,9 +78,6 @@ bool HelpWidget::clicked(const TQString & _url)
} }
} }
if ( textUrl.isNull() )
return true;
if ( textUrl.find('@') > -1 ) { if ( textUrl.find('@') > -1 ) {
kapp->invokeMailer(textUrl); kapp->invokeMailer(textUrl);
return true; return true;

@ -92,3 +92,8 @@ void HidingConfig::defaults()
// while we manage some of the widgets ourselves // while we manage some of the widgets ourselves
TQTimer::singleShot(0, this, TQT_SLOT(changed())); TQTimer::singleShot(0, this, TQT_SLOT(changed()));
} }
TQString HidingConfig::handbookSection() const
{
return "panel-hiding";
}

@ -33,6 +33,8 @@ public:
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
public slots: public slots:
void notChanged(); void notChanged();
void aboutToNotifyKicker(); void aboutToNotifyKicker();

@ -92,3 +92,8 @@ void LookAndFeelConfig::defaults()
// while we manage some of the widgets ourselves // while we manage some of the widgets ourselves
TQTimer::singleShot(0, this, TQT_SLOT(changed())); TQTimer::singleShot(0, this, TQT_SLOT(changed()));
} }
TQString LookAndFeelConfig::handbookSection() const
{
return "panel-appearance";
}

@ -33,6 +33,8 @@ public:
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
public slots: public slots:
void notChanged(); void notChanged();
void aboutToNotifyKicker(); void aboutToNotifyKicker();

@ -92,3 +92,7 @@ TQString LookAndFeelConfig::quickHelp() const
" manipulation of the panel's buttons and applets."); " manipulation of the panel's buttons and applets.");
} }
TQString LookAndFeelConfig::handbookSection() const
{
return "panel-appearance";
}

@ -34,6 +34,8 @@ public:
void defaults(); void defaults();
TQString quickHelp() const; TQString quickHelp() const;
virtual TQString handbookSection() const;
public slots: public slots:
void configChanged(); void configChanged();

@ -358,7 +358,7 @@ TDEAboutData *KickerConfig::aboutData()
= new TDEAboutData(I18N_NOOP("kcmkicker"), = new TDEAboutData(I18N_NOOP("kcmkicker"),
I18N_NOOP("TDE Panel Control Module"), I18N_NOOP("TDE Panel Control Module"),
0, 0, TDEAboutData::License_GPL, 0, 0, TDEAboutData::License_GPL,
I18N_NOOP("(c) 2009 - 2010 Timothy Pearson\n" I18N_NOOP("(c) 2009 - 2014 Timothy Pearson\n"
"(c) 1999 - 2001 Matthias Elter\n" "(c) 1999 - 2001 Matthias Elter\n"
"(c) 2002 - 2003 Aaron J. Seigo")); "(c) 2002 - 2003 Aaron J. Seigo"));

@ -92,3 +92,8 @@ void MenuConfig::defaults()
// while we manage some of the widgets ourselves // while we manage some of the widgets ourselves
TQTimer::singleShot(0, this, TQT_SLOT(changed())); TQTimer::singleShot(0, this, TQT_SLOT(changed()));
} }
TQString MenuConfig::handbookSection() const
{
return "panel-menus";
}

@ -33,6 +33,8 @@ public:
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
public slots: public slots:
void notChanged(); void notChanged();
void aboutToNotifyKicker(); void aboutToNotifyKicker();

@ -92,3 +92,8 @@ void PositionConfig::defaults()
// while we manage some of the widgets ourselves // while we manage some of the widgets ourselves
TQTimer::singleShot(0, this, TQT_SLOT(changed())); TQTimer::singleShot(0, this, TQT_SLOT(changed()));
} }
TQString PositionConfig::handbookSection() const
{
return "panel-arrangement";
}

@ -33,6 +33,8 @@ public:
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
public slots: public slots:
void notChanged(); void notChanged();
void aboutToNotifyKicker(); void aboutToNotifyKicker();

@ -1142,9 +1142,15 @@ TQString KCMStyle::handbookSection() const
{ {
int index = tabWidget->currentPageIndex(); int index = tabWidget->currentPageIndex();
if (index == 0) { if (index == 0) {
//return "style-intro"; //return "style-style";
return TQString::null; return TQString::null;
} }
else if (index == 1) {
return "style-effects";
}
else if (index == 2) {
return "style-misc";
}
else { else {
return TQString::null; return TQString::null;
} }

Loading…
Cancel
Save