mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
1c2dbccae5
When a file is added within the search directory, kfind updates the search results svn path=/trunk/kdebase/kfind/; revision=238952
64 lines
1.1 KiB
C++
64 lines
1.1 KiB
C++
/***********************************************************************
|
|
*
|
|
* Kfind.h
|
|
*
|
|
***********************************************************************/
|
|
|
|
#ifndef KFIND_H
|
|
#define KFIND_H
|
|
|
|
#include <qwidget.h>
|
|
#include <kfileitem.h>
|
|
#include <kdirlister.h>
|
|
|
|
class QString;
|
|
class KPushButton;
|
|
|
|
class KQuery;
|
|
class KURL;
|
|
class KfindTabWidget;
|
|
|
|
class Kfind: public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Kfind(QWidget * parent = 0, const char * name = 0);
|
|
~Kfind();
|
|
|
|
void setURL( const KURL &url );
|
|
|
|
void setQuery(KQuery * q) { query = q; }
|
|
void searchFinished();
|
|
|
|
void saveState( QDataStream *stream );
|
|
void restoreState( QDataStream *stream );
|
|
|
|
public slots:
|
|
void startSearch();
|
|
void stopSearch();
|
|
//void newSearch();
|
|
void saveResults();
|
|
|
|
signals:
|
|
void haveResults(bool);
|
|
void resultSelected(bool);
|
|
|
|
void started();
|
|
void destroyMe();
|
|
|
|
private:
|
|
void setFocus();
|
|
KfindTabWidget *tabWidget;
|
|
KPushButton *mSearch;
|
|
KPushButton *mStop;
|
|
KPushButton *mSave;
|
|
KQuery *query;
|
|
|
|
public:
|
|
KDirLister *dirlister;
|
|
};
|
|
|
|
#endif
|
|
|
|
|