Example #1
0
void FindToolBar::invokeGlobalFindPrevious()
{
    if (getFindText().isEmpty()) {
        openFind();
    } else {
        acceptCandidateAndMoveToolBar();
        invokeFindPrevious();
    }
}
Example #2
0
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();
    }
}
Example #3
0
/* 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());
}
Example #4
0
/* FindReplacePanel::onBtnReplaceAll
 * Called when the 'Replace All' button is clicked
 *******************************************************************/
void FindReplacePanel::onBtnReplaceAll(wxCommandEvent& e)
{
	text_editor->replaceAll(getFindText(), getReplaceText(), getFindFlags());
}
Example #5
0
/* FindReplacePanel::onBtnFindPrev
 * Called when the 'Find Previous' button is clicked
 *******************************************************************/
void FindReplacePanel::onBtnFindPrev(wxCommandEvent& e)
{
	text_editor->findPrev(getFindText(), getFindFlags());
}