Added event Clone functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-11-23 12:37:00 +00:00
parent f1fa9adc7a
commit 41286fd1de
6 changed files with 60 additions and 50 deletions

View File

@@ -90,8 +90,11 @@ class wxScrollBar;
class wxDynamicSashSplitEvent : public wxCommandEvent {
public:
wxDynamicSashSplitEvent();
wxDynamicSashSplitEvent(const wxDynamicSashSplitEvent& event): wxCommandEvent(event) { }
wxDynamicSashSplitEvent(wxObject *target);
virtual wxEvent* Clone() const { return new wxDynamicSashSplitEvent(*this); }
private:
DECLARE_DYNAMIC_CLASS(wxDynamicSashSplitEvent)
};
@@ -109,8 +112,11 @@ private:
class wxDynamicSashUnifyEvent : public wxCommandEvent {
public:
wxDynamicSashUnifyEvent();
wxDynamicSashUnifyEvent(const wxDynamicSashUnifyEvent& event): wxCommandEvent(event) {}
wxDynamicSashUnifyEvent(wxObject *target);
virtual wxEvent* Clone() const { return new wxDynamicSashUnifyEvent(*this); }
private:
DECLARE_DYNAMIC_CLASS(wxDynamicSashUnifyEvent);
};

View File

@@ -1641,6 +1641,7 @@ private:
class wxStyledTextEvent : public wxCommandEvent {
public:
wxStyledTextEvent(const wxStyledTextEvent& event);
wxStyledTextEvent(wxEventType commandType=0, int id=0);
~wxStyledTextEvent() {}
@@ -1694,7 +1695,8 @@ public:
bool GetControl() const;
bool GetAlt() const;
void CopyObject(wxObject& obj) const;
// void CopyObject(wxObject& obj) const;
virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
#ifndef SWIG
private: