summaryrefslogtreecommitdiffabout
path: root/korganizer/filtereditdialog.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/filtereditdialog.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'korganizer/filtereditdialog.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/filtereditdialog.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/korganizer/filtereditdialog.h b/korganizer/filtereditdialog.h
new file mode 100644
index 0000000..42aa3da
--- a/dev/null
+++ b/korganizer/filtereditdialog.h
@@ -0,0 +1,86 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2001, 2002 Cornelius Schumacher <schumacher@kde.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
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
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
22*/
23#ifndef _FILTEREDITDIALOG_H
24#define _FILTEREDITDIALOG_H
25
26#include <qptrlist.h>
27
28#include <kdialogbase.h>
29
30#include <libkcal/calfilter.h>
31
32class QComboBox;
33class ComboFilterBox;
34class QPushButton;
35class FilterEdit_base;
36
37using namespace KCal;
38
39/**
40 This is the class to add/edit a calendar filter.
41
42 @short Creates a dialog box to create/edit a calendar filter
43 @author Cornelius Schumacher
44*/
45class FilterEditDialog : public KDialogBase
46{
47 Q_OBJECT
48 public:
49 FilterEditDialog(QPtrList<CalFilter> *,QWidget *parent=0, const char *name=0);
50 virtual ~FilterEditDialog();
51
52 public slots:
53 void updateFilterList();
54
55 signals:
56 void filterChanged();
57
58 protected slots:
59 void slotDefault();
60 void slotApply();
61 void slotOk();
62 void accept();
63
64 void slotAdd();
65 void slotUp();
66 void slotRemove();
67
68 void filterSelected();
69 void editCategorySelection();
70 void updateCategorySelection(const QStringList &categories);
71
72 protected:
73 void readFilter(CalFilter *);
74 void writeFilter(CalFilter *);
75
76 private:
77 QPtrList<CalFilter> *mFilters;
78
79 ComboFilterBox *mSelectionCombo;
80 QPushButton *mRemoveButton;
81 FilterEdit_base *mEditor;
82
83 QStringList mCategories;
84};
85
86#endif