• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

  • kde3support
  • kdeui
k3sconfig.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 Copyright (C) 1997 David Sweet <dsweet@kde.org>
3 Copyright (C) 2007-2008 Kevin Kofler <Kevin@tigcc.ticalc.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19#ifndef KDELIBS_KSCONFIG_H
20#define KDELIBS_KSCONFIG_H
21
22#include <kde3support_export.h>
23#include <ksharedconfig.h>
24
25#include <QtGui/QWidget>
26#include <QtCore/QStringList>
27
28class QCheckBox;
29class QComboBox;
30class QLabel;
31
32class K3SpellConfigPrivate;
33
41enum Encoding {
42 KS_E_ASCII=0,
43 KS_E_LATIN1=1,
44 KS_E_LATIN2=2,
45 KS_E_LATIN3=3,
46 KS_E_LATIN4=4,
47 KS_E_LATIN5=5,
48 KS_E_LATIN7=6,
49 KS_E_LATIN8=7,
50 KS_E_LATIN9=8,
51 KS_E_LATIN13=9,
52 KS_E_LATIN15=10,
53 KS_E_UTF8=11,
54 KS_E_KOI8R=12,
55 KS_E_KOI8U=13,
56 KS_E_CP1251=14,
57 KS_E_CP1255=15
58};
59
60enum K3SpellClients {
61 KS_CLIENT_ISPELL=0,
62 KS_CLIENT_ASPELL=1,
63 KS_CLIENT_HSPELL=2,
64 KS_CLIENT_ZEMBEREK=3,
65 KS_CLIENT_HUNSPELL=4
66};
67
88class KDE3SUPPORT_EXPORT_DEPRECATED K3SpellConfig : public QWidget
89{
90 Q_OBJECT
91
92 public:
103 explicit K3SpellConfig( QWidget *parent=0,
104 K3SpellConfig *spellConfig=0, bool addHelpButton = true );
105
106 K3SpellConfig( const K3SpellConfig & );
107
112 virtual ~K3SpellConfig();
113
114 void operator=( const K3SpellConfig &ksc );
115
132 void fillDicts( QComboBox* box, QStringList* dictionaries = 0 );
133
137
148 void setIgnoreList( const QStringList &_ignorelist );
149
155 void setReplaceAllList( const QStringList &_replaceAllList );
156
162 void setNoRootAffix( bool );
163
167 void setDoSpellChecking( bool b);
168
174 void setRunTogether( bool );
175
179 void setDictionary( const QString qs );
180 void setDictFromList( bool dfl );
181 //void setPersonalDict (const char *s);
182
186 void setEncoding( int enctype );
187 void setClient( int client );
188
192 bool doSpellChecking() const;
193 bool noRootAffix() const;
194 bool runTogether() const;
195 const QString dictionary() const;
196 bool dictFromList() const;
197 //QString personalDict () const;
198 int encoding() const;
199 QStringList ignoreList() const;
200 QStringList replaceAllList() const;
201
202 int client() const;
203
209 bool writeGlobalSettings();
210
211 bool readGlobalSettings();
212 protected:
213 void fillInDialog();
214
228 bool interpret( const QString &fname, QString &lname, QString &hname );
229
230
231 public Q_SLOTS:
240 void activateHelp( void );
241
242
243 protected Q_SLOTS:
247 void sHelp();
248 //void sBrowseDict();
249 //void sBrowsePDict();
250 void sDoSpell();
251 void sNoAff( bool );
252 void sRunTogether( bool );
253 void sDictionary( bool );
254 void sPathDictionary( bool );
255 void sSetDictionary( int );
256 void sChangeEncoding( int );
257 void sChangeClient( int );
258 //void textChanged1 (const char *);
259 //void textChanged2 (const char *);
260
261 protected:
262 // The options
263 int enc; // 1 ==> -Tlatin1
264 bool bdospellchecking;
265 bool bnorootaffix; // -m
266 bool bruntogether; // -B
267 bool dictfromlist;
268 bool nodialog;
269 QString qsdict; // -d [dict]
270 QString qspdict; // -p [dict]
271 QStringList ignorelist;
272 enum {rdictlist=3, rencoding=4, rhelp=6};
273 KSharedConfig::Ptr kc;
274 int iclient; // defaults to ispell, may be aspell, too
275
276 QCheckBox *cb0, *cb1, *cb2;
277 //KLineEdit *kle1, *kle2;
278 //QButtonGroup *dictgroup;
279 //QRadioButton *dictlistbutton, *dicteditbutton;
280 QLabel *dictlist;
281 QComboBox *dictcombo, *encodingcombo, *clientcombo;
282 //QPushButton *browsebutton1;
283 QStringList langfnames;
284
285Q_SIGNALS:
286 void configChanged();
287
288private:
289 K3SpellConfigPrivate *const d;
290 void getAvailDictsIspell();
291 void getAvailDictsAspell();
292 void getAvailDictsHunspell();
293};
294
295#endif // KDELIBS_KSCONFIG_H
296
297
298
299
300
K3SpellConfig::interpret
bool interpret(const QString &fname, QString &lname, QString &hname)
This takes a dictionary file name and provides both a language abbreviation appropriate for the $LANG...
Definition k3sconfig.cpp:275
K3SpellConfig::setRunTogether
void setRunTogether(bool)
Set an ISpell option.
Definition k3sconfig.cpp:926
K3SpellConfig::cb1
QCheckBox * cb1
Definition k3sconfig.h:276
K3SpellConfig::replaceAllList
QStringList replaceAllList() const
Definition k3sconfig.cpp:1181
K3SpellConfig::dictfromlist
bool dictfromlist
Definition k3sconfig.h:267
K3SpellConfig::sChangeEncoding
void sChangeEncoding(int)
Definition k3sconfig.cpp:238
K3SpellConfig::operator=
void operator=(const K3SpellConfig &ksc)
Definition k3sconfig.cpp:1146
K3SpellConfig::clientcombo
QComboBox * clientcombo
Definition k3sconfig.h:281
K3SpellConfig::fillInDialog
void fillInDialog()
Definition k3sconfig.cpp:399
K3SpellConfig::bruntogether
bool bruntogether
Definition k3sconfig.h:266
K3SpellConfig::client
int client() const
Spell checker client,.
Definition k3sconfig.cpp:988
K3SpellConfig::sRunTogether
void sRunTogether(bool)
Definition k3sconfig.cpp:1032
K3SpellConfig::sHelp
void sHelp()
Invokes the help documentation for k3spell.
Definition k3sconfig.cpp:1128
K3SpellConfig::sChangeClient
void sChangeClient(int)
Definition k3sconfig.cpp:246
K3SpellConfig::enc
int enc
Definition k3sconfig.h:263
K3SpellConfig::setIgnoreList
void setIgnoreList(const QStringList &_ignorelist)
@sect Options setting routines.
Definition k3sconfig.cpp:1163
K3SpellConfig::configChanged
void configChanged()
K3SpellConfig::kc
KSharedConfig::Ptr kc
Definition k3sconfig.h:273
K3SpellConfig::setDoSpellChecking
void setDoSpellChecking(bool b)
Activate SpellChecking.
Definition k3sconfig.cpp:908
K3SpellConfig::K3SpellConfig
K3SpellConfig(QWidget *parent=0, K3SpellConfig *spellConfig=0, bool addHelpButton=true)
Constructs a K3SpellConfig with default or custom settings.
Definition k3sconfig.cpp:76
K3SpellConfig::sDoSpell
void sDoSpell()
Definition k3sconfig.cpp:1046
K3SpellConfig::bdospellchecking
bool bdospellchecking
Definition k3sconfig.h:264
K3SpellConfig::writeGlobalSettings
bool writeGlobalSettings()
Call this method before this class is deleted if you want the settings you have (or the user has) cho...
Definition k3sconfig.cpp:220
K3SpellConfig::qspdict
QString qspdict
Definition k3sconfig.h:270
K3SpellConfig::sDictionary
void sDictionary(bool)
Definition k3sconfig.cpp:1086
K3SpellConfig::dictFromList
bool dictFromList() const
Definition k3sconfig.cpp:197
K3SpellConfig::rhelp
@ rhelp
Definition k3sconfig.h:272
K3SpellConfig::rdictlist
@ rdictlist
Definition k3sconfig.h:272
K3SpellConfig::rencoding
@ rencoding
Definition k3sconfig.h:272
K3SpellConfig::ignorelist
QStringList ignorelist
Definition k3sconfig.h:271
K3SpellConfig::encoding
int encoding() const
Definition k3sconfig.cpp:1026
K3SpellConfig::qsdict
QString qsdict
Definition k3sconfig.h:269
K3SpellConfig::bnorootaffix
bool bnorootaffix
Definition k3sconfig.h:265
K3SpellConfig::setNoRootAffix
void setNoRootAffix(bool)
Set an ISpell option.
Definition k3sconfig.cpp:917
K3SpellConfig::sSetDictionary
void sSetDictionary(int)
Definition k3sconfig.cpp:1078
K3SpellConfig::doSpellChecking
bool doSpellChecking() const
Options reading routines.
Definition k3sconfig.cpp:995
K3SpellConfig::readGlobalSettings
bool readGlobalSettings()
Definition k3sconfig.cpp:203
K3SpellConfig::sPathDictionary
void sPathDictionary(bool)
Definition k3sconfig.cpp:1102
K3SpellConfig::langfnames
QStringList langfnames
Definition k3sconfig.h:283
K3SpellConfig::dictlist
QLabel * dictlist
Definition k3sconfig.h:280
K3SpellConfig::setDictFromList
void setDictFromList(bool dfl)
Definition k3sconfig.cpp:962
K3SpellConfig::dictionary
const QString dictionary() const
Definition k3sconfig.cpp:1013
K3SpellConfig::setReplaceAllList
void setReplaceAllList(const QStringList &_replaceAllList)
The _replaceAllList contains word you like that replace word.
Definition k3sconfig.cpp:1175
K3SpellConfig::encodingcombo
QComboBox * encodingcombo
Definition k3sconfig.h:281
K3SpellConfig::sNoAff
void sNoAff(bool)
Definition k3sconfig.cpp:1039
K3SpellConfig::activateHelp
void activateHelp(void)
Use this function to activate the help information for this widget.
Definition k3sconfig.cpp:1123
K3SpellConfig::noRootAffix
bool noRootAffix() const
Definition k3sconfig.cpp:1001
K3SpellConfig::runTogether
bool runTogether() const
Definition k3sconfig.cpp:1007
K3SpellConfig::setDictionary
void setDictionary(const QString qs)
Set the name of the dictionary to use.
Definition k3sconfig.cpp:935
K3SpellConfig::iclient
int iclient
Definition k3sconfig.h:274
K3SpellConfig::fillDicts
void fillDicts(QComboBox *box, QStringList *dictionaries=0)
Get the translated dictionary names and, optionally, the corresponding internal dictionary names.
Definition k3sconfig.cpp:673
K3SpellConfig::setClient
void setClient(int client)
Definition k3sconfig.cpp:899
K3SpellConfig::nodialog
bool nodialog
Definition k3sconfig.h:268
K3SpellConfig::dictcombo
QComboBox * dictcombo
Definition k3sconfig.h:281
K3SpellConfig::ignoreList
QStringList ignoreList() const
Definition k3sconfig.cpp:1169
K3SpellConfig::cb0
QCheckBox * cb0
Definition k3sconfig.h:276
K3SpellConfig::setEncoding
void setEncoding(int enctype)
Definition k3sconfig.cpp:976
K3SpellConfig::cb2
QCheckBox * cb2
Definition k3sconfig.h:276
KSharedConfig::Ptr
KSharedPtr< KSharedConfig > Ptr
QComboBox
QLabel
QWidget
K3SpellClients
K3SpellClients
Definition k3sconfig.h:60
KS_CLIENT_HUNSPELL
@ KS_CLIENT_HUNSPELL
Definition k3sconfig.h:65
KS_CLIENT_ISPELL
@ KS_CLIENT_ISPELL
Definition k3sconfig.h:61
KS_CLIENT_ASPELL
@ KS_CLIENT_ASPELL
Definition k3sconfig.h:62
KS_CLIENT_HSPELL
@ KS_CLIENT_HSPELL
Definition k3sconfig.h:63
KS_CLIENT_ZEMBEREK
@ KS_CLIENT_ZEMBEREK
Definition k3sconfig.h:64
Encoding
Encoding
Encoding for the spell checker.
Definition k3sconfig.h:41
KS_E_LATIN7
@ KS_E_LATIN7
ISO-8859-6 (Arabic)
Definition k3sconfig.h:48
KS_E_KOI8R
@ KS_E_KOI8R
Definition k3sconfig.h:54
KS_E_LATIN5
@ KS_E_LATIN5
ISO-8859-5 (Cyrillic)
Definition k3sconfig.h:47
KS_E_UTF8
@ KS_E_UTF8
Definition k3sconfig.h:53
KS_E_LATIN2
@ KS_E_LATIN2
Definition k3sconfig.h:44
KS_E_CP1251
@ KS_E_CP1251
Definition k3sconfig.h:56
KS_E_LATIN8
@ KS_E_LATIN8
ISO-8859-7 (Greek)
Definition k3sconfig.h:49
KS_E_KOI8U
@ KS_E_KOI8U
Definition k3sconfig.h:55
KS_E_LATIN15
@ KS_E_LATIN15
ISO-8859-15 (Latin 9)
Definition k3sconfig.h:52
KS_E_LATIN9
@ KS_E_LATIN9
ISO-8859-8 (Hebrew)
Definition k3sconfig.h:50
KS_E_CP1255
@ KS_E_CP1255
Definition k3sconfig.h:57
KS_E_LATIN3
@ KS_E_LATIN3
Definition k3sconfig.h:45
KS_E_LATIN4
@ KS_E_LATIN4
Definition k3sconfig.h:46
KS_E_LATIN1
@ KS_E_LATIN1
Definition k3sconfig.h:43
KS_E_LATIN13
@ KS_E_LATIN13
ISO-8859-13 (Latin 7)
Definition k3sconfig.h:51
KS_E_ASCII
@ KS_E_ASCII
Definition k3sconfig.h:42
kde3support_export.h
ksharedconfig.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal