Gregory John Casamento
e9548dd057
Add extra pixels to tooltip
2021-10-27 11:59:39 -04:00
Gregory John Casamento
87e30f8514
Add code to dismiss popover if another window issmade key. Minor corrections to GSToolTips.m so that it uses the RELEASE/AUTORELEASE macros.
2021-10-02 17:28:24 -04:00
fredkiefer
8f46157e16
* Source/GSToolTips.m: Revert bogus last commit.
2020-09-14 23:21:52 +02:00
Gregory John Casamento
79374c6670
Update tooltips so that they display properly no matter what the theme is set to
2020-09-08 01:09:15 -04:00
fredkiefer
1e05899a0f
* Header* Headers/AppKit/NSColor.h,
...
+ * Source/NSColor.m: Add tool tip named colours.
+ * Source/GSToolTips.m (+initialize, -_timedOut:): Get colours from NSColor.
2019-07-07 21:39:25 +02:00
Fred Kiefer
e61577a98f
* Source/GSToolTips.m (-_timedOut:): Break long tool tips into
...
multiple lines.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39130 72102866-910b-0410-8b05-ffd578937521
2015-11-03 08:33:31 +00:00
Germán Arias
03869b5d03
revert last commits.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38364 72102866-910b-0410-8b05-ffd578937521
2015-02-23 23:26:23 +00:00
Germán Arias
699c768ee7
Fix for tooltips on Windows.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38363 72102866-910b-0410-8b05-ffd578937521
2015-02-23 19:22:16 +00:00
Fred Kiefer
92e67217a4
* Source/GSToolTips.m: Fixed two issues with tooltips.
...
(a) locationInView was being converted twice, producing invalid
coordinates the second time, when using a provider to get the
tooltips.
(b) Tooltips were not working if you had two tracking rects next
to each other in the same view, when moving from one to the
other,
depending on the order they were processed, one could get the
enter before the other's exit, thus canceling the timer.
Patch by Paul Landers <paul.landers@testplant.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38241 72102866-910b-0410-8b05-ffd578937521
2014-12-08 15:29:11 +00:00
Fred Kiefer
60383e72fe
Remove commented out old code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36394 72102866-910b-0410-8b05-ffd578937521
2013-03-20 22:15:26 +00:00
Fred Kiefer
f35d315dfb
* Source/GSToolTips.m (+initialize): Set the level of the tool
...
* tip
window to NSPopUpMenuWindowLevel.
Change suggested by Wolfgang Lux <wolfgang.lux@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36393 72102866-910b-0410-8b05-ffd578937521
2013-03-20 22:10:38 +00:00
Fred Kiefer
28ff5825aa
Add the timers for NSModalPanelRunLoopMode as well.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36187 72102866-910b-0410-8b05-ffd578937521
2013-02-22 11:28:06 +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
Fred Kiefer
a612305757
First set of NSInteger/NSUInteger cleanup in gui.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36029 72102866-910b-0410-8b05-ffd578937521
2013-01-27 20:28:35 +00:00
Fred Kiefer
8c0d5b3dff
* Source/GSToolTips.m: Use separate view to draw tooltip text.
...
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35674 72102866-910b-0410-8b05-ffd578937521
2012-10-12 16:36:20 +00:00
Wolfgang Lux
b0b86079ca
Fix implementation of tracking rectangles to use the coordinate system
...
of their views, as they do under Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35645 72102866-910b-0410-8b05-ffd578937521
2012-10-06 19:42:56 +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
Germán Arias
35f7ebe42d
Improvements for ToolTips.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35499 72102866-910b-0410-8b05-ffd578937521
2012-09-03 01:28:33 +00:00
Germán Arias
2495374d27
Use the font size in user defaults for tooltips
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35185 72102866-910b-0410-8b05-ffd578937521
2012-06-08 04:43:06 +00:00
Eric Wasylishen
32aa3f4c83
* Source/GSToolTips.m (-mouseEntered:): When calling the owner's
...
view:stringForToolTip:point:userData: method, make the point
relative to the view's coordinate system (tested on OS X) instead
of relative to the tracking rect (as before.)
* Source/GSToolTips.m (-_timedOut:): Fix a crash caused by
invalidating the timer and then using its userInfo object.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35000 72102866-910b-0410-8b05-ffd578937521
2012-03-27 03:38:59 +00:00
Eric Wasylishen
119056ab5f
* Source/GSToolTips.m (-_timedOut:): Guard against nil tooltip string
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33599 72102866-910b-0410-8b05-ffd578937521
2011-07-21 07:12:07 +00:00
David Chisnall
71783836f1
Fix build with gcc.
...
Sorry!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31553 72102866-910b-0410-8b05-ffd578937521
2010-10-22 21:23:29 +00:00
David Chisnall
4600fb5bbf
Fixed the point argument to -view:stringForToolTip:point:userData: (should be relative to the tracking rectangle, was relative to the window). Added support for displaying tooltips from NSToolTipAttributeName attributes in NSTextView.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31550 72102866-910b-0410-8b05-ffd578937521
2010-10-22 16:38:29 +00:00
Jonathan Gillaspie
c46d450978
* Source/GSToolTips.m: Use a single retained window for tooltips instead of a
...
newly created one each time. This significantly reduces callback interaction
with MS-Windows callbacks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30141 72102866-910b-0410-8b05-ffd578937521
2010-04-13 18:59:45 +00:00
Jonathan Gillaspie
db215c6ece
Source/GSToolTips.m: Prevent Windows API callback from crashing when displaying tooltips.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30105 72102866-910b-0410-8b05-ffd578937521
2010-04-08 17:49:47 +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
David Chisnall
a9ba2e5e77
Removed all uses of @defs() from -gui, so it now compiles cleanly with the non-fragile ABI. All ivars that must be accessed from other classes are now wrapped in PACKAGE_SCOPE. With clang, this expands to @package, with GCC it expands to @public.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30045 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:01:03 +00:00
Doug Simons
27dd5c1a82
use NSPanel instead of NSWindow for tooltips
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30030 72102866-910b-0410-8b05-ffd578937521
2010-03-24 17:14:34 +00:00
Richard Frith-MacDonald
883dd963de
fix #25907
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28583 72102866-910b-0410-8b05-ffd578937521
2009-09-01 05:20:08 +00:00
Richard Frith-MacDonald
52de0f2703
fix for #25385
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27741 72102866-910b-0410-8b05-ffd578937521
2009-01-31 06:17:29 +00:00
Richard Frith-MacDonald
d611e97561
Invalidate tracking rects when removed from view.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27734 72102866-910b-0410-8b05-ffd578937521
2009-01-30 14:42:26 +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
Richard Frith-MacDonald
6afdbb5209
Retain tooltip strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26147 72102866-910b-0410-8b05-ffd578937521
2008-02-26 11:13:09 +00:00
Richard Frith-MacDonald
e384fbd651
Fix for bug #20861
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25633 72102866-910b-0410-8b05-ffd578937521
2007-11-29 16:31:52 +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
Richard Frith-MacDonald
1995529b8a
Tooltip rect handling improvments ... reasonable behavior when coordinates
...
of the view change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23790 72102866-910b-0410-8b05-ffd578937521
2006-10-08 17:50:19 +00:00
Richard Frith-MacDonald
0e6b15b3e9
polish behavior of tool tips and reduce meory footprint.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23777 72102866-910b-0410-8b05-ffd578937521
2006-10-06 16:00:46 +00:00
Richard Frith-MacDonald
ac3da2c4ca
Make sure tooltip window starts off on screen.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23756 72102866-910b-0410-8b05-ffd578937521
2006-10-04 13:36:56 +00:00
Richard Frith-MacDonald
f17b3f5143
minor tool tip tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23751 72102866-910b-0410-8b05-ffd578937521
2006-10-04 08:07:21 +00:00
Richard Frith-MacDonald
ab9ac7d741
IUmplement tool tip help
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23732 72102866-910b-0410-8b05-ffd578937521
2006-10-02 19:22:22 +00:00