Helper class to integrate find/replace dialog into PMF. Derived from
wxFindReplaceDialog
Data structures
Members
wxFindReplaceHelper::wxFindReplaceHelper
wxFindReplaceHelper::~wxFindReplaceHelper
wxFindReplaceHelper::CollectFindData
wxFindReplaceHelper::CollectReplaceData
wxFindReplaceHelper::DeleteFindData
wxFindReplaceHelper::DeleteInstance
wxFindReplaceHelper::GetInstance
wxFindReplaceHelper::IsInstanceCreated
wxFindReplaceHelper::OnCloseFindDialog
wxFindReplaceHelper::OnFindReplace
wxFindReplaceHelper::SetActiveView
wxFindReplaceHelper(wxWindow* parent, wxFindReplaceData* data, const wxString& title, long flags)
NOTE: Put all constructors in the protected section of this class, so that a user no longer can construct it with new or just on the stack... This forced the user to us GetInstance (to create/get the 1 and only instance) and DeleteInstance (to clean-up...).
~wxFindReplaceHelper()
bool CollectFindData(wxString& find, bool& bCase, bool& bWord)
Static function to safely collect data we need to search.
bool CollectReplaceData(wxString& find, wxString& replace, bool& bCase, bool& bWord)
Static function to safely collect data we need to replace.
void DeleteFindData()
Static function. Call this to clean up the find helper data. Make sure to call this at the end of the program.
void DeleteInstance(bool bSaveDelete = TRUE)
Static function. Call this to clean up the one instance. Make sure to call this at the end of the program.
wxFindReplaceHelper* GetInstance(wxWindow* parent, const bool bFindReplace = FALSE)
Static function. Call this if you need to get a pointer to the one and only instance of this class. should be pView!!!
bool IsInstanceCreated()
Static function. This can be called when we need to know if there is a instance.
void OnCloseFindDialog(wxFindDialogEvent& event)
Called when the dialog is closed.
void OnFindReplace(wxFindDialogEvent& event)
Called when a Find/Next/Replace/Replace All button is pressed.
void SetActiveView(wxWindow* pView)
Set the active view.