From: Roger U. <ru...@us...> - 2008-04-25 09:54:36
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11513 Modified Files: PyIDropTarget.cpp Log Message: Autoduck improvements Index: PyIDropTarget.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyIDropTarget.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PyIDropTarget.cpp 19 Mar 2004 04:31:01 -0000 1.1 --- PyIDropTarget.cpp 25 Apr 2008 09:54:39 -0000 1.2 *************** *** 37,41 **** } ! // @pymethod |PyIDropTarget|DragEnter|Description of DragEnter. PyObject *PyIDropTarget::DragEnter(PyObject *self, PyObject *args) { --- 37,42 ---- } ! // @pymethod int|PyIDropTarget|DragEnter|Called when an object is initially dragged into a window ! // @rdesc Your implementation of this function should return a shellcon.DROPEFFECT_* value indicating if the object can be accepted PyObject *PyIDropTarget::DragEnter(PyObject *self, PyObject *args) { *************** *** 43,56 **** if ( pIDT == NULL ) return NULL; ! // @pyparm <o PyIDataObject *>|pDataObj||Description for pDataObj ! // @pyparm int|grfKeyState||Description for grfKeyState POINTL pt; PyObject *obpt; ! // @pyparm (int, int)|pt||Description for pt PyObject *obpDataObj; IDataObject *pDataObj; DWORD grfKeyState; DWORD dwEffect; ! // @pyparm int|pdwEffect||Description for pdwEffect if ( !PyArg_ParseTuple(args, "OlOl:DragEnter", &obpDataObj, &grfKeyState, &obpt, &dwEffect) ) return NULL; --- 44,57 ---- if ( pIDT == NULL ) return NULL; ! // @pyparm <o PyIDataObject>|pDataObj||IDataObject interface that contains the object being dragged ! // @pyparm int|grfKeyState||Combination of win32con.MK_* flags containing keyboard modifier state POINTL pt; PyObject *obpt; ! // @pyparm (int, int)|pt||(x,y) Screen coordinates of cursor PyObject *obpDataObj; IDataObject *pDataObj; DWORD grfKeyState; DWORD dwEffect; ! // @pyparm int|pdwEffect||shellcon.DROPEFFECT_* value if ( !PyArg_ParseTuple(args, "OlOl:DragEnter", &obpDataObj, &grfKeyState, &obpt, &dwEffect) ) return NULL; *************** *** 71,75 **** } ! // @pymethod |PyIDropTarget|DragOver|Description of DragOver. PyObject *PyIDropTarget::DragOver(PyObject *self, PyObject *args) { --- 72,78 ---- } ! // @pymethod int|PyIDropTarget|DragOver|Called as the dragged object moves over the window ! // @rdesc Your implementation of this function should return a shellcon.DROPEFFECT_* value indicating if the ! // object can be accepted at the current position PyObject *PyIDropTarget::DragOver(PyObject *self, PyObject *args) { *************** *** 77,86 **** if ( pIDT == NULL ) return NULL; ! // @pyparm int|grfKeyState||Description for grfKeyState POINTL pt; PyObject *obpt; ! // @pyparm (int, int)|pt||Description for pt DWORD dwEffect; ! // @pyparm int|pdwEffect||Description for pdwEffect DWORD grfKeyState; if ( !PyArg_ParseTuple(args, "lOl:DragOver", &grfKeyState, &obpt, &dwEffect) ) --- 80,89 ---- if ( pIDT == NULL ) return NULL; ! // @pyparm int|grfKeyState||Combination of win32con.MK_* flags containing keyboard modifier state POINTL pt; PyObject *obpt; ! // @pyparm (int, int)|pt||(x,y) Screen coordinates of cursor DWORD dwEffect; ! // @pyparm int|pdwEffect||shellcon.DROPEFFECT_* value DWORD grfKeyState; if ( !PyArg_ParseTuple(args, "lOl:DragOver", &grfKeyState, &obpt, &dwEffect) ) *************** *** 99,103 **** } ! // @pymethod |PyIDropTarget|DragLeave|Description of DragLeave. PyObject *PyIDropTarget::DragLeave(PyObject *self, PyObject *args) { --- 102,106 ---- } ! // @pymethod |PyIDropTarget|DragLeave|Called as the object is dragged back out of the window PyObject *PyIDropTarget::DragLeave(PyObject *self, PyObject *args) { *************** *** 120,124 **** } ! // @pymethod |PyIDropTarget|Drop|Description of Drop. PyObject *PyIDropTarget::Drop(PyObject *self, PyObject *args) { --- 123,128 ---- } ! // @pymethod int|PyIDropTarget|Drop|Called when the object is dropped onto the window ! // @rdesc Your implementation of this function should return one of the shellcon.DROPEFFECT_* values PyObject *PyIDropTarget::Drop(PyObject *self, PyObject *args) { *************** *** 126,136 **** if ( pIDT == NULL ) return NULL; ! // @pyparm <o PyIDataObject *>|pDataObj||Description for pDataObj ! // @pyparm int|grfKeyState||Description for grfKeyState POINTL pt; PyObject *obpt; ! // @pyparm (int, int)|pt||Description for pt DWORD dwEffect; ! // @pyparm int|dwEffect||Description for dwEffect PyObject *obpDataObj; IDataObject * pDataObj; --- 130,140 ---- if ( pIDT == NULL ) return NULL; ! // @pyparm <o PyIDataObject>|pDataObj||IDataObject interface containing the dropped object ! // @pyparm int|grfKeyState||Combination of win32con.MK_* flags containing keyboard modifier state POINTL pt; PyObject *obpt; ! // @pyparm (int, int)|pt||(x,y) Screen coordinates of cursor DWORD dwEffect; ! // @pyparm int|dwEffect||shellcon.DROPEFFECT_* value PyObject *obpDataObj; IDataObject * pDataObj; *************** *** 155,165 **** } ! // @object PyIDropTarget|Description of the interface static struct PyMethodDef PyIDropTarget_methods[] = { ! { "DragEnter", PyIDropTarget::DragEnter, 1 }, // @pymeth DragEnter|Description of DragEnter ! { "DragOver", PyIDropTarget::DragOver, 1 }, // @pymeth DragOver|Description of DragOver ! { "DragLeave", PyIDropTarget::DragLeave, 1 }, // @pymeth DragLeave|Description of DragLeave ! { "Drop", PyIDropTarget::Drop, 1 }, // @pymeth Drop|Description of Drop { NULL } }; --- 159,169 ---- } ! // @object PyIDropTarget|Interface that acts as a target of OLE drag and drop operations static struct PyMethodDef PyIDropTarget_methods[] = { ! { "DragEnter", PyIDropTarget::DragEnter, 1 }, // @pymeth DragEnter|Called when an object is initially dragged into a window ! { "DragOver", PyIDropTarget::DragOver, 1 }, // @pymeth DragOver|Called as the dragged object moves over the window ! { "DragLeave", PyIDropTarget::DragLeave, 1 }, // @pymeth DragLeave|Called as the object is dragged back out of the window ! { "Drop", PyIDropTarget::Drop, 1 }, // @pymeth Drop|Called when the object is dropped onto the window { NULL } }; |