Fixed an OOR related bug that happened when a class has been renamed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-09-07 16:28:24 +00:00
parent 431f4c161d
commit cdf14688f5
29 changed files with 275 additions and 257 deletions

View File

@@ -473,6 +473,13 @@ public:
wxGenericDragImage(const wxBitmap& image,
const wxCursor& cursor = wxNullCursor);
%name(wxDragIcon)wxGenericDragImage(const wxIcon& image,
const wxCursor& cursor = wxNullCursor);
%name(wxDragString)wxGenericDragImage(const wxString& str,
const wxCursor& cursor = wxNullCursor);
%name(wxDragTreeItem)wxGenericDragImage(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
%name(wxDragListItem)wxGenericDragImage(const wxListCtrl& listCtrl, long id);
~wxGenericDragImage();
void SetBackingBitmap(wxBitmap* bitmap);
@@ -493,42 +500,6 @@ public:
};
// Alternate Constructors
%new wxGenericDragImage* wxDragIcon(const wxIcon& image,
const wxCursor& cursor = wxNullCursor);
%new wxGenericDragImage* wxDragString(const wxString& str,
const wxCursor& cursor = wxNullCursor);
%new wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
%new wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id);
%{
wxGenericDragImage* wxDragIcon(const wxIcon& image,
const wxCursor& cursor) {
return new wxGenericDragImage(image, cursor);
}
wxGenericDragImage* wxDragString(const wxString& str,
const wxCursor& cursor) {
return new wxGenericDragImage(str, cursor);
}
wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) {
return new wxGenericDragImage(treeCtrl, id);
}
wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id) {
return new wxGenericDragImage(listCtrl, id);
}
%}
//----------------------------------------------------------------------
class wxPyTimer : public wxObject {