2009-03-31 21:06:56 +00:00
|
|
|
/*******************************************************************
|
|
|
|
* kfinddlg.h
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
******************************************************************/
|
2001-10-18 09:14:25 +00:00
|
|
|
|
|
|
|
#ifndef KFINDDLG_H
|
|
|
|
#define KFINDDLG_H
|
|
|
|
|
2006-06-13 17:41:00 +00:00
|
|
|
#include <kdialog.h>
|
2003-07-24 17:20:12 +00:00
|
|
|
#include <kdirlister.h>
|
2003-08-17 16:50:46 +00:00
|
|
|
#include <kdirwatch.h>
|
2001-10-18 09:14:25 +00:00
|
|
|
|
|
|
|
class QString;
|
2007-05-30 22:06:49 +00:00
|
|
|
class QDir;
|
2001-10-18 09:14:25 +00:00
|
|
|
|
|
|
|
class KQuery;
|
2006-01-23 11:01:30 +00:00
|
|
|
class KUrl;
|
2001-10-18 09:14:25 +00:00
|
|
|
class KFileItem;
|
|
|
|
class KfindTabWidget;
|
2009-03-31 20:23:05 +00:00
|
|
|
class KFindTreeView;
|
2001-10-18 09:14:25 +00:00
|
|
|
class KStatusBar;
|
|
|
|
|
2006-06-13 17:41:00 +00:00
|
|
|
class KfindDlg: public KDialog
|
2001-10-18 09:14:25 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2007-05-26 01:57:37 +00:00
|
|
|
explicit KfindDlg(const KUrl & url, QWidget * parent = 0);
|
2001-10-18 09:14:25 +00:00
|
|
|
~KfindDlg();
|
|
|
|
void copySelection();
|
|
|
|
|
|
|
|
void setStatusMsg(const QString &);
|
|
|
|
void setProgressMsg(const QString &);
|
|
|
|
|
2003-07-28 15:17:58 +00:00
|
|
|
private:
|
2003-07-28 20:06:57 +00:00
|
|
|
/*Return a QStringList of all subdirs of d*/
|
2003-07-28 15:17:58 +00:00
|
|
|
QStringList getAllSubdirs(QDir d);
|
|
|
|
|
2006-01-20 11:09:06 +00:00
|
|
|
public Q_SLOTS:
|
2001-10-18 09:14:25 +00:00
|
|
|
void startSearch();
|
|
|
|
void stopSearch();
|
|
|
|
void newSearch();
|
2009-03-31 19:58:52 +00:00
|
|
|
void addFiles( const QList< QPair<KFileItem,QString> > & );
|
2001-10-18 09:14:25 +00:00
|
|
|
void setFocus();
|
|
|
|
void slotResult(int);
|
|
|
|
// void slotSearchDone();
|
|
|
|
void about ();
|
2003-08-17 16:50:46 +00:00
|
|
|
void slotDeleteItem(const QString&);
|
|
|
|
void slotNewItems( const QString& );
|
2009-04-01 18:33:07 +00:00
|
|
|
|
|
|
|
void finishAndClose();
|
2001-10-18 09:14:25 +00:00
|
|
|
|
2006-01-20 11:09:06 +00:00
|
|
|
Q_SIGNALS:
|
2001-10-18 09:14:25 +00:00
|
|
|
void haveResults(bool);
|
|
|
|
void resultSelected(bool);
|
|
|
|
|
|
|
|
private:
|
|
|
|
KfindTabWidget *tabWidget;
|
2009-03-31 20:23:05 +00:00
|
|
|
KFindTreeView * win;
|
2001-10-18 09:14:25 +00:00
|
|
|
|
|
|
|
bool isResultReported;
|
|
|
|
KQuery *query;
|
|
|
|
KStatusBar *mStatusBar;
|
2003-07-24 17:20:12 +00:00
|
|
|
KDirLister *dirlister;
|
2003-08-17 16:50:46 +00:00
|
|
|
KDirWatch *dirwatch;
|
2001-10-18 09:14:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|