KDEUI
#include <dictionarycombobox.h>
Signals | |
void | dictionaryChanged (const QString &dictionary) |
void | dictionaryNameChanged (const QString &dictionaryName) |
Signals inherited from KComboBox | |
void | aboutToShowContextMenu (QMenu *p) |
void | completion (const QString &) |
void | completionModeChanged (KGlobalSettings::Completion) |
void | returnPressed () |
void | returnPressed (const QString &) |
void | substringCompletion (const QString &) |
void | textRotation (KCompletionBase::KeyBindingType) |
Public Member Functions | |
DictionaryComboBox (QWidget *parent=0) | |
~DictionaryComboBox () | |
QString | currentDictionary () const |
QString | currentDictionaryName () const |
void | reloadCombo () |
void | setCurrentByDictionary (const QString &dictionary) |
void | setCurrentByDictionaryName (const QString &dictionaryName) |
Public Member Functions inherited from KComboBox | |
KComboBox (QWidget *parent=0) | |
KComboBox (bool rw, QWidget *parent=0) | |
virtual | ~KComboBox () |
void | addUrl (const KUrl &url) |
void | addUrl (const QIcon &icon, const KUrl &url) |
bool | autoCompletion () const |
void | changeURL (const KUrl &url, int index) |
void | changeURL (const QPixmap &pixmap, const KUrl &url, int index) |
void | changeUrl (int index, const KUrl &url) |
void | changeUrl (int index, const QIcon &icon, const KUrl &url) |
KCompletionBox * | completionBox (bool create=true) |
bool | contains (const QString &text) const |
int | cursorPosition () const |
virtual bool | eventFilter (QObject *, QEvent *) |
void | insertURL (const KUrl &url, int index=-1) |
void | insertURL (const QPixmap &pixmap, const KUrl &url, int index=-1) |
void | insertUrl (int index, const KUrl &url) |
void | insertUrl (int index, const QIcon &icon, const KUrl &url) |
virtual void | setAutoCompletion (bool autocomplete) |
virtual void | setContextMenuEnabled (bool showMenu) |
void | setEditable (bool editable) |
void | setEditUrl (const KUrl &url) |
virtual void | setLineEdit (QLineEdit *) |
void | setTrapReturnKey (bool trap) |
void | setUrlDropsEnabled (bool enable) |
bool | trapReturnKey () const |
bool | urlDropsEnabled () const |
Public Member Functions inherited from KCompletionBase | |
KCompletionBase () | |
virtual | ~KCompletionBase () |
KGlobalSettings::Completion | completionMode () const |
KCompletion * | completionObject (bool hsig=true) |
KCompletion * | compObj () const |
bool | emitSignals () const |
KShortcut | getKeyBinding (KeyBindingType item) const |
bool | handleSignals () const |
bool | isCompletionObjectAutoDeleted () const |
void | setAutoDeleteCompletionObject (bool autoDelete) |
virtual void | setCompletedItems (const QStringList &items, bool autoSuggest=true)=0 |
virtual void | setCompletedText (const QString &text)=0 |
virtual void | setCompletionMode (KGlobalSettings::Completion mode) |
virtual void | setCompletionObject (KCompletion *compObj, bool hsig=true) |
void | setEnableSignals (bool enable) |
virtual void | setHandleSignals (bool handle) |
bool | setKeyBinding (KeyBindingType item, const KShortcut &key) |
void | useGlobalKeyBindings () |
Additional Inherited Members | |
Public Types inherited from KCompletionBase | |
typedef QMap< KeyBindingType, KShortcut > | KeyBindingMap |
enum | KeyBindingType { TextCompletion, PrevCompletionMatch, NextCompletionMatch, SubstringCompletion } |
Public Slots inherited from KComboBox | |
void | rotateText (KCompletionBase::KeyBindingType type) |
void | setCompletedItems (const QStringList &items, bool autosubject=true) |
virtual void | setCompletedText (const QString &) |
void | setCurrentItem (const QString &item, bool insert=false, int index=-1) |
Protected Slots inherited from KComboBox | |
virtual void | makeCompletion (const QString &) |
Protected Member Functions inherited from KComboBox | |
virtual void | create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true) |
virtual QSize | minimumSizeHint () const |
virtual void | setCompletedText (const QString &, bool) |
virtual void | wheelEvent (QWheelEvent *ev) |
Protected Member Functions inherited from KCompletionBase | |
KCompletionBase * | delegate () const |
KeyBindingMap | getKeyBindings () const |
void | setDelegate (KCompletionBase *delegate) |
virtual void | virtual_hook (int id, void *data) |
Properties inherited from KComboBox | |
bool | autoCompletion |
bool | trapReturnKey |
bool | urlDropsEnabled |
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
|
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)".
|
signal |
Emitted whenever the current dictionary changes.
Either by user intervention or on setCurrentByDictionaryName() or on setCurrentByDictionary(). For example "de_CH".
|
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:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.