00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CONFIGGENERAL_H
00019 #define CONFIGGENERAL_H
00020
00021
00022 #include <qlayout.h>
00023 #include <qgroupbox.h>
00024 #include <qcheckbox.h>
00025 #include <qspinbox.h>
00026 #include <qtooltip.h>
00027 #include <qlabel.h>
00028
00029
00030 #include <kcmodule.h>
00031 #include <kconfig.h>
00032 #include <kgenericfactory.h>
00033 #include <kapplication.h>
00034 #include <KConfigGroup>
00035
00036
00037 #include "constants.h"
00038
00043 class ConfigGeneral : public KCModule
00044 {
00045 Q_OBJECT
00046
00047 public:
00048
00054 explicit ConfigGeneral( QWidget *parent = 0, const QVariantList & args = QVariantList() );
00055
00059 ~ConfigGeneral();
00060
00066 virtual void load();
00067
00073 virtual void defaults();
00074
00081 virtual void save();
00082
00083 private:
00084
00088 KSharedConfigPtr config;
00089
00093 QCheckBox* chkConfirmClose;
00094
00098 QCheckBox* chkConfirmDelete;
00099
00103 QCheckBox* chkStartMinimized;
00104
00108 QCheckBox* chkCloseToTray;
00109
00113 QCheckBox* chkShowConnectionErrors;
00114
00118 QCheckBox* chkKeepNew;
00119
00123 QCheckBox* chkAutomaticRefresh;
00124
00128 QSpinBox* spbInitial;
00129
00133 QSpinBox* spbInterval;
00134
00138 QLabel* lblTimerInterval;
00139
00143 QLabel* lblTimerInitial;
00144
00148 QSpinBox* spbTimeout;
00149
00150 public slots:
00151
00156 void slotChanged();
00157
00163 void slotAutomaticRefreshChanged( bool checked );
00164
00165 };
00166
00167 #endif