mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:50:40 +00:00
Correct the definition of NSDragOperation and all its usages.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31754 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b3c6e86043
commit
0efb94944b
11 changed files with 49 additions and 34 deletions
|
@ -77,7 +77,7 @@ static NSTableViewDropOperation oldDropOperation;
|
|||
static NSTableViewDropOperation currentDropOperation;
|
||||
static int currentDropRow;
|
||||
static int lastQuarterPosition;
|
||||
static unsigned currentDragOperation;
|
||||
static NSDragOperation currentDragOperation;
|
||||
|
||||
/*
|
||||
* Nib compatibility struct. This structure is used to
|
||||
|
@ -6095,7 +6095,7 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
}
|
||||
|
||||
|
||||
- (unsigned int) draggingSourceOperationMaskForLocal: (BOOL)isLocal
|
||||
- (NSDragOperation) draggingSourceOperationMaskForLocal: (BOOL)isLocal
|
||||
{
|
||||
if (isLocal)
|
||||
{
|
||||
|
@ -6107,7 +6107,7 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
}
|
||||
}
|
||||
|
||||
- (void) setDraggingSourceOperationMask: (unsigned int)mask
|
||||
- (void) setDraggingSourceOperationMask: (NSDragOperation)mask
|
||||
forLocal: (BOOL)isLocal
|
||||
{
|
||||
if (isLocal)
|
||||
|
@ -6127,11 +6127,10 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
oldDropRow = -1;
|
||||
lastQuarterPosition = -1;
|
||||
oldDraggingRect = NSMakeRect(0.,0., 0., 0.);
|
||||
currentDragOperation = NSDragOperationAll;
|
||||
currentDragOperation = NSDragOperationEvery;
|
||||
return currentDragOperation;
|
||||
}
|
||||
|
||||
|
||||
- (void) draggingExited: (id <NSDraggingInfo>) sender
|
||||
{
|
||||
[self setNeedsDisplayInRect: oldDraggingRect];
|
||||
|
@ -6145,7 +6144,7 @@ This method is deprecated, use -columnIndexesInRect:. */
|
|||
int row;
|
||||
int quarterPosition, positionInRow;
|
||||
int currentRow;
|
||||
unsigned dragOperation;
|
||||
NSDragOperation dragOperation;
|
||||
|
||||
p = [self convertPoint: p fromView: nil];
|
||||
/* This is a crude method of scrolling the view while dragging so
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue