2009-03-31 21:06:56 +00:00
|
|
|
/*******************************************************************
|
|
|
|
* kfind.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 KFIND_H
|
|
|
|
#define KFIND_H
|
|
|
|
|
2007-05-09 22:23:52 +00:00
|
|
|
#include <QtGui/QWidget>
|
2001-10-18 09:14:25 +00:00
|
|
|
|
2002-08-27 20:18:46 +00:00
|
|
|
class KPushButton;
|
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 KfindTabWidget;
|
2006-08-13 20:14:25 +00:00
|
|
|
class KDirLister;
|
2001-10-18 09:14:25 +00:00
|
|
|
|
|
|
|
class Kfind: public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2006-08-13 20:14:25 +00:00
|
|
|
Kfind(QWidget * parent = 0);
|
2001-10-18 09:14:25 +00:00
|
|
|
~Kfind();
|
|
|
|
|
2006-01-24 08:32:09 +00:00
|
|
|
void setURL( const KUrl &url );
|
2001-10-18 09:14:25 +00:00
|
|
|
|
|
|
|
void setQuery(KQuery * q) { query = q; }
|
|
|
|
void searchFinished();
|
|
|
|
|
|
|
|
void saveState( QDataStream *stream );
|
|
|
|
void restoreState( QDataStream *stream );
|
|
|
|
|
2006-01-20 11:09:06 +00:00
|
|
|
public Q_SLOTS:
|
2001-10-18 09:14:25 +00:00
|
|
|
void startSearch();
|
|
|
|
void stopSearch();
|
|
|
|
void saveResults();
|
|
|
|
|
2006-01-20 11:09:06 +00:00
|
|
|
Q_SIGNALS:
|
2001-10-18 09:14:25 +00:00
|
|
|
void haveResults(bool);
|
|
|
|
void resultSelected(bool);
|
|
|
|
|
|
|
|
void started();
|
|
|
|
void destroyMe();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setFocus();
|
|
|
|
KfindTabWidget *tabWidget;
|
2002-08-27 20:18:46 +00:00
|
|
|
KPushButton *mSearch;
|
|
|
|
KPushButton *mStop;
|
|
|
|
KPushButton *mSave;
|
2001-10-18 09:14:25 +00:00
|
|
|
KQuery *query;
|
2003-03-04 15:56:22 +00:00
|
|
|
|
2003-07-24 17:20:12 +00:00
|
|
|
public:
|
2003-03-04 15:56:22 +00:00
|
|
|
KDirLister *dirlister;
|
2001-10-18 09:14:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|