X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..bffe56c5d19df9926686722fc09ad096afb47633:/wxPython/src/msw/clip_dnd.py diff --git a/wxPython/src/msw/clip_dnd.py b/wxPython/src/msw/clip_dnd.py index 8be9ceb3a4..2743257032 100644 --- a/wxPython/src/msw/clip_dnd.py +++ b/wxPython/src/msw/clip_dnd.py @@ -4,6 +4,8 @@ import clip_dndc from misc import * from gdi import * + +from fonts import * import wx class wxDataFormatPtr : def __init__(self,this): @@ -100,8 +102,8 @@ class wxPyDataObjectSimplePtr(wxDataObjectSimplePtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxPyDataObjectSimple__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxPyDataObjectSimple__setCallbackInfo,(self,) + _args, _kwargs) return val def __repr__(self): return "" % (self.this,) @@ -109,7 +111,7 @@ class wxPyDataObjectSimple(wxPyDataObjectSimplePtr): def __init__(self,*_args,**_kwargs): self.this = apply(clip_dndc.new_wxPyDataObjectSimple,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyDataObjectSimple) + self._setCallbackInfo(self, wxPyDataObjectSimple) @@ -159,8 +161,8 @@ class wxPyTextDataObjectPtr(wxTextDataObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxPyTextDataObject__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxPyTextDataObject__setCallbackInfo,(self,) + _args, _kwargs) return val def __repr__(self): return "" % (self.this,) @@ -168,7 +170,7 @@ class wxPyTextDataObject(wxPyTextDataObjectPtr): def __init__(self,*_args,**_kwargs): self.this = apply(clip_dndc.new_wxPyTextDataObject,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyTextDataObject) + self._setCallbackInfo(self, wxPyTextDataObject) @@ -198,8 +200,8 @@ class wxPyBitmapDataObjectPtr(wxBitmapDataObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxPyBitmapDataObject__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxPyBitmapDataObject__setCallbackInfo,(self,) + _args, _kwargs) return val def __repr__(self): return "" % (self.this,) @@ -207,7 +209,7 @@ class wxPyBitmapDataObject(wxPyBitmapDataObjectPtr): def __init__(self,*_args,**_kwargs): self.this = apply(clip_dndc.new_wxPyBitmapDataObject,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyBitmapDataObject) + self._setCallbackInfo(self, wxPyBitmapDataObject) @@ -258,7 +260,47 @@ class wxCustomDataObject(wxCustomDataObjectPtr): -class wxClipboardPtr : +class wxURLDataObjectPtr(wxDataObjectCompositePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetURL(self, *_args, **_kwargs): + val = apply(clip_dndc.wxURLDataObject_GetURL,(self,) + _args, _kwargs) + return val + def SetURL(self, *_args, **_kwargs): + val = apply(clip_dndc.wxURLDataObject_SetURL,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxURLDataObject(wxURLDataObjectPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(clip_dndc.new_wxURLDataObject,_args,_kwargs) + self.thisown = 1 + + + + +class wxMetafileDataObjectPtr(wxDataObjectSimplePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def SetMetafile(self, *_args, **_kwargs): + val = apply(clip_dndc.wxMetafileDataObject_SetMetafile,(self,) + _args, _kwargs) + return val + def GetMetafile(self, *_args, **_kwargs): + val = apply(clip_dndc.wxMetafileDataObject_GetMetafile,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxMetafileDataObject(wxMetafileDataObjectPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(clip_dndc.new_wxMetafileDataObject,_args,_kwargs) + self.thisown = 1 + + + + +class wxClipboardPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -308,8 +350,8 @@ class wxDropSourcePtr : def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxDropSource__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxDropSource__setCallbackInfo,(self,) + _args, _kwargs) return val def __del__(self,clip_dndc=clip_dndc): if self.thisown == 1 : @@ -336,7 +378,7 @@ class wxDropSource(wxDropSourcePtr): def __init__(self,*_args,**_kwargs): self.this = apply(clip_dndc.new_wxDropSource,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxDropSource, 0) + self._setCallbackInfo(self, wxDropSource, 0) @@ -358,8 +400,8 @@ class wxPyDropTargetPtr(wxDropTargetPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxPyDropTarget__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxPyDropTarget__setCallbackInfo,(self,) + _args, _kwargs) return val def __del__(self,clip_dndc=clip_dndc): if self.thisown == 1 : @@ -394,7 +436,7 @@ class wxPyDropTarget(wxPyDropTargetPtr): self.this = apply(clip_dndc.new_wxPyDropTarget,_args,_kwargs) self.thisown = 1 if _args:_args[0].thisown = 0 - self._setSelf(self, wxPyDropTarget) + self._setCallbackInfo(self, wxPyDropTarget) @@ -403,8 +445,8 @@ class wxTextDropTargetPtr(wxPyDropTargetPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxTextDropTarget__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxTextDropTarget__setCallbackInfo,(self,) + _args, _kwargs) return val def base_OnEnter(self, *_args, **_kwargs): val = apply(clip_dndc.wxTextDropTarget_base_OnEnter,(self,) + _args, _kwargs) @@ -427,7 +469,7 @@ class wxTextDropTarget(wxTextDropTargetPtr): def __init__(self,*_args,**_kwargs): self.this = apply(clip_dndc.new_wxTextDropTarget,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxTextDropTarget) + self._setCallbackInfo(self, wxTextDropTarget) @@ -436,8 +478,8 @@ class wxFileDropTargetPtr(wxPyDropTargetPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(clip_dndc.wxFileDropTarget__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(clip_dndc.wxFileDropTarget__setCallbackInfo,(self,) + _args, _kwargs) return val def base_OnEnter(self, *_args, **_kwargs): val = apply(clip_dndc.wxFileDropTarget_base_OnEnter,(self,) + _args, _kwargs) @@ -460,7 +502,7 @@ class wxFileDropTarget(wxFileDropTargetPtr): def __init__(self,*_args,**_kwargs): self.this = apply(clip_dndc.new_wxFileDropTarget,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxFileDropTarget) + self._setCallbackInfo(self, wxFileDropTarget) @@ -498,12 +540,17 @@ wxDF_ENHMETAFILE = clip_dndc.wxDF_ENHMETAFILE wxDF_FILENAME = clip_dndc.wxDF_FILENAME wxDF_LOCALE = clip_dndc.wxDF_LOCALE wxDF_PRIVATE = clip_dndc.wxDF_PRIVATE +wxDF_HTML = clip_dndc.wxDF_HTML wxDF_MAX = clip_dndc.wxDF_MAX cvar = clip_dndc.cvar wxFormatInvalid = wxDataFormatPtr(clip_dndc.cvar.wxFormatInvalid) wxTheClipboard = wxClipboardPtr(clip_dndc.cvar.wxTheClipboard) +wxDrag_CopyOnly = clip_dndc.wxDrag_CopyOnly +wxDrag_AllowMove = clip_dndc.wxDrag_AllowMove +wxDrag_DefaultMove = clip_dndc.wxDrag_DefaultMove wxDragError = clip_dndc.wxDragError wxDragNone = clip_dndc.wxDragNone wxDragCopy = clip_dndc.wxDragCopy wxDragMove = clip_dndc.wxDragMove +wxDragLink = clip_dndc.wxDragLink wxDragCancel = clip_dndc.wxDragCancel