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

kdeui

  • kdeui
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 <kdelibs_export.h>
26 
27 class TQCheckBox;
28 class TQComboBox;
29 class TQLabel;
30 
31 class KConfig;
32 class KSpellConfigPrivate;
33 
41 enum 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 
60 enum KSpellClients {
61  KS_CLIENT_ISPELL=0,
62  KS_CLIENT_ASPELL=1,
63  KS_CLIENT_HSPELL=2,
64  KS_CLIENT_ZEMBEREK=3
65 };
66 
87 class KDEUI_EXPORT KSpellConfig : public TQWidget
88 {
89  Q_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  KConfig *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 
279 signals:
280  void configChanged();
281 
282 private:
283  KSpellConfigPrivate *d;
284  void getAvailDictsIspell();
285  void getAvailDictsAspell();
286 };
287 
288 #endif // KDELIBS_KSCONFIG_H
289 
290 
291 
292 
293 

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |