Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / konqueror / settings / konqhtml / filteropts.h
blob7cf95d0b28449b0d825a890337a8bf060942c0a4
1 /*
2 Copyright (C) 2005 Ivor Hewitt <ivor@ivor.org>
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.
18 #ifndef FILTEROPTS_H
19 #define FILTEROPTS_H
21 #include <kcmodule.h>
22 #include <ksharedconfig.h>
24 class QListWidget;
25 class QPushButton;
26 class QLineEdit;
27 class QCheckBox;
29 class KCMFilter : public KCModule
31 Q_OBJECT
32 public:
33 KCMFilter( QWidget* parent, const QVariantList& );
34 ~KCMFilter();
36 void load();
37 void save();
38 void defaults();
39 QString quickHelp() const;
41 public Q_SLOTS:
43 protected Q_SLOTS:
44 void insertFilter();
45 void updateFilter();
46 void removeFilter();
47 void slotItemSelected();
48 void slotEnableChecked();
49 void slotKillChecked();
51 void exportFilters();
52 void importFilters();
54 private:
55 void updateButton();
56 QListWidget *mListBox;
57 QLineEdit *mString;
58 QCheckBox *mEnableCheck;
59 QCheckBox *mKillCheck;
60 QPushButton *mInsertButton;
61 QPushButton *mUpdateButton;
62 QPushButton *mRemoveButton;
63 QPushButton *mImportButton;
64 QPushButton *mExportButton;
66 KSharedConfig::Ptr mConfig;
67 QString mGroupname;
68 int mSelCount;
71 #endif