dictionarycombobox.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
#ifndef _KMAIL_DICTIONARYCOMBOBOX_H_
00033
#define _KMAIL_DICTIONARYCOMBOBOX_H_
00034
00035
#include <qcombobox.h>
00036
00037
class KSpellConfig;
00038
class QStringList;
00039
class QString;
00040
00041
namespace KMail {
00042
00048 class DictionaryComboBox :
public QComboBox {
00049 Q_OBJECT
00050
public:
00051
DictionaryComboBox(
QWidget * parent=0,
const char * name=0 );
00052 ~
DictionaryComboBox();
00053
00054
QString currentDictionaryName()
const;
00055
QString currentDictionary()
const;
00056
void setCurrentByDictionaryName(
const QString & dictionaryName );
00057
void setCurrentByDictionary(
const QString & dictionary );
00058
00059 KSpellConfig* spellConfig()
const;
00060
00061 signals:
00066
void dictionaryChanged(
const QString & dictionary );
00067
void dictionaryChanged(
int );
00068
00069
protected slots:
00070
void slotDictionaryChanged(
int );
00071
00072
protected:
00073
void reloadCombo();
00074
00075
protected:
00076
QStringList mDictionaries;
00077 KSpellConfig* mSpellConfig;
00078
int mDefaultDictionary;
00079 };
00080
00081 }
00082
00083
#endif // _KMAIL_DICTIONARYCOMBOBOX_H_
This file is part of the documentation for kmail Library Version 3.3.0.