summaryrefslogtreecommitdiffabout
path: root/kaddressbook/filtereditdialog.h
Unidiff
Diffstat (limited to 'kaddressbook/filtereditdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/filtereditdialog.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/kaddressbook/filtereditdialog.h b/kaddressbook/filtereditdialog.h
index 5a8bad1..64d2976 100644
--- a/kaddressbook/filtereditdialog.h
+++ b/kaddressbook/filtereditdialog.h
@@ -10,100 +10,99 @@
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24/* 24/*
25Enhanced Version of the file for platform independent KDE tools. 25Enhanced Version of the file for platform independent KDE tools.
26Copyright (c) 2004 Ulf Schenk 26Copyright (c) 2004 Ulf Schenk
27 27
28$Id$ 28$Id$
29*/ 29*/
30 30
31#ifndef FILTEREDITDIALOG_H 31#ifndef FILTEREDITDIALOG_H
32#define FILTEREDITDIALOG_H 32#define FILTEREDITDIALOG_H
33 33
34class QButtonGroup; 34#include <Q3HButtonGroup>
35class QString; 35class QString;
36class QToolButton; 36class QToolButton;
37class QWidget; 37class QWidget;
38class QListBoxItem; 38class Q3ListBoxItem;
39class QCheckBox; 39class QCheckBox;
40 40
41class KLineEdit; 41class KLineEdit;
42class KListBox; 42class KListBox;
43class KListView; 43class KListView;
44 44
45#include <kdialogbase.h> 45#include <kdialogbase.h>
46#include <qhbuttongroup.h>
47 46
48#include "filter.h" 47#include "filter.h"
49 48
50class FilterDialog : public KDialogBase 49class FilterDialog : public KDialogBase
51{ 50{
52 Q_OBJECT 51 Q_OBJECT
53 52
54 public: 53 public:
55 FilterDialog( QWidget *parent, const char *name = 0 ); 54 FilterDialog( QWidget *parent, const char *name = 0 );
56 ~FilterDialog(); 55 ~FilterDialog();
57 56
58 void setFilters( const Filter::List &list ); 57 void setFilters( const Filter::List &list );
59 Filter::List filters() const; 58 Filter::List filters() const;
60 59
61 protected slots: 60 protected slots:
62 void add(); 61 void add();
63 void edit(); 62 void edit();
64 void remove(); 63 void remove();
65 void selectionChanged( QListBoxItem* ); 64 void selectionChanged( Q3ListBoxItem* );
66 65
67 private: 66 private:
68 void initGUI(); 67 void initGUI();
69 void refresh(); 68 void refresh();
70 69
71 Filter::List mFilterList; 70 Filter::List mFilterList;
72 Filter::List mInternalFilterList; 71 Filter::List mInternalFilterList;
73 72
74 KListBox *mFilterListBox; 73 KListBox *mFilterListBox;
75 QPushButton *mAddButton; 74 QPushButton *mAddButton;
76 QPushButton *mEditButton; 75 QPushButton *mEditButton;
77 QPushButton *mRemoveButton; 76 QPushButton *mRemoveButton;
78}; 77};
79 78
80class FilterEditDialog : public KDialogBase 79class FilterEditDialog : public KDialogBase
81{ 80{
82 Q_OBJECT 81 Q_OBJECT
83 public: 82 public:
84 FilterEditDialog( QWidget *parent, const char *name = 0 ); 83 FilterEditDialog( QWidget *parent, const char *name = 0 );
85 ~FilterEditDialog(); 84 ~FilterEditDialog();
86 85
87 void setFilter( const Filter &filter ); 86 void setFilter( const Filter &filter );
88 Filter filter(); 87 Filter filter();
89 88
90 protected slots: 89 protected slots:
91 void filterNameTextChanged( const QString& ); 90 void filterNameTextChanged( const QString& );
92 void slotHelp(); 91 void slotHelp();
93 92
94 private: 93 private:
95 void initGUI(); 94 void initGUI();
96 95
97 Filter mFilter; 96 Filter mFilter;
98 97
99 KLineEdit *mNameEdit; 98 KLineEdit *mNameEdit;
100 KListView *mCategoriesView; 99 KListView *mCategoriesView;
101 QHButtonGroup *mMatchRuleGroup; 100 Q3HButtonGroup *mMatchRuleGroup;
102 QCheckBox *mPrivate; 101 QCheckBox *mPrivate;
103 QCheckBox *mPublic; 102 QCheckBox *mPublic;
104 QCheckBox *mConfidential; 103 QCheckBox *mConfidential;
105 QPushButton *mEditButton; 104 QPushButton *mEditButton;
106 QPushButton *mRemoveButton; 105 QPushButton *mRemoveButton;
107}; 106};
108 107
109#endif 108#endif