author | zautrix <zautrix> | 2005-02-22 01:14:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-22 01:14:35 (UTC) |
commit | df40d77f7407326221ba2848163c4f61b7bb1d2f (patch) (unidiff) | |
tree | 1b46bf666f7371189ba421080f4dcd66dc9037f2 /korganizer/searchdialog.h | |
parent | ce261d6197d319d67f7b275813449f36ce42a730 (diff) | |
download | kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.zip kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.tar.gz kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.tar.bz2 |
next
-rw-r--r-- | korganizer/searchdialog.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/korganizer/searchdialog.h b/korganizer/searchdialog.h index ebcff7a..f4aad9e 100644 --- a/korganizer/searchdialog.h +++ b/korganizer/searchdialog.h | |||
@@ -6,88 +6,87 @@ | |||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | #ifndef SEARCHDIALOG_H | 24 | #ifndef SEARCHDIALOG_H |
25 | #define SEARCHDIALOG_H | 25 | #define SEARCHDIALOG_H |
26 | 26 | ||
27 | #include <qregexp.h> | 27 | #include <qregexp.h> |
28 | 28 | ||
29 | #include <kdialogbase.h> | 29 | #include <kdialogbase.h> |
30 | #include <qvbox.h> | ||
30 | 31 | ||
31 | #include <libkcal/calendar.h> | 32 | #include <libkcal/calendar.h> |
32 | 33 | ||
33 | #include "kolistview.h" | 34 | #include "kolistview.h" |
34 | 35 | ||
35 | class KDateEdit; | 36 | class KDateEdit; |
36 | class QCheckBox; | 37 | class QCheckBox; |
37 | class QLineEdit; | 38 | class QLineEdit; |
38 | class QLabel; | 39 | class QLabel; |
39 | class CalendarView; | 40 | class CalendarView; |
40 | 41 | ||
41 | using namespace KCal; | 42 | using namespace KCal; |
42 | 43 | class SearchDialog : public QVBox | |
43 | class SearchDialog : public KDialogBase | ||
44 | { | 44 | { |
45 | Q_OBJECT | 45 | Q_OBJECT |
46 | public: | 46 | public: |
47 | SearchDialog(Calendar *calendar,CalendarView *parent=0); | 47 | SearchDialog(Calendar *calendar,CalendarView *parent=0); |
48 | virtual ~SearchDialog(); | 48 | virtual ~SearchDialog(); |
49 | KOListView *listview(){ return listView;} | 49 | KOListView *listview(){ return listView;} |
50 | void updateView(); | 50 | void updateView(); |
51 | 51 | ||
52 | public slots: | 52 | public slots: |
53 | void changeEventDisplay(Event *, int) { updateView(); } | 53 | void changeEventDisplay(Event *, int) { updateView(); } |
54 | void updateConfig(); | 54 | void updateConfig(); |
55 | void updateList(); | 55 | void updateList(); |
56 | protected slots: | 56 | protected slots: |
57 | void accept(); | 57 | void accept(); |
58 | void doSearch(); | 58 | void doSearch(); |
59 | void searchTextChanged( const QString &_text ); | 59 | void searchTextChanged( const QString &_text ); |
60 | 60 | ||
61 | signals: | 61 | signals: |
62 | void showEventSignal(Event *); | 62 | void showEventSignal(Event *); |
63 | void editEventSignal(Event *); | 63 | void editEventSignal(Event *); |
64 | void deleteEventSignal(Event *); | 64 | void deleteEventSignal(Event *); |
65 | 65 | ||
66 | private: | 66 | private: |
67 | void search(const QRegExp &); | 67 | void search(const QRegExp &); |
68 | 68 | ||
69 | Calendar *mCalendar; | 69 | Calendar *mCalendar; |
70 | 70 | ||
71 | QPtrList<Event> mMatchedEvents; | 71 | QPtrList<Event> mMatchedEvents; |
72 | QPtrList<Todo> mMatchedTodos; | 72 | QPtrList<Todo> mMatchedTodos; |
73 | QPtrList<Journal> mMatchedJournals; | 73 | QPtrList<Journal> mMatchedJournals; |
74 | 74 | ||
75 | QLabel *searchLabel; | 75 | QLabel *searchLabel; |
76 | QLineEdit *searchEdit; | 76 | QLineEdit *searchEdit; |
77 | KOListView *listView; | 77 | KOListView *listView; |
78 | 78 | ||
79 | KDateEdit *mStartDate; | 79 | KDateEdit *mStartDate; |
80 | KDateEdit *mEndDate; | 80 | KDateEdit *mEndDate; |
81 | // QCheckBox *mInclusiveCheck; | ||
82 | QCheckBox *mSummaryCheck; | 81 | QCheckBox *mSummaryCheck; |
83 | QCheckBox *mDescriptionCheck; | 82 | QCheckBox *mDescriptionCheck; |
84 | QCheckBox *mCategoryCheck; | 83 | QCheckBox *mCategoryCheck; |
85 | QCheckBox *mSearchEvent; | 84 | QCheckBox *mSearchEvent; |
86 | QCheckBox *mSearchTodo; | 85 | QCheckBox *mSearchTodo; |
87 | QCheckBox *mSearchJournal; | 86 | QCheckBox *mSearchJournal; |
88 | QCheckBox *mSearchAName; | 87 | QCheckBox *mSearchAName; |
89 | QCheckBox *mSearchAEmail; | 88 | QCheckBox *mSearchAEmail; |
90 | //void keyPressEvent ( QKeyEvent *e) ; | 89 | void keyPressEvent ( QKeyEvent *e) ; |
91 | }; | 90 | }; |
92 | 91 | ||
93 | #endif | 92 | #endif |