• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
ksconfig.h
1/* This file is part of the KDE libraries
2 Copyright (C) 1997 David Sweet <dsweet@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18#ifndef KDELIBS_KSCONFIG_H
19#define KDELIBS_KSCONFIG_H
20
21#include <tqwidget.h>
22#include <tqstring.h>
23#include <tqstringlist.h>
24
25#include <tdelibs_export.h>
26
27class TQCheckBox;
28class TQComboBox;
29class TQLabel;
30
31class TDEConfig;
32class KSpellConfigPrivate;
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 KSpellClients {
61 KS_CLIENT_ISPELL=0,
62 KS_CLIENT_ASPELL=1,
63 KS_CLIENT_HSPELL=2,
64 KS_CLIENT_ZEMBEREK=3
65};
66
87class TDEUI_EXPORT KSpellConfig : public TQWidget
88{
89 TQ_OBJECT
90
91 public:
103 KSpellConfig( TQWidget *parent=0, const char *name=0,
104 KSpellConfig *spellConfig=0, bool addHelpButton = true );
105
106 KSpellConfig( const KSpellConfig & );
107
112 virtual ~KSpellConfig();
113
114 void operator=( const KSpellConfig &ksc );
115
134 void fillDicts( TQComboBox* box, TQStringList* dictionaries = 0 );
135
150 void setIgnoreList( TQStringList _ignorelist );
151
157 void setReplaceAllList( TQStringList _replaceAllList );
158
164 void setNoRootAffix( bool );
165
171 void setRunTogether( bool );
172
176 void setDictionary( const TQString qs );
177 void setDictFromList( bool dfl );
178 //void setPersonalDict (const char *s);
179
183 void setEncoding( int enctype );
184 void setClient( int client );
185
189 bool noRootAffix() const;
190 bool runTogether() const;
191 const TQString dictionary() const;
192 bool dictFromList() const;
193 //TQString personalDict () const;
194 int encoding() const;
195 TQStringList ignoreList() const;
196 TQStringList replaceAllList() const;
197
198 int client() const;
199
205 bool writeGlobalSettings();
206
207 bool readGlobalSettings();
208 protected:
209 void fillInDialog();
210
224 bool interpret( TQString &fname, TQString &lname, TQString &hname );
225
226
227 public slots:
236 void activateHelp( void );
237
238
239 protected slots:
243 void sHelp();
244 //void sBrowseDict();
245 //void sBrowsePDict();
246 void sNoAff( bool );
247 void sRunTogether( bool );
248 void sDictionary( bool );
249 void sPathDictionary( bool );
250 void sSetDictionary( int );
251 void sChangeEncoding( int );
252 void sChangeClient( int );
253 //void textChanged1 (const char *);
254 //void textChanged2 (const char *);
255
256 protected:
257 // The options
258 int enc; // 1 ==> -Tlatin1
259 bool bnorootaffix; // -m
260 bool bruntogether; // -B
261 bool dictfromlist;
262 bool nodialog;
263 TQString qsdict; // -d [dict]
264 TQString qspdict; // -p [dict]
265 TQStringList ignorelist;
266 enum {rdictlist=3, rencoding=4, rhelp=6};
267 TDEConfig *kc;
268 int iclient; // defaults to ispell, may be aspell, too
269
270 TQCheckBox *cb1, *cb2;
271 //KLineEdit *kle1, *kle2;
272 //TQButtonGroup *dictgroup;
273 //TQRadioButton *dictlistbutton, *dicteditbutton;
274 TQLabel *dictlist;
275 TQComboBox *dictcombo, *encodingcombo, *clientcombo;
276 //TQPushButton *browsebutton1;
277 TQStringList langfnames;
278
279signals:
280 void configChanged();
281
282private:
283 KSpellConfigPrivate *d;
284 void getAvailDictsIspell();
285 void getAvailDictsAspell();
286};
287
288#endif // KDELIBS_KSCONFIG_H
289
290
291
292
293
KSpellConfig
A configuration class/dialog for KSpell.
Definition: ksconfig.h:88
TDEConfig

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.