Commit graph

34 commits

Author SHA1 Message Date
Sergii Stoian
73d3aec68f * Source/GSDragView.m (_setCursor): Do not hold cursors array -
use NSCursor's methods. Do not recolor cursor and just use
[NSCursor greenArrowCursor].
2019-04-17 17:44:54 +03:00
Fred Kiefer
941afdac86 Fix compiler warnings reported by
Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36165 72102866-910b-0410-8b05-ffd578937521
2013-02-18 20:29:10 +00:00
Fred Kiefer
0a4708d4d0 Resolve clang warnings about wrong format specifiers for NSLog.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36133 72102866-910b-0410-8b05-ffd578937521
2013-02-14 08:58:05 +00:00
Fred Kiefer
d4f80c2258 Change NSEvent to CGFloat, NSUInteger and NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36121 72102866-910b-0410-8b05-ffd578937521
2013-02-13 08:40:36 +00:00
David Chisnall
4850a9feac Fix all current compiler warnings on FreeBSD/x86-64.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
2013-01-30 09:48:54 +00:00
Germán Arias
f3d8072b00 Improvements for tooltips and Drag&Drop operations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35566 72102866-910b-0410-8b05-ffd578937521
2012-09-14 01:01:23 +00:00
Fred Kiefer
86ff6abf69 Replace direct use of the isa pointer with a call to object_getClass()
to make David happy.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33545 72102866-910b-0410-8b05-ffd578937521
2011-07-14 07:17:24 +00:00
Fred Kiefer
87c05a3ba1 * Source/GSDragView.m (-init): Set the window background colour to clear.
* Headers/AppKit/NSAffineTransform.h,
* Headers/AppKit/NSView.h,
* Source/NSAffineTransform.m,
* Source/NSPrintOperation.m,
* Source/NSView.m: Use CGFlaot instead of float.
* Tests/gui/NSView/NSView_bounds_scale.m: New test file that currently fails.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33398 72102866-910b-0410-8b05-ffd578937521
2011-06-28 20:59:24 +00:00
Fred Kiefer
03bc4d79d6 Define new cursor backend methods replacing -setcursorcolor:::. And use
these.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32179 72102866-910b-0410-8b05-ffd578937521
2011-02-15 22:54:23 +00:00
Fred Kiefer
f58e9c1d39 Fix Use-after-release found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32159 72102866-910b-0410-8b05-ffd578937521
2011-02-14 18:38:11 +00:00
Fred Kiefer
caeca26669 Check whether the drag source supports methods before calling them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31787 72102866-910b-0410-8b05-ffd578937521
2010-12-27 13:40:57 +00:00
Fred Kiefer
de9abfb7ee 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
2010-12-22 16:16:14 +00:00
Fred Kiefer
63638ee055 Remove compiler warnings from clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30117 72102866-910b-0410-8b05-ffd578937521
2010-04-10 17:48:46 +00:00
Fred Kiefer
7e289df84b Yet another set of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30083 72102866-910b-0410-8b05-ffd578937521
2010-03-31 08:14:50 +00:00
Quentin Mathe
929688850f Fixed GSAppKitDraggingDrop event to have a valid location
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29617 72102866-910b-0410-8b05-ffd578937521
2010-02-14 12:15:05 +00:00
Quentin Mathe
dc80819ab4 Dispatch drag events with -[NSApp sendEvent:] and make each synthetized drag
event the current event in order to be consistent with Mac OS X behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29418 72102866-910b-0410-8b05-ffd578937521
2010-01-27 11:21:13 +00:00
Wolfgang Lux
37cb9d46b0 Scroll NSTextView during dragging if the mouse pointer is close to the
border of the view's visible rectangle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27313 72102866-910b-0410-8b05-ffd578937521
2008-12-16 21:13:21 +00:00
Adam Fedor
7afdd32ac1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Fred Kiefer
186e6b0744 Correction to dragging mask computation by Abdreas Schik.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25956 72102866-910b-0410-8b05-ffd578937521
2008-01-16 16:45:12 +00:00
Fred Kiefer
193e31e678 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Fred Kiefer
a66882b17b Add new MacOSX 10.4 methods and constants to NSWindow. Requires
recompilation of all applications!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25469 72102866-910b-0410-8b05-ffd578937521
2007-09-09 12:19:01 +00:00
Fred Kiefer
3b4aca0261 Added dragging patch by Yen-Ju Chen.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25092 72102866-910b-0410-8b05-ffd578937521
2007-04-27 18:54:58 +00:00
Sergii Stoian
139831b3fb * Source/GSSlideView.m: (- _slideFrom:to:): Calcuate number of
steps wrt image size.
* Source/GSDragView.m: (- slideDraggedImageTo:): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24831 72102866-910b-0410-8b05-ffd578937521
2007-03-09 00:21:52 +00:00
Matt Rice
3d20848a26 * Source/NSTableView.m: Add new private methods.
(-mouseDown:): Reorganize and don't track cells until dragging
        has been ruled out.
        * Source/NSCell.m (trackMouse:inRect:ofView:untilMouseUp:):
        Handle events no longer in the queue.
        * Source/GSDragView.m: Change NSLog to NSDebugLLog.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24007 72102866-910b-0410-8b05-ffd578937521
2006-11-01 09:50:00 +00:00
Richard Frith-MacDonald
19870a4c7a Don't drop expose events.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23602 72102866-910b-0410-8b05-ffd578937521
2006-09-24 08:27:21 +00:00
Richard Frith-MacDonald
65b175b904 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
Fred Kiefer
b6341d6e1a 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
2006-05-10 21:48:15 +00:00
Richard Frith-Macdonald
d2bb38a102 DnD cleanups and fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21028 72102866-910b-0410-8b05-ffd578937521
2005-04-01 14:10:39 +00:00
Richard Frith-Macdonald
4f37f34b9f Tweaks for subclassing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20998 72102866-910b-0410-8b05-ffd578937521
2005-03-29 10:08:50 +00:00
Richard Frith-Macdonald
bd3e29cb15 DnD bugfixes and cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20985 72102866-910b-0410-8b05-ffd578937521
2005-03-28 08:34:31 +00:00
Adam Fedor
36aaff3b9d * Source/GSDragView.m ([GSDragView -_setCursor]): Initialize variable.
* Source/NSMatrix.m: Rename vaguely-named macro.
(Based on Path #3499 from Patrick Middleton).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20346 72102866-910b-0410-8b05-ffd578937521
2004-11-12 04:19:33 +00:00
Fred Kiefer
58a073e7c5 Better handling of generic drag window loaction update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19553 72102866-910b-0410-8b05-ffd578937521
2004-06-19 15:27:03 +00:00
Fred Kiefer
c5023b12e4 Finished off backend indepenend dragging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19546 72102866-910b-0410-8b05-ffd578937521
2004-06-18 23:49:40 +00:00
Fred Kiefer
1bfe43398f New backend neutral DnD implementation (still incomplete)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19451 72102866-910b-0410-8b05-ffd578937521
2004-06-03 22:44:12 +00:00