KDE3Support
#include <k3sconfig.h>
Public Slots | |
void | activateHelp (void) |
Signals | |
void | configChanged () |
Public Member Functions | |
K3SpellConfig (QWidget *parent=0, K3SpellConfig *spellConfig=0, bool addHelpButton=true) | |
K3SpellConfig (const K3SpellConfig &) | |
virtual | ~K3SpellConfig () |
int | client () const |
bool | dictFromList () const |
const QString | dictionary () const |
bool | doSpellChecking () const |
int | encoding () const |
void | fillDicts (QComboBox *box, QStringList *dictionaries=0) |
QStringList | ignoreList () const |
bool | noRootAffix () const |
void | operator= (const K3SpellConfig &ksc) |
bool | readGlobalSettings () |
QStringList | replaceAllList () const |
bool | runTogether () const |
void | setClient (int client) |
void | setDictFromList (bool dfl) |
void | setDictionary (const QString qs) |
void | setDoSpellChecking (bool b) |
void | setEncoding (int enctype) |
void | setIgnoreList (const QStringList &_ignorelist) |
void | setNoRootAffix (bool) |
void | setReplaceAllList (const QStringList &_replaceAllList) |
void | setRunTogether (bool) |
bool | writeGlobalSettings () |
Protected Types | |
enum | { rdictlist =3, rencoding =4, rhelp =6 } |
Protected Slots | |
void | sChangeClient (int) |
void | sChangeEncoding (int) |
void | sDictionary (bool) |
void | sDoSpell () |
void | sHelp () |
void | sNoAff (bool) |
void | sPathDictionary (bool) |
void | sRunTogether (bool) |
void | sSetDictionary (int) |
Protected Member Functions | |
void | fillInDialog () |
bool | interpret (const QString &fname, QString &lname, QString &hname) |
Protected Attributes | |
bool | bdospellchecking |
bool | bnorootaffix |
bool | bruntogether |
QCheckBox * | cb0 |
QCheckBox * | cb1 |
QCheckBox * | cb2 |
QComboBox * | clientcombo |
QComboBox * | dictcombo |
bool | dictfromlist |
QLabel * | dictlist |
int | enc |
QComboBox * | encodingcombo |
int | iclient |
QStringList | ignorelist |
KSharedConfig::Ptr | kc |
QStringList | langfnames |
bool | nodialog |
QString | qsdict |
QString | qspdict |
Detailed Description
A configuration class/dialog for K3Spell.
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 K3SpellConfig as a widget in a dialog (or, preferably a tabbed dialog using KPageDialog) and letting the user change the settings. This way an application that uses K3Spell can either rely on the default settings (in the simplest case), offer a dialog to configure K3Spell, or offer a dialog to configure K3Spell for this app only (in which case, the application should save the settings for use next time it is run). This last option might be useful in an email program, for example, where people may be writing in a language different from that used for writing papers in their word processor.
- See also
- K3Spell
- Deprecated:
- use sonnet instead
Definition at line 88 of file k3sconfig.h.
Member Enumeration Documentation
|
protected |
Enumerator | |
---|---|
rdictlist | |
rencoding | |
rhelp |
Definition at line 272 of file k3sconfig.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a K3SpellConfig with default or custom settings.
- Parameters
-
parent Parent of the widget. 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.
Definition at line 76 of file k3sconfig.cpp.
K3SpellConfig::K3SpellConfig | ( | const K3SpellConfig & | _ksc | ) |
Definition at line 51 of file k3sconfig.cpp.
|
virtual |
Member Function Documentation
|
slot |
Use this function to activate the help information for this widget.
The function is particulary useful if the help button is not displayed as specified by the constructor. Normally you want to hide the help button if this widget is embedded into a larger dialog box that has its own help button. See kedit (optiondialog.cpp) for an example
Definition at line 1123 of file k3sconfig.cpp.
int K3SpellConfig::client | ( | ) | const |
|
signal |
bool K3SpellConfig::dictFromList | ( | ) | const |
Definition at line 197 of file k3sconfig.cpp.
const QString K3SpellConfig::dictionary | ( | ) | const |
Definition at line 1013 of file k3sconfig.cpp.
bool K3SpellConfig::doSpellChecking | ( | ) | const |
Options reading routines.
Definition at line 995 of file k3sconfig.cpp.
int K3SpellConfig::encoding | ( | ) | const |
Definition at line 1026 of file k3sconfig.cpp.
void K3SpellConfig::fillDicts | ( | QComboBox * | box, |
QStringList * | dictionaries = 0 |
||
) |
Get the translated dictionary names and, optionally, the corresponding internal dictionary names.
Fills box
with the human readable, translated dictionary names and selects the currently used dictionary (this will be the global dictionary if you call fillDicts 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 setDictionary.
- Parameters
-
box Will be filled with the translated dictionary names. dictionaries Will be filled with the internal dictionary names.
Definition at line 673 of file k3sconfig.cpp.
|
protected |
Definition at line 399 of file k3sconfig.cpp.
QStringList K3SpellConfig::ignoreList | ( | ) | const |
Definition at line 1169 of file k3sconfig.cpp.
This takes a dictionary file name and provides both a language abbreviation appropriate for the $LANG variable, and a human-readable name.
It also truncates ".aff" at the end of fname.
- 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
Definition at line 275 of file k3sconfig.cpp.
bool K3SpellConfig::noRootAffix | ( | ) | const |
Definition at line 1001 of file k3sconfig.cpp.
void K3SpellConfig::operator= | ( | const K3SpellConfig & | ksc | ) |
Definition at line 1146 of file k3sconfig.cpp.
bool K3SpellConfig::readGlobalSettings | ( | ) |
Definition at line 203 of file k3sconfig.cpp.
QStringList K3SpellConfig::replaceAllList | ( | ) | const |
Definition at line 1181 of file k3sconfig.cpp.
bool K3SpellConfig::runTogether | ( | ) | const |
Definition at line 1007 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 246 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 238 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 1086 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 1046 of file k3sconfig.cpp.
void K3SpellConfig::setClient | ( | int | client | ) |
Definition at line 899 of file k3sconfig.cpp.
void K3SpellConfig::setDictFromList | ( | bool | dfl | ) |
Definition at line 962 of file k3sconfig.cpp.
void K3SpellConfig::setDictionary | ( | const QString | qs | ) |
Set the name of the dictionary to use.
Definition at line 935 of file k3sconfig.cpp.
void K3SpellConfig::setDoSpellChecking | ( | bool | b | ) |
Activate SpellChecking.
Definition at line 908 of file k3sconfig.cpp.
void K3SpellConfig::setEncoding | ( | int | enctype | ) |
Definition at line 976 of file k3sconfig.cpp.
void K3SpellConfig::setIgnoreList | ( | const QStringList & | _ignorelist | ) |
Options setting routines.
The _ignorelist
contains words you'd like K3Spell to ignore when it is spellchecking. When you get a K3SpellConfig object back from K3Spell (using K3Spell::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.
Definition at line 1163 of file k3sconfig.cpp.
void K3SpellConfig::setNoRootAffix | ( | bool | b | ) |
Set an ISpell option.
If true
, don't create root-affix combinations.
Definition at line 917 of file k3sconfig.cpp.
void K3SpellConfig::setReplaceAllList | ( | const QStringList & | _replaceAllList | ) |
The _replaceAllList
contains word you like that replace word.
Be careful that this list contains word which is replaced and new word.
Definition at line 1175 of file k3sconfig.cpp.
void K3SpellConfig::setRunTogether | ( | bool | b | ) |
Set an ISpell option.
If true
, treat run-together words a valid.
Definition at line 926 of file k3sconfig.cpp.
|
protectedslot |
Invokes the help documentation for k3spell.
Definition at line 1128 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 1039 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 1102 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 1032 of file k3sconfig.cpp.
|
protectedslot |
Definition at line 1078 of file k3sconfig.cpp.
bool K3SpellConfig::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.
Definition at line 220 of file k3sconfig.cpp.
Member Data Documentation
|
protected |
Definition at line 264 of file k3sconfig.h.
|
protected |
Definition at line 265 of file k3sconfig.h.
|
protected |
Definition at line 266 of file k3sconfig.h.
|
protected |
Definition at line 276 of file k3sconfig.h.
|
protected |
Definition at line 276 of file k3sconfig.h.
|
protected |
Definition at line 276 of file k3sconfig.h.
|
protected |
Definition at line 281 of file k3sconfig.h.
|
protected |
Definition at line 281 of file k3sconfig.h.
|
protected |
Definition at line 267 of file k3sconfig.h.
|
protected |
Definition at line 280 of file k3sconfig.h.
|
protected |
Definition at line 263 of file k3sconfig.h.
|
protected |
Definition at line 281 of file k3sconfig.h.
|
protected |
Definition at line 274 of file k3sconfig.h.
|
protected |
Definition at line 271 of file k3sconfig.h.
|
protected |
Definition at line 273 of file k3sconfig.h.
|
protected |
Definition at line 283 of file k3sconfig.h.
|
protected |
Definition at line 268 of file k3sconfig.h.
|
protected |
Definition at line 269 of file k3sconfig.h.
|
protected |
Definition at line 270 of file k3sconfig.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.