From kde-commits Wed Apr 20 17:10:13 2005 From: =?utf-8?q?=C4=B0smail=20D=C3=B6nmez?= Date: Wed, 20 Apr 2005 17:10:13 +0000 To: kde-commits Subject: kdelibs/kdeui Message-Id: <20050420171013.C2B5E672 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111401706321668 CVS commit by cartman: Zspell support. Patch by : Barış Metin (Partially) blessed by Zack Rusin :) CCMAIL:baris@uludag.org.tr M +17 -1 ksconfig.cpp 1.91 M +3 -2 ksconfig.h 1.49 M +5 -1 kspell.cpp 1.134 M +2 -2 kspell.h 1.59 --- kdelibs/kdeui/ksconfig.cpp #1.90:1.91 @@ -147,4 +147,5 @@ KSpellConfig::KSpellConfig( QWidget *par clientcombo->insertItem( i18n("Aspell") ); clientcombo->insertItem( i18n("Hspell") ); + clientcombo->insertItem( i18n("Zemberek") ); connect( clientcombo, SIGNAL (activated(int)), this, SLOT (sChangeClient(int)) ); @@ -232,4 +233,9 @@ KSpellConfig::sChangeClient( int i ) dictcombo->insertItem( i18n("Hebrew") ); sChangeEncoding( KS_E_CP1255 ); + } else if ( iclient == KS_CLIENT_ZEMBEREK ) { + langfnames.clear(); + dictcombo->clear(); + dictcombo->insertItem( i18n("Turkish") ); + sChangeEncoding( KS_E_UTF8 ); } else @@ -386,4 +392,9 @@ KSpellConfig::fillInDialog () langfnames.append(""); // Default dictcombo->insertItem( i18n("Hebrew") ); + } else if ( iclient == KS_CLIENT_ZEMBEREK ) { + langfnames.clear(); + dictcombo->clear(); + langfnames.append(""); + dictcombo->insertItem( i18n("Turkish") ); } else @@ -638,4 +649,9 @@ KSpellConfig::fillDicts( QComboBox* box, langfnames.append(""); // Default sChangeEncoding( KS_E_CP1255 ); + } else if ( iclient == KS_CLIENT_ZEMBEREK ) { + box->clear(); + box->insertItem( i18n("Turkish") ); + langfnames.append(""); + sChangeEncoding( KS_E_UTF8 ); } else { --- kdelibs/kdeui/ksconfig.h #1.48:1.49 @@ -57,5 +57,6 @@ enum KSpellClients { KS_CLIENT_ISPELL=0, KS_CLIENT_ASPELL=1, - KS_CLIENT_HSPELL=2 + KS_CLIENT_HSPELL=2, + KS_CLIENT_ZEMBEREK=3 }; --- kdelibs/kdeui/kspell.cpp #1.133:1.134 @@ -178,4 +178,8 @@ KSpell::startIspell() kdDebug(750) << "Using hspell" << endl; break; + case KS_CLIENT_ZEMBEREK: + *proc << "zpspell"; + kdDebug(750) << "Using zemberek(zpspell)" << endl; + break; } @@ -277,5 +281,5 @@ KSpell::startIspell() // -S : sort suggestions by probable correctness } - else // hspell doesn't need all the rest of the options + else // hspell and Zemberek(zpspell) doesn't need all the rest of the options *proc << "-a"; --- kdelibs/kdeui/kspell.h #1.58:1.59 @@ -35,6 +35,6 @@ class KSpellDlg; * %KDE Spellchecker * - * A %KDE programmer's interface to International ISpell 3.1, ASpell and - * HSpell. + * A %KDE programmer's interface to International ISpell 3.1, ASpell, + * HSpell and ZPSpell.. * A static method, modalCheck() is provided for convenient * access to the spellchecker.