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 <tqobject.h>
00025 #include <tqguardedptr.h>
00026 #include <tqstringlist.h>
00027
00028 class TQCheckBox;
00029 class KFindDialog;
00030 class KFind;
00031 class KSeparator;
00032 class EventListViewBase;
00033 class EventListViewItemBase;
00034
00035
00036 class Find : public TQObject
00037 {
00038 Q_OBJECT
00039 TQ_OBJECT
00040 public:
00041 explicit Find(EventListViewBase* parent);
00042 ~Find();
00043 void display();
00044 void findNext(bool forward) { findNext(forward, true); }
00045
00046 signals:
00047 void active(bool);
00048
00049 private slots:
00050 void slotFind();
00051 void slotKFindDestroyed() { emit active(false); }
00052
00053 private:
00054 void findNext(bool forward, bool sort, bool checkEnd = false, bool fromCurrent = false);
00055 EventListViewItemBase* nextItem(EventListViewItemBase*, bool forward) const;
00056
00057 EventListViewBase* mListView;
00058 TQGuardedPtr<KFindDialog> mDialog;
00059 TQCheckBox* mExpired;
00060 TQCheckBox* mLive;
00061 KSeparator* mActiveExpiredSep;
00062 TQCheckBox* mMessageType;
00063 TQCheckBox* mFileType;
00064 TQCheckBox* mCommandType;
00065 TQCheckBox* mEmailType;
00066 KFind* mFind;
00067 TQStringList mHistory;
00068 TQString mLastPattern;
00069 TQString mStartID;
00070 long mOptions;
00071 bool mNoCurrentItem;
00072 bool mFound;
00073 };
00074
00075 #endif // FIND_H
00076
|