21 #ifndef _GREPDIALOG_H_
22 #define _GREPDIALOG_H_
25 #include <tqstringlist.h>
38 class GrepTool :
public TQWidget
43 GrepTool(TQWidget *parent,
const char *name=0);
47 void updateDirName(
const TQString &);
49 void setDirName(
const TQString &);
53 void itemSelected(
const TQString &abs_filename,
int line);
56 void slotSearchFor(
const TQString &pattern);
59 bool eventFilter( TQObject *, TQEvent * );
60 void focusInEvent ( TQFocusEvent * );
61 void showEvent( TQShowEvent * );
65 void templateActivated(
int index);
67 void receivedOutput(TDEProcess *proc,
char *buffer,
int buflen);
68 void receivedErrOutput(TDEProcess *proc,
char *buffer,
int buflen);
69 void itemSelected(
const TQString&);
73 void patternTextChanged(
const TQString &);
78 TQLineEdit *leTemplate;
79 KComboBox *cmbFiles, *cmbPattern;
80 KURLRequester *cmbDir;
81 TQCheckBox *cbRecursive;
82 TQCheckBox *cbCasesensitive, *cbRegex;
84 KPushButton *btnSearch, *btnClear;
85 TDEProcess *childproc;
89 TQStringList lastSearchItems;
90 TQStringList lastSearchPaths;
91 TQStringList lastSearchFiles;
92 TQString m_lastUpdatedDir;
93 TQString m_workingDir;