kmail

dictionarycombobox.h
1/*
2 dictionarycombobox.h
3
4 This file is part of KMail, the KDE mail client.
5 Copyright (c) 2003 Ingo Kloecker <kloecker@kde.org>
6
7 KMail is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License, version 2, as
9 published by the Free Software Foundation.
10
11 KMail is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
20 In addition, as a special exception, the copyright holders give
21 permission to link the code of this program with any edition of
22 the TQt library by Trolltech AS, Norway (or with modified versions
23 of TQt that use the same license as TQt), and distribute linked
24 combinations including the two. You must obey the GNU General
25 Public License in all respects for all of the code used other than
26 TQt. If you modify this file, you may extend this exception to
27 your version of the file, but you are not obligated to do so. If
28 you do not wish to do so, delete this exception statement from
29 your version.
30*/
31
32#ifndef _KMAIL_DICTIONARYCOMBOBOX_H_
33#define _KMAIL_DICTIONARYCOMBOBOX_H_
34
35#include <tqcombobox.h>
36
37class KSpellConfig;
38class TQStringList;
39class TQString;
40
41namespace KMail {
42
48 class DictionaryComboBox : public TQComboBox {
49 TQ_OBJECT
50
51 public:
52 DictionaryComboBox( TQWidget * parent=0, const char * name=0 );
54
55 TQString currentDictionaryName() const;
56 TQString currentDictionary() const;
57 void setCurrentByDictionaryName( const TQString & dictionaryName );
58 void setCurrentByDictionary( const TQString & dictionary );
59
60 KSpellConfig* spellConfig() const;
61
62 signals:
67 void dictionaryChanged( const TQString & dictionary );
68 void dictionaryChanged( int );
69
70 protected slots:
71 void slotDictionaryChanged( int );
72
73 protected:
74 void reloadCombo();
75
76 protected:
77 TQStringList mDictionaries;
78 KSpellConfig* mSpellConfig;
79 int mDefaultDictionary;
80 };
81
82} // namespace KMail
83
84#endif // _KMAIL_DICTIONARYCOMBOBOX_H_
A combo box for selecting the dictionary used for spell checking.
void dictionaryChanged(const TQString &dictionary)
Emitted whenever the current dictionary changes.
folderdiaquotatab.h
Definition: aboutdata.cpp:40