configwidget.h
00001 /* 00002 * configwidget.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 TDESPELL_CONFIGWIDGET_H 00022 #define TDESPELL_CONFIGWIDGET_H 00023 00024 #include <tqwidget.h> 00025 #include <tdelibs_export.h> 00026 00027 namespace KSpell2 00028 { 00029 class Broker; 00030 class KDE_EXPORT ConfigWidget : public TQWidget 00031 { 00032 Q_OBJECT 00033 public: 00034 ConfigWidget( Broker *broker, TQWidget *parent, const char *name =0 ); 00035 ~ConfigWidget(); 00036 00037 bool backgroundCheckingButtonShown() const; 00038 00039 public slots: 00040 void save(); 00041 void setBackgroundCheckingButtonShown( bool ); 00042 void slotDefault(); 00043 protected slots: 00044 void slotChanged(); 00045 00046 private: 00047 void init( Broker *broker ); 00048 void setFromGUI(); 00049 void setCorrectLanguage( const TQStringList& langs ); 00050 00051 private: 00052 class Private; 00053 Private *d; 00054 }; 00055 } 00056 00057 #endif