2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2006-2022 Transmission authors and contributors.
|
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2016-09-10 17:08:58 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
2008-01-15 03:33:44 +00:00
|
|
|
@interface TorrentCell : NSActionCell
|
2007-09-16 01:02:06 +00:00
|
|
|
{
|
2021-08-15 09:41:48 +00:00
|
|
|
NSUserDefaults* fDefaults;
|
|
|
|
|
|
|
|
NSMutableDictionary* fTitleAttributes;
|
|
|
|
NSMutableDictionary* fStatusAttributes;
|
|
|
|
|
|
|
|
BOOL fTracking;
|
|
|
|
BOOL fMouseDownControlButton;
|
|
|
|
BOOL fMouseDownRevealButton;
|
|
|
|
BOOL fMouseDownActionButton;
|
|
|
|
BOOL fHover;
|
|
|
|
BOOL fHoverControl;
|
|
|
|
BOOL fHoverReveal;
|
|
|
|
BOOL fHoverAction;
|
|
|
|
|
|
|
|
NSColor* fBarBorderColor;
|
|
|
|
NSColor* fBluePieceColor;
|
|
|
|
NSColor* fBarMinimalBorderColor;
|
2007-09-16 01:02:06 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (NSRect)iconRectForBounds:(NSRect)bounds;
|
|
|
|
|
|
|
|
- (void)addTrackingAreasForView:(NSView*)controlView
|
|
|
|
inRect:(NSRect)cellFrame
|
|
|
|
withUserInfo:(NSDictionary*)userInfo
|
|
|
|
mouseLocation:(NSPoint)mouseLocation;
|
|
|
|
- (void)setHover:(BOOL)hover;
|
|
|
|
- (void)setControlHover:(BOOL)hover;
|
|
|
|
- (void)setRevealHover:(BOOL)hover;
|
|
|
|
- (void)setActionHover:(BOOL)hover;
|
|
|
|
- (void)setActionPushed:(BOOL)pushed;
|
2008-01-15 03:33:44 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|