X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b11752c4f9e1fd4b11ba3d184246267facb3ad3..38aae140acbfd562df1388ae76108efcc52f871c:/src/common/fddlgcmn.cpp diff --git a/src/common/fddlgcmn.cpp b/src/common/fddlgcmn.cpp index d1a6f9ab09..210d36e6d1 100644 --- a/src/common/fddlgcmn.cpp +++ b/src/common/fddlgcmn.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/common/fdrepdlg.cpp +// Name: src/common/fddlgcmn.cpp // Purpose: common parts of wxFindReplaceDialog implementations // Author: Vadim Zeitlin // Modified by: @@ -37,11 +37,11 @@ IMPLEMENT_DYNAMIC_CLASS(wxFindDialogEvent, wxCommandEvent) -wxDEFINE_EVENT( wxEVT_COMMAND_FIND, wxFindDialogEvent ); -wxDEFINE_EVENT( wxEVT_COMMAND_FIND_NEXT, wxFindDialogEvent ); -wxDEFINE_EVENT( wxEVT_COMMAND_FIND_REPLACE, wxFindDialogEvent ); -wxDEFINE_EVENT( wxEVT_COMMAND_FIND_REPLACE_ALL, wxFindDialogEvent ); -wxDEFINE_EVENT( wxEVT_COMMAND_FIND_CLOSE, wxFindDialogEvent ); +wxDEFINE_EVENT( wxEVT_FIND, wxFindDialogEvent ); +wxDEFINE_EVENT( wxEVT_FIND_NEXT, wxFindDialogEvent ); +wxDEFINE_EVENT( wxEVT_FIND_REPLACE, wxFindDialogEvent ); +wxDEFINE_EVENT( wxEVT_FIND_REPLACE_ALL, wxFindDialogEvent ); +wxDEFINE_EVENT( wxEVT_FIND_CLOSE, wxFindDialogEvent ); // ============================================================================ // implementations @@ -71,18 +71,18 @@ void wxFindReplaceDialogBase::Send(wxFindDialogEvent& event) m_FindReplaceData->m_Flags = event.GetFlags(); m_FindReplaceData->m_FindWhat = event.GetFindString(); if ( HasFlag(wxFR_REPLACEDIALOG) && - (event.GetEventType() == wxEVT_COMMAND_FIND_REPLACE || - event.GetEventType() == wxEVT_COMMAND_FIND_REPLACE_ALL) ) + (event.GetEventType() == wxEVT_FIND_REPLACE || + event.GetEventType() == wxEVT_FIND_REPLACE_ALL) ) { m_FindReplaceData->m_ReplaceWith = event.GetReplaceString(); } - // translate wxEVT_COMMAND_FIND_NEXT to wxEVT_COMMAND_FIND if needed - if ( event.GetEventType() == wxEVT_COMMAND_FIND_NEXT ) + // translate wxEVT_FIND_NEXT to wxEVT_FIND if needed + if ( event.GetEventType() == wxEVT_FIND_NEXT ) { if ( m_FindReplaceData->m_FindWhat != m_lastSearch ) { - event.SetEventType(wxEVT_COMMAND_FIND); + event.SetEventType(wxEVT_FIND); m_lastSearch = m_FindReplaceData->m_FindWhat; }