Contents Up Previous Next

wxFindReplaceHelper

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::wxFindReplaceHelper

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::~wxFindReplaceHelper

~wxFindReplaceHelper()


wxFindReplaceHelper::CollectFindData

bool CollectFindData(wxString& find, bool& bCase, bool& bWord)

Static function to safely collect data we need to search.


wxFindReplaceHelper::CollectReplaceData

bool CollectReplaceData(wxString& find, wxString& replace, bool& bCase, bool& bWord)

Static function to safely collect data we need to replace.


wxFindReplaceHelper::DeleteFindData

void DeleteFindData()

Static function. Call this to clean up the find helper data. Make sure to call this at the end of the program.


wxFindReplaceHelper::DeleteInstance

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

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!!!


wxFindReplaceHelper::IsInstanceCreated

bool IsInstanceCreated()

Static function. This can be called when we need to know if there is a instance.


wxFindReplaceHelper::OnCloseFindDialog

void OnCloseFindDialog(wxFindDialogEvent& event)

Called when the dialog is closed.


wxFindReplaceHelper::OnFindReplace

void OnFindReplace(wxFindDialogEvent& event)

Called when a Find/Next/Replace/Replace All button is pressed.


wxFindReplaceHelper::SetActiveView

void SetActiveView(wxWindow* pView)

Set the active view.