KSpellConfig Class Reference

[kspell Index] [kspell Hierarchy] [Headers]


Configuration dialog for KSpell More...

#include <ksconfig.h>

Inherits: QWidget (qt)

Public Members

Protected Members

Protected Slots


Detailed Description

KSpellConfig v 0.2

KSpellConfig is config class for KSpell. It contains all of the options settings. The options are set to default values by the constructor and can be reset either by using the public interface or by using KSpellConfig as a widget in a dialog (or, preferably a tabbed dialog using QTabDialog or KTabCtl) and letting the user change the settings. This way an application that uses KSpell can either rely on the default settings (in the simplest case), or offer a dialog to configure KSpell, or offer a dialog to configure KSpell _for_this_app_only_ (in which case, the application should save the settings for use next time it is run).

KSpellConfig's favorite size (when used as a widget) is (width, height) = (490x317)

See Also: KSpell


KSpellConfig(QWidget *parent=0, char *name=0, KSpellConfig *_ksc=0) [public]

Create a KSpellConfig with the default options set if _ksc==0, or copy the options in _ksc. This constructor also sets up the dialog.

void setNoRootAffix(bool) [public]

Options setting routines. The ignorelist is a QStrList that contains words you'd like KSpell to ignore when it it spellchecking. When you get a KSpellConfig object back from KSpell (using KSpell::kcConfig()), the ignorlist contains whatever was put in by you plus any words the user has chosen to ignore via the dialog box. It might be useful to save this list with the document being edited to facilitate quicker future spellchecking.

bool noRootAffix(void) const [public]

Options reading routines.

bool writeGlobalSettings(void) [public]

Call this method before this class is deleted if you want the settings you have (or the user has) chosen to become the global, default settings.

int enc[protected]

Tells you what a good size is for the ksconfig widget.

bool interpret(QString &fname, QString &lname, QString &hname) [protected]

This takes a dictionary file name (fname) and returns a language abbreviation (lname; like de for German), appropriate for the $LANG variable, and a human-readble name (hname; like "Deutsch").

It also truncates ".aff" at the end of fname.

TRUE is returned if lname.data()==$LANG


  • Author: David Sweet dsweet@wheatcomputers.com
  • Version: $Id: KSpellConfig.html.in,v 1.1.1.1 2000/02/09 22:28:20 tasin Exp $
  • Documentation generated by tasin@cd1 on Die Nov 30 17:32:44 CET 1999
Kdoc