class WXDLLEXPORT wxWindow;
+#ifndef __DARWIN__
class WXDLLEXPORT wxDataObject;
class WXDLLEXPORT wxTextDataObject;
class WXDLLEXPORT wxFileDataObject;
+#endif
class WXDLLEXPORT wxDropTarget;
class WXDLLEXPORT wxTextDropTarget;
class WXDLLEXPORT wxDropSource;
+#ifndef __DARWIN__
//-------------------------------------------------------------------------
// wxDataObject
//-------------------------------------------------------------------------
-class WXDLLEXPORT wxDataObject: public wxObject
+class WXDLLEXPORT wxDataObject : public wxObject
{
public:
// all data formats (values are the same as in windows.h, do not change!)
wxString m_files;
};
+#endif
+
//-------------------------------------------------------------------------
// wxDropTarget
//-------------------------------------------------------------------------
virtual void OnEnter() { }
virtual void OnLeave() { }
- virtual bool OnDrop( long x, long y, const void *pData ) = 0;
+ virtual bool OnDrop( wxCoord x, wxCoord y, const void *pData ) = 0;
// protected:
- friend wxWindow;
+ friend class wxWindow;
// Override these to indicate what kind of data you support:
virtual wxDataFormat GetFormat(size_t n) const = 0;
};
+#ifndef __DARWIN__
//-------------------------------------------------------------------------
// wxTextDropTarget
//-------------------------------------------------------------------------
public:
wxTextDropTarget() {};
- virtual bool OnDrop( long x, long y, const void *pData );
- virtual bool OnDropText( long x, long y, const char *psz );
+ virtual bool OnDrop( wxCoord x, wxCoord y, const void *pData );
+ virtual bool OnDropText( wxCoord x, wxCoord y, const char *psz );
protected:
wxFileDropTarget() {};
- virtual bool OnDrop(long x, long y, const void *pData);
- virtual bool OnDropFiles( long x, long y,
+ virtual bool OnDrop(wxCoord x, wxCoord y, const void *pData);
+ virtual bool OnDropFiles( wxCoord x, wxCoord y,
size_t nFiles, const char * const aszFiles[]);
protected:
virtual size_t GetFormatCount() const;
virtual wxDataFormat GetFormat(size_t n) const;
};
+#endif
//-------------------------------------------------------------------------
// wxDropSource
//-------------------------------------------------------------------------
-enum wxDragResult
- {
- wxDragError, // error prevented the d&d operation from completing
- wxDragNone, // drag target didn't accept the data
- wxDragCopy, // the data was successfully copied
- wxDragMove, // the data was successfully moved
- wxDragCancel // the operation was cancelled by user (not an error)
- };
-
class WXDLLEXPORT wxDropSource: public wxObject
{
public: