org.kde.koala
public class KSpellConfig extends QWidget
See Also: KSpell
UNKNOWN: A configuration class/dialog for KSpell.
Field Summary | |
---|---|
static int | rdictlist |
static int | rencoding |
static int | rhelp |
Constructor Summary | |
---|---|
protected | KSpellConfig(Class dummy) |
KSpellConfig(QWidget parent, String name, KSpellConfig spellConfig, boolean addHelpButton)
Constructs a KSpellConfig with default or custom settings. | |
KSpellConfig(QWidget parent, String name, KSpellConfig spellConfig) | |
KSpellConfig(QWidget parent, String name) | |
KSpellConfig(QWidget parent) | |
KSpellConfig() | |
KSpellConfig(KSpellConfig arg1) |
Method Summary | |
---|---|
void | activateHelp()
Use this function to activate the help information for this
widget. |
String | className() |
int | client() |
boolean | dictFromList() |
String | dictionary() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
int | encoding() |
void | fillDicts(QComboBox box, String[] dictionaries)
Fills box with the human readable, translated dictionary names and
selects the currently used dictionary (this will be the global
dictionary if you call KSpellConfig directly after the constructor).
|
void | fillDicts(QComboBox box) |
protected void | fillInDialog() |
protected void | finalize() Deletes the wrapped C++ instance |
ArrayList | ignoreList() |
protected boolean | interpret(StringBuffer fname, StringBuffer lname, StringBuffer hname)
This takes a dictionary file name and provides both a language
abbreviation appropriate for the $LANG variable, and a
human-readable name.
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
boolean | noRootAffix()
Options reading routines. |
boolean | readGlobalSettings() |
ArrayList | replaceAllList() |
boolean | runTogether() |
protected void | sChangeClient(int arg1) |
protected void | sChangeEncoding(int arg1) |
protected void | sDictionary(boolean arg1) |
void | setClient(int client) |
void | setDictFromList(boolean dfl) |
void | setDictionary(String qs)
Set the name of the dictionary to use. |
void | setEncoding(int enctype) |
void | setIgnoreList(String[] _ignorelist)
The _ignorelist contains words you'd like KSpell
to ignore when it is spellchecking. |
void | setNoRootAffix(boolean arg1)
Set an ISpell option.
|
void | setReplaceAllList(String[] _replaceAllList)
The _replaceAllList contains word you like that replace
word. |
void | setRunTogether(boolean arg1)
Set an ISpell option.
|
protected void | sHelp()
Invokes the help documentation for kspell |
protected void | sNoAff(boolean arg1) |
protected void | sPathDictionary(boolean arg1) |
protected void | sRunTogether(boolean arg1) |
protected void | sSetDictionary(int arg1) |
boolean | writeGlobalSettings()
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. |
Parameters: parent Parent of the widget. name Widget name. spellConfig Predefined configuration. If this parameter is 0, a default configuration will be used. addHelpButton Enabled or hides a help button. See activateHelp for more information.
UNKNOWN: Constructs a KSpellConfig with default or custom settings.
UNKNOWN: Use this function to activate the help information for this widget.
box
with the human readable, translated dictionary names and
selects the currently used dictionary (this will be the global
dictionary if you call KSpellConfig directly after the constructor).
If dictionaries
isn't 0 then dictionaries
will be filled with the
corresponding internal dictionary names that are necessary to set the
dictionary with KSpellConfig.Parameters: box Will be filled with the translated dictionary names. dictionaries Will be filled with the internal dictionary names.
UNKNOWN: Get the translated dictionary names and, optionally, the corresponding internal dictionary names.
Parameters: fname the dictionary name file (input) lname the language abbreviation, such as de for German (output) hname the human-readable name, such as Deutsch (output)
Returns: true if lname.data()==$LANG
UNKNOWN: This takes a dictionary file name and provides both a language abbreviation appropriate for the $LANG variable, and a human-readable name.
UNKNOWN: Options reading routines.
UNKNOWN: Set the name of the dictionary to use.
UNKNOWN:
_ignorelist
contains words you'd like KSpell
to ignore when it is spellchecking. When you get a KSpellConfig
object back from KSpell (using KSpell.kcConfig()),
the _ignorelist
contains whatever was put in by you plus
any words the user has chosen to ignore via the dialog box.
It may be useful to save this list with the document being
edited to facilitate quicker future spellchecking.UNKNOWN:
true
, don't create root-affix combinations.UNKNOWN: Set an ISpell option.
_replaceAllList
contains word you like that replace
word. Be careful that this list contains word which is replaced
and new word.UNKNOWN: The _replaceAllList
contains word you like that replace word.
true
, treat run-together words a valid.UNKNOWN: Set an ISpell option.
UNKNOWN: Invokes the help documentation for kspell
UNKNOWN: 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.