18#ifndef KDELIBS_KSCONFIG_H
19#define KDELIBS_KSCONFIG_H
23#include <tqstringlist.h>
25#include <tdelibs_export.h>
32class KSpellConfigPrivate;
103 KSpellConfig( TQWidget *parent=
nullptr,
const char *name=
nullptr,
104 KSpellConfig *spellConfig=
nullptr,
bool addHelpButton =
true );
134 void fillDicts( TQComboBox* box, TQStringList* dictionaries =
nullptr );
177 void setDictFromList(
bool dfl );
183 void setEncoding(
int enctype );
184 void setClient(
int client );
190 bool runTogether()
const;
191 const TQString dictionary()
const;
192 bool dictFromList()
const;
194 int encoding()
const;
195 TQStringList ignoreList()
const;
196 TQStringList replaceAllList()
const;
207 bool readGlobalSettings();
224 bool interpret( TQString &fname, TQString &lname, TQString &hname );
247 void sRunTogether(
bool );
248 void sDictionary(
bool );
249 void sPathDictionary(
bool );
250 void sSetDictionary(
int );
251 void sChangeEncoding(
int );
252 void sChangeClient(
int );
265 TQStringList ignorelist;
266 enum {rdictlist=3, rencoding=4, rhelp=6};
270 TQCheckBox *cb1, *cb2;
275 TQComboBox *dictcombo, *encodingcombo, *clientcombo;
277 TQStringList langfnames;
280 void configChanged();
283 KSpellConfigPrivate *d;
284 void getAvailDictsIspell();
285 void getAvailDictsAspell();
void setIgnoreList(TQStringList _ignorelist)
@sect Options setting routines.
bool writeGlobalSettings()
Call this method before this class is deleted if you want the settings you have (or the user has) cho...
bool interpret(TQString &fname, TQString &lname, TQString &hname)
This takes a dictionary file name and provides both a language abbreviation appropriate for the $LANG...
void setDictionary(const TQString qs)
Set the name of the dictionary to use.
void activateHelp(void)
Use this function to activate the help information for this widget.
void setNoRootAffix(bool)
Set an ISpell option.
void setReplaceAllList(TQStringList _replaceAllList)
The _replaceAllList contains word you like that replace word.
KSpellConfig(TQWidget *parent=nullptr, const char *name=nullptr, KSpellConfig *spellConfig=nullptr, bool addHelpButton=true)
Constructs a KSpellConfig with default or custom settings.
bool noRootAffix() const
Options reading routines.
void setRunTogether(bool)
Set an ISpell option.
int client() const
Spell checker client, see KSpellClients.
void fillDicts(TQComboBox *box, TQStringList *dictionaries=nullptr)
Get the translated dictionary names and, optionally, the corresponding internal dictionary names.
void sHelp()
Invokes the help documentation for tdespell.