Fixed help handbook sections for Regional & Accessibility. This relates to bug 1850.

pull/2/head
Michele Calgaro 10 years ago
parent f8903b3564
commit 8858fc1159

@ -33,9 +33,11 @@
audible cues, or who have difficulty using a keyboard.</para> audible cues, or who have difficulty using a keyboard.</para>
<para> <para>
The module is divided into two tabs: <link The module is divided into four tabs tabs:
linkend="access-bell"><guilabel>Bell</guilabel></link> and <link <link linkend="access-bell"><guilabel>Bell</guilabel></link>,
linkend="access-kb"><guilabel>Keyboard</guilabel></link>. <link linkend="modifier-keys"><guilabel>Modifier Keys</guilabel></link>,
<link linkend="keyboard-filters"><guilabel>Keyboard Filters</guilabel></link>
and <link linkend="action-gestures"><guilabel>Action Gestures</guilabel></link>.
</para> </para>
<sect3 id="access-bell"> <sect3 id="access-bell">
@ -89,16 +91,12 @@ bell. The default value is 500ms, or half a second.
</para> </para>
</sect3> </sect3>
</sect2>
<sect3 id="access-kb"> <sect2 id="modifier-keys">
<title><guilabel>Keyboard</guilabel></title> <title>Modifier Keys</title>
<para>There are three sections to this panel.</para>
<variablelist> <para><guilabel>Use Sticky Keys</guilabel></para>
<varlistentry>
<term><guilabel>Use Sticky Keys</guilabel></term>
<listitem>
<para> <para>
If this option is enabled, you can press and release the &Shift;, If this option is enabled, you can press and release the &Shift;,
&Alt; or &Ctrl; keys, and then press another key to get a key combo &Alt; or &Ctrl; keys, and then press another key to get a key combo
@ -144,9 +142,13 @@ de-select the &Shift; key, press it again.
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</listitem>
</varlistentry>
</sect2>
<sect2 id="keyboard-filters">
<title>Keyboard Filters</title>
<variablelist>
<varlistentry> <varlistentry>
<term><guilabel>Slow keys</guilabel></term> <term><guilabel>Slow keys</guilabel></term>
<listitem> <listitem>
@ -170,8 +172,11 @@ accepted. This prevents accidental multiple key strokes.
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</sect3> </sect2>
<sect2 id="action-gestures">
<title>Action Gestures</title>
<para>We apologize. This section has not been written yet.</para>
</sect2> </sect2>
</sect1> </sect1>

@ -160,6 +160,11 @@ scheme, discarding your changes.</para></important> </sect3>
</sect2> </sect2>
<sect2 id="key-bindings-shortcuts">
<title>Command shortcuts</title>
<para>We apologize. This section has not been written yet.</para>
</sect2>
<sect2 id="key-bindings-modifiers"> <sect2 id="key-bindings-modifiers">
<title>Modifier Keys</title> <title>Modifier Keys</title>

@ -235,8 +235,8 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
setAboutData( about ); setAboutData( about );
TQVBoxLayout *main = new TQVBoxLayout(this, 0, KDialogBase::spacingHint()); TQVBoxLayout *main = new TQVBoxLayout(this, 0, KDialogBase::spacingHint());
TQTabWidget *tab = new TQTabWidget(this); tabWidget = new TQTabWidget(this);
main->addWidget(tab); main->addWidget(tabWidget);
// bell settings --------------------------------------- // bell settings ---------------------------------------
TQWidget *bell = new TQWidget(this); TQWidget *bell = new TQWidget(this);
@ -341,7 +341,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
// ----------------------------------------------------- // -----------------------------------------------------
tab->addTab(bell, i18n("&Bell")); tabWidget->addTab(bell, i18n("&Bell"));
// modifier key settings ------------------------------- // modifier key settings -------------------------------
@ -404,7 +404,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
vbox->addStretch(); vbox->addStretch();
tab->addTab(modifiers, i18n("&Modifier Keys")); tabWidget->addTab(modifiers, i18n("&Modifier Keys"));
// key filter settings --------------------------------- // key filter settings ---------------------------------
TQWidget *filters = new TQWidget(this); TQWidget *filters = new TQWidget(this);
@ -480,7 +480,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
vbox->addStretch(); vbox->addStretch();
tab->addTab(filters, i18n("&Keyboard Filters")); tabWidget->addTab(filters, i18n("&Keyboard Filters"));
// gestures -------------------------------------------- // gestures --------------------------------------------
TQWidget *features = new TQWidget(this); TQWidget *features = new TQWidget(this);
@ -551,7 +551,7 @@ KAccessConfig::KAccessConfig(TQWidget *parent, const char *)
vbox->addStretch(); vbox->addStretch();
tab->addTab(features, i18n("Activation Gestures")); tabWidget->addTab(features, i18n("Activation Gestures"));
load(); load();
} }
@ -731,6 +731,22 @@ void KAccessConfig::save()
} }
TQString KAccessConfig::handbookSection() const
{
int index = tabWidget->currentPageIndex();
if (index == 0)
return "accessibility-intro";
else if (index == 1)
return "modifier-keys";
else if (index == 2)
return "keyboard-filters";
else if (index == 3)
return "action-gestures";
else
return TQString::null;
}
void KAccessConfig::defaults() void KAccessConfig::defaults()
{ {
load( true ); load( true );

@ -70,6 +70,7 @@ public:
void load(bool useDefaults); void load(bool useDefaults);
void save(); void save();
void defaults(); void defaults();
virtual TQString handbookSection() const;
protected slots: protected slots:
@ -83,6 +84,7 @@ protected slots:
private: private:
TQTabWidget* tabWidget;
TQCheckBox *systemBell, *customBell, *visibleBell; TQCheckBox *systemBell, *customBell, *visibleBell;
TQRadioButton *invertScreen, *flashScreen; TQRadioButton *invertScreen, *flashScreen;
TQLabel *soundLabel, *colorLabel; TQLabel *soundLabel, *colorLabel;

@ -129,12 +129,10 @@ TQString KeyModule::handbookSection() const
{ {
int index = m_pTab->currentPageIndex(); int index = m_pTab->currentPageIndex();
if (index == 0) { if (index == 0) {
//return "key-bindings-intro"; return "key-bindings-intro";
return TQString::null;
} }
else if (index == 1) { else if (index == 1) {
//return "key-bindings-use"; return "key-bindings-shortcuts";
return TQString::null;
} }
else if (index == 2) { else if (index == 2) {
return "key-bindings-modifiers"; return "key-bindings-modifiers";

@ -206,6 +206,23 @@ void TDELocaleApplication::save()
emit changed(false); emit changed(false);
} }
TQString TDELocaleApplication::handbookSection() const
{
int index = m_tab->currentPageIndex();
if (index == 0)
return "locale-locale";
else if (index == 1)
return "locale-numbers";
else if (index == 2)
return "locale-money";
else if (index == 3)
return "locale-datetime";
else if (index == 4)
return "locale-other";
else
return TQString::null;
}
void TDELocaleApplication::defaults() void TDELocaleApplication::defaults()
{ {
load( true ); load( true );

@ -53,6 +53,7 @@ public:
virtual void save(); virtual void save();
virtual void defaults(); virtual void defaults();
virtual TQString quickHelp() const; virtual TQString quickHelp() const;
virtual TQString handbookSection() const;
signals: signals:
void languageChanged(); void languageChanged();
@ -68,14 +69,14 @@ public slots:
private: private:
TDELocale *m_locale; TDELocale *m_locale;
TQTabWidget *m_tab; TQTabWidget *m_tab;
TDELocaleConfig *m_localemain; TDELocaleConfig *m_localemain;
TDELocaleConfigNumber *m_localenum; TDELocaleConfigNumber *m_localenum;
TDELocaleConfigMoney *m_localemon; TDELocaleConfigMoney *m_localemon;
TDELocaleConfigTime *m_localetime; TDELocaleConfigTime *m_localetime;
TDELocaleConfigOther *m_localeother; TDELocaleConfigOther *m_localeother;
TQGroupBox *m_gbox; TQGroupBox *m_gbox;
TDELocaleSample *m_sample; TDELocaleSample *m_sample;
TDEConfig * m_globalConfig; TDEConfig * m_globalConfig;

@ -329,6 +329,20 @@ void LayoutConfig::save()
} }
TQString LayoutConfig::handbookSection() const
{
int index = widget->tabWidget->currentPageIndex();
if (index == 0)
return "layout-config";
else if (index == 1)
return "switching-config";
else if (index == 2)
return "xkboptions-config";
else
return TQString::null;
}
void LayoutConfig::updateStickyLimit() void LayoutConfig::updateStickyLimit()
{ {
int layoutsCnt = widget->listLayoutsDst->childCount(); int layoutsCnt = widget->listLayoutsDst->childCount();

@ -26,7 +26,8 @@ public:
void save(); void save();
void defaults(); void defaults();
void initUI(); void initUI();
virtual TQString handbookSection() const;
protected: protected:
TQString createOptionString(); TQString createOptionString();
void updateIndicator(TQListViewItem* selLayout); void updateIndicator(TQListViewItem* selLayout);

Loading…
Cancel
Save