void ReplaceInFilesPanel::OnSearchStart(wxCommandEvent& e) { e.Skip(); // set the "Replace With" field with the user value SearchData* data = (SearchData*)e.GetClientData(); m_replaceWith->ChangeValue(data->GetReplaceWith()); // FindResultsTab::OnSearchStart(e); }
void SearchThread::ProcessRequest(ThreadRequest* req) { wxStopWatch sw; m_summary = SearchSummary(); DoSearchFiles(req); m_summary.SetElapsedTime(sw.Time()); SearchData* sd = (SearchData*)req; m_summary.SetFindWhat(sd->GetFindString()); m_summary.SetReplaceWith(sd->GetReplaceWith()); // Send search end event SendEvent(wxEVT_SEARCH_THREAD_SEARCHEND, sd->GetOwner()); }