kategrepdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _GREPDIALOG_H_
00022 #define _GREPDIALOG_H_
00023
00024 #include <kdialog.h>
00025 #include <qstringlist.h>
00026
00027 class QLineEdit;
00028 class QComboBox;
00029 class QCheckBox;
00030 class QListBox;
00031 class KPushButton;
00032 class QLabel;
00033 class KProcess;
00034 class KConfig;
00035 class KURLRequester;
00036 class QEvent;
00037
00038 class GrepTool : public QWidget
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 GrepTool(class KateMainWindow *parent=0, const char *name=0);
00044 ~GrepTool();
00045
00046
00047 void updateDirName(const QString &);
00048
00049 void setDirName(const QString &);
00050
00051
00052 signals:
00053 void itemSelected(const QString &abs_filename, int line);
00054
00055 public slots:
00056 void slotSearchFor(const QString &pattern);
00057
00058 protected:
00059 bool eventFilter( QObject *, QEvent * );
00060
00061 private slots:
00062 void templateActivated(int index);
00063 void childExited();
00064 void receivedOutput(KProcess *proc, char *buffer, int buflen);
00065 void receivedErrOutput(KProcess *proc, char *buffer, int buflen);
00066 void itemSelected(const QString&);
00067 void slotSearch();
00068 void slotCancel();
00069 void slotClear();
00070 void patternTextChanged( const QString &);
00071 private:
00072 void processOutput();
00073 void finish();
00074
00075 QLineEdit *leTemplate;
00076 QComboBox *cmbFiles, *cmbPattern;
00077 KURLRequester *cmbDir;
00078 QCheckBox *cbRecursive;
00079 QCheckBox *cbCasesensitive, *cbRegex;
00080 QListBox *lbResult;
00081 KPushButton *btnSearch, *btnClear;
00082 KProcess *childproc;
00083 QString buf;
00084 QString errbuf;
00085 KConfig* config;
00086 QStringList lastSearchItems;
00087 QStringList lastSearchPaths;
00088 QStringList lastSearchFiles;
00089 QString m_lastUpdatedDir;
00090 QString m_workingDir;
00091 };
00092
00093
00094 #endif
This file is part of the documentation for kate Library Version 3.3.2.