summaryrefslogtreecommitdiffabout
path: root/korganizer/searchdialog.h
Unidiff
Diffstat (limited to 'korganizer/searchdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/searchdialog.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/korganizer/searchdialog.h b/korganizer/searchdialog.h
index 945ff65..5df6116 100644
--- a/korganizer/searchdialog.h
+++ b/korganizer/searchdialog.h
@@ -17,40 +17,44 @@
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#include <qradiobutton.h> 28#include <qradiobutton.h>
29//Added by qt3to4:
30#include <QLabel>
31#include <QKeyEvent>
32#include <Q3PtrList>
29#include <kdialogbase.h> 33#include <kdialogbase.h>
30#include <qvbox.h> 34#include <q3vbox.h>
31 35
32#include <libkcal/calendar.h> 36#include <libkcal/calendar.h>
33 37
34#include "kolistview.h" 38#include "kolistview.h"
35 39
36class KDateEdit; 40class KDateEdit;
37class QCheckBox; 41class QCheckBox;
38class QLineEdit; 42class QLineEdit;
39class KLineEdit; 43class KLineEdit;
40class QLabel; 44class QLabel;
41class CalendarView; 45class CalendarView;
42 46
43using namespace KCal; 47using namespace KCal;
44class SearchDialog : public QVBox 48class SearchDialog : public Q3VBox
45{ 49{
46 Q_OBJECT 50 Q_OBJECT
47 public: 51 public:
48 SearchDialog(Calendar *calendar,CalendarView *parent=0); 52 SearchDialog(Calendar *calendar,CalendarView *parent=0);
49 virtual ~SearchDialog(); 53 virtual ~SearchDialog();
50 KOListView *listview(){ return listView;} 54 KOListView *listview(){ return listView;}
51 void updateView(); 55 void updateView();
52 void raiseAndSelect(); 56 void raiseAndSelect();
53 57
54 public slots: 58 public slots:
55 void changeEventDisplay(Event *, int) { updateView(); } 59 void changeEventDisplay(Event *, int) { updateView(); }
56 void updateConfig(); 60 void updateConfig();
@@ -63,32 +67,32 @@ class SearchDialog : public QVBox
63 void toggleCheckboxes(); 67 void toggleCheckboxes();
64 void slot_add( bool ); 68 void slot_add( bool );
65 void slot_sub( bool ); 69 void slot_sub( bool );
66 void slot_refine( bool ); 70 void slot_refine( bool );
67 71
68 signals: 72 signals:
69 void showEventSignal(Event *); 73 void showEventSignal(Event *);
70 void editEventSignal(Event *); 74 void editEventSignal(Event *);
71 void deleteEventSignal(Event *); 75 void deleteEventSignal(Event *);
72 76
73 private: 77 private:
74 78
75 QHBox *incidenceGroup ,*subjectGroup ,*attendeeGroup; 79 Q3HBox *incidenceGroup ,*subjectGroup ,*attendeeGroup;
76 void search(const QRegExp &); 80 void search(const QRegExp &);
77 81
78 Calendar *mCalendar; 82 Calendar *mCalendar;
79 83
80 QPtrList<Event> mMatchedEvents; 84 Q3PtrList<Event> mMatchedEvents;
81 QPtrList<Todo> mMatchedTodos; 85 Q3PtrList<Todo> mMatchedTodos;
82 QPtrList<Journal> mMatchedJournals; 86 Q3PtrList<Journal> mMatchedJournals;
83 87
84 QLabel *searchLabel; 88 QLabel *searchLabel;
85 KLineEdit *searchEdit; 89 KLineEdit *searchEdit;
86 KOListView *listView; 90 KOListView *listView;
87 91
88 KDateEdit *mStartDate; 92 KDateEdit *mStartDate;
89 KDateEdit *mEndDate; 93 KDateEdit *mEndDate;
90 QCheckBox *mSummaryCheck; 94 QCheckBox *mSummaryCheck;
91 QCheckBox *mDescriptionCheck; 95 QCheckBox *mDescriptionCheck;
92 QCheckBox *mCategoryCheck; 96 QCheckBox *mCategoryCheck;
93 QCheckBox *mSearchEvent; 97 QCheckBox *mSearchEvent;
94 QCheckBox *mSearchTodo; 98 QCheckBox *mSearchTodo;