#ifndef _WX_DND_H_
#define _WX_DND_H_
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "dnd.h"
#endif
virtual bool GetData();
bool CurrentDragHasSupportedFormat() ;
- void SetCurrentDrag( DragReference drag ) { m_currentDrag = drag ; }
- DragReference GetCurrentDrag() { return m_currentDrag ; }
+ void SetCurrentDrag( void* drag ) { m_currentDrag = drag ; }
+ void* GetCurrentDrag() { return m_currentDrag ; }
protected :
- DragReference m_currentDrag ;
+ void* m_currentDrag ;
};
//-------------------------------------------------------------------------
~wxDropSource();
/* start drag action */
- virtual wxDragResult DoDragDrop( bool bAllowMove = FALSE );
+ virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);
wxWindow* GetWindow() { return m_window ; }
- void SetCurrentDrag( DragReference drag ) { m_currentDrag = drag ; }
- DragReference GetCurrentDrag() { return m_currentDrag ; }
+ void SetCurrentDrag( void* drag ) { m_currentDrag = drag ; }
+ void* GetCurrentDrag() { return m_currentDrag ; }
protected :
wxWindow *m_window;
- DragReference m_currentDrag ;
+ void* m_currentDrag ;
};
#endif