/* This is -*- ObjC -*-) DragDropMatrix.h \author: Björn Giesler A Matrix that allows drag and drop between its cells $Author: bjoern $ $Locker: $ $Revision: 1.1.1.1 $ $Date: 2004/02/14 18:00:00 $ */ #ifndef DRAGDROPMATRIX_H #define DRAGDROPMATRIX_H /* system includes */ /* (none) */ /* my includes */ /* (none) */ @interface DragDropMatrix: NSMatrix { NSBrowserCell *oldCell, *curCell; NSRect oldFrame; int groupRow; BOOL _didDrag; SEL _shouldSel, _didSel; } - (BOOL) acceptsFirstMouse: (NSEvent *) event; - (void) copyToPasteboard: (NSPasteboard *) pb; - (void) mouseDown: (NSEvent *) event; - (void) mouseDragged: (NSEvent *) event; - (NSDragOperation) draggingSourceOperationMaskForLocal: (BOOL) local; - (void) draggingExited: (id) sender; - (NSDragOperation) draggingUpdated: (id) sender; - (BOOL) prepareForDragOperation: (id) sender; - (BOOL) performDragOperation: (id) sender; - (NSImage*) draggingImage; @end @interface NSObject (DragDropMatrixDelegate) - (NSDragOperation) dragDropMatrix: (DragDropMatrix*) matrix shouldAcceptDropFromSender: (id) sender onCell: (NSCell*) cell; - (BOOL) dragDropMatrix: (DragDropMatrix*) matrix didAcceptDropFromSender: (id) sender onCell: (NSCell*) cell; @end #endif /* DRAGDROPMATRIX_H */