summaryrefslogtreecommitdiffstats
path: root/kfind/kfinddlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'kfind/kfinddlg.h')
-rw-r--r--kfind/kfinddlg.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/kfind/kfinddlg.h b/kfind/kfinddlg.h
new file mode 100644
index 000000000..dd1aa718c
--- /dev/null
+++ b/kfind/kfinddlg.h
@@ -0,0 +1,69 @@
+/***********************************************************************
+ *
+ * KfindDlg.h
+ *
+ ***********************************************************************/
+
+#ifndef KFINDDLG_H
+#define KFINDDLG_H
+
+#include <kdialogbase.h>
+#include <kdirlister.h>
+#include <kdirwatch.h>
+
+class QString;
+
+class KQuery;
+class KURL;
+class KFileItem;
+class KfindTabWidget;
+class KfindWindow;
+class KStatusBar;
+
+class KfindDlg: public KDialogBase
+{
+Q_OBJECT
+
+public:
+ KfindDlg(const KURL & url, QWidget * parent = 0, const char * name = 0);
+ ~KfindDlg();
+ void copySelection();
+
+ void setStatusMsg(const QString &);
+ void setProgressMsg(const QString &);
+
+private:
+ void closeEvent(QCloseEvent *);
+ /*Return a QStringList of all subdirs of d*/
+ QStringList getAllSubdirs(QDir d);
+
+public slots:
+ void startSearch();
+ void stopSearch();
+ void newSearch();
+ void addFile(const KFileItem* item, const QString& matchingLine);
+ void setFocus();
+ void slotResult(int);
+// void slotSearchDone();
+ void about ();
+ void slotDeleteItem(const QString&);
+ void slotNewItems( const QString& );
+
+signals:
+ void haveResults(bool);
+ void resultSelected(bool);
+
+private:
+ KfindTabWidget *tabWidget;
+ KfindWindow * win;
+
+ bool isResultReported;
+ KQuery *query;
+ KStatusBar *mStatusBar;
+ KDirLister *dirlister;
+ KDirWatch *dirwatch;
+};
+
+#endif
+
+