Applied Harukalover's patch - Added an effect field to find and search and replace dialogs

Originally committed to SVN as r2211.
This commit is contained in:
Alysson Souza 2008-06-24 03:22:46 +00:00
parent 5330c541ca
commit 79cb1f1bd9
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ DialogSearchReplace::DialogSearchReplace (wxWindow *parent,bool _hasReplace,wxSt
field.Add(_("Text"));
field.Add(_("Style"));
field.Add(_("Actor"));
field.Add(_("Effect"));
wxArrayString affect;
affect.Add(_("All rows"));
affect.Add(_("Selected rows"));
@ -587,6 +588,7 @@ wxString *SearchReplaceEngine::GetText(int n,int field) {
if (field == 0) return &cur->Text;
else if (field == 1) return &cur->Style;
else if (field == 2) return &cur->Actor;
else if (field == 3) return &cur->Effect;
else throw wxString(_T("Invalid field"));
}