KDEUI
configdialog.h
Go to the documentation of this file.
00001 /* 00002 * configdialog.h 00003 * 00004 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 USA 00020 */ 00021 #ifndef SONNET_CONFIGDIALOG_H 00022 #define SONNET_CONFIGDIALOG_H 00023 00024 #include <kdialog.h> 00025 #include <kconfig.h> 00026 00027 namespace Sonnet 00028 { 00030 class KDEUI_EXPORT ConfigDialog : public KDialog 00031 { 00032 Q_OBJECT 00033 public: 00034 ConfigDialog(KConfig *config, 00035 QWidget *parent); 00036 ~ConfigDialog(); 00037 00046 void setLanguage( const QString &language ); 00047 00048 protected Q_SLOTS: 00049 virtual void slotOk(); 00050 virtual void slotApply(); 00051 00052 Q_SIGNALS: 00053 00061 void languageChanged( const QString &language ); 00062 00063 private: 00064 void init(KConfig *config); 00065 private: 00066 class Private; 00067 friend class Private; 00068 Private *const d; 00069 Q_DISABLE_COPY(ConfigDialog) 00070 Q_PRIVATE_SLOT(d, void slotConfigChanged()) 00071 }; 00072 } 00073 00074 #endif
KDE 4.6 API Reference