File indexing completed on 2024-05-05 05:00:05
0001 /* 0002 SPDX-FileCopyrightText: 2001 David Faure <david@mandrakesoft.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef BEHAVIOUR_H 0008 #define BEHAVIOUR_H 0009 0010 #include <kcmodule.h> 0011 #include <kconfig.h> 0012 #include <ksharedconfig.h> 0013 #include <QStringList> 0014 0015 class QCheckBox; 0016 class QLabel; 0017 0018 class KBehaviourOptions : public KCModule 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit KBehaviourOptions(QObject *parent, const KPluginMetaData &md={}, const QVariantList &args={}); 0023 ~KBehaviourOptions() override; 0024 void load() override; 0025 void save() override; 0026 void defaults() override; 0027 0028 protected Q_SLOTS: 0029 void updateWinPixmap(bool); 0030 0031 private: 0032 KSharedConfig::Ptr g_pConfig; 0033 QString groupname; 0034 0035 QCheckBox *cbNewWin; 0036 0037 QLabel *winPixmap; 0038 0039 QCheckBox *cbShowDeleteCommand; 0040 }; 0041 0042 #endif // BEHAVIOUR_H