mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
eaa944921a
svn path=/trunk/kdebase/kfind/; revision=6919
64 lines
1.1 KiB
C++
64 lines
1.1 KiB
C++
/***********************************************************************
|
|
*
|
|
* Kfind.h
|
|
*
|
|
***********************************************************************/
|
|
|
|
#ifndef KFIND_H
|
|
#define KFIND_H
|
|
|
|
#include "kftabdlg.h"
|
|
#include "kfwin.h"
|
|
|
|
#include <kprocess.h>
|
|
|
|
class QPushButton;
|
|
|
|
class Kfind: public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Kfind( QWidget * parent = 0 ,const char * name = 0,const char*searchPath = 0);
|
|
~Kfind();
|
|
QSize sizeHint();
|
|
void copySelection();
|
|
|
|
public slots:
|
|
void startSearch();
|
|
void stopSearch();
|
|
void newSearch();
|
|
void processResults();
|
|
void handleStdout(KProcess *proc, char *buffer, int buflen);
|
|
|
|
signals:
|
|
void haveResults(bool);
|
|
void resultSelected(bool);
|
|
void statusChanged(const char *);
|
|
void enableSearchButton(bool);
|
|
void enableStatusBar(bool);
|
|
|
|
void open();
|
|
void addToArchive();
|
|
void deleteFile();
|
|
void renameFile();
|
|
void properties();
|
|
void openFolder();
|
|
void saveResults();
|
|
|
|
protected:
|
|
void resizeEvent( QResizeEvent * );
|
|
|
|
private:
|
|
KShellProcess findProcess;
|
|
int winsize;
|
|
KfindTabDialog *tabDialog;
|
|
KfindWindow * win;
|
|
|
|
char *iBuffer;
|
|
};
|
|
|
|
#endif
|
|
|
|
|