Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / settings / konq / behaviour.h
blob54cc3cc8ad830ba295e24755d3208b29f0b3ce9e
1 /*
2 * Copyright (c) 2001 David Faure <david@mandrakesoft.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef BEHAVIOUR_H
20 #define BEHAVIOUR_H
22 #include <kcmodule.h>
23 #include <kconfig.h>
24 #include <ksharedconfig.h>
25 #include <QtCore/QStringList>
27 class QCheckBox;
28 class QLabel;
29 class QSpinBox;
31 class KUrlRequester;
33 class KBehaviourOptions : public KCModule
35 Q_OBJECT
36 public:
37 explicit KBehaviourOptions(QWidget *parent, const QVariantList &args = QVariantList());
38 ~KBehaviourOptions();
39 virtual void load();
40 virtual void save();
41 virtual void defaults();
43 protected Q_SLOTS:
44 void updateWinPixmap(bool);
46 private:
47 KSharedConfig::Ptr g_pConfig;
48 QString groupname;
50 QCheckBox *cbNewWin;
52 QLabel *winPixmap;
54 QCheckBox *cbMoveToTrash;
55 QCheckBox *cbDelete;
56 QCheckBox *cbShowDeleteCommand;
59 #endif // BEHAVIOUR_H