kmail

KMail::DictionaryComboBox Class Reference

A combo box for selecting the dictionary used for spell checking. More...

#include <dictionarycombobox.h>

Inheritance diagram for KMail::DictionaryComboBox:

List of all members.


Signals

void dictionaryChanged (int)
void dictionaryChanged (const QString &dictionary)

Public Member Functions

QString currentDictionary () const
QString currentDictionaryName () const
 DictionaryComboBox (QWidget *parent=0, const char *name=0)
void setCurrentByDictionary (const QString &dictionary)
void setCurrentByDictionaryName (const QString &dictionaryName)
KSpellConfig * spellConfig () const
 ~DictionaryComboBox ()

Protected Slots

void slotDictionaryChanged (int)

Protected Member Functions

void reloadCombo ()

Protected Attributes

int mDefaultDictionary
QStringList mDictionaries
KSpellConfig * mSpellConfig

Detailed Description

A combo box for selecting the dictionary used for spell checking.

Author:
Ingo Kloecker <kloecker@kde.org>

Definition at line 48 of file dictionarycombobox.h.


Constructor & Destructor Documentation

KMail::DictionaryComboBox::DictionaryComboBox ( QWidget parent = 0,
const char *  name = 0 
)

Definition at line 45 of file dictionarycombobox.cpp.

KMail::DictionaryComboBox::~DictionaryComboBox (  ) 

Definition at line 57 of file dictionarycombobox.cpp.


Member Function Documentation

QString KMail::DictionaryComboBox::currentDictionary (  )  const

Definition at line 68 of file dictionarycombobox.cpp.

QString KMail::DictionaryComboBox::currentDictionaryName (  )  const

Definition at line 63 of file dictionarycombobox.cpp.

void KMail::DictionaryComboBox::dictionaryChanged ( int   )  [signal]

void KMail::DictionaryComboBox::dictionaryChanged ( const QString dictionary  )  [signal]

Emitted whenever the current dictionary changes.

Either by user intervention or on setCurrentByDictionaryName() or on setCurrentByDictionary().

void KMail::DictionaryComboBox::reloadCombo (  )  [protected]

Definition at line 131 of file dictionarycombobox.cpp.

void KMail::DictionaryComboBox::setCurrentByDictionary ( const QString dictionary  ) 

Definition at line 93 of file dictionarycombobox.cpp.

void KMail::DictionaryComboBox::setCurrentByDictionaryName ( const QString dictionaryName  ) 

Definition at line 77 of file dictionarycombobox.cpp.

void KMail::DictionaryComboBox::slotDictionaryChanged ( int  idx  )  [protected, slot]

Definition at line 139 of file dictionarycombobox.cpp.

KSpellConfig * KMail::DictionaryComboBox::spellConfig (  )  const

Definition at line 126 of file dictionarycombobox.cpp.


Member Data Documentation

Definition at line 78 of file dictionarycombobox.h.

KSpellConfig* KMail::DictionaryComboBox::mSpellConfig [protected]

Definition at line 77 of file dictionarycombobox.h.


The documentation for this class was generated from the following files: