diff options
Diffstat (limited to 'ksystemlog/src/findManager.h')
-rw-r--r-- | ksystemlog/src/findManager.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/ksystemlog/src/findManager.h b/ksystemlog/src/findManager.h new file mode 100644 index 0000000..1156dec --- /dev/null +++ b/ksystemlog/src/findManager.h @@ -0,0 +1,81 @@ +// +// C++ Interface: findManager +// +// Description: +// +// +// Author: Nicolas Ternisien <nicolas.ternisien@gmail.com>, (C) 2005 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#ifndef FIND_MANAGER_H +#define FIND_MANAGER_H + +//Qt includes +#include <qobject.h> + +//KDE includes +#include <kfinddialog.h> +#include <kfind.h> +#include <kdeversion.h> + +//Project includes +#include "logManager.h" +#include "globals.h" + +class KSystemLog; + +/** + * + * @short Find Manager + * @author Nicolas Ternisien <nicolas.ternisien@gmail.com> + * @version 0.1 + */ +class FindManager : public QObject { + + Q_OBJECT + + public: + /** + * Default Constructor + */ + FindManager(KSystemLog* parent, const char* name); + + virtual ~FindManager(); + + public slots: + void slotFind(); + void slotFindNext(); + void slotFirstFind(); + + void highlightSearch(const QString& text, int matchingIndex, int matchingLength); + + private: + + KSystemLog* main; + + /** + * A pointer to the Find dialog + */ + KFindDialog* findDialog; + + /** + * The manager of the current search + */ + KFind* findManager; + + /** + * Previous object found + */ + LogListItem* previousItemFound; + + /** + * Current object found + */ + LogListItem* currentItemFound; +}; + +#endif + |