KDEUI
dictionarycombobox.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (c) 2003 Ingo Kloecker <kloecker@kde.org> 00003 * Copyright (c) 2008 Tom Albers <tomalbers@kde.nl> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301 USA 00019 */ 00020 00021 #ifndef SONNET_DICTIONARYCOMBOBOX_H 00022 #define SONNET_DICTIONARYCOMBOBOX_H 00023 00024 #include "kdeui_export.h" 00025 00026 #include <kcombobox.h> 00027 00028 namespace Sonnet 00029 { 00030 00038 class KDEUI_EXPORT DictionaryComboBox : public KComboBox 00039 { 00040 Q_OBJECT 00041 public: 00042 00046 explicit DictionaryComboBox( QWidget * parent=0 ); 00047 00051 ~DictionaryComboBox(); 00052 00057 void reloadCombo(); 00058 00062 QString currentDictionaryName() const; 00063 00067 QString currentDictionary() const; 00068 00072 void setCurrentByDictionaryName( const QString & dictionaryName ); 00073 00077 void setCurrentByDictionary( const QString & dictionary ); 00078 00079 Q_SIGNALS: 00085 void dictionaryChanged( const QString & dictionary ); 00086 00092 void dictionaryNameChanged( const QString & dictionaryName ); 00093 00094 private: 00095 class Private; 00096 Private* const d; 00097 Q_PRIVATE_SLOT(d, void slotDictionaryChanged( int ) ) 00098 }; 00099 00100 } 00101 00102 #endif
KDE 4.6 API Reference