mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 18:01:56 +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
a3394a27e2
commit
f83a371d2f
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>
|
2005-03-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSDragView.m: Fix a few bugs exposed by windows port and
|
* Source/GSDragView.m: Fix a few bugs exposed by windows port and
|
||||||
tidy/add comments to clarify operation. When initiating DnD session,
|
tidy/add comments to clarify operation. When initiating DnD session,
|
||||||
take offset argument into account rather than ignoring it.
|
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.
|
change offset to be NSSize rather thgan NSPoint.
|
||||||
|
|
||||||
2005-03-21 Adam Fedor <fedor@gnu.org>
|
2005-03-21 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
NSMutableDictionary *cursors;
|
NSMutableDictionary *cursors;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (GSDragView*) sharedDragView;
|
+ (id) sharedDragView;
|
||||||
- (void) dragImage: (NSImage*)anImage
|
- (void) dragImage: (NSImage*)anImage
|
||||||
at: (NSPoint)screenLocation
|
at: (NSPoint)screenLocation
|
||||||
offset: (NSSize)initialOffset
|
offset: (NSSize)initialOffset
|
||||||
|
@ -112,6 +112,6 @@
|
||||||
pasteboard: (NSPasteboard*)pboard
|
pasteboard: (NSPasteboard*)pboard
|
||||||
source: (id)sourceObject
|
source: (id)sourceObject
|
||||||
slideBack: (BOOL)slideFlag;
|
slideBack: (BOOL)slideFlag;
|
||||||
- (void) postDragEvent: (NSEvent *)theEvent;
|
- (void) postDragEvent: (NSEvent*)theEvent;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -234,6 +234,7 @@ static GSDragView *sharedDragView = nil;
|
||||||
slideBack: (BOOL)slideFlag
|
slideBack: (BOOL)slideFlag
|
||||||
{
|
{
|
||||||
NSPoint eventPoint;
|
NSPoint eventPoint;
|
||||||
|
|
||||||
ASSIGN(dragPasteboard, pboard);
|
ASSIGN(dragPasteboard, pboard);
|
||||||
ASSIGN(dragSource, sourceObject);
|
ASSIGN(dragSource, sourceObject);
|
||||||
dragSequence = [event timestamp];
|
dragSequence = [event timestamp];
|
||||||
|
@ -274,7 +275,7 @@ static GSDragView *sharedDragView = nil;
|
||||||
* Convert point from coordinates of image to coordinates of mouse
|
* Convert point from coordinates of image to coordinates of mouse
|
||||||
* cursor for internal use.
|
* cursor for internal use.
|
||||||
*/
|
*/
|
||||||
point.y += offset.height;
|
point.x += offset.width;
|
||||||
point.y += offset.height;
|
point.y += offset.height;
|
||||||
[self _slideDraggedImageTo: point
|
[self _slideDraggedImageTo: point
|
||||||
numberOfSteps: SLIDE_NR_OF_STEPS
|
numberOfSteps: SLIDE_NR_OF_STEPS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue