kalarm
find.h
Go to the documentation of this file.00001
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>
00025 #include <QPointer>
00026 #include <QStringList>
00027 #include <QModelIndex>
00028
00029 class QCheckBox;
00030 class FindDlg;
00031 class KFind;
00032 class KSeparator;
00033 class EventListView;
00034
00035
00036 class Find : public QObject
00037 {
00038 Q_OBJECT
00039 public:
00040 explicit Find(EventListView* parent);
00041 ~Find();
00042 void display();
00043 void findNext(bool forward) { findNext(forward, false, false); }
00044
00045 signals:
00046 void active(bool);
00047
00048 private slots:
00049 void slotFind();
00050 void slotKFindDestroyed() { emit active(false); }
00051 void slotSelectionChanged();
00052
00053 private:
00054 void findNext(bool forward, bool checkEnd, bool fromCurrent);
00055 QModelIndex nextItem(const QModelIndex&, bool forward) const;
00056
00057 EventListView* mListView;
00058 QPointer<FindDlg> mDialog;
00059 QCheckBox* mArchived;
00060 QCheckBox* mLive;
00061 KSeparator* mActiveArchivedSep;
00062 QCheckBox* mMessageType;
00063 QCheckBox* mFileType;
00064 QCheckBox* mCommandType;
00065 QCheckBox* mEmailType;
00066 KFind* mFind;
00067 QStringList mHistory;
00068 QString mLastPattern;
00069 QString mStartID;
00070 long mOptions;
00071 bool mNoCurrentItem;
00072 bool mFound;
00073 };
00074
00075 #endif // FIND_H
00076