00001 /* 00002 Copyright 2010 Ulrich Weigelt <ulrich.weigelt@gmx.de> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License as 00006 published by the Free Software Foundation; either version 2 of 00007 the License, or (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef CONFIGDISPLAY_H 00019 #define CONFIGDISPLAY_H 00020 00021 //Qt headers 00022 #include <qlayout.h> 00023 #include <qgroupbox.h> 00024 #include <qcheckbox.h> 00025 #include <qlabel.h> 00026 #include <qtooltip.h> 00027 00028 //KDE headers 00029 #include <kcmodule.h> 00030 #include <kconfig.h> 00031 #include <kgenericfactory.h> 00032 #include <kapplication.h> 00033 #include <KConfigGroup> 00034 00035 //KShowmail headers 00036 #include <constants.h> 00037 00038 00043 class ConfigDisplay : public KCModule 00044 { 00045 Q_OBJECT 00046 00047 public: 00053 explicit ConfigDisplay( QWidget *parent = 0, const QVariantList & args = QVariantList() ); 00054 00058 ~ConfigDisplay(); 00059 00065 virtual void load(); 00066 00072 virtual void defaults(); 00073 00080 virtual void save(); 00081 00082 private: 00083 00087 KSharedConfigPtr config; 00088 00092 QCheckBox* chkAccountlistActive; 00093 00097 QCheckBox* chkAccountlistAccount; 00098 00102 QCheckBox* chkAccountlistServer; 00103 00107 QCheckBox* chkAccountlistUser; 00108 00112 QCheckBox* chkAccountlistMessages; 00113 00117 QCheckBox* chkAccountlistSize; 00118 00122 QCheckBox* chkMessagelistNumber; 00123 00127 QCheckBox* chkMessagelistAccount; 00128 00132 QCheckBox* chkMessagelistFrom; 00133 00137 QCheckBox* chkMessagelistTo; 00138 00142 QCheckBox* chkMessagelistSubject; 00143 00147 QCheckBox* chkMessagelistDate; 00148 00152 QCheckBox* chkMessagelistSize; 00153 00157 QCheckBox* chkMessagelistContent; 00158 00162 QCheckBox* chkMessagelistState; 00163 00167 QCheckBox* chkAllowHTML; 00168 00169 public slots: 00170 00175 void slotChanged(); 00176 }; 00177 00178 #endif