KDEUI
dictionarycombobox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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