1 | /*-------------------------------------------------------------------------------------------------------*\ |
---|
2 | | Adium, Copyright (C) 2001-2005, Adam Iser (adamiser@mac.com | http://www.adiumx.com) | |
---|
3 | \---------------------------------------------------------------------------------------------------------/ |
---|
4 | | This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
---|
5 | | General Public License as published by the Free Software Foundation; either version 2 of the License, |
---|
6 | | or (at your option) any later version. |
---|
7 | | |
---|
8 | | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
---|
9 | | the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
---|
10 | | Public License for more details. |
---|
11 | | |
---|
12 | | You should have received a copy of the GNU General Public License along with this program; if not, |
---|
13 | | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
14 | \------------------------------------------------------------------------------------------------------ */ |
---|
15 | |
---|
16 | @class AILinkTrackingController, NSTextView; |
---|
17 | |
---|
18 | /*! |
---|
19 | * @class AILinkTextView |
---|
20 | * @brief A text view that supports link tracking and clicking |
---|
21 | * |
---|
22 | * A text view that supports link tracking (displaying the system link cursor when hovering over a link, and optionally showing a tooltip when the link's display text differs from the URL to which it links) and clicking |
---|
23 | */ |
---|
24 | @interface AILinkTextView : NSTextView { |
---|
25 | AILinkTrackingController *linkTrackingController; |
---|
26 | } |
---|
27 | |
---|
28 | /*! |
---|
29 | * @brief Set if links should show a tooltip when hovered |
---|
30 | * |
---|
31 | * Set if links should show a tooltip when hovered if applicable. A link will only show a tooltip if the displayed text ("Adium") differs from the link itself ("www.adiumx.com"). |
---|
32 | * @param inShowTooltip YES if tooltips should be shown. |
---|
33 | */ |
---|
34 | - (void)setShowTooltip:(BOOL)inShowTooltip; |
---|
35 | |
---|
36 | @end |
---|