• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • sonnet
dictionarycombobox.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2003 Ingo Kloecker <kloecker@kde.org>
3 * Copyright (c) 2008 Tom Albers <tomalbers@kde.nl>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19*/
20
21#ifndef SONNET_DICTIONARYCOMBOBOX_H
22#define SONNET_DICTIONARYCOMBOBOX_H
23
24#include "kdeui_export.h"
25
26#include <kcombobox.h>
27
28namespace Sonnet
29{
30
38class KDEUI_EXPORT DictionaryComboBox : public KComboBox
39{
40 Q_OBJECT
41public:
42
46 explicit DictionaryComboBox( QWidget * parent=0 );
47
51 ~DictionaryComboBox();
52
57 void reloadCombo();
58
62 QString currentDictionaryName() const;
63
67 QString currentDictionary() const;
68
72 void setCurrentByDictionaryName( const QString & dictionaryName );
73
77 void setCurrentByDictionary( const QString & dictionary );
78
79Q_SIGNALS:
85 void dictionaryChanged( const QString & dictionary );
86
92 void dictionaryNameChanged( const QString & dictionaryName );
93
94private:
95 class Private;
96 Private* const d;
97 Q_PRIVATE_SLOT(d, void slotDictionaryChanged( int ) )
98};
99
100}
101
102#endif
KComboBox
An enhanced combo box.
Definition: kcombobox.h:149
QWidget
Sonnet::DictionaryComboBox
A combo box for selecting the dictionary used for spell checking.
Definition: dictionarycombobox.h:39
Sonnet::DictionaryComboBox::setCurrentByDictionaryName
void setCurrentByDictionaryName(const QString &dictionaryName)
Sets the current dictionaryName to the given dictionaryName.
Sonnet::DictionaryComboBox::currentDictionaryName
QString currentDictionaryName() const
Returns the current dictionary name, for example "German (Switzerland)".
Sonnet::DictionaryComboBox::DictionaryComboBox
DictionaryComboBox(QWidget *parent=0)
Constructor.
Sonnet::DictionaryComboBox::~DictionaryComboBox
~DictionaryComboBox()
Destructor.
Sonnet::DictionaryComboBox::dictionaryChanged
void dictionaryChanged(const QString &dictionary)
Emitted whenever the current dictionary changes.
Sonnet::DictionaryComboBox::reloadCombo
void reloadCombo()
Clears the widget and reloads the dictionaries from Sonnet.
Sonnet::DictionaryComboBox::dictionaryNameChanged
void dictionaryNameChanged(const QString &dictionaryName)
Emitted whenever the current dictionary changes.
Sonnet::DictionaryComboBox::setCurrentByDictionary
void setCurrentByDictionary(const QString &dictionary)
Sets the current dictionary to the given dictionary.
Sonnet::DictionaryComboBox::currentDictionary
QString currentDictionary() const
Returns the current dictionary, for example "de_CH".
kcombobox.h
kdeui_export.h
Sonnet
dialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal