KDEUI
configwidget.h
Go to the documentation of this file.00001
00020 #ifndef SONNET_CONFIGWIDGET_H
00021 #define SONNET_CONFIGWIDGET_H
00022
00023 #include <QtGui/QWidget>
00024 #include <kdeui_export.h>
00025
00026 class KConfig;
00027
00028 namespace Sonnet
00029 {
00031 class KDEUI_EXPORT ConfigWidget : public QWidget
00032 {
00033 Q_OBJECT
00034 public:
00035 ConfigWidget(KConfig *config, QWidget *parent);
00036 ~ConfigWidget();
00037
00038 bool backgroundCheckingButtonShown() const;
00039
00048 void setLanguage( const QString &language );
00049
00056 QString language() const;
00057
00058 public Q_SLOTS:
00059 void save();
00060 void setBackgroundCheckingButtonShown( bool );
00061 void slotDefault();
00062 protected Q_SLOTS:
00063 void slotChanged();
00064
00065 Q_SIGNALS:
00070 void configChanged();
00071
00072 private:
00073 void init(KConfig *config);
00074 void setFromGui();
00075 void setCorrectLanguage( const QStringList& langs );
00076
00077 private:
00078 class Private;
00079 friend class Private;
00080 Private* const d;
00081 };
00082 }
00083
00084 #endif