KDEUI
Sonnet::DictionaryComboBox Class Reference
A combo box for selecting the dictionary used for spell checking. More...
#include <dictionarycombobox.h>

Signals | |
void | dictionaryChanged (const QString &dictionary) |
void | dictionaryNameChanged (const QString &dictionaryName) |
Public Member Functions | |
QString | currentDictionary () const |
QString | currentDictionaryName () const |
DictionaryComboBox (QWidget *parent=0) | |
void | reloadCombo () |
void | setCurrentByDictionary (const QString &dictionary) |
void | setCurrentByDictionaryName (const QString &dictionaryName) |
~DictionaryComboBox () |
Detailed Description
A combo box for selecting the dictionary used for spell checking.
- Since:
- 4.2
Definition at line 38 of file dictionarycombobox.h.
Constructor & Destructor Documentation
Sonnet::DictionaryComboBox::DictionaryComboBox | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructor.
Sonnet::DictionaryComboBox::~DictionaryComboBox | ( | ) |
Destructor.
Member Function Documentation
QString Sonnet::DictionaryComboBox::currentDictionary | ( | ) | const |
Returns the current dictionary, for example "de_CH".
QString Sonnet::DictionaryComboBox::currentDictionaryName | ( | ) | const |
Returns the current dictionary name, for example "German (Switzerland)".
void Sonnet::DictionaryComboBox::dictionaryChanged | ( | const QString & | dictionary | ) | [signal] |
Emitted whenever the current dictionary changes.
Either by user intervention or on setCurrentByDictionaryName() or on setCurrentByDictionary(). For example "de_CH".
void Sonnet::DictionaryComboBox::dictionaryNameChanged | ( | const QString & | dictionaryName | ) | [signal] |
Emitted whenever the current dictionary changes.
Either by user intervention or on setCurrentByDictionaryName() or on setCurrentByDictionary(). For example "German (Switzerland)".
void Sonnet::DictionaryComboBox::reloadCombo | ( | ) |
Clears the widget and reloads the dictionaries from Sonnet.
Remember to set the dictionary you want selected after calling this function.
void Sonnet::DictionaryComboBox::setCurrentByDictionary | ( | const QString & | dictionary | ) |
Sets the current dictionary to the given dictionary.
void Sonnet::DictionaryComboBox::setCurrentByDictionaryName | ( | const QString & | dictionaryName | ) |
Sets the current dictionaryName to the given dictionaryName.
The documentation for this class was generated from the following file: