fix wxSashEvent, wxFindDialogEvent, wxSplitterEvent to implement Clone() correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-12-27 14:48:26 +00:00
parent 88fff2a712
commit f8a5d9dac6
3 changed files with 19 additions and 3 deletions

View File

@@ -142,6 +142,8 @@ class WXDLLIMPEXP_CORE wxFindDialogEvent : public wxCommandEvent
public:
wxFindDialogEvent(wxEventType commandType = wxEVT_NULL, int id = 0)
: wxCommandEvent(commandType, id) { }
wxFindDialogEvent(const wxFindDialogEvent& event)
: wxCommandEvent(event), m_strReplace(event.m_strReplace) { }
int GetFlags() const { return GetInt(); }
wxString GetFindString() const { return GetString(); }
@@ -155,10 +157,12 @@ public:
void SetFindString(const wxString& str) { SetString(str); }
void SetReplaceString(const wxString& str) { m_strReplace = str; }
virtual wxEvent *Clone() const { return new wxFindDialogEvent(*this); }
private:
wxString m_strReplace;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFindDialogEvent)
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxFindDialogEvent)
};
extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_FIND;