kalarm
find.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef FIND_H
00022 #define FIND_H
00023
00024 #include <qobject.h>
00025 #include <qguardedptr.h>
00026 #include <qstringlist.h>
00027
00028 class QCheckBox;
00029 class KFindDialog;
00030 class KFind;
00031 class KSeparator;
00032 class EventListViewBase;
00033 class EventListViewItemBase;
00034
00035
00036 class Find : public QObject
00037 {
00038 Q_OBJECT
00039 public:
00040 explicit Find(EventListViewBase* parent);
00041 ~Find();
00042 void display();
00043 void findNext(bool forward) { findNext(forward, true); }
00044
00045 signals:
00046 void active(bool);
00047
00048 private slots:
00049 void slotFind();
00050 void slotKFindDestroyed() { emit active(false); }
00051
00052 private:
00053 void findNext(bool forward, bool sort, bool fromCurrent = false);
00054 EventListViewItemBase* nextItem(EventListViewItemBase*, bool forward) const;
00055
00056 EventListViewBase* mListView;
00057 QGuardedPtr<KFindDialog> mDialog;
00058 QCheckBox* mExpired;
00059 QCheckBox* mLive;
00060 KSeparator* mActiveExpiredSep;
00061 QCheckBox* mMessageType;
00062 QCheckBox* mFileType;
00063 QCheckBox* mCommandType;
00064 QCheckBox* mEmailType;
00065 KFind* mFind;
00066 QStringList mHistory;
00067 QString mStartID;
00068 long mOptions;
00069 bool mNoCurrentItem;
00070 bool mFound;
00071 };
00072
00073 #endif // FIND_H
00074
|