build fix for wxUSE_DRAG_AND_DROP==0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-04-11 04:48:37 +00:00
parent c1d1a5ad5e
commit 3dcb256bea
2 changed files with 8 additions and 2 deletions

View File

@@ -103,9 +103,9 @@ public :
void SetCursor( const wxCursor & cursor ); void SetCursor( const wxCursor & cursor );
void CaptureMouse(); void CaptureMouse();
void ReleaseMouse(); void ReleaseMouse();
#if wxUSE_DRAG_AND_DROP
void SetDropTarget(wxDropTarget* target); void SetDropTarget(wxDropTarget* target);
#endif
wxInt32 GetValue() const; wxInt32 GetValue() const;
void SetValue( wxInt32 v ); void SetValue( wxInt32 v );
wxBitmap GetBitmap() const; wxBitmap GetBitmap() const;
@@ -148,10 +148,12 @@ public :
// cocoa thunk connected calls // cocoa thunk connected calls
#if wxUSE_DRAG_AND_DROP
virtual unsigned int draggingEntered(void* sender, WXWidget slf, void* _cmd); virtual unsigned int draggingEntered(void* sender, WXWidget slf, void* _cmd);
virtual void draggingExited(void* sender, WXWidget slf, void* _cmd); virtual void draggingExited(void* sender, WXWidget slf, void* _cmd);
virtual unsigned int draggingUpdated(void* sender, WXWidget slf, void* _cmd); virtual unsigned int draggingUpdated(void* sender, WXWidget slf, void* _cmd);
virtual bool performDragOperation(void* sender, WXWidget slf, void* _cmd); virtual bool performDragOperation(void* sender, WXWidget slf, void* _cmd);
#endif
virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd); virtual void mouseEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void cursorUpdate(WX_NSEvent event, WXWidget slf, void* _cmd); virtual void cursorUpdate(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd); virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd);

View File

@@ -1135,6 +1135,7 @@ void wxOSX_controlDoubleAction(NSView* self, SEL _cmd, id sender)
impl->controlDoubleAction(self, _cmd, sender); impl->controlDoubleAction(self, _cmd, sender);
} }
#if wxUSE_DRAG_AND_DROP
unsigned int wxWidgetCocoaImpl::draggingEntered(void* s, WXWidget WXUNUSED(slf), void *WXUNUSED(_cmd)) unsigned int wxWidgetCocoaImpl::draggingEntered(void* s, WXWidget WXUNUSED(slf), void *WXUNUSED(_cmd))
{ {
id <NSDraggingInfo>sender = (id <NSDraggingInfo>) s; id <NSDraggingInfo>sender = (id <NSDraggingInfo>) s;
@@ -1278,6 +1279,7 @@ bool wxWidgetCocoaImpl::performDragOperation(void* s, WXWidget WXUNUSED(slf), vo
return result != wxDragNone; return result != wxDragNone;
} }
#endif // wxUSE_DRAG_AND_DROP
void wxWidgetCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd) void wxWidgetCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd)
{ {
@@ -2337,6 +2339,7 @@ bool wxWidgetCocoaImpl::SetFocus()
return true; return true;
} }
#if wxUSE_DRAG_AND_DROP
void wxWidgetCocoaImpl::SetDropTarget(wxDropTarget* target) void wxWidgetCocoaImpl::SetDropTarget(wxDropTarget* target)
{ {
[m_osxView unregisterDraggedTypes]; [m_osxView unregisterDraggedTypes];
@@ -2358,6 +2361,7 @@ void wxWidgetCocoaImpl::SetDropTarget(wxDropTarget* target)
CFRelease(typesarray); CFRelease(typesarray);
} }
} }
#endif // wxUSE_DRAG_AND_DROP
void wxWidgetCocoaImpl::RemoveFromParent() void wxWidgetCocoaImpl::RemoveFromParent()
{ {