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;
84 TQCheckBox *cbHideErrors;
86 KPushButton *btnSearch, *btnClear;
87 TDEProcess *childproc;
91 TQStringList lastSearchItems;
92 TQStringList lastSearchPaths;
93 TQStringList lastSearchFiles;
94 TQString m_lastUpdatedDir;
95 TQString m_workingDir;