mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:27:38 +00:00
Allow to switch off the showing of the applications icon.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22892 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8952b82d93
commit
b6341d6e1a
4 changed files with 56 additions and 39 deletions
|
@ -69,6 +69,7 @@
|
|||
position: (NSPoint)eventLocation
|
||||
timestamp: (NSTimeInterval)time
|
||||
toWindow: (NSWindow*)dWindow;
|
||||
- (void) _handleDrag: (NSEvent*)theEvent slidePoint: (NSPoint)slidePoint;
|
||||
- (void) _handleEventDuringDragging: (NSEvent *)theEvent;
|
||||
- (void) _updateAndMoveImageToCorrectPosition;
|
||||
- (void) _moveDraggedImageToNewPosition;
|
||||
|
@ -110,7 +111,7 @@
|
|||
|
||||
static GSDragView *sharedDragView = nil;
|
||||
|
||||
+ (GSDragView*) sharedDragView
|
||||
+ (id) sharedDragView
|
||||
{
|
||||
if (sharedDragView == nil)
|
||||
{
|
||||
|
@ -306,6 +307,32 @@ static GSDragView *sharedDragView = nil;
|
|||
}
|
||||
}
|
||||
|
||||
- (void) sendExternalEvent: (GSAppKitSubtype)subtype
|
||||
action: (NSDragOperation)action
|
||||
position: (NSPoint)eventLocation
|
||||
timestamp: (NSTimeInterval)time
|
||||
toWindow: (int)dWindowNumber
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
Return the window that lies below the cursor and accepts drag and drop.
|
||||
In mouseWindowRef the OS reference for this window is returned, this is even
|
||||
set, if there is a native window, but no GNUstep window at this location.
|
||||
*/
|
||||
- (NSWindow*) windowAcceptingDnDunder: (NSPoint)mouseLocation
|
||||
windowRef: (int*)mouseWindowRef
|
||||
{
|
||||
int win;
|
||||
|
||||
*mouseWindowRef = 0;
|
||||
win = [GSServerForWindow(_window) findWindowAt: mouseLocation
|
||||
windowRef: mouseWindowRef
|
||||
excluding: [_window windowNumber]];
|
||||
|
||||
return GSWindowWithNumber(win);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation GSDragView (Private)
|
||||
|
@ -531,14 +558,6 @@ static GSDragView *sharedDragView = nil;
|
|||
[dWindow sendEvent: e];
|
||||
}
|
||||
|
||||
- (void) sendExternalEvent: (GSAppKitSubtype)subtype
|
||||
action: (NSDragOperation)action
|
||||
position: (NSPoint)eventLocation
|
||||
timestamp: (NSTimeInterval)time
|
||||
toWindow: (int)dWindowNumber
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
The dragging support works by hijacking the NSApp event loop.
|
||||
|
||||
|
@ -980,22 +999,4 @@ static GSDragView *sharedDragView = nil;
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Return the window that lies below the cursor and accepts drag and drop.
|
||||
In mouseWindowRef the OS reference for this window is returned, this is even
|
||||
set, if there is a native window, but no GNUstep window at this location.
|
||||
*/
|
||||
- (NSWindow*) windowAcceptingDnDunder: (NSPoint)mouseLocation
|
||||
windowRef: (int*)mouseWindowRef
|
||||
{
|
||||
int win;
|
||||
|
||||
*mouseWindowRef = 0;
|
||||
win = [GSServerForWindow(_window) findWindowAt: mouseLocation
|
||||
windowRef: mouseWindowRef
|
||||
excluding: [_window windowNumber]];
|
||||
|
||||
return GSWindowWithNumber(win);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue