summaryrefslogtreecommitdiffstats
path: root/ksystemlog/src/findManager.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 01:38:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 01:38:56 +0000
commit64e7bb523f56ef0a3eb4063917daeedcadeb1d41 (patch)
tree2f0144cc278f308718bb626db910a9de17fa790a /ksystemlog/src/findManager.h
downloadksystemlog-64e7bb523f56ef0a3eb4063917daeedcadeb1d41.tar.gz
ksystemlog-64e7bb523f56ef0a3eb4063917daeedcadeb1d41.zip
Added old KDE3 version of ksystemlog
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksystemlog@1095334 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksystemlog/src/findManager.h')
-rw-r--r--ksystemlog/src/findManager.h81
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
+