Enter the expression you want to search for here." - "
If 'regular expression' is unchecked, any non-space letters in your " - "expression will be escaped with a backslash character." + "
If 'regular expression' is unchecked, all characters that are not " + "letters in your expression will be escaped with a backslash character." "
Possible meta characters are:
"
". - Matches any character
"
"^ - Matches the beginning of a line
"
@@ -243,6 +252,9 @@ GrepTool::GrepTool(TQWidget *parent, const char *name)
i18n("The results of the grep run are listed here. Select a\n"
"filename/line number combination and press Enter or doubleclick\n"
"on the item to show the respective line in the editor."));
+ TQWhatsThis::add( cbHideErrors, i18n(
+ "
If this is checked, the dialog window showing the search errors " + "will not be displayed at the end of the search.") ); // event filter, do something relevant for RETURN cmbPattern->installEventFilter( this ); @@ -460,6 +472,7 @@ void GrepTool::finish() config->writeEntry("Recursive", cbRecursive->isChecked()); config->writeEntry("CaseSensitive", cbCasesensitive->isChecked()); config->writeEntry("Regex", cbRegex->isChecked()); + config->writeEntry("HideErrors", cbHideErrors->isChecked()); } void GrepTool::slotCancel() @@ -474,9 +487,12 @@ void GrepTool::childExited() btnClear->setEnabled( true ); btnSearch->setGuiItem( KGuiItem(i18n("Find"), "edit-find") ); - if ( ! errbuf.isEmpty() ) + if ( !errbuf.isEmpty()) { - KMessageBox::information( parentWidget(), i18n("Error:
") + errbuf, i18n("Grep Tool Error") ); + if (!cbHideErrors->isChecked()) + { + KMessageBox::information( parentWidget(), i18n("Error:
") + errbuf, i18n("Grep Tool Error") ); + } errbuf.truncate(0); } else diff --git a/kate/app/kategrepdialog.h b/kate/app/kategrepdialog.h index a3cbbc871..1bd930735 100644 --- a/kate/app/kategrepdialog.h +++ b/kate/app/kategrepdialog.h @@ -79,7 +79,9 @@ private: KComboBox *cmbFiles, *cmbPattern; KURLRequester *cmbDir; TQCheckBox *cbRecursive; - TQCheckBox *cbCasesensitive, *cbRegex; + TQCheckBox *cbCasesensitive; + TQCheckBox *cbRegex; + TQCheckBox *cbHideErrors; TQListBox *lbResult; KPushButton *btnSearch, *btnClear; TDEProcess *childproc;