X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..916989dfb95b7e4a72234d946b8e078235046e05:/include/wx/mac/carbon/dnd.h?ds=sidebyside diff --git a/include/wx/mac/carbon/dnd.h b/include/wx/mac/carbon/dnd.h index 626c1dbc03..2f0b8d48ef 100644 --- a/include/wx/mac/carbon/dnd.h +++ b/include/wx/mac/carbon/dnd.h @@ -1,19 +1,15 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: dnd.h +// Name: wx/mac/carbon/dnd.h // Purpose: Declaration of the wxDropTarget, wxDropSource class etc. // Author: Stefan Csomor // RCS-ID: $Id$ // Copyright: (c) 1998 Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_DND_H_ #define _WX_DND_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "dnd.h" -#endif - #if wxUSE_DRAG_AND_DROP #include "wx/defs.h" @@ -27,13 +23,13 @@ // classes //------------------------------------------------------------------------- -class WXDLLEXPORT wxWindow; +class WXDLLIMPEXP_FWD_CORE wxWindow; -class WXDLLEXPORT wxDropTarget; -class WXDLLEXPORT wxTextDropTarget; -class WXDLLEXPORT wxFileDropTarget; +class WXDLLIMPEXP_FWD_CORE wxDropTarget; +class WXDLLIMPEXP_FWD_CORE wxTextDropTarget; +class WXDLLIMPEXP_FWD_CORE wxFileDropTarget; -class WXDLLEXPORT wxDropSource; +class WXDLLIMPEXP_FWD_CORE wxDropSource; // ---------------------------------------------------------------------------- // macros @@ -43,13 +39,13 @@ class WXDLLEXPORT wxDropSource; // the icon 'name' from an XPM file under GTK, but will expand to something // else under MSW. If you don't use it, you will have to use #ifdef in the // application code. -#define wxDROP_ICON(X) wxCursor( (const char**) X##_xpm ) +#define wxDROP_ICON(X) wxCursor(X##_xpm) //------------------------------------------------------------------------- // wxDropTarget //------------------------------------------------------------------------- -class WXDLLEXPORT wxDropTarget: public wxDropTargetBase +class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase { public: @@ -59,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 ; } @@ -71,7 +67,7 @@ class WXDLLEXPORT wxDropTarget: public wxDropTargetBase // wxDropSource //------------------------------------------------------------------------- -class WXDLLEXPORT wxDropSource: public wxDropSourceBase +class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase { public: // ctors: if you use default ctor you must call SetData() later! @@ -90,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 @@ -99,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_