X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..5d0fac27c4b2151b1ff3689cdb602bbaf10a4003:/include/wx/mac/carbon/dnd.h diff --git a/include/wx/mac/carbon/dnd.h b/include/wx/mac/carbon/dnd.h index 00d96c315b..d11389d7d2 100644 --- a/include/wx/mac/carbon/dnd.h +++ b/include/wx/mac/carbon/dnd.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: dnd.h +// Name: wx/mac/carbon/dnd.h // Purpose: Declaration of the wxDropTarget, wxDropSource class etc. // Author: Stefan Csomor // RCS-ID: $Id$ @@ -55,7 +55,7 @@ class WXDLLEXPORT wxDropTarget: public wxDropTargetBase virtual bool OnDrop(wxCoord x, wxCoord y); virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); virtual bool GetData(); - + bool CurrentDragHasSupportedFormat() ; void SetCurrentDrag( void* drag ) { m_currentDrag = drag ; } void* GetCurrentDrag() { return m_currentDrag ; } @@ -86,7 +86,7 @@ public: const wxCursor &cursorMove = wxNullCursor, const wxCursor &cursorStop = wxNullCursor); - ~wxDropSource(); + virtual ~wxDropSource(); // do it (call this in response to a mouse button press, for example) // params: if bAllowMove is false, data can be only copied @@ -95,16 +95,14 @@ public: wxWindow* GetWindow() { return m_window ; } void SetCurrentDrag( void* drag ) { m_currentDrag = drag ; } void* GetCurrentDrag() { return m_currentDrag ; } - bool MacInstallDefaultCursor(wxDragResult effect) ; + bool MacInstallDefaultCursor(wxDragResult effect) ; protected : - + wxWindow *m_window; void* m_currentDrag ; }; -#endif - // D&D - -#endif - //_WX_DND_H_ +#endif // wxUSE_DRAG_AND_DROP +#endif + //_WX_DND_H_