Replaced CopyObject with Clone for wxPython-specific event classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-11-20 06:04:42 +00:00
parent 262e41eb55
commit 07b2e1cd38
8 changed files with 118 additions and 26 deletions

View File

@@ -219,22 +219,24 @@ protected:
class wxPyEvent : public wxEvent, public wxPyEvtSelfRef {
DECLARE_DYNAMIC_CLASS(wxPyEvent)
DECLARE_ABSTRACT_CLASS(wxPyEvent)
public:
wxPyEvent(int id=0);
wxPyEvent(const wxPyEvent& evt);
~wxPyEvent();
void CopyObject(wxObject& dest) const;
virtual wxEvent* Clone() const { return new wxPyEvent(*this); }
};
class wxPyCommandEvent : public wxCommandEvent, public wxPyEvtSelfRef {
DECLARE_DYNAMIC_CLASS(wxPyCommandEvent)
DECLARE_ABSTRACT_CLASS(wxPyCommandEvent)
public:
wxPyCommandEvent(wxEventType commandType = wxEVT_NULL, int id=0);
wxPyCommandEvent(const wxPyCommandEvent& evt);
~wxPyCommandEvent();
void CopyObject(wxObject& dest) const;
virtual wxEvent* Clone() const { return new wxPyCommandEvent(*this); }
};