mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Tweaks for subclassing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20998 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bd3e29cb15
commit
4f37f34b9f
3 changed files with 11 additions and 4 deletions
|
@ -1,9 +1,15 @@
|
|||
2005-03-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSDragView.m:
|
||||
* Headers/Additions/GNUstepGUI/GSDragView.h: Minor tweaks to ease
|
||||
subclassing.
|
||||
|
||||
2005-03-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSDragView.m: Fix a few bugs exposed by windows port and
|
||||
tidy/add comments to clarify operation. When initiating DnD session,
|
||||
take offset argument into account rather than ignoring it.
|
||||
* Headers/Additions/GNUstepGUI/GSDrafView.h: Improve comments and
|
||||
* Headers/Additions/GNUstepGUI/GSDragView.h: Improve comments and
|
||||
change offset to be NSSize rather thgan NSPoint.
|
||||
|
||||
2005-03-21 Adam Fedor <fedor@gnu.org>
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
NSMutableDictionary *cursors;
|
||||
}
|
||||
|
||||
+ (GSDragView*) sharedDragView;
|
||||
+ (id) sharedDragView;
|
||||
- (void) dragImage: (NSImage*)anImage
|
||||
at: (NSPoint)screenLocation
|
||||
offset: (NSSize)initialOffset
|
||||
|
@ -112,6 +112,6 @@
|
|||
pasteboard: (NSPasteboard*)pboard
|
||||
source: (id)sourceObject
|
||||
slideBack: (BOOL)slideFlag;
|
||||
- (void) postDragEvent: (NSEvent *)theEvent;
|
||||
- (void) postDragEvent: (NSEvent*)theEvent;
|
||||
|
||||
@end
|
||||
|
|
|
@ -234,6 +234,7 @@ static GSDragView *sharedDragView = nil;
|
|||
slideBack: (BOOL)slideFlag
|
||||
{
|
||||
NSPoint eventPoint;
|
||||
|
||||
ASSIGN(dragPasteboard, pboard);
|
||||
ASSIGN(dragSource, sourceObject);
|
||||
dragSequence = [event timestamp];
|
||||
|
@ -274,7 +275,7 @@ static GSDragView *sharedDragView = nil;
|
|||
* Convert point from coordinates of image to coordinates of mouse
|
||||
* cursor for internal use.
|
||||
*/
|
||||
point.y += offset.height;
|
||||
point.x += offset.width;
|
||||
point.y += offset.height;
|
||||
[self _slideDraggedImageTo: point
|
||||
numberOfSteps: SLIDE_NR_OF_STEPS
|
||||
|
|
Loading…
Reference in a new issue