void FindToolBar::invokeGlobalFindPrevious() { if (getFindText().isEmpty()) { openFind(); } else { acceptCandidateAndMoveToolBar(); invokeFindPrevious(); } }
void FindToolBar::invokeFindIncremental() { m_findIncrementalTimer.stop(); m_findStepTimer.stop(); if (m_currentDocumentFind->isEnabled()) { QString text = getFindText(); IFindSupport::Result result = m_currentDocumentFind->findIncremental(text, effectiveFindFlags()); indicateSearchState(result); if (result == IFindSupport::NotYetFound) m_findIncrementalTimer.start(50); if (text.isEmpty()) m_currentDocumentFind->clearHighlights(); } }
/* FindReplacePanel::onTextReplaceEnter * Called when the enter key is pressed within the 'Find' text box *******************************************************************/ void FindReplacePanel::onTextReplaceEnter(wxCommandEvent& e) { text_editor->replaceCurrent(getFindText(), getReplaceText(), getFindFlags()); }
/* FindReplacePanel::onBtnReplaceAll * Called when the 'Replace All' button is clicked *******************************************************************/ void FindReplacePanel::onBtnReplaceAll(wxCommandEvent& e) { text_editor->replaceAll(getFindText(), getReplaceText(), getFindFlags()); }
/* FindReplacePanel::onBtnFindPrev * Called when the 'Find Previous' button is clicked *******************************************************************/ void FindReplacePanel::onBtnFindPrev(wxCommandEvent& e) { text_editor->findPrev(getFindText(), getFindFlags()); }